[Config]
ID=1001002
DeviceType=100
IsCore=1
ControlType=UDP
PINS=1
Pin1=RS232|1|L

SysParameters=2
SysParam1=IP|string|192.168.1.10|IP|Textbox
SysParam2=Port|int|1200|端口|UCNumber

UserParameters=4
UserParam1=addr|String|01|地址位|Textbox
UserParam2=speed|Int|50|速度|Textbox
UserParam3=index|Int|01|预置位|Textbox 
UserParam4=type|String|07|操作|Textbox

[PROTOCOL]
PROTOCOL_COUNT=12
PROTOCOL1.msg=Left
PROTOCOL1.type=HEX
PROTOCOL1.data=FF [addr] 00 04 {hex({div({mul(64,[speed])}, 100)})} 00 {hex({mod({add([addr],4,{div({mul(64,[speed])}, 100)})}, 256)})}
PROTOCOL2.msg=Up
PROTOCOL2.type=HEX
PROTOCOL2.data=FF [addr] 00 08 00 {hex({div({mul(64,[speed])}, 100)})} {hex({mod({add([addr],8,{div({mul(64,[speed])}, 100)})}, 256)})}
PROTOCOL3.msg=Right
PROTOCOL3.type=HEX
PROTOCOL3.data=FF [addr] 00 02 {hex({div({mul(64,[speed])}, 100)})} 00 {hex({mod({add([addr],2,{div({mul(64,[speed])}, 100)})}, 256)})}
PROTOCOL4.msg=Down
PROTOCOL4.type=HEX
PROTOCOL4.data=FF [addr] 00 10 00 {hex({div({mul(64,[speed])}, 100)})} {hex({mod({add([addr],16,{div({mul(64,[speed])}, 100)})}, 256)})}
PROTOCOL5.msg=Stop
PROTOCOL5.type=HEX
PROTOCOL5.data=FF [addr] 00 00 00 00 [addr]
PROTOCOL6.msg=Preset
PROTOCOL6.type=HEX
PROTOCOL6.data=FF [addr] 00 [type] 00 {hex([index])} {hex({add([addr],[type],[index])})}
PROTOCOL7.msg=Load
PROTOCOL7.type=HEX
PROTOCOL7.data=FF [addr] 00 07 00 {hex([index])} {hex({add([addr],7,[index])})}
PROTOCOL8.msg=Save
PROTOCOL8.type=HEX
PROTOCOL8.data=FF [addr] 00 03 00 {hex([index])} {hex({add([addr],3,[index])})}
PROTOCOL9.msg=ZoomIn
PROTOCOL9.type=HEX
PROTOCOL9.data=FF [addr] 00 20 00 00 {hex({add(32,[addr])})}
PROTOCOL10.msg=ZoomOut
PROTOCOL10.type=HEX
PROTOCOL10.data=FF [addr] 00 40 00 00 {hex({add(64,[addr])})}
PROTOCOL11.msg=On
PROTOCOL11.type=HEX
PROTOCOL11.data=FF [addr] 00 09 00 01 {hex({add(9,[addr])})}
PROTOCOL12.msg=Off
PROTOCOL12.type=HEX
PROTOCOL12.data=FF [addr] 00 0B 00 01 {hex({add(11,[addr])})}
PROTOCOL21.msg=LargeAperture
PROTOCOL21.type=HEX
PROTOCOL21.data=FF [addr] 04 00 00 00 {hex({add(4,[addr])})}
PROTOCOL22.msg=SmallAperture
PROTOCOL22.type=HEX
PROTOCOL22.data=FF [addr] 02 00 00 00 {hex({add(2,[addr])})}