Go to step – Comtrol Modbus TCP Quick Start User Manual

Page 43

Advertising
background image

DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G

Configuring Read/Write Raw/ASCII Devices - 43

Configuring Read/Write Raw/ASCII Devices

12. Dual Master – Write Mode Only:

Use the following procedure to configure Dual Master – Write mode.

Under the Serial Modbus Master and Modbus/TCP Settings (Raw-Data Only) section:

a.

Set the Rx (To PLC) Transfer Mode to Master (Write to PLC).

b.

Set the Tx (From PLC) Transfer Mode to Slave (PLC Writes).

c.

Set the Maximum Rx Data Packet Size to that of the largest expected receive data packet. This can be a
maximum of 1518 bytes in Master Rx Mode.

d.

Set the Oversized Rx Packet Handling to either Truncate or Drop, depending how you want to handle
oversized received packets.

e.

Set Rx MS Byte First if you want to receive data most significant byte first.

f.

Set Tx MS Byte First if you want to transmit data most significant byte first.

g.

Set the Disable Non-Filtered To PLC Rx Queue option if you only want to receive the last received data
packet. (If two or more packets are received during the Maximum PLC Update Rate time period, only
the last received data packet will be returned.)

h. Set the Disable Tx Sequence Number Check option if you want to disable the transmit sequence number

checking.

If selected, the transmit sequence number checking is disabled. All transmit messages will be
transmitted if the sequence number has been incremented or not.

If not selected, the sequence number is checked and the message will only be transmitted if the
sequence number has been updated.

Under the Modbus/TCP Master Rx/TX Settings (Raw-Data Only) section:

i.

Set the PLC IP Address to that of your PLC in xxx.xxx.xxx.xxx format.

j.

Set the PLC Device ID to that of your PLC. This is typically 1.

k. Set the PLC Rx Data Address to the PLC memory address where you want to place the received data

message. This address is Base 1, which means the address starts at 1 (or 400001 for some PLCs). If
your address range is Base 0, or starts at zero, you will need to add one to your address.

l.

Set the Maximum PLC Update Rate to the fastest rate your PLC can reliably receive and process data.
This is typically longer than the scan rate. The default of 40 milliseconds is usually sufficient, but
your system may require a longer time period.

Advertising