macro_command main()
short a[4]
short b[16],return_value
FILL(a[0], 0, 4)
FILL(b[0], 0, 16)
a[0]=0A
a[1]=0D
a[2]=01
a[3]=0D
OUTPORT(a[0], "Free Protocol", 4)
INPORT(b[0], "Free Protocol", 16, return_value)
if return_value > 0 then
SetData(b[0], "Local HMI", LW, 0, 16)
end if
end macro_command
为什么在屏上没有数据,谢谢 |