Please enable JavaScript to view this site.

This function enables/disables a device on the EtherCAT line.

Note: In order to enable/disable the device, the line must be in the INIT state(ecat_set_state(nEth, 1)).

Syntax

i32 ecat_dev_on_off (i32 nEth, i32 cfgAddr , bool sts)

nEth

Ethernet channel number

cfgAddr

Device address

sts

Desired status:

Value

Description

TRUE

Device enabled

FALSE

Device not enabled

Result

Returns:

Value

Description

0

Operation completed

-1

Illegal Ethernet channel number

-2

Ethernet channel is not EtherCAT

-3

EtherCAT not in INIT state

-4

No device in the selected location

-5

EtherCAT line not properly configured

-6

Internal sw error. (contact Robox)

Validity

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