|
|
|
|
Modbus is the most common protocol used for communicating with industrial hardware. It works by one 'Master' station, often a PC, requesting data from one or more 'slave' stations. Originally invented as a 'Serial Port' protocol, Modbus over Ethernet is fast becoming the new 'standard'. Hexatec software fully supports the Modbus protocol, over Ethernet and Serial connections, including Remote modems. It can also support both Master and Slave modes. This flexibility ensures it may be used with a wide range of Modbus communication equipment. Master / Slave FunctionalityModbus is a Master / Slave protocol. A number of devices may be interconnected using the protocol, but only one device can be the master. Communication is always instigated and controlled by the master device. All other devices are connected as slaves and will only communicate in response to requests or commands from the single master. Slaves are each configured to have a unique address. Modbus TCP is a variant of the original standard and allows concurrent master / slave operation. Master FunctionalitySaturn (or SCAN1000) issues Modbus commands in sequence on a per network basis and waits a predetermined time for a reply from the addressed slave device. If, for any reason, an incorrect or no response is returned, the process is repeated a set number of times. This ensures communications can be maintained even if interruptions, such as electrical noise, occur. Connection dependent settings that need to be defined:
For device reads, Saturn supports:
For device writes, Saturn uses Single Coil Writes for boolean tags and Single Register Writes for analogue tags. Modbus does not support text or string operations. Some variation is possible in the way Register data is interpreted, so a number of options are included: Registers can be handles as:
and options allow for byte and word order. In this way, special forms of Modbus, such as: Daniels, Enron, etc., are supported. Slave FunctionalityA choice of Serial Port or Network connection is available. If remote access via a modem is required, this should be connected via a Serial Port and configured separately. Settings are a subset of the equivalent Master options described above. Multiple Network Support
Protocol Versions (RTU, ASCII)Modbus devices can communicate using either of the two versions of the Modbus protocol, RTU or ASCII. RTU is a binary format requiring the least number of characters for transmission, whereas ASCII uses only text readable characters requiring more per message and is thus slower. Some devices will only support one or the other. All connected devices should be configured to the same protocol version. Modbus TCP does not use the ASCII option. Connection MethodsBoth SCAN1000v5 and Saturn software support three different methods of connecting to Modbus communication devices:
|
Copyright © 2006 Hexatec |