XG5000 Code to Write Index Values over Modbus RTU

Drive Index Registers can have values changed over Modbus RTU. This example shows how to setup the XEM CPU to change Index01’s distance and index type.

Step Action
1

In the XG5000 project, create the global variables shown below.

2

In the P2P 01 block under the Internal Cnet network create the Modbus RTU entries shown below.

3

The ladder code below shows an example for using these global variables in a scan program.

 

 

 

 

 

LP214-6