Mitsubishi Electric MELSEC Q Series Programming Manual page 48

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

4 ST PROGRAM EXPRESSIONS
4 - 8
2) When label w_Str is specified as character string type
IF w_Str = "ABC" THEN
D0 : = 0;
END_IF;
3) When label w_Str is specified as character string type
IF w_Str = 'ABC' THEN
D0 : = 0;
END_IF;
(d) When function block is used in Boolean expression
When function block name w_FB is set to the local variable setting and word
type label w_Out is set as the output variable of the function block
After the function block is executed
(For the method of using the function block, refer to the "GX Developer
Version 8 Operating Manual".)
IF w_FB. w_Out = 100 THEN
D0 : = 0;
END_IF;
(e) When function is used in Boolean expression
IF INT_TO_BOOL (D0) = FALSE THEN
D0 : = 0;
END_IF;
(* If w_Str is "ABC"
(* 0 is assigned to D0.
(* If w_Str is 'ABC'
(* 0 is assigned to D0.
(* If w_Out is 100
(* 0 is assigned to D0.
(* If INT_T0_BOOL (D0) is FALSE
(* 0 is assigned to D0.
*)
*)
*)
*)
*)
*)
*)
*)
4 - 8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents