- 44 -
Chapter 2. MC Programming
37) IIN0
Input type
IIN0 <inspection contact>
Terminology
<Inspection contact>: Designate a contact to inspect.
Input contact: X0.0 ~ X0.F
Explanation
Program execution stops while waiting until the designated <inspection contact>
becomes‘0’.
This command applies to equipment requiring a high speed input function as a function
to inspect the <inspection contact> in a 1ms period.
Example
This is an example of stopping execution until the input contact(X0.0) becomes‘0’.
LABL LB1
VEL 0
MOV P0
IIN0 X0.0
MOV P1
If the input port X0.0 is‘0’, then execute the next block, and if it
is‘1’, then wait.
38) IIN1
Input type
IIN1 <Inspection contact>
Terminology
<Inspection contact>: Designate a contact to inspect.
Input contact: X0.0 ~ X0.F
Explanation
Program execution stops while waiting until the designated <inspection contact>
becomes‘1’.
This command applies to equipment requiring a high speed input function as a function
to inspect the <inspection contact> in a 1ms period.
Example
This is an example of stopping execution until the input contact(X0.0) becomes‘1’.
LABL LB1
VEL 0
MOV P0
IIN1 X0.0
MOV P1
If the input port X0.0 is‘1’, then execute the next block, and if it
is‘0’, then wait.
39) OUT0
Input type
OUT0 <output contact>
Terminology
<Output contact>: Designate a contact to output signals.
Output contact: Y0.0 ~ Y4.F
Auxiliary contact: M00.0 ~ M199.F
Explanation
Output‘0’to the designated output contact.
Example
This is an example of outputting ‘0’ to the output contact Y0.0.
VEL 0
MOV P0
OUT0 Y0.0
IMOV P1
Output ‘0’ to the output contact Y0.0.
40) OUT1
Input type
OUT1 <output contact>
Terminology
<Output contact>: Designate a contact to output signals.
Output contact: Y0.0 ~ Y4.F
Auxiliary contact: M00.0 ~ M199.F
Explanation
Output‘1’to the designated output contact.
Example
This is an example of outputting ‘1’ to the output contact Y0.0.
VEL 0
MOV P0
OUT1 Y0.0
IMOV P1
Output ‘1’ to the output contact Y0.0.
Summary of Contents for MCU 2 Axis
Page 1: ...User s Manual 2 AXES...