EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Bit Device Operation on Condition (IF, THEN, SET;RST;OUT)

Mitsubishi Electric Q172CPU
634 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 - 159
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.20 Bit device operation on condition (IF, THEN, SET/RST/OUT)
Code IF, THEN, SET/RST/OUT
Function
Bit device operation on
condition
When the condition consists, a specified device is turned on.
Format
Device turn ON and OFF on
condition.
(Y, M, B, F, special M)
ON device (Y, M, B, F, special M)
OFF device (Y, M, B, F, special M)
FI
[
HNTE
]
y
;
OUT
Y#
FI[
HNTE
]
y
;
SET
Y#
conditional expression
conditional expression
conditional expression
FI[
HNTE
]
y
;
RST
Y#
[Explanation]
(1) When the condition consists, "IF [conditional expression] THEN SET" turns ON a
specified device.
(2) When the condition consists, "IF [conditional expression] THEN RST" turns OFF a
specified device.
(3) When a specified device is turned ON when the condition consists, and the
condition does not consist, "IF [conditional expression] THEN OUT" turns OFF a
specified device.
[Program Example]
(Instruction method which can (Instruction method in past Motion
be used by Q Motion CPU.) CPU. (Q Motion CPU possible))
IF [#100 EQ0] THEN SET #Y0 ; IF [#100 EQ0] THEN 1 ;
SET #Y0 ;
END1 ;
IF [#100 EQ0] THEN RST #Y0 ; IF [#100 EQ0] THEN 1 ;
RST #Y0 ;
END1 ;
IF [#100 EQ0] THEN OUT #Y0 ; IF [#100 EQ0] THEN 1 ;
SET #Y0 ;
ELSE1
RST #Y0 ;
END1 ;

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals