4-3
Section
CPM2A/CPM2C Communications Functions
231
Example Program
This example shows ladder programs that copy the status of IR 000 in each
CPM1/CPM1A to SR 200 in the other CPM1/CPM1A.
25313 (Always ON)
MOV(21)
000
LR00
MOV(21)
LR08
200
Program in the Master
MOV(21)
000
LR08
MOV(21)
LR00
200
25313 (Always ON)
Program in the Slave
LR00
LR07
LR08
LR00
LR07
LR08
LR15
Writing area
Reading area
Write
Read
Reading area
Writing area
LR15
Write
Read
IR 000
SR 200
IR 000
SR 200
4-3
CPM2A/CPM2C Communications Functions
This section describes how to use CPM2A/CPM2C (including the CPM2C-S)
communications functions. Read this section if you are using Host Link, no-pro-
tocol, 1:1 NT Link, or 1:1 PC Link communications.
4-3-1 Host Link Communications
Host Link communications are a conversational-type communications protocol,
in which the PC sends responses to commands issued from a host computer
and can be used to read or write data in the PC’s data areas and control some PC
operations. There is no need for a communications program in the PC. Host Link
communications can be used through the peripheral port or the CPM2A/
CPM2C’s RS-232C port.
Host computer
Commands
Responses
CPM2A