- 43 -
Chapter 2. MC Programming
35) IN0
Input type
IN0 <inspection contact> {label name}
Terminology
<Inspection contact>: Designate a contact to inspect.
Input contact: X0.0 ~ X5.F
Output contact: Y0.0 ~ Y4.F
Auxiliary contact: M00.0 ~ M199.F
{Label name}: Designate the name of a label to branch.
Related
command
LABL
Explanation
If the {label name} is not designated, then the program execution stops while waiting
until the designated <inspection contact> becomes ‘0’.
When the {label name} is designated, if the <inspection contact> is satisfied (‘0’),
branch it to the relevant label, and the <inspection contact> is not satisfied(‘1’),
proceed to the next block.
Example 1
This is an example of a function to stop execution until an input contact(X0.0)
becomes‘0’.
LABL LB1
VEL 0
MOV P0
IN0 X0.0
MOV P1
If the input port X0.0 is‘0’, then execute the next block, and if it
is‘1’, then wait
Example 2
If the auxiliary contact(M0.0) is‘0’, then branch to it, and if it is‘1’, then
execute the next block.
LABL LB1
VEL 0
MOV P0
IN0 M0.0 LB1
MOV P1
36) IN1
Input type
IN1 <inspection contact> {label name}
Terminology
<Inspection contact>: Designate a contact to inspect.
Input contact: X0.0 ~ X5.F
Output contact: Y0.0 ~ Y4.F
Auxiliary contact: M00.0 ~ M199.F
{Label name}: Designate the name of a label to branch.
Related
command
LABL
Explanation
If the {label name} is not designated, then the program execution stops while waiting
until the designated <inspection contact> becomes ‘1’.
When the {label name} is designated, if the <inspection contact> is satisfied (‘1’),
branch it to the relevant label, and the <inspection contact> is not satisfied(‘0’),
proceed to the next block.
Example 1
This is an example of a function to stop execution until an input contact(X0.0)
becomes‘1’.
LABL LB1
VEL 0
MOV P0
IN1 X0.0
MOV P1
If the input port X0.0 is‘1’, then execute the next block, and if it
is‘0’, then wait.
Example 2
If the auxiliary contact(M0.0) is‘1’, then branch to it, and if it is‘0’, then
execute the next block.
LABL LB1
VEL 0
MOV P0
IN1 M0.0 LB1
MOV P1
If the auxiliary contact(M0.0) is‘0’, branch to
If the auxiliary contact(M0.0) is‘1’, branch to
Summary of Contents for MCU 2 Axis
Page 1: ...User s Manual 2 AXES...