6 state machine, State machine ( 166), Application example: flying saw – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual
Page 166
![background image](/manuals/566296/166/background.png)
Application example: Flying saw
State machine
166
Lenze · ApplicationTemplate · 1.3 EN - 04/2013
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5. Go to the Properties area and enter below the Color Variables of the button the following
value for toggle color:
MM_Vis.scVisuIntern.diFrame=Vis_eFrame.MVis_Infeed;
13.6
State machine
13.6.1
Controlling the state transition in the machine control module
Example: It should be possible to set all lower-level machine modules in the "Ready" or "Manual"
state via two buttons in the visualization of the Machine Control machine control module.
How to proceed:
1. Declare the elements for the buttons in the MVis_* structure.
Double-click and open:
•
A70_MachineModuleSources\ MM_A01_MachineControl\Structs
• Structure
MVis_scA01_MachineControl
In the program part, the variables of the BOOL data type for the state change must be
declared, example: xReady and xManual.
2. Insert the buttons into the visualization.
Double-click and open:
•
A70_MachineModuleSources\ MM_A01_MachineControl\Visu
• Visualization
MVis_A01_MachineControl