Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 904

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Network Instructions
Operands
Note
C: First control word
The five control words C to C+4 specify the number of words to be received,
the source of the transmission, and other settings shown in the following table.
Word
Bits 00 to 07
C
Number of words: 0001 to maximum allowed
C+1
Source network address:
00 to 7F (0 to 127)
C+2
Source unit address
C+3
No. of retries: 00 to 0F (0 to 15)
C+4
Response monitoring time: 0001 to FFFF (0.1 to 6553.5 seconds)
(The default setting of 0000 sets a monitoring time of 2 seconds.)
(1) The maximum number of words allowed depends on the network being
used. For a Controller Link, the allowed range is 0001 to 03DE (1 to 990
words).
(2) Set the source network address to 00 to specify a source within the local
network. When two or more CPU Bus Units are mounted, the network ad-
dress will be the unit number of the Unit with the lowest unit number.
(3) The following two methods can be used to receive data from a host com-
puter through a serial port with the host link while initiating communica-
tions from the PLC.
(a) Set the source unit address (bits 00 to 07 of C+2) to the unit ad-
dress of the CP-series CPU Unit or the Serial Communications
Unit and set the serial port number (bits 08 to 11 of C+1) to 1 for
port 1 or 2 for port 2.
Unit address
(C+2, bits 00
to 07)
00 hex
CP1H CPU Unit
10 hex + unit
CJ-series Serial Com-
number
munications Unit (CPU
Bus Unit)
(b) Set the source unit address directly into bits 00 to 07 of C+2. In
this case, set the serial port number in bits 08 to 11 of C+1 to 0
for direct specification.
CP1H CPU Unit and CP1L M (30 or 40 I/O points) CPU Unit Se-
rial Communications Option Board Ports
Port
Port 1
Port 2
1
Bits 08 to 11:Serial port number
2, 4
(physical port)
1 hex:
2 hex:
(Do not set 0, 3, or 4.)
Bits 12 to 15: Always 0.
5
Source node address:
00 to maximum allowed
Port number: 00 to 07
Response is fixed to "required."
Unit
Serial port number
(C+1, bits 08 to 11)
1 hex
2 hex
1 hex
2 hex
Port's unit address
FD hex (253 decimal)
FC hex (252 decimal)
Section 3-24
Bits 08 to 15
(4-digit hexadecimal)
Port 1
Port 2
6
7
(F: Automatic allocation)
Serial port
Port 1
Port 2
Port 1
Port 2
871

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents