;离线配置
[offlinecfg]
;最大命令条数
MaxCmdCount=500

;;subcommand
;format: 命令字母,命令名称,选项段名
[subcommand]
cmd1 =s,Rotation of a given step,OptionS
cmd2 =d,Set rotation direction,OptionD
cmd3 =m,Set microstep,OptionM
cmd4 =f,Set external emergency stop enable,OptionF
cmd5 =g,Set offline enable,OptionG
cmd6 =l,Clear up limit,OptionL
cmd7 =b,Clear low limit,OptionB
cmd8 =v,Set rotation speed,OptionV
cmd9 =c,Internal counter plus 1,OptionC
cmd10 =t,Internal counter to zero,OptionT
cmd11 =j,Unconditional jump,OptionJ
cmd12 =n,Unequal jump,OptionN
cmd13 =e,Equal jump,OptionE
cmd14 =w,Wait condition,OptionW
cmd15 =o,Port output,OptionO
cmd16 =p,compare,OptionP
cmd17 =u,Set acceleration or deceleration,OptionU
cmd18 =i,Set external stop trigger mode,OptionI
cmd22 =h,Set GPIOmask,OptionH
cmd24 =x,absolute position step,OptionX
cmd25 =z,Clear motor exception,OptionZ
cmd28 =C,brake setting,OptionUC
cmd29 =D,Set port direction,OptionUD
cmd31 =Z,Motor position clearing,OptionUZ
cmd32 =I,max current,OptionUI

;数据类型：0-纯数值，1-数值直接表示轴，2-数值bit位表示轴，3-数据高位数值表示轴
[OptionS]
;format:选项值，选项名，数据类型,数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Step count low 16 bit,0,0,0,65535,Set step count low 16 bit
option2 =1,Step count high 16 bit,0,0,0,65535,Set step count high 16 bit
option3 =2,Write step info,1,0,0,4,Set the number of steps to the corresponding motor
option4 =3,Start rotation,2,0,0,15,Start rotation

[OptionD]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,1,Set rotation direction

[OptionM]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,128,Set micro step (only 2^n)

[OptionF]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,3,Set external emergency stop enable

[OptionG]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,1,Set offline enable

[OptionL]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,0,Clear up limit

[OptionB]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,0,Clear low limit

[OptionV]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Set speed low 16 bit,0,0,0,65535,Set the rotation speed to 16 bits low
option2 =1,Set speed high 16 bit,0,0,0,65535,Set the rotation speed to 16 bits high
option3 =2,Write speed,1,0,0,65535,Write speed

[OptionC]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Counter1 add 1,0,0,0,0,Counter1 add 1
option2 =1,Counter2 add 1,0,0,0,0,Counter2 add 1


[OptionT]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Counter1 is reset to zero,0,0,0,0,Counter1 is reset to zero
option2 =1,Counter2 is reset to zero,0,0,0,0,Counter2 is reset to zero


[OptionJ]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,0,0,0,MaxCmdCount,Unconditionally jump to the specified line


[OptionN]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,0,0,0,MaxCmdCount,Unequal jump to specified line


[OptionE]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,0,0,0,MaxCmdCount,Equal jump to specified line


[OptionW]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =1,motor idle,1,0,0,0,Wait for motor idle
option2 =2,Wait N ms,0,0,0,65535,System waiting for N ms
option3 =3,Up limit valid,1,0,0,1,Wait up limit valid
option4 =4,Low limit valid,1,0,0,1,Wait low limit valid
option5 =6,Wait port TX,0,0,0,0,Wait for port UART_TX to reach the set value
option6 =7,Wait port RX,0,0,0,0,Wait for port UART_RX to reach the set value
option7 =8,Wait global limit,0,0,0,65535,Wait for the global limit level to reach the set value
option8 =9,Wait motor1 up limit,0,0,0,1,Wait for the motor1 up limit level to reach the set value
option9 =10,Wait motor1 low limit,0,0,0,1,Wait for the motor1 low limit level to reach the set value
option10 =11,Wait motor2 up limit,0,0,0,65535,Wait for the motor2 up limit level to reach the set value
option11 =12,Wait motor2 low limit,0,0,0,1,Wait for the motor2 low limit level to reach the set value
option12 =13,Wait motor3 up limit,0,0,0,1,Wait for the motor3 up limit level to reach the set value
option13 =14,Wait motor3 low limit,0,0,0,1,Wait for the motor3 low limit level to reach the set value
option14 =15,Wait motor4 up limit,0,0,0,1,Wait for the motor4 up limit level to reach the set value
option15 =16,Wait motor4 low limit,0,0,0,1,Wait for the motor4 low limit level to reach the set value
option16 =17,Wait port ADC1,0,0,0,1,Wait for port ADC1 to reach the set value
option17 =18,Wait port ADC2,0,0,0,1,Wait for port ADC2 to reach the set value
option18 =19,Wait ports,0,0,0,1,Wait for ports to reach the set value

[OptionO]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =6,Output port UART_TX,0,0,0,1,port UART_TX
option2 =7,Output port UART_RX,0,0,0,1,port UART_RX
option3 =17,Output port ADC1,0,0,0,1,port ADC1
option4 =18,Output port ADC2,0,0,0,1,port ADC2

[OptionP]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =1,Compare counter1,0,0,0,65535,Compare whether counter1 is equal to the set value
option2 =2,Compare counter2,0,0,0,1,Compare whether counter2 is equal to the set value
option3 =3,Compare up limit high,1,0,0,1,Compare whether the up limit is at a high level
option4 =4,Compare low limit high,1,0,0,1,Compare whether the low limit is at a high level
option6 =6,Compare port UART_TX,0,0,0,0,Compare whether the UART_TX port is equal to the set value
option7 =7,Compare port UART_RX,0,0,0,1,Compare whether the UART_RX port is equal to the set value
option8 =8,Compare global limit,0,0,0,1,Compare whether the global limit level is equal to the set value
option9 =9,Compare motor1 up limit,0,0,0,65535,Compare whether the up limit of Motor 1 is equal to the set value
option10 =10,Compare motor1 low limit,0,0,0,1,Compare whether the low limit of Motor 1 is equal to the set value
option11 =11,Compare motor2 up limit,0,0,0,1,Compare whether the up limit of Motor 2 is equal to the set value
option12 =12,Compare motor2 low limit,0,0,0,1,Compare whether the low limit of Motor 2 is equal to the set value
option13 =13,Compare motor3 up limit,0,0,0,1,Compare whether the up limit of Motor 3 is equal to the set value
option14 =14,Compare motor3 low limit,0,0,0,65535,Compare whether the low limit of Motor 3 is equal to the set value
option15 =15,Compare motor4 up limit,0,0,0,1,Compare whether the up limit of Motor 4 is equal to the set value
option16 =16,Compare motor4 low limit,0,0,0,1,Compare whether the low limit of Motor 4 is equal to the set value
option17 =17,Compare port ADC1,0,0,0,1,Compare whether port ADC1 is equal to the set value
option18 =18,Compare port ADC2,0,0,0,0,Compare whether port ADC2 is equal to the set value
option19 =19,Compare ports,0,0,0,0,Compare whether ports is equal to the set value
option20 =20,Compare busy,0,0,0,0,Is the busy status effective
option21 =21,Compare idle,1,0,0,0,Compare whether the idle state of the motor is effective
option22 =22,Compare up limit trigger,1,0,0,0,Compare whether the up limit is triggered
option23 =23,Compare low limit trigger,1,0,0,0,Compare whether the low limit is triggered
option24 =24,Compare fault states,1,0,0,0,Compare whether the fault status is effective

[OptionU]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Acc low 16 bit,0,8,1,9,Set Acceleration Low 16 Bits
option2 =1,Acc high 16 bit,0,8,1,9,Set Acceleration High 16 Bits
option3 =2,Write acc,1,8,1,9,Write Acceleration
option4 =3,Dec low 16 bit,0,8,1,9,Set Deceleration Low 16 Bits
option5 =4,Dec high 16 bit,0,8,1,9,Set Deceleration High 16 Bits
option6 =5,Write dec,1,8,1,9,Write Deceleration

[OptionI]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,3,0,0,3,Set limit triggering method

[OptionH]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,None,0,0,0,65535,Set GPIO mask.

[OptionX]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Absolute Position Low 16 Bits,0,0,0,65535,Set Absolute Position Low 16 Bits
option2 =1,Absolute Position High 16 Bits,0,0,0,65535,Set Absolute Position High 16 Bits
option3 =2,Write Absolute Position,1,0,0,4,Set Absolute Position To Target Motor
option4 =3,Start Step,2,0,0,15,Initiate Absolute Position Stepping for Target Motor


[OptionZ]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Clear Stall flag,2,0,0,0,Clear Stall flag

[OptionUC]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Brake Voltage Regulation,0,0,0,100,Adjust Brake Voltage Duty Cycle

[OptionUD]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =1,Port UART_TX Dir,0,0,0,1,Set Port UART_TX Dir
option2 =2,Port UART_RX Dir,0,0,0,1,Set Port UART_RX Dir
option3 =12,Port ADC1 Dir,0,0,0,1,Set Port ADC1 Dir
option4 =13,Port ADC2 Dir,0,0,0,1,Set Port ADC2 Dir

[OptionUZ]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Zero Motor Position,1,0,0,0,Zero Motor Position

[OptionUI]
;format:选项值，选项名，数据默认值,数据范围min(10进制),数据范围max(10进制),说明
option1 =0,Motor1 Maximum Current,0,0,0,6000,Set Motor1 Maximum Current
option2 =1,Motor2 Maximum Current,0,0,0,6000,Set Motor2 Maximum Current
option3 =2,Motor3 Maximum Current,0,0,0,6000,Set Motor3 Maximum Current
option4 =3,Motor4 Maximum Current,0,0,0,6000,Set Motor4 Maximum Current
