0% ont trouvé ce document utile (0 vote)
10 vues2 pages

Programmation des actions de déclenchement

Le document décrit un exemple de programmation de points de commutation lors de mouvements avec des spécifications de distance et de trajectoire. Il présente les points de commutation individuels et la trajectoire de mouvement illustrée.

Transféré par

David Torres
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd
0% ont trouvé ce document utile (0 vote)
10 vues2 pages

Programmation des actions de déclenchement

Le document décrit un exemple de programmation de points de commutation lors de mouvements avec des spécifications de distance et de trajectoire. Il présente les points de commutation individuels et la trajectoire de mouvement illustrée.

Transféré par

David Torres
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd

Expert Programming

In the next example, switching actions with DISTANCE specifications and also with PATH
specifications are programmed. The individual switching points and the motion path are
illustrated in Fig. 50.

DEF TRIG ( )
;--------- Declaration section -------
EXT BAS (BAS_COMMAND :IN,REAL :IN)
DECL AXIS HOME
INT I
SIGNAL GLUE $OUT[3]
;---------- Initialization ---------
INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
INTERRUPT ON 3
BAS (#INITMOV,0 ) ;Initialization of velocities,
;accelerations, $BASE, $TOOL, etc.
$[Link]=35 ;Define approximation distance
HOME={AXIS: A1 0,A2 -90,A3 90,A4 0,A5 30,A6 0}
POS0={POS: X 1564,Y -114,Z 713,A 128,B 85,C 22,S 6,T 50}
POS1={X 1383,Y -14,Z 713,A 128,B 85,C 22}
POS2={X 1383,Y 200,Z 713,A 128,B 85,C 22}
POS3={X 1527,Y 200,Z 713,A 128,B 85,C 22}
POS4={X 1527,Y 352,Z 713,A 128,B 85,C 22}
FOR I=1 TO 16
$OUT[I]=FALSE
ENDFOR
;------------- Main section ----------
PTP HOME ;BCO run
PTP POS0
TRIGGER WHEN DISTANCE=0 DELAY=40 DO $OUT[1]=TRUE
TRIGGER WHEN PATH=-30 DELAY=0 DO UP1(2) PRIO=-1
LIN POS1
TRIGGER WHEN DISTANCE=1 DELAY=-50 DO GLUE=TRUE
TRIGGER WHEN PATH=180 DELAY=55 DO PULSE($OUT[4],TRUE,0.9)
TRIGGER WHEN PATH=0 DELAY=40 DO $OUT[6]=TRUE
LIN POS2 C_DIS
TRIGGER WHEN DISTANCE=0 DELAY=40 DO PULSE ($OUT[5],TRUE,1.4 )
TRIGGER WHEN PATH=-20 DELAY=-15 DO $OUT[8]
LIN POS3 C_DIS
TRIGGER WHEN DISTANCE=1 DELAY=-15 DO UP1 (7 ) PRIO= -1
LIN POS4
PTP HOME
END
DEF UP1 (NR :IN )

INT NR
IF $IN[1]==TRUE THEN
$OUT[NR]=TRUE
ENDIF
END

ProgHBExperte R5.1 [Link] en

174 of 218
8 Trigger -- Path--related switching actions (continued)

POS 1 2’B POS 2


$OUT[3]

30
$OUT[6]

$OUT[2] 2’E
$OUT[5]

3’B

180
8
$OUT[1] $OUT[8]

20
POS 0 $OUT[4] $OUT[7]

3’E
POS 3
POS 4

Fig. 50 Switching points and motion path for the above example

ProgHBExperte R5.1 [Link] en

175 of 218

Vous aimerez peut-être aussi