
7-7
7 Using Modbus-RTU Slave Mode
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
7-2 De
vic
e V
ariab
les f
o
r CJ-series Un
it an
d S
ystem-defi
n
ed
V
ariables (Mo
d
b
u
s-R
T
U Sla
ve Mo
de)
7
7-2
-1 De
vice V
ar
iab
le f
or CJ-ser
ies Unit f
or System
S
e
ttings
z
User-specified Setting Inclusion
The port settings determine if the default settings or user settings will be used for port 1 and port 2.
Be sure to use the same settings as the communications port on the host computer connected via
the Modbus-RTU slave network.
FALSE: Default TRUE: User setting
If the default port settings are specified, then the setting of bits 00 and 01 and the baud rate (next
word) will be ignored.
The default settings used are as follows: Baud Rate: 19,200 bps, Start Bits: 1 bit, Data Length: 8
bits, Parity: Even, and Stop Bits: 1 bit.
If user port settings are specified, set bits 00 and 01 and set the baud rate (next word).
z
Serial Communications Mode
Set the Serial Communications Mode to A hex to use Modbus-RTU slave Slave Mode.
z
Parity and Baud Rate
If user settings are specified for the port settings, the parity and baud rate must be set.
z
Modbus-RTU Slave Address
Set the Modbus-RTU slave address between 1 and 247 in Hex (between 1 and F7 hex).
z
Allocation Areas for Coils, Input Registers, and Holding Registers
You can set the memory used for CJ-series Unit of the CPU Unit of the NJ-series Controller that cor-
responds to the Modbus data models (Coils, Input Registers, and Holding Registers). The Discrete
Inputs data model is always allocated to the CIO Area.
It is also necessary to allocate user-defined variables to access the memory used for CJ-series Unit
from the user program. For details on creating user-defined variables, refer to 2-2-2 How to Specify
and Create Variables.
Modbus data model
Modbus address
Address specified in
Modbus-RTU com-
mands
Corresponding NJ-
series CPU Unit
address
Allocation area setting
(in DM System Set-
tings)
Discrete Inputs
1 to 5120
0 to 5119
CIO 0 to CIO 319
(bits 0 to 5119)
CIO Area (fixed: there
is no system setting)
Coils
1 to 65536
0 to 65535
CIO 0 to CIO 4095
(*1)
(bits 0 to 65535)
CIO Area (default)
1 to 8192
0 to 8191
W0 to W511
(bits 0 to 8191)
Work Area
1 to 8192
0 to 8191
H0 to H511
(bits 0 to 8191)
Holding Area
1 to 15360
0 to 15359
A0 to A959
(bits 0 to 15359)
Auxiliary Area
Input Registers
1 to 6144
0 to 6143
CIO 0 to CIO 6143
CIO Area (default)
1 to 512
0 to 511
W0 to W511
Work Area
1 to 512
0 to 511
H0 to H511
Holding Area
1 to 960
0 to 959
A0 to A959
Auxiliary Area
Holding Registers (*2)
1 to 32768
0 to 32767
D0 to D32767
DM Area (default)
1 to 32768
0 to 32767
E
@
_0 to E
@
_32767
EM Area bank
@
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...