4 - 8 4 - 8
4 ST PROGRAM EXPRESSIONS
2) When label w_Str is specified as character string type
IF w_Str = "ABC" THEN
(* If w_Str is "ABC"
*)
D0 : = 0;
(* 0 is assigned to D0.
*)
END_IF;
3) When label w_Str is specified as character string type
IF w_Str = 'ABC' THEN
(* If w_Str is 'ABC'
*)
D0 : = 0;
(* 0 is assigned to D0.
*)
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
(* If w_Out is 100
*)
D0 : = 0;
(* 0 is assigned to D0.
*)
END_IF;
(e) When function is used in Boolean expression
IF INT_TO_BOOL (D0) = FALSE THEN
D0 : = 0;
(* If INT_T0_BOOL (D0) is FALSE
*)
(* 0 is assigned to D0.
*)
END_IF;
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......