2.5 User example for a power unit
Activating the drive object
The
drive
object
to be activated has already been commissioned and deactivated again by the
machine manufacturer, to market the axis (axes) as an option.
To activate the axis carry out the following steps:
● Activate the drive object via p0105.
● 2. Enable the axis in the channel machine data.
● Back up the drive machine data via p0971.
● Wait until the data has been written.
● Restart the NCK and the drives.
Programming:
<DEVICE>
<list_id>1</list_id>
<name> "Activate the drive" </name>
<SET_ACTIVE>
<data name = "drive/dc/p105[DO5]">1</data>
<data name = "$MC_AXCONF_MACHAX_USED[4]">5</data>
<data name = "drive/dc/p971[DO5]">1</data>
<while>
<condition> "drive/dc/p971[DO5]" !=0 </condition>
</while>
<control_reset resetnc ="true" resetdrive = "true"/>
</SET_ACTIVE>
<SET_INACTIVE>
<data name = "drive/dc/p105[DO5]">0</data>
<data name = "$MC_AXCONF_MACHAX_USED[4]">0</data>
<data name = "drive/dc/p971[DO5]">1</data>
<while>
<condition> "drive/dc/p971[DO5]" !=0 </condition>
</while>
<control_reset resetnc ="true" resetdrive = "true"/>
</SET_INACTIVE>
</DEVICE>
Generating commissioning dialogs
2.5 User example for a power unit
Easy XML
128 Programming Manual, 10/2015, 6FC5397-3DP40-5BA3