EasyManua.ls Logo

LS Industrial Systems XG5000 - Page 121

LS Industrial Systems XG5000
736 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...
Chapter 4 Variable
4-7
[Description of Dialog Box]
a. Variable kind: VAR_GLOBAL and VAR_GLOBAL_CONSTANT are available.
b. Variable name: The declared variable can not be duplicated with the identical name.
- A figure is unavailable for the first character.
- A special character is unavailable. (However, ‘_’ is available.)
- Space is not available as a character.
- A same name with a direct variable is unavailable (i.e. MX0, WB0,…)
- If a line is empty, BOOL is displayed as the default type when entering a variable.
c. Type: 23 types are available; 20 basic types and 3 induced types.
- Basic type (20): (BOOL, BYTE, WORD, DWORD, LWORD, SINT, INT, DINT, LINT, USINT, UINT, UDINT,
ULINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME, STRING)
- Induced type (3): ARRAY(i.e. ARRAY[0..6,0..2,0..4] OF BOOL) => factor limit (up to 3rd), STRUCT(i.e.
STRUCT name display) => STRUCT type is not available in STRUCT, FB_INST (i.e. FB
name display)
d. Memory address: enters it by using direct variable (I, Q, M, R, W).
e. Initial value: default value can be set.
f. Retain: if memory address is set, retain column is inactive.
- R, W: always retain area.
- M: check it by obtaining basic parameter information.
- I, Q: always not retain area.
g. Used: display whether to use a declared variable.
h. Comment: every character is available.
- Multi line entry is available by using Ctrl + Enter key.
i. Line validity: To register on global variable window, it needs variable type, variable and type.
- If not registered on global variable, it is displayed in pink.
Notes
- If any error occurs when editing a cell, it is displayed in pink.
- Press ESC key to recover the previous value during the cell edit

Table of Contents

Related product manuals