Please enable JavaScript to view this site.

WARNING: This function cannot be used in a task if the co_robj()/co_wobj()/coe_robj()/coe_wobj() functions are also present in the task.

This function allows you to:

Test if the previous SDO command co_send_sdo(), used to write data, was executed -> co_asw_sdo(nWs, handle)

Test if the previous SDO command co_send_sdo(), used to read data, was executed -> co_asw_sdo(nWs, handle)

Test if the previous SDO command co_send_sdo(), used to read data, was executed and simultaneously to download data -> co_asw_sdo(nWs, handle, type, data)

Syntax

i32 co_asw_sdo (i32 nWs, i32 handle)

i32 co_asw_sdo (i32 nWs, i32 handle, i32 type, real data)

nWs

Robox station ID (logical workstation 1-:-64).

Note: If 0 is specified as ws then it is meant for all.

handle

Handle received from the previous execution of the co_send_sdo() function

type

Allows you to select how to interpret the data to be downloaded in date:

Value

Type

0

No object

1

Unsigned 8 bits

2

Unsigned 16 bits

3

Unsigned 24 bits

4

Unsigned 32 bits

5

Real 32 bits

-1

Signed 8 bits

-2

Signed 16 bits

-3

Signed 24 bits

-4

Signed 32 bits

data

Local variable where data is downloaded (from Fix format of specified size to real format) if type positive

Result

Returns:

Value

Description

-2

Message reference no longer valid

-1

Illegal data (alarm 9900 is generated)

0

Message waiting for response

1

Command executed and response obtained

> 1

Represents the SDO abort code according to the CANopen standard

Validity

Rule, Task

Note

From RTE 34.13.5, co_robj() and co_wobj() functions are available

 

  

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