
113
Part 3 Controller Data Structure
Chapter 2 X-SEL Language Data
1. Values and Symbols Used in SEL Language
1.1 List of Values and Symbols Used
The functions required in a program are represented by values and symbols.
Function
Global range
Local range
Remarks
Input port
000 ~ 299 (300)
Varies depending on
the function.
Output port
300 ~ 599 (300)
Varies depending on
the function.
Flag
600 ~ 899 (300)
900 ~ 999 (100)
Variable (integer)
200 ~ 299 (100)
1200 ~ 1299 (100)
1 ~ 99 (99)
1001 ~ 1099 (99)
99 is used for IN, INB,
OUT, OUTB, etc.
Variable (real)
300 ~ 399 (100)
1300 ~ 1399 (100)
100 ~ 199 (100)
1100 ~ 1199 (100)
199 is used for PPUT,
PGET, PARG, etc.
String
300 ~ 999 (700)
1 ~ 299 (299)
Tag number
1 ~ 256 (256)
Subroutine number
1 ~ 99 (99)
Load coordinate system
0 ~ 31 (32)
SCARA axis only
Tool coordinate system
0 ~ 127 (128)
SCARA axis only
Simple interference check zone number
1 ~ 10 (10)
SCARA axis only
Zone number
1 ~ 4 (4)
Linear movement axis
only
Pallet number
1 ~ 10 (10)
Axis number
1 ~ 6 (6)
Varies depending on
the function.
Axis pattern
0 ~ 111111
Controller with increased memory
size (with gateway function)
1 ~ 20000 (20000)
Position
number
Controller without increased
memory size
1 ~ 4000 (40000)
Controller with increased memory
size (with gateway function)
1 ~ 128 (128)
Program
number
Controller without increased
memory size
1 ~ 64 (64)
Controller with increased memory
size (with gateway function)
1 ~ 9999 (9999)
Step
number
Controller without increased
memory size
1 ~ 6000 (6000)
Task level
NORMAL/HIGH (2)
SIO channel number
1 ~ 2 (2)
Wait timer
1
1-shot pulse timer
16 (Number of timers
that can be operated
simultaneously)
Ladder timer
Local flag (100)
Virtual input port (SEL system
SEL user
program)
7000 ~ 7299 (300)
Virtual output port (SEL user program
SEL
system)
7300 ~ 7599 (300)
Number of symbol definitions
1000
Number of times symbol can be used in
commands
5000 (including literals)
Used in common from
any program.
Referenced separately in each program.
Cleared when the program is started.
Caution
Variables 99 and 199 are special variables this system uses in operations. Avoid
using these two variables for general purposes.
The values in the table represent ranges that can be processed by software. Items
that require physical devices, such as I/O ports and functions relating to axis number
and SIO, will be determined by possible combinations and models of commercial
boards, etc., available for each device application.
114
Part 3 Controller Data Structure
The variables and flags in the global range will be retained even after the controller power is turned off
(when other parameter No. 20 is set to “2.” Refer to Chapter 1, “How to Save Data,” of Part 3).
The variables and flags in the local range will be cleared when the program is started.
Ranges of values that can be used in SEL language
Integers and real numbers can be used. However, pay due attention to the following limitations:
[1] Numeric data
The X-SEL Controller can handle values of maximum eight digits including a sign and a decimal point.
Integer: -9,999,999 to 99,999,999
Real number: Maximum eight digits including a sign and decimal point, regardless of the size of value
Example) 999999.9, 0.123456, -0.12345
If a floating point is used in operations, the number of valid digits will be limited to seven. Also note
that operations using a floating point are subject to error.
[2] Position data
The input range of position data consists of four integer digits and three decimal digits.
–9999.999 to 9999.99 (the maximum value varies depending on the actuator model).
If position data are used in internal operations as numeric data (repeated multiplications and
divisions), the accuracy of the last digit may decrease.
Consider the above limitations fully when using values. Particularly when the CPEQ command is used in a
comparison operation using real numbers, a match will rarely result. In this case, the CPLE or CPGE
command that looks at the magnitude relationship of two terms must be used.
1.2 I/O Ports
(1) Input ports
Used as input ports for limit switches, sensor switches, etc.
Input number assignment
000 to 031 (standard)
(2) Output ports
Used as various output ports.
Output number assignment
300 to 315 (standard)
116
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......