A #TisSTX
JNB M008
OPN "RECV DST DB"
L DW#16#84000078
LAR1
L DBW [AR1,P#0.0]
L DW#16#4850
==I
JCN M008
L DW#16#84000088
LAR1
L DBB [AR1,P#0.0]
L DW#16#3
==I
JCN M007
S "ReciveCommandHP"
R "nRiciveEmeLabel"
R #tReciveERROR
R "SafeAlarmOut"
R "nFormOver"
JU M008
M007: S #tReciveERROR
M008: NOP 0
最佳答案
写这段程序的人很坑爹啊,明白着不想让别人看懂啊,其实关键部分就在于弄懂双字指针的概念(见附图)就可以了:
A #TisSTX
JNB M008
OPN "RECV DST DB"
L DW#16#84000078 //dbx15.0
LAR1
L DBW [AR1,P#0.0] // dbw15
L DW#16#4850
==I
JCN M008
L DW#16#84000088 //dbx17.0
LAR1
L DBB [AR1,P#0.0] // dbb17
L DW#16#3
==I
JCN M007
S "ReciveCommandHP"
R "nRiciveEmeLabel"
R #tReciveERROR
R "SafeAlarmOut"
R "nFormOver"
JU M008
M007: S #tReciveERROR
M008: NOP 0
图片说明:
提问者对于答案的评价:
现在明白了奇数的指向了,谢谢
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc238214.html