Chapter 5 Instruction Words
5 - 43
Variable name Range of values Default Unit Data size Attribute
PlsCnt
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..
- Sample program: This program turns on contact output when the pulse count exceeds 2000 (times).
(Code area [Code Window])
:
LOOP if PlsCnt >= U(00) then SKIP
Y(00)= 1
SKIP goto LOOP
:
(Data area [Data Window])
U(00) = 2000 :2000(pulse)
Variable name Range of values Default Unit Data size Attribute
POS
current position
monitoring
268435455〜
-268435455
(1073741823〜
-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
.
- Sample program: This program turns on contact output when the current position data exceeds
100,000 (pulses)
.
(Code area [Code Window])
:
UL(00)= 100000
LOOP if POS >= U(00) then SKIP
Y(00)= 1
SKIP goto LOOP
: