![background image](http://html.mh-extra.com/html/omron/c200hw-clk21/c200hw-clk21_operation-manual_742483226.webp)
201
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
Содержание C200HW-CLK21
Страница 3: ...iv ...
Страница 9: ...x ...
Страница 12: ...xiii TABLE OF CONTENTS Index 367 Revision History 373 ...
Страница 13: ...xiv ...
Страница 19: ...xx ...
Страница 57: ...32 Application Precautions Section 1 5 Example CX Programmer Response Timeout Setting ...
Страница 69: ...44 Message Service Procedure Section 2 2 ...
Страница 111: ...86 Constructing Networks with Repeater Units Section 3 4 ...
Страница 154: ...129 Setting Data Links Section 5 2 Device Information Setting Data Link Tables ...
Страница 261: ...236 Response Codes Section 6 7 ...
Страница 297: ...272 Message Delay Times Section 8 4 ...
Страница 353: ...328 Handling Precautions Section 9 6 ...
Страница 364: ...339 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Страница 365: ...340 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Страница 369: ...344 Standard Models Appendix A ...
Страница 391: ...366 Using the Relay Terminal Block Appendix C ...
Страница 397: ...372 Index ...
Страница 401: ...376 Revision History ...