Expressing Methods Of Constants - Mitsubishi Electric MELSEC Q Series Programming Manual

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

Advertisement

Expressing methods of constants

The following table shows the expressing method for setting a constant to a label.
Constant type
Expressing method
Bool
Input FALSE or TRUE, or input 0 or 1.
Binary
Append '2#' in front of a binary number.
Octal
Append '8#' in front of an octal number.
Decimal
Directly input a decimal number, or append 'K' in front of a decimal number.
Hexadecimal
Append '16#' or 'H' in front of a hexadecimal number.
When a lowercase letter 'h' is appended, it is converted to uppercase automatically.
Real number
Directly input a real number, or append 'E' in front of a real number.
Character string
Enclose a character string with single quotations (') or double quotations (").
Time
Append "T#" in front.
4 PROGRAM CONFIGURATION
34
4.3 Labels
Example
TRUE, FALSE
2#0010, 2#01101010
8#0, 8#337
123, K123
16#FF, HFF
2.34, E2.34
'ABC', "ABC"
T#1h,
T#1d2h3m4s5ms

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec f seriesMelsec l series

Table of Contents