Mitsubishi Electric MELSEC Q Series Structured Programming Manual page 108

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

Advertisement

Appendix 2
Character strings used for application function names, common instruction names, special
instruction names, and instruction words are called reserved words.
These reserved words cannot be used for label names or data names. If the character string
defined as a reserved word is used for a label name or data name, an error occurs during
registration or compilation.
The following tables shows character strings that cannot be used for label names or data names.
The numbers from
Category
VAR, VAR_RETAIN, VAR_ACCESS, VAR_CONSTANT,
VAR_CONSTANT_RETAIN, VAR_INPUT, VAR_INPUT_RETAIN,
VAR_OUTPUT, VAR_OUTPUT_RETAIN, VAR_IN_OUT,
VAR_IN_EXT, VAR_EXTERNAL, VAR_EXTERNAL_CONSTANT,
Class identifier
VAR_EXTERNAL_CONSTANT_RETAIN,
VAR_EXTERNAL_RETAIN, VAR_GLOBAL,
VAR_GLOBAL_CONSTANT,
VAR_GLOBAL_CONSTANT_RETAIN, VAR_GLOBAL_RETAIN
BOOL, BYTE, INT, SINT, DINT, LINT, UINT, USINT, UDINT, ULINT,
WORD, DWORD, LWORD, ARRAY, REAL,
LREAL, TIME, STRING, TIMER, COUNTER, RETENTIVETIMER,
Data type
POINTER, Bit, Word [Unsigned]/Bit String [16-bit], Double Word
[Unsigned]/Bit String [32-bit], Word [Signed], Double Word
[Signed], FLOAT (Single Precision), FLOAT (Double Precision),
String, Time, Timer, Counter, Retentive Timer, Pointer
ANY, ANY_NUM, ANY_BIT, ANY_REAL, ANY_INT, ANY_DATE
Data type hierarchy
ANY_SIMPLE, ANY16, ANY32
X, Y, D, M, T, B, C, F, L, P, V, Z, W, I, N, U, J, K, H, E, A, SD, SM,
Device name
SW, SB, FX, FY, DX, DY, FD, TR, BL, SG, VD, ZR, ZZ
Character string
recognized as device
Such as X0
(Device name +
Numeral)
NOT, MOD
ST operator
(, ), -
*1: Functions cannot be used.
*2: Whether to handle a device name indexed with ZZ device as a reserved word depends on the parameter
*3: Applicable for Simple projects without labels only.
Appendix 2 Character Strings that cannot be Used in Label Names and Data Names
App-6
Character Strings that cannot be Used in
Label Names and Data Names
to
in the tables indicate the following label names and data names.
1
9
Table App. 2-1 Character strings that cannot be used for label names and data names (1/3)
Character string
setting.
When Z device is specified for 32-bit index setting: Not handled as a reserved word
When ZZ device is specified for 32-bit index setting: Handled as a reserved word
<Label name and data name>
Project file name
1
Program file name (Simple (without labels))
2
Program file name (Simple (with labels))
3
Program file name (structure)
4
Task name
5
Global label data name
6
Structure name
7
POU name
8
Label name
9
1
2
3
*2
: Applicable,
4
5
6
7
8
*1
*1
*3
*1
: With restrictions,
: Not applicable
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l seriesMelsec-f

Table of Contents