Mb_RTU_Server
| Function block | Mb_RTU_Server | ||
|---|---|---|---|
| Connects the Modbus server to a COM port for RTU clients to access. | |||
| VAR_INPUT | |||
| V | PortIn | RTX_Port | The port to be connected to the Modbus server. |
| V | Enable | BOOL | Connects the Modbus server. |
| V | DeviceId | UINT | The device ID of the Modbus server. |
| VAR_OUTPUT | |||
| V | Port | RTX_Port | The port to be connected to the Modbus server. |
| V | Enabled | BOOL | The Modbus server is connected. |
| V | Error | BOOL | Signals that an error has occurred within the function block. |
| V | ErrorID | DINT |
0: no error. 9: not a valid port. 12: failed to send a packet. 13: failed to receive a packet. |
| Usable EtherCAT states: all. Not tied to EtherCAT, only to the port. | |||
| Mb_RTU_Server | ||||||
|---|---|---|---|---|---|---|
| RTX_Port | PortIn | Port | RTX_Port | |||
| BOOL | Enable | Enabled | BOOL | |||
| UINT | DeviceId | Error | BOOL | |||
| ErrorID | DINT | |||||
|
|
|
|||||