[update] TRIG json

This commit is contained in:
Roy
2023-06-13 13:23:58 +08:00
parent f82c3ab033
commit c9b10fc6aa
@@ -10,7 +10,15 @@
},
"constant": {
"TIME_MAX": 100000,
"BLE_WRITE_MAX": 255
"BLE_WRITE_MAX": 255,
"PR0": 0,
"PR1": 1,
"D0": 2,
"D1": 3,
"A0": 4,
"A1": 5,
"A2": 6,
"A3": 7
},
"parameters": {
"USED": {
@@ -380,7 +388,8 @@
{
"expression": "MODE",
"when": {
"0": "curve_acc"
"0": "curve_acc",
"3": "trig_timer_mode"
}
},
"_sync(True)",
@@ -482,6 +491,31 @@
"data": [
"XE2;X02;X03;2B>ACC_a_out3_current;1B>ACC_a_out3"
]
},
"trig_timer_mode": [
"trig_timer_mode_set_PR0"
],
"trig_timer_mode_set_PR0": {
"type": "RIS",
"parameter": {
"used": "USED[PR0]",
"v_early": "V_EARLY[PR0]",
"v_late": "T_LATE[PR0]",
"v_mid0": "V_MID0[PR0]",
"v_mid1": "V_MID1[PR0]",
"v_mid2": "V_MID2[PR0]",
"v_mid3": "V_MID3[PR0]",
"cycle": "CYCLE[PR0]",
"t_early": "T_EARLY[PR0]",
"t_late": "T_LATE[PR0]"
},
"data": [
"1X0F;",
"1B>PR0;",
"1X01;",
"5b>0;1b>v_late;1b>v_early;1b>used;",
"4b>0;1b>v_mid3;1b>v_mid2;1b>v_mid1;1b>v_mid0;"
]
}
}
}