Function to enable group energization (PowerSet).
Syntax |
i32 ps_power_enable (power_set psName, i32 flag) |
||||||
---|---|---|---|---|---|---|---|
psName |
PowerSet name (of type power_set) |
||||||
flag |
Flag to enable the set: •0, disable energization •1, enable energization |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
To give the axis enable command, use the ps_channel_enable() instruction. The ps_channel_enabled() 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 (project configurator) file. In the case of axes managed in CAN402, the transition to SWITCHED ON is commanded. |
Example of use:
|