Mitsubishi Electric MELSEC IQ-R series Reference Manual page 128

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Label name
Specify the character string of a label name.
■Data communication in ASCII code
Convert the numerical value of UTF-16, which indicates a global label name, to ASCII code (hexadecimal), and send it from
the upper digits.
■Data communication in binary code
Send the numerical value of UTF-16, which indicates a global label name from lower byte (L: bit 0 to 7).
Ex.
When 'A'
(UTF-16: 'A'= 0041)
ASCII code
0
0
4
1
30
30
34
41
H
H
H
H
Labels of the simple data type
Specify the label name as it is.
Bit specification (example: Lbl.3) and digit specification (example: K4Lbl) cannot be used.
Ex.
When the label name is 'Lbl'
Item
Value of code corresponds to
character
File name
L
UTF-16
004C
ASCII code
30303443
Binary code
4C00
Array type label
Specify the element number with square brackets '[ ]' after label name. (UTF-16F: '[' = 005B, ']' = 005D)
The element name of array cannot be specified in the square bracket. Specify a numerical value of the element number.
Ex.
When the element number of array name 'Lbl' is '20'
• Label name length: 7H
• Label name character string: Lbl[20]
Item
Value of code corresponds to character
File name
L
UTF-16
004C
ASCII code
30303443
Binary code
4C00
■Decimal/hexadecimal notation of element numbers
An element number can be specified in decimal or hexadecimal.
The element numbers can be distinguished by attaching 'k' or 'h' in front of the numerical value. (UTF-16: 'k'= 006B, 'h= 0068)
When only numerical value is specified, it will be handled as a decimal number.
• Decimal: Numerical value only, or attach 'k' in front of the numerical value. (Example: Lbl[10], Lbl[k10])
• Hexadecimal: Attach 'h' in front of the numerical value. (Example: Lbl[h10])
9 LABEL ACCESS
126
9.1 Data to be Specified in Commands
Binary code
41
00
H
H
b
l
0062
006C
30303632
30303643
6200
6C00
b
l
[
0062
006C
005B
30303632
30303643
30303542
6200
6C00
5B00
2
0
]
0032
0030
005D
30303332
30303330
30303544
3200
3000
5D00

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents