2 i/o ports – IAI America XSEL-KX User Manual

Page 67

Advertising
background image




51

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.999
(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)

Advertising
This manual is related to the following products: