This function is used to write data into the transmission buffer (PDO - Process Data Object) to the indicated workstation.
Syntax |
i32 co_wpdo (i32 nWs, i32 nPdo, i32 nEl, real value) |
||||||
---|---|---|---|---|---|---|---|
nWs |
Robox station ID (logical workstation 1-:-64). Note: If 0 is specified as ws then it is meant for all. |
||||||
nPdo |
Number of the PDO being transmitted to the drive (1-:-4) |
||||||
nEl |
Number of the element that you want to write: •0, transmit command (for asynchronous PDO) •1-:-8, number of the logical element within the PDO Note: If nEl is 0, the value does not count. |
||||||
value |
Value to be entered into the PDO. Conversion to the correct format (defined in the configuration file) is performed by the base sw |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |