Client I/O
The OPC UA Client modules that belong to a virtual OPC UA device offer different status variables as well as control variables. These variables are explained below.
![]() | Reading the status codes Please note that the status code of the state machine is listed here in hexadecimal notation. If the code is displayed as a decimal number in TwinCAT, it must be converted for interpretation. |

Variable | Schema | 0 | 1- State machine state | 2- Keep alive count if using subscriptions | 3- Connection state (&read busy) | |
---|---|---|---|---|---|---|
| 0x0123 | - | 0 = Initialize (init) |
| 0 = false(&off) | |
|
|
| 1 = Connect |
| 1 = true(&off) | |
|
|
| 2 = Resolve namespace |
| 2 = false(&on) | |
|
|
| 3 = Get node handles |
| 3 = true(&on) | |
|
|
| 4 = Continuous read/write |
|
| |
|
|
| 5 = Triggered read/write |
|
| |
|
|
| 6 = Awaiting data change notifications (subscriptions)) |
|
| |
|
|
| 7 = Disconnect |
|
| |
|
|
| 8 = Reset |
|
| |
| 0x0123 | - | - | - | 0 = Standard (default) | |
Variable | Data type | Description | ||||
| BIT | 1 TRUE | 0= FALSE. | ||||
| BIT | 1 TRUE | 0= FALSE. This function is only active when reading and writing via trigger variables. | ||||
| BIT4 | Shows the number of KeepAlive messages counted. Only active when reading and writing using subscriptions. | ||||
| BYTE | Can be read in the table above. | ||||
| BIT | The client is reset when this bit is set to 1. | ||||
| BIT | 1 TRUE | 0= FALSE. Reading/writing takes place if this bit is set to 1 during reading and writing via trigger variables. If this bit remains set, there is no difference to cyclic reading/writing. |