This keyword allows a variable of type STRU_AXIO_PDI to be defined.
This variable is used by the axio_robj() and axio_wobj() functions to read/write fieldbus objects.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
rid |
I32 |
Robox ID associated with the device: •0, for AXIOLINE on RPx •>0, for remote AXIOLINE |
slot |
I32 |
Slot number of the module. 1 is the first module after RPx or BK EC |
index |
I32 |
Object index to read or write |
subIndex |
I32 |
Subindex of the object to read or write |
datatype |
I32 |
Type of data to be read or written (see codes table below). If 0, the data type is detected directly by the involved device. This variable is written by instruction with the data type used |
datalen |
I32 |
If used for AXIO_ROBJ: maximum size in bytes of the area used to store the response. If used for AXIO_WOBJ: size in bytes of the data to be written when writing OCTECT_STRING or VISIBLE_STRING |
phase |
I32 |
Working phase/execution mode: •1, passing execution initialization (**) •-1, blocking execution initialization (**) If used for AXIO_ROBJ: •2-:-10, reserved RTE •11, operation successfully executed If used for AXIO_WOBJ: •2-:-6, reserved RTE •7, 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. |
nric |
I32 |
Number of characters received |
res_1 |
I32 |
Reserved |
res_2 |
I32 |
Reserved |
res_3 |
I32 |
Reserved |
res_4[256] |
U8 |
Reserved |
DataType codes table
Example declaration:
|