The Modbus Slave driver implements communication with Master devices compatible with the Modbus Open Standard protocol. It operates as a Slave on TCP/IP or serial networks.
Communication Driver Name: Modbus Slave
Implementation DLL: T.ProtocolDriver.ModbusSlave.dll
Protocol: MODBUS RTU, ASCII, and TCP
Interface: TCP/IP and Serial
Devices supported: Any master Modbus device
Protocol Options: Message Format (ASCII, RTU, or RTU TCP), SlaveID
Multi-threading: One thread with a pooling cycle for each master connected
Max number of nodes: One node for each Channel
PC Hardware requirements: Standard PC Ethernet interface board, RS485, or RS232 port
Supported Operands:
Operand | Read | Write | Data Type | Address Size |
---|---|---|---|---|
0 – Coils | Yes | Yes | Bit | 1 bit |
1 – Input Status | Yes | Bit | 1 bit | |
3 – Input Registers | Yes | Word | 2 bytes | |
4 – Holding Registers | Yes | Yes | Word | 2 bytes |
SlaveID: Defines the driver's slave address in the Modbus Network
Encoding: Determines how information will be packed into the message fields and decoded. The options are:
Serial and MultiSerial channels:
TCP/IP channels:
You may need to configure your firewall to open the listening port |
There is no station configuration for the Modbus Slave driver
The syntax for the Modbus communication points is: <Operand><Address>
Where:
For more information about the valid operands, see Supported Operands.
Ex: 400001 (Operand = Holding Register, Address = 1)
The status of the driver's execution can be observed through the diagnostic tools, which are:
• Trace window
• Property Watch
• Module Information
The above tools indicate if the operations have succeeded or have failed. A status of 0 (zero) means communication is successful. Negative values indicate internal driver errors, and positive values indicate protocol error codes.
Term | Name | Description |
---|---|---|
1 | ILLEGAL FUNCTION | The function code received in the query is not allowable |
2 | ILLEGAL DATA ADDRESS | The data address received in the query is not allowable |
3 | ILLEGAL DATA VALUE | A value contained in the query data field is not allowable |
4 | SLAVE DEVICE FAILURE | Error while attempting to perform the requested action |
5 | ACKNOWLEDGE | Request accepted, but a long duration of time will be required |
6 | SLAVE DEVICE BUSY | The slave is engaged in a long–duration program command |
7 | NEGATIVE ACKNOWLEDGE | Cannot perform the program function received in the query |
8 | MEMORY PARITY ERROR | Parity error in the extended memory |