Mitsubishi Electric MELSEC Q Series Programming Manual page 40

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 - 16
REMARK
Data type when digit specification is used ...
When digit specification is used, the data types are as follows.
Example: When X0 is used
Integer type (INT): K1X0, K2X0, K3X0, K4X0
Double precision integer type (DINT): K5X0, K6X0, K7X0, K8X0
Precaution 1 for use of digit specification
A conversion error will occur if the data type differs between the right member
and left member.
Example: D0 := K5X0;
Since K5X0 is a double word type and D0 is a word type, the above
program will result in an error.
Precaution 2 for use of digit specification
If the right member is greater than the left member, data will be transferred to
the left member within the range of the applicable number of points.
(For the applicable number of points for digit specification, refer to the MELSEC-
Q/L Programming Manual (Common Instructions).)
Example: K5X0 := 2#1011_1101_1111_0111_0011_0001;
K5X0 : Applicable number of points = 20 points
1101_1111_0111_0011_0001 (20 digits) is assigned to K5X0.
3 - 16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents