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 read CoE fieldbus objects (the object defined by 'stru.objCode + stru.subIndex' on the device identified by stru.rid is read).

It can read more data types than the analogous function co_robj().

Reading 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 read operation.

The function returns a result on the state of execution.

Syntax

i32 co_robj (stru_coe_obj stru, destination)

stru

Structure name of type stru_coe_obj

destination

Contains the information received. destination must be an object compatible with the data being read (if reading a VISIBLE STRING, destination will be of type string, if reading an OCTET_STRING it 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