Omron CJ1W-CLK21-V1 ユーザーズマニュアル

ページ / 401
198
Using the Message Service
Section 6-3
CVM1 and CV-series PLCs
Note 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 Special
I/O Units.
 (011)
I0000
00
A502
07
1200
02H
1200
01H
1210
00H
 (030)
 (030)
 (030)
 (030)
 (030)
 (040)
 (192)
 (013)
1200
00
A502
15
 (011)
 KEEP   120002H
I0000
01
A502
07
1200
00H
1200
03H
 (030)
1200
02H
(030) 
 (030)
 (030)
 (030)
 (193)
A502
07
1200
00
 (013)
1210
01H
1200
02H
A502
07
1200
02H
A502
15
 (040)
 KEEP   120000H
MOV #000A 
D00000
MOV #0002 
D00001
MOV 
#0400     D00002
MOV     #0705 
D00003
MOV #0064 
D00004
XFER 
#0010    
I0000     D00010
SEND   D00010 
D00020   D00000
 DIFU  120001H
MOV #0010 
D00005
MOV #0003 
D00006
MOV #2000 
D00007
MOV #0705 
D00008
MOV #0000 
D00009
RECV    A100    
2000 
D00005
 DIFU   120003H
XFER 
#0016    
2000 
D00040
1200
02H
03H
1200
A502
15
1200
00H
The transmission program will run when I000000 is ON, 
provided that the Network Instruction Enabled Flag for 
port 7 is ON and the RECV instruction has not been 
executed.
CIO 120000H remains ON while the SEND instruction 
is being executed, and it turns OFF when the execution 
of the instruction has been completed.
Word
Content
Meaning
D00000   00 
0A 
No. of send words: 10H
D00002   04 
00 
Destination node address: 4
 
 
Destination unit address: 0
D00003   07 
05 
Response required
   
 
 
Communications port no.: 7
   
 
 
Number of retries: 5
The 10-word data starting from I0000 is stored in 
D00010 and following words.
Transmission error display
The reception program will run when I000001 is ON, 
provided that the Network Instruction Enabled Flag for 
port 7 is ON and the SEND instruction has not been 
executed.
CIO 120002H remains ON while the RECV instruction 
is being executed, and it turns OFF when the execution 
of the instruction has been completed.
Word
Content
Meaning
D00005  00  10 
Number of receive words: 16H
D00006  00  03 
Destination network address: 3
D00007  20  00 
Destination node address: 32
 
 
 
Destination Unit address: 0
D00008 07  05  Response 
required
 
 
 
Communications port no.: 7
 
 
 
Number of retries: 5
D00009  00  00 
Response monitor time: Default 
Reception error display
Reception data processing
When the data is received without an error, the 16-word 
data received at CIO 2000 and following words is 
stored in D00040 and following words on the same PLC.
Transfers 10 words of data from the source node (D00010) 
to the PLC (from D00020 onwards) at network address 2,  
node no. 4, unit address 0.
Creates reset input.
Transfers 16 words of data (from A100 onwards) from 
the PLC at network address 3, node no. 32, unit address 
0, to words 2000 onwards.
Creates reset input.
D00001   00     02     Destination network address: 2
D00004   00 
64 
Response monitor time: 10 s