
Chapter 7 PAC Language Configuration Elements
7-9
7.5.4 Program
A program can be designated using the program name and calling other
programs from the program.
Declare a program name at the head of the program using the PROGRAM
command.
For program names, refer to “8.2 Program Name and Declaration”.
Program example: program call using a program name
Program on the program calling side
PROGRAM PRO1
IF IO[138] = ON THEN
CALL MOTION
ELSE
DELAY 200
END IF
END
“MOTION” program on called side.
PROGRAM MOTION
TAKEARM
SPEED 100
MOVE P, P1
DELAY 200
MOVE P, P2
END
Komentáře k této Příručce