Validity: RC3E v33.5.18-2 (or later)
This keyword allows you to define a variable of type STRU_COE_OBJ.
This variable is used by the coe_robj() and coe_wobj() functions to read/write fieldbus objects.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
rid |
I32 |
Robox ID associated with the device |
objCode |
I32 |
Object number |
subIndex |
I32 |
Subindex number |
datatype |
I32 |
DataType (see codetable below) |
datalen |
I32 |
If used for COE_ROBJ: maximum size in bytes of the area to store the response. If used for COE_WOBJ: size in bytes of the data to be written |
phase |
I32 |
Working phase/execution mode: •1, passing execution initialization (**) •-1, blocking execution initialization (**) •2, reserved RTE •3, reserved RTE •4, operation executed successfully •0, not initialized or error •other, illegal value NOTE: Values marked with (**) are the only ones that can be written to this variable by the user. |
res_1 |
I32 |
Reserved (number of characters received) |
res_2 |
I32 |
Reserved |
res_3 |
I32 |
Reserved |
DataType codes table
Example declaration:
|