240
D320 PLC User's Manual
F11.5
M0.1
S
R
INC
D=K2
Rung 6:
This rung checks the 3
second timer started after
the Response Request
message was sent. If the
timer times out, it increments
an error counter (K2), and
restarts communications.
TC65
M0.1
LET
D=K0
S=0
Rung 7:
Subroutine 0 creates the
Query message (Write
Word).
SBR
SL=0
Rung 8:
The Query message is
placed in the Send buffer,
SR298 to SR301. The
message data to send is:
010304040002####
which translates to:
Write 1 word of data with
the value #### to W0 in
PLC station #3
See Appendix A for a
detailed explanation.
For this example, the value
in register R2 is being sent
to PLC #3.
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=$0404
LET
D=SR300
S=$0002
LET
D=SR301
S=R2
LET
D=SR370
S=8
LET
D=SR371
S=5
Rung 9:
End of Subroutine 0.
RET
Содержание 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...