Please enable JavaScript to view this site.

Function to command the enabling of group channels (PowerSet). The command can be valid for all axes or only for a subset.

NOTE: The reference to logical or physical axes depends on the one defined in configurator RTE.cfg.

Syntax

i32 ps_channel_enable (power_set psName, i32 enaMsk [, i32 axMsk=0xFFFFFFFF])

psName

PowerSet name (of type power_set)

enaMsk

Axis enable mask:

Bit

Hex value

Bit value

Description

0

0x00000001

0

Disable first axis of the group

1

Enable first axis of the group

1

0x00000002

0

Disable second axis of the group

1

Enable second axis of the group

2 -:- 30

0x000004 -:- 0x40000000

0

Disable n-th axis of the group

1

Enable n-th axis of the group

31

0x80000000

0

Disable thirty-second axis of the group

1

Enable thirty-second axis of the group.

NOTE: In case of physical axes, use the pam property of the PowerSet.

axMsk

Involved axis mask: (optional, default 0xFFFFFF)

Bit

Hexadecimal value

Bit value

Description

0

0x00000001

0

Does not consider first axis of the group

1

Manage first axis of the group

1

0x00000002

0

Does not consider second axis of the group

1

Manage second axis of group

2 -:- 30

0x000004 -:- 0x40000000

0

Does not consider n-th axis of the group

1

Manage n-th axis of the group

31

0x80000000

0

Does not consider thirty-second axis of the group

1

Manage thirty-second axis of the group

Result

Returns:

Value

Meaning

1

Successful operation

0

Otherwise

Validity

Rule, Task

Note

The function has no effect if the PowerSet of the axis in question has not been previously enabled with the ps_power_enable() instruction.

The command variable used by RTE to perform the reset is specified by the user in the RTE.cfg file (project configurator)

In the case of axis managed in CAN402, the transition to operation enable (enabled) or switched on (disabled) is commanded via the control word.

With reference to the following image, if the axis is enabled, the requested transition will be number 4; if the axis is disabled, the requested transition will be number 5.

ps_channel_enable_transizione_zoom25

The behavior of a CAN402 drive, in case transition 5 is requested, is determined by the CANopen dictionary object 0x605C "disable operation option code."

 

  

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