EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 81

Mitsubishi Electric MELSEC iQ-R Series
498 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8 DEVICE ACCESS
8.1 Data to be Specified in Commands
79
8
Considerations for handling real number data and character string data
The word data and double word data are handled as integer value (16-bit data or 32-bit data).
When data other than integer (real number, character string) is stored in a device, the stored value is read as integer value.
When real number (0.75) is stored in D0 and D1: D0 = 0000H, D1 = 3F40H
When character string ('12AB') is stored in D2 and D3: D2 = 3231H, D3 = 4241H
For data to be used as real number or character string data in the instructions of the programmable controller, write it to the
device/label according to the defined data specification method. For more details on how to specify data used in instructions,
refer to the programming manual of the CPU module used.
For character string data
The following shows the images how character string data is stored.
Ex.
Write ASCII code character string data used in the instructions which handle character strings to word device
Store the character string ('ABCD') to D0 and D1: D0 = 4241H ('BA'), D1 = 4443H ('DC')
Specify the following data for write data.
When communicating ASCII code character string data in ASCII code, data is rearranged every two
characters and stored.
Item For ASCII code character string For Unicode character string
Character string to be stored 'ABC' 'ABCD' 'ABCD'
Character code '41H', '42H', '43H' '41H', '42H', '43H', '44H' '0041H', '0042H', '0043H', '0044H'
Image when character string data is stored from
D0
NULL indicates 00H. NULL indicates 00H. NULL indicates 0000H.
ASCII code Binary code
AB
CNULL
D0
D1
AB
CD
NULL NULL
D0
D1
D2
A
B
C
D
NULL
D0
D1
D2
D4
D3
424
34
H
32
H
34
H
1
32
H
34
H
34
H
434
34
H
33
H
30
H
4
30
H
30
H
30
H
0000
ABCD NULL NULL
D0
D1 D2
ABC
41H 42H 43H
D
44H
NULL
00H 00H
NULL
D0 D2D1

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals