Appendix C: COM2 UDCP Specification
241
Rung 13:
Subroutine 10 processes
the responses (Query
Acknowledge/Response)
from the network.
SBR
SL=10
Rung 14:
This rung masks out the
Source Address from the
received message, into
W10.
F0.15
AND
D=W10
S1=SR334
S2=$00FF
Rung 12:
End of Subroutine 1.
==
==
==
A=SR335
B=$0180
A=W10
B=3
A=K0
B=0
Rung 15:
This rung checks for the
Query Acknowledge from
Station #3. When received,
it proceeds to the next step
by incrementing the step
counter K0 and resetting the
internal flag M0.0.
LET
D=K0
S=1
Rung 10:
Subroutine 1 creates the
Response Request.
SBR
SL=1
Rung 11:
The Response Request is
placed in the Send buffer,
SR298 to SR300. The
message data to send is:
010300010000
which translates to:
Perform the previously
requested Write operation.
This message is always the
same. See Appendix A for a
detailed explanation.
After creating the message,
the send length is placed in
SR370, and the expected
receive length is placed in
SR371.
F0.15
LET
D=SR298
S=$0301
LET
D=SR299
S=$0100
LET
D=SR300
S=$0000
LET
D=SR370
S=5
LET
D=SR371
S=5
RET
M0.0
R
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...