已解决了。H1124==4X4388,4X4389
macro_command main()
short result1
short result2
GetData(result1,"MODBUS RTU" 4x,4389,1)
SetData(result1,"Local HMI" LW,10,1)
end macro_command
再把LW10(十进制)转成LW1000-----LW1007(8个二进制数就行了),也就是把LW1000,LW1001,LW1002,LW1003......做到屏里去显示每一位状态位B1,B2,B3........(8个状态位)