Omron CJ1W-CLK21-V1 Network Card User Manual


 
195
Using the Message Service Section 6-3
Note 1. With CS/CJ-series PLCs, the Network Instruction Enabled Flag in A20200
to A20207 corresponding to communications ports will be OFF even when
PMCR (PROTOCOL MACRO) is being executed.
2. When using the sample program, make sure that the bits and words used
in the sample program are not the same as those in the user program or
by Special I/O Units.
@XFER(70)
#0016
2000
D00040
R
S
KEEP(11)
120002
000001 A20207
120000
120003
@MOV(21)
#0010
D00005
120002
@MOV(21)
#0003
D00006
@MOV(21)
#2000
D00007
120002 120003
A21907
Transmitted data (16 words from 2000) moved into
words beginning at D00040 for storage.
121001
120002 A21907
Turns ON to indicate reception error.
DIFU(13) 120003
120002 A20207
Creates reset input.
CIO 120002 remains ON while the RECV instruction
execution has been completed.
is being executed, and it turns OFF when instruction
Transfers the 16 words beginning at A100 of net
work address 3, node address 32, and Unit address
0 (PLC) to 2000.
(See note 1.)
(See note 1.)
Execution
condition
(Continued from the previous page)
@MOV(21)
#0705
D00008
@MOV(21)
#0000
D00009
Network Instruction Error Flag
@RECV(98)
A100
2000
D00005
Control Data Preparation
Word Content Meaning
D00005 0 0 10 16 send words
D00006 0 0 0 3 Destination network
address= 3
D00007 2 0 0 0 Destination node
address = 32
Destination Unit
address = 0
D00008 0 7 0 5 Response required
Port No. 7 used
No. of resends = 5
D00009 0 0 0 0 Response monitoring
time = Default
The reception program will run when CIO 00001
turns ON, provided that the Network Instruction En-
abled Flag is ON and the SEND instruction has not
been executed.