小弟最近买了个485数显仪表,用串口调试助手可以使用,但是用触摸屏发送数据(只发送,不需要返回数据)就是没有反应。麻烦各位帮帮忙好不好
指令很短的
macro_command main()
char command[32]
FILL(command[0], 0, 32) // init
command[0] = 0x1 // station no
command[1] = 0x02 // write signle coil
command[2] = 0x09
command[3] = 0x09
command[4] = 0x09
command[5] = 0x09
command[6] = 0x6d
command[7] = 0xc2
// send command
OUTPORT(command[0], "indictor", 8)
end macro_command |