Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 32

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Constant description method
The table below the description method required to set a constant to a label.
Constant type
Bit
Binary number
Octal number
Decimal number
Hexadecimal number
Real number
Character string
Data type
The label data type is basic or universal.
• The table below shows a list of basic data types.
Data type
Bit
Word [signed]
Double Word [signed]
Word [unsigned]/Bit String
[16-bit]
Double Word [unsigned]/Bit
String [32-bit]
FLOAT (Single Precision)
String
Time
30
Description method
Input "TRUE" or "FALSE". Or input "0" or "1".
Add "2#" before a binary number.
Add "8#" before an octal number.
Input a decimal number directly. Or add "K" before a decimal
number.
Add "16#" or "H" before a hexadecimal number.
Input a real number directly. Or add "E" before a real number.
Surround a character string with single quotations (') or double
quotations (").
Description
Boolean data
Integer
Double precision integer
16-bit data
32-bit data
Real number
Character string
Time value
Value range
0(FALSE), 1(TRUE)
-32768 to 32767
-2147483648 to
2147483647
0 to 65535
0 to 4294967295
-38
E ±1.175495
to
+38
E ±3.402823
(Number of significant figures: 6)
(50 characters maximum)
T#-24d-0h31m23s648.00ms to
T#24d20h31m23s647.00ms
3 Function Construction
3.2 Labels
Example
TRUE, FALSE
2#0010, 2#01101010
8#0, 8#337
123, K123
16#FF, HFF
2.34, E2.34
'ABC', "ABC"
Bit length
1 bit
16 bits
32 bits
16 bits
32 bits
32 bits
Variable
32 bits

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents