Please enable JavaScript to view this site.

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:

Value

Description

<> 0

Successful write

0

Illegal parameters detected

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC