Device-defined data types (Modbus Slave)
Device-defined data type names vary for each serial protocol depending on the
Channel
selection in Device definition
. These tables describe the device-defined data types created for the Master Slave protocol. The tables include information for input (as indicated by an "I") and information for output (as indicated by an "O"). Name | Type | Definition | Valid Values |
|---|---|---|---|
RunMode | BOOL | Channel operating state. | 0 = Idle 1 = Run Mode |
ConnectionFaulted | BOOL | Indicates if the connection is running. The device sets value to 0 when connected and then changes value to 1 when not connected. | 0 = Connection running 1 = Connection is not running |
DiagnosticActive | BOOL | Indicates if any diagnostics are active or if the prognostics threshold is reached. | 0 = No diagnostics active 1 = One or more diagnostics are active or the prognostics threshold is reached |
DiagnosticSequenceCount | SINT | Diagnostic counter. The value increments each time a distinct diagnostic condition is detected, and again when the condition transitions from detected to not detected. Set to zero by product reset or power cycle. Wraps from 255 (-1) to 1 skipping 0. | -128 to +127 The value of 0 is skipped except during device power-up. |
Slave | AB:5000_ModbusSlave_Channel:I:0 | Channel array configurations |
Name | Type | Definition | Valid Values |
|---|---|---|---|
RunMode | BOOL | Channel operating state. | 0 = Idle 1 = Run Mode |
ConnectionFaulted | BOOL | Indicates if the connection is running. The module sets this value to 0 when connected and then changes the value to 1 when not connected. | 0 = Connection running 1 = Connection is not running |
DiagnosticActive | BOOL | Indicates if any diagnostics are active or if the prognostics threshold is reached. | 0 = No diagnostics active 1 = One or more diagnostics are active or the prognostics threshold is reached. |
DiagnosticSequenceCount | SINT | Diagnostic counter. The value increments each time a distinct diagnostic condition is detected, and again when the condition transitions from detected to not detected. Set to zero by product reset or power cycle. Wraps from 255 (-1) to 1 skipping 0. | -128 to +127 The value of 0 is skipped except during device power-up. |
Slave | AB:5000_ModbusSlave_Channel:I:1 | Modbus Slave produce data. |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Fault | BOOL | Indicates that channel data is inaccurate and is not trusted for use in the application. | 0 = Good 1 = Bad, causing fault Tip: If set to 1, troubleshoot the device to correct the cause of the inaccuracy.Once the condition is removed, this is automatically reset to 0. |
Uncertain | BOOL | Indicates that the channel data may be inaccurate, but the degree of inaccuracy is unknown. | 0 = Good data 1 = Uncertain data Tip: If set to 1, troubleshoot the device to correct the cause of the inaccuracy.Once the condition is removed, this is automatically reset to 0. |
CRC_LRCError | BOOL | Indicates if a CRC (LRC) Error occurred. | 0 = Non-occurrence 1 = Occurrence |
ParityError | BOOL | Indicates if a parity error occurred. | 0 = Non-occurrence 1 = Occurrence |
IllegalDataAddress | BOOL | Indicates if the request is out of Modbus Register Address. | 0 = Non-occurrence 1 = Occurrence |
FramingError | BOOL | Indicates if a framing error occurred. | 0 = Non-occurrence 1 = Occurrence |
BufferOverRun | BOOL | Indicates if a buffer overrun occurred. | 0 = Non-occurrence 1 = Occurrence |
SequenceNumberAck | INT | Acknowledges the sequence number. | -32768 to +32767 |
MasterUpdateCount | INT | Any Modbus change updates the count. | -32768 to +32767 |
HoldingRegister | INT[100] | The Modbus Holding Register value. | -32768 to +32767 |
Coil | SINT[16] | The Modbus Coil value. | -128 to +127 |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Fault | BOOL | Indicates that channel data is inaccurate and is not trusted for use in the application. | 0 = Good 1 = Bad, causing fault Tip: If set to 1, troubleshoot the device to correct the cause of the inaccuracy.Once the condition is removed, this is automatically reset to 0. |
Uncertain | BOOL | Indicates that the channel data may be inaccurate, but the degree of inaccuracy is unknown. | 0 = Good data 1 = Uncertain data Tip: If set to 1, troubleshoot the device to correct the cause of the inaccuracy.Once the condition is removed, this is automatically reset to 0. |
CRC_LRCError | BOOL | Indicates if a CRC (LRC) Error occurred. | 0 = Non-occurrence 1 = Occurrence |
ParityError | BOOL | Indicates if a parity error occurred. | 0 = Non-occurrence 1 = Occurrence |
IllegalDataAddress | BOOL | Indicates if the request is out of Modbus Register Address. | 0 = Non-occurrence 1 = Occurrence |
FramingError | BOOL | Indicates if a framing error occurred. | 0 = Non-occurrence 1 = Occurrence |
BufferOverrun | BOOL | Indicates if a buffer overrun occurred. | 0 = Non-occurrence 1 = Occurrence |
SequenceNumberAck | INT | Acknowledges the sequence number. | -32768 to +32767 |
MasterUpdateCount | INT | Any Modbus change updates the count. | -32768 to +32767 |
HoldingRegister | INT[100] | The Modbus Holding Register value. | -32768 to +32767 |
Coil | SINT[16] | The Modbus Coil value. | -128 to +127 |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Slave | AB:5000_ModbusSlave_Channel:O:0 | Modbus Slave consume data. |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Slave | AB:5000_ModbusSlave_Channel:O:1 | Modbus Slave consume data. |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Run | BOOL | Channel operating state. | 0 = Idle 1 = Run Tip: The Run bit must be set to Run in order to start the update of the output tags. |
SequenceNumber | INT | Sequence number for updating slave data from controller. | -32768 to +32767 |
HoldingRegister | INT[100] | The Modbus Holding Register value. | -32768 to +32767 |
Coils | SINT[16] | The Modbus Coil value. | -128 to +127 |
InputRegister | INT[100] | The Modbus Input Register value. | -32768 to +32767 |
DiscreteInput | SINT[16] | The Modbus Discrete Input value. | -128 to +127 |
Name | Type | Definition | Valid Values |
|---|---|---|---|
Run | BOOL | Channel operating state. | 0 = Idle 1 = Run Tip: The Run bit must be set to Run in order to start the update of the output tags. |
SequenceNumber | INT | Sequence number for updating slave data from controller. | -32768 to +32767 |
HoldingRegister | INT[100] | The Modbus Holding Register value. | -32768 to +32767 |
Coil | SINT[16] | The Modbus Coil value. | -128 to +127 |
InputRegister | INT[100] | The Modbus Input Register value. | -32768 to +32767 |
DiscreteInput | SINT[16] | The Modbus Discrete Input value. | -128 to +127 |
Provide Feedback