Chapter 2 Syntax
2-48
PlsCnt
Variable name
Range of values
Default
Unit
Data size
Attribute
Pulse count monitoring
0 to 32767
-
1
Unsigned
2-word data
Readable
- Explanation
This variable can be used to reference the pulse count when the pulse counter function is selected.
The data referenced with this variable corresponds to the data monitored by the pulse counter monitoring function (d028). This
variable is read-only.
This function doesn't correspond in the WJ200 Series.
- Sample program :
This program turns on contact output when the pulse count exceeds 2000 (times).
(Code area [Code Window])
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
LOOP if
PlsCnt >=
U(00) then
SKIP
㩷
Y(00)= 1
㩷
㩷
㩷
SKIP
goto LOOP
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
(Data area [Data Window])
U (00) = 2000
: 2000(pulse)
POS
Variable name
Range of values
Default
Unit
Data size
Attribute
current position
monitoring
268435455 to
-268435455
(1073741823 to
-1073741823)
-
1
Signed
2-word data
Readable
- Explanation
This variable can be used to reference current position information when the absolute position control function is selected.
The data referenced with this variable corresponds to the data monitored by the current position monitoring function (d030).
This variable is read-only.
When “03” (high-resolution absolute position control) has been selected for control pulse setting (P012), the parenthesized
range of values applies (Only SJ700).
This function doesn't correspond in the L700/SJ700B Series.
- Sample program :
This program turns on contact output when the current position data exceeds 100,000 (pulses)
.
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
UL(00)=
㩷
㩷
100000
㩷
㩷
LOOP if
POS >=
UL(00) then
SKIP
㩷
Y(00)= 1
㩷
㩷
㩷
SKIP
goto LOOP
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
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 ...