Exemple De Programme (Stl) - Festo CPX−FEC Manuel Électronique

Table des Matières

Publicité

3. Mode général (Stand Alone)

3.4.5 Exemple de programme (STL)

STEP Aplus
IF
AND
AND
AND
THEN
RESET
SET
STEP Bplus
IF
tensioned
THEN
SET
STEP Bminus
IF
Drilled
THEN
SET
STEP Aminus
IF
Drill_abo
THEN
RESET
SET
STEP Cplus
IF
untension
THEN
SET
STEP Cminus
IF
Fig. 3/17 : Exemple de programmation : partie d'une commande pour une perceuse
3−50
L'exemple suivant montre une partie d'un programme pour la
commande d'une perceuse.
untension
'clamping cylinder is retracted
Drill_abo
'Drilling cylinder is above
Emergency
'Emergency stop switch (normal. closed)
Start
'Start button
Aminus
'Clamping cylinder retracts
Aplus
'Clamping cylinder extends
'clamping cylinder is extended
Bohrer
'Drilling cylinder
'Drilling cylinder is below
Bohrer
'Drilling cylinder
'Drilling cylinder is above
Aplus
'Clamping cylinder extends
Aminus
'Clamping cylinder retracts
'clamping cylinder is retracted
Ejector
'Ejector
Ejected
'Ejector is at front
Les opérandes symboliques (untension", Drill_abo", etc.)
sont liés par la liste d'affectation avec les opérandes absolus
(I0.0, O0.0, ...) :
Festo P.BE−CPX−FEC−FR fr 0404NH

Publicité

Table des Matières
loading

Table des Matières