Chapter 2 Syntax
2-38
XA (0) to XA (2)
Variable name
Range of values
Default
Unit
Data size
Attribute
XA (0)
General-purpose analog
input (O terminal)
0 to 10000
0
0.01 %
Unsigned
1-word data
Readable
XA (1)
General-purpose analog
input (OI terminal)
0 to 10000
XA (2)
General-purpose analog
input (O2 terminal)
-10000 to 10000
- Explanation
These variables can be used to monitor the data input to the O, OI, and O2 terminals (among the analog input terminals of the
inverter) in a data range from -100.00 to +100.00. The analog inputs monitored with these variables correspond to the data set
by the [O]-[L], [OI]-[L], and [O2]-[L] input functions (A011 to A015, A101 to A105, and A111 to A114).
The WJ200 Series doesn't correspond to XA (2). For details, refer to the Inverter Instruction Manual.
- Sample program :
Program to configure output frequencies in steps of 10 Hz with general-purpose analog inputs
(Code area [Code Window])
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
FW= 1
㩷
㩷
㩷
㩷
LOOP UL(00)=
㩷
㩷
XA(0)
㩷
㩷
: Fetch analog input data.
㩷
UL(00)= UL(00)
*
60
㩷
㩷
: Convert the scale.
㩷
UL(00)= UL(00)
/
100
㩷
㩷
㩷
if U(00)
<
U(00)
then
LBL1
: When data is less than 16.67%, set the
output frequency to 10 Hz.
㩷
if U(00)
<
U(01)
then
LBL2
: When data is less than 33.33%, set the
output frequency to 20 Hz.
㩷
if U(00)
<
U(02)
then
LBL3
: When data is less than 50.00%, set the
output frequency to 30 Hz.
㩷
if U(00)
<
U(03)
then
LBL4
: When data is less than 66.67%, set the
output frequency to 40 Hz.
㩷
if U(00)
<
U(04)
then
LBL5
: When data is less than 83.33%, set the
output frequency to 50 Hz.
㩷
if U(00)
<
U(05)
then
LBL6
: When data is less than 100.00%, set the
output frequency to 60 Hz.
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL1 SET-Freq=
㩷
㩷
1000
㩷
㩷
㩷
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL2 SET-Freq=
㩷
㩷
2000
㩷
㩷
㩷
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL3 SET-Freq=
㩷
㩷
3000
㩷
㩷
㩷
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL4 SET-Freq=
㩷
㩷
4000
㩷
㩷
㩷
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL5 SET-Freq=
㩷
㩷
5000
㩷
㩷
㩷
㩷
goto LBL7
㩷
㩷
㩷
㩷
㩷
LBL6 SET-Freq=
㩷
㩷
6000
㩷
㩷
㩷
LBL7 goto
LOOP
㩷
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
(Data area [Data Window])
U (00) = 1000
U (01) = 2000
U (02) = 3000
U (03) = 4000
U (04) = 5000
U (05) = 6000
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...