Constants; Decimal Constants (K); Hexadecimal Constants (H); Character String ( " ) - Mitsubishi Electric MELSEC-Q Series User Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

10 DEVICES

10.12 Constants

10.12.1 Decimal constants (K)

10.12.2 Hexadecimal constants (H)

10.12.3 Character string ( " " )
10 - 50
(1) Definition
Decimal constants are devices which designate decimal data in sequence
program.
They are designated as "K "settings (e.g. K1234), and are stored in the Basic
model QCPU in binary (BIN) code.
See Section 4.8.1 for details regarding binary code.
(2) Designation range
The setting ranges for decimal constants are as follows:
• For word data (16 bits) ...........K-32768 to K32767
• For 2-word data (32 bits) ........K-2147483648 to K2147483647
(1) Definition
Hexadecimal constants are devices which designate hexadecimal or BCD data in
sequence program.
(For BCD data designations, 0 to 9 digit designations are used.)
Hexadecimal constants are designated as "H " settings (e.g. H1234).
See Section 4.8.3 for details regarding hexadecimal code.
(2) Designation range
The setting ranges for hexadecimal constants are as follows:
• For word data (16 bits) .......... H0 to HFFFF (H0 to H9999 for BCD)
• For 2-word data (32 bits) ....... H0 to HFFFFFFFF (H0 to H99999999 for BCD)
(1) Definition
Character string constants are devices used to designate character strings in
sequence program.
They are designated by quotation marks (e.g. "ABCD1234").
(2) Usable characters
All ASCII code characters can be used in character strings.
The Basic model QCPU is sensitive to uppercase and lowercase characters.
(3) Number of designated characters
Character strings extend from the designated character to the NUL code (00
You can use up to 32 characters for a character string in an instruction such as
$MOV.
POINT
Character strings may be used with only the $MOV instruction.
MELSEC-Q
).
H
10 - 50

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qcpuMelsec q00jcpuMelsec q00cpuMelsec q01cpu

Table of Contents