Please enable JavaScript to view this site.

Function that imposes the status of the controlword.

Syntax

i32 co_controlword_state (i32 nWs , i32 state)

nWs

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

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

state

Possible states in accordance with DSP 402 state machine:

Value

Description

-2

DISABLE ENABLE (modal)

-1

POWER ON DISABLED (modal)

1

POWER ON ENABLED (modal)

2

ENABLE (modal but reset if you give quick stop)

3

DISABLE POWER (self-resetting)

4

QUICK STOP (self-resetting)

5

RESET FAULT (self-resetting)

Result

Returns:

Value

Description

<> 0

Successful operation

0

Illegal parameters encountered

Validity

Rule, Task

Note

The mask of imposable bits with this instruction is 0x00008F, which corresponds to:

Bit

Hex value

Meaning

0

0x00000001

Switch on

1

0x00000002

Enable voltage

2

0x00000004

Quick stop

3

0x00000008

Enable operation

7

0x00000080

Fault reset

If the axis is managed using a PowerSet, the management of the DS402 state machine is done by RTE.

The use of this function is therefore necessary when:

the management of a device is not done through a PowerSet

to command a quick stop independently of RTE management

to command a reset fault independently of RTE management

To know the current command present on the controlword use the co_statusword() function.

hmtoggle_plus0Controlword bits definition

 

  

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