
Getting started
Creating a PLC sample program
Starting and configuring the PLC sample program
2
2.12
2.12.2
l
64
EDSTCXN EN 2.0
In a PLC program, the two functions M14 and M15 are to be programmed as
follows:
M−function Target function Programming in the PLC program
M15 Lift tool Output "tool down" (O_ToolDown) = 0
Wait for "tool up" (I_ToolUp) = 1
M14 Lower tool Output "tool down" (O_ToolDown) = 1
Wait for "tool up" (I_ToolDown) = 1
M30 Program end −−
A program in the language "sequence control" consists of the basic elements
"step", "transition" and "branch". In the sequential function chart, elements
can be added via the right mouse button.
The program "Training1" consists of an initialisation block with two steps
and one transition.
Element Name Contents Comment
Step Init Initialisation of the system
variables
Initialisation program
Transition True Switchover tot he next step
"Main".
Step Main Block START_STOP Evaluation of the system
variables for Start and Stop.
Block M_FUNCTIONS Processing of the M−functions
Block
RELEASE_SIGNAL_HANDLER
Release of the system
variables, evaluation of the
input "emergency stop"
(I_NoEStop).
Block PLC_KEYS Execution of the PLC keys of
the ETC−MMI and the
M−functions M14 and M15.
Transition False No switchover to the next step
due to FALSE.
The program remains in step
"Main".
After you have double−clicked on a step, a window opens where the
corresponding action of the step is entered.
ETCN029
Task for M14 and M15
Sequence control
rasha