Properties
The ModbusSlave module has the following properties:
Name | Description | ID | Flags |
---|---|---|---|
BaudRate | Baud rate for serial communication. Only valid when Comm. type is Serial | 1040 | Persisted, Enumerated |
Byteorder | Byte transfer order | 1038 | Persisted, Enumerated |
COM port | The COM port to use. Only valid when Comm. type is Serial | 1060 | Persisted, Enumerated |
Comm. type | Communication method, Serial or TCP/IP. | 1025 | Persisted, Enumerated |
DataBits | Number of bits in the bytes transmitted and received for serial communication. | 1072 | Persisted, Enumerated |
Default Slaveaddress | The Slaveaddress (Unit ID) on Modbus slave, this property can be set individually on item level. | 1035 | Persisted |
Endian | Modbus is a "big-endian" protocol: that is, the more significant byte of a 16-bit value is sent before the less significant byte. It seems obvious that 32-bit and 64-bit values should also be transferred using big-endian order. However, some manufacturers have chosen to treat 32-bit and 64-bit values as being composed of 16-bit words, and transfer the words in little-endian order. For example, the 32-bit value 0x12345678 would be transferred as 0x56 0x78 0x12 0x34. Select LittleEndian to use this mixed ordering. | 1037 | Persisted, Enumerated |
ExchangeRate | The exchange rate in milliseconds for the 'ExternalItems' timer event. By default, used for updating external items values. | 100 | Persisted |
Exception Code | Exception code to send for testing purpose, valid only when Send Exception property is greater that 0 | 16010 | |
Handshaking | Handshaking option for serial transmission | 1070 | Persisted, Enumerated |
IP address | Endpoint Ip address of Modbus server. Only valid when Comm. type is TCP/IP | 1301 | Persisted |
Master command timeout | Time to wait for master command in (seconds) before giving up and reset connection | 1302 | Persisted |
Message timeout | Time interval, the active message is reported (in seconds). | 1090 | Persisted |
Parity | Parity scheme for the serial communication. Only valid when Comm. type is Serial | 1050 | Persisted, Enumerated |
Port | The endpoint TCP/UDP port of Modbus server. Only valid when Comm. type is TCP/IP | 1300 | Persisted |
Send Exception | This is used to simulate exception to master for test purposes. Set value to greater that 0, to enable exception response. 1 - exception on every response 2 - exception on every second response and so on. | ||
StopBits | Number of stop bits to be used for serial communication. | 1074 | Persisted, Enumerated |
TimeReferenceItem | An item who's value will be used as the time reference for this module instead of the system time, when timestamping items. | 200 | Persisted, ApisItem, ExpertPage |
TracefileMaxSize | The max size of the trace file before the file is truncated in bytes. Default is 50 MB => 50 * 1024 * 1024 | 15000 | Persisted, ExpertPage |
TraceToFile | This is used to trace detail information about the incomming data over the link | 15010 | Persisted, File, ExpertPage |
Writetimeout | Time to wait (milliseconds) before giving up an attempt to write to master | 1080 | Persisted |
See also Module Properties