Plscnt; Pos - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

Chapter 2 Syntax
Variable name

PlsCnt

Pulse count monitoring
- 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
LOOP
if
Y(00)=
SKIP
goto
(Data area [Data Window])
U (00) = 2000
Variable name

POS

current position
monitoring
- 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
UL(00)=
LOOP
if
Y(00)=
SKIP
goto
Range of values
0 to 32767
parameter1
parameter2
parameter3
PlsCnt
>=
U(00)
1
LOOP
: 2000(pulse)
Range of values
268435455 to
-268435455
(1073741823 to
-1073741823)
parameter1
parameter2
parameter3
100000
POS
>=
UL(00)
1
LOOP
Default
Unit
-
1
parameter4
parameter5
then
SKIP
Default
Unit
-
1
parameter4
parameter5
then
SKIP
2-48
Data size
Attribute
Unsigned
Readable
2-word data
Data size
Attribute
Signed
Readable
2-word data
.

Advertisement

Table of Contents
loading

Table of Contents