A
Appendix
A-4 CP1L Programming Examples
SYSMAC CP1L/CP1E Introduction Manual 151
In the DM fixed allocation words for Modbus-RTU easy master, allocate the slave
address, function, and data to the Modbus slave device. After the allocations have
been made, Modbus-RTU commands can be sent by turning the software switch ON.
Received responses are automatically stored in the DM fixed allocation words.
Note Modbus-RTU easy master execution bits and DM Fixed Allocation words depend
on unit type, CP1L10/14/20-point I/O units or 30/40/60-point I/O units, built-in
RS-232C port of CP1E N-type 20/30/40-point I/O unit or serial option port of CP1E
N-type 30/40-point I/O unit. For details, refer to CP Series CP1L CPU Unit User's
Manual (W462) or CP Series CP1E CPU Unit Software User's Manual (W480).
Modbus-RTU easy master function
execution switch A640 CH bit 00
(for port 1)
Describe Modbus-RTU commands in the
DM fixed allocation words.
Communication can then be enabled by
simply turning ON the software switch
A640 CH bit 00.
Slave address
FUNCTION code
Communication data
Communication data bytes
D32300
(CP1E: D1200)
D32301
(CP1E: D1201)
D32302
(CP1E: D1202)
D32303
(CP1E: D1203)
15 08 07 00
Modbus-RTU
OMRON inverter
J1000, V1000, A1000
CP1L
Slave address
FUNCTION code
Communication data
Slave address
FUNCTION code
Communication data