144
Rockwell Automation Publication 5069-UM003B-EN-P - January 2020
Appendix C
Programming Example
Modbus Sample Code
Configuration
The following images show sample code configuration for Modbus Master and
Modbus Slave communication.
Modbus Master Command List
Modbus Slave Address Mapping Table
Modbus Sample Code Configuration Example
To test the Modbus capabilities by configuring Channel 0 for Master and
Channel 1 for Slave, connect the two serial ports together with a 1761-CBL-
AC00 cable. On the Module Properties Channel screens, verify that both
channels are configured identically for RS-232C.