Devices - Mitsubishi Electric MELSEC Q Series Programming Manual

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

Advertisement

3 HANDLING OF CHARACTERS AND NUMERIC VALUES IN ST PROGRAMS

3.3.3 Devices

3 - 14
(1) How to use devices
In an ST program, devices of QCPU (Q mode)/LCPU can be used by directly
describing them without labels being used. Devices can be used in the left and
right members of an expression and the argument, return value, etc. of a
function.
[Description example]
M0 := TRUE;
IF INT_TO_BOOL(D0) = FALSE THEN (* If INT_TO_BOOL(D0) is FALSE *)
W0 := 1000;
END_IF;
REMARK
When devices are to be specified ...
Devices can be specified in both upper case and lower case.
What devices are available?
For available devices, refer to "2.1.3(2) Applicable devices" in this manual.
(2) Other using methods
The following three methods can be used as the device modification and
specifying methods.
These can be used in the same usage as when devices are used in ladder
programs. The following gives the description examples and explanations for use
of devices in ST programs. (For details of each using method, refer to the
"MELSEC-Q/L Programming Manual (Common Instructions)".)
(a) Index modification
(b) Bit specification
(c) Digit specification
(* M0 is turned ON. *)
(* 1000 is assigned to W0. *)
3 - 14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents