9
.
Program
40
C: First control word
・
The first address is specified to set the first control word.
・
Data is set in the following format.
Item
Description
Number of command data bytes
The number of command data bytes is set. (#0002 to maximum data length)
Number of response data bytes
The number of response data bytes is set. (#0000 to maximum data length)
Serial port number
(Physical port)
One from the range of #0 to #4 is set.
(#0: Not used, #1: Port 1, #2: Port 2, #3: Reserved, #4: Reserved)
*If you set the destination unit address to (2) Serial port's unit address as
described below, set #0: Not used.
Destination network address
One from the range of #00 to 7F is set. (#00: Own network)
Destination node address
One from the range of #00 to the maximum node address is set.
(#00: Transmit within the local node)
Destination unit address
The following (1) or (2) is set.
(1)Unit address
CPU Unit
: #00
CPU Bus Units
: #10 + unit number
(e.g., for unit number (&5), Unit address = #10 + #05 = #15)
Special I/O Unit
: #20 + unit number
(e.g., for unit number (&10), Unit address = #20 + #0A = #2A)
(2)Unit address of serial port
For SCU
Port 1: #80 + #04 x unit number
Port 2: #81 + #04 x unit number
(e.g., for Port 2 of unit number (&10),
Serial port's unit address = #81
+
#04
×
#0A(&10)
=
#81
+
#28
=
#A9
)
Response needed/not needed
#0 or #8 is set. (#0: Response needed, #8: Response not needed)
Logical port number
One from the range of #0 to #7 is set.
Resend times
One from the range of #0 to F (0 to 15 times) is set.
Response timeout
One from the range of &1 to 65535 (#0001 to FFFF) (indicating 0.1 to
6553.5 seconds) is set. (#0000: 2s (default value))
Содержание CJ2*-CPU Series
Страница 63: ...58...
Страница 64: ...2015 1115 P641 E1 01...