Labels - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

3 HANDLING OF CHARACTERS AND NUMERIC VALUES IN ST PROGRAMS

3.3.2 Labels

3 - 11
In ST programs, labels can be used with data.
When labels are used in an ST program, label declaration must be made on the local
variable setting screen or global variable setting screen before use.
(For the label and structure label declaration methods, refer to the "GX Developer
Operating Manual".)
Label representation examples in ST programs are as follows.
Example: Switch _ A:= FALSE;
Example: IF INT_TO_BOOL(Unit _ No) = FALSE THEN
Line _ No := 2147483647;
END_IF;
Example: Limit _ A := E1.0;
Example: Conveyor[4] := Unit _ No;
Example: stPressure.Status := TRUE; (* TRUE is assigned to *)
Example: stPressure.eLimit := E1.0; (* 1.0 is assigned to *)
(* FALSE is assigned to Switch_A. *)
(* IF INT_TO_BOOL (Unit_No) is FALSE *)
(* 2147483647 is assigned to Unit_Number. *)
(* 1.0 is assigned to Limit_A *)
(* The value of Unit_No is assigned to *)
(* the fifth element of Conveyor. *)
(* element name Status of stPressure. *)
(* element name eLimit of stPressure. *)
3 - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents