Please enable JavaScript to view this site.

WARNING: This function cannot be used in a task if the co_send_sdo()/co_asw_sdo() functions are also present in the task.

This function is used to perform writing of CoE fieldbus objects (information present in source is written).

It can write more data types than the analogous function co_wobj().

Writing can be done in pass-through mode or in blocking mode (usable only in tasks 1-:-8).

Pass-through mode means that the function must be continuously called and simultaneously tested the current state of the task.

Blocking mode means that the function is invoked and returns only when it has completed the write operation.

The function returns a result on the state of execution.

Syntax

i32 coe_wobj (stru_coe_obj stru, source)

stru

Structure name of type stru_coe_obj

source

Data contained in source will be taken according to the specified data type (if writing a VISIBLE STRING, source will be of type string, if writing an OCTET_STRING, source will be a byte array or structure)

Result

Variable of type i32 containing the result.

See pass-through mode and/or blocking mode

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