3 - 14 3 - 14
3 HANDLING OF CHARACTERS AND NUMERIC VALUES IN ST PROGRAMS
3.3.3 Devices
(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;
(* M0 is turned ON. *)
IF INT_TO_BOOL(D0) = FALSE THEN (* If INT_TO_BOOL(D0) is FALSE *)
W0 := 1000;
(* 1000 is assigned to W0. *)
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
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......