Program Debugging
(Original Document)
At a Glance
After transferring the program and running the axis using Powersuite for Lexium 05, the process is commissioned.
An animation table is a commissioning solution used to monitor, modify and/or force the values of variables.
The sets of parameters of the axis may be accessed and modified in Control Expert using the MFB messaging blocks MC_READPARAMETER and MC_WRITEPARAMETER.
Modification Mode
The following screen shows the animation table in modification mode:
This table is used to determine the status of the MC_POWER block’s input and output parameters.
To access this mode, click on the Modify button in the mode selection zone.
NOTE: this operation may be assigned to other function blocks.
NOTE: the animation table is dynamic only in online mode (display of variable values).
Modifying Values
The tutorial example uses Boolean variables. To modify a Boolean value, carry out the following actions:
Step
Action
1
Use the mouse to select the Boolean variable you wish to modify.
2
Click on the button corresponding to the desired value, or execute the Set to 0 or Set to 1 commands in the contextual menu.
Starting the System
The following table describes the procedure for starting the system used in the example:
Step
Action
1
Set the variable Cmd_Run_Z to 1.
Result: the variable Axis_OK_Z changes to 1.
2
Set the variable Cmd_Reset_Z to 1.
3
Set the variable Cmd_Home_Z to 1.
Result: the axis is referenced.
4
To rotate the axis, set the variable Cmd_Mvt_Z to 1.
Result: the axis starts to turn and the values of the variables Position_Z and Velocity_Z are no longer set to 0.
5
To stop the axis from rotating:
  • set the variable Cmd_Stop_Z to 1
  • set the variable Cmd_Mvt_Z to 0
Result : the axis stops rotating.
6
To start to rotate the axis again and complete the movement:
  • set the variable Cmd_Stop_Z to 0
  • set the variable Cmd_Mvt_Z to 1
Result: the axis starts to rotate again and completes its movement.