- 12 -
Chapter 2. MC Programming
2.2 MC Program command details
1)
LABL
Input type
LABL <label name>
Terminology
<Label name>: Set the name of a label. Possible up to 7 digits including English and
number.
Related
command
GOTO,IF,IN0,IN1
Explanation
Set a block to be branched by GOTO,IF,IN0,IN1.
(Note) The label name shall not be the same as a command or variable name.
Example
LABL LB0
…
GOTO LB0
Set a label with a name‘LB0’.
2)
GOTO
Input type
GOTO <label name>
Terminology
<Label name>: Designate the name of a label to branch.
Related
command
LABL
Explanation
Command a label to move to a ‘LABELED’ sentence to a set block with an absolute
branch command of program execution.
(Note) Designate the name of a label set by a LABL command, and if the name of the
designated label is not set, then an alarm takes place.
Example
VEL 0
MOV P0
LABL LB0
MOV P1
MOV P2
GOTO LB0
Move to a ‘LABELED’ sentence from a command “GOTO LB0”to“LABL LB0”.
Move to a ‘LABELED’ sentence, repeating commands “MOV P1”and “MOV
P2”.
3)
STOP
Input type
STOP
Explanation
Command pause of program execution.
The execution of a program stopped by a STOP command is restarted by a START signal.
The START signal is generated by an MSW-MCU2 program, a PLC contact ‘M80.2’, a PLC
command ‘START’, or an external input“X0.6” by parameter reservation.
Example
VEL 0
MOV P0
STOP
MOV P1
“MOV P0” is executed and then stopped, and the next command is
executed by a START signal.
4)
END
Input type
END
Explanation
Command the end of program execution.
Example
VEL 0
MOV P0
END
MOV P1
“MOV P0”is executed and then program execution is ended.
Содержание MCU 2 Axis
Страница 1: ...User s Manual 2 AXES...