Data Handling; Data Types - 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.2 Data Handling

3.2.1 Data types

3 - 3
In ST programs, the types of used data have been defined.
Sections 3.2 and 3.3 indicate the data types and their representation methods in ST
programs.
The following data types can be used in ST programs.
Data Type
Definition
BOOL
Boolean type
INT
Integer type
DINT
Double precision
integer type
REAL
Real number type
STRING
Character string
type
ARRAY
Array data type
STRUCT
Structured data type
*1: K0, K1, H0 and H1 for specification of K and H cannot be used as the BOOL type.
Precautions when an operation result exceeds the data type range
When an operation result exceeds the data type range, correct result cannot
be obtained.
Range
* 1
TRUE•FALSE,1•0
-32768 to 32767
-2147483648 to
2147483647
+38
-3.402823
to
-38
-1.175495
, 0.0,
-38
+1.175495
to
+38
+3.402823
Up to 50 characters
can be defined.
Depends on the data
type of the specified
element.
Depends on the data
type of the specified
element.
Type in C
Type in Ladder
Language
Bit
bool
Word
signed short
Double word
signed long
Real number
float
Character string
char
Array
char[ ], etc.
Structure
struct
3 - 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents