![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bg158.png)
FX Series Programmable Controllers Points Of Technique 10
10-4
10.4 Constant Scan Mode
Some times the timin
of operations can be a problem, especiall
if some co-ordination is
bein
attempted with a second control s
stem. In cases like this it is ver
useful to fix the
PLC’s scan time. Under normal conditions the PLC’s scan time will var
from one scan to the
next. This is simpl
because the natural PLC scan time is dependent on the number of and
t
pe of the active instructions. As these are continuall
chan
in
between pro
ram scans the
actual scan time is also a var
in
. Hence, b
usin
the additional pro
ram function identified
below, the PLC’s scan time can be fixed so that it will be the same duration on ever
pro
ram
scan. The actual scan duration is set b
writin
a scan time in excess of the current lon
est
scan duration to special data re
ister D8039 (in the example the value K150 is used). If the
PLC scans the pro
ram quicker than the set scan time, a 'pause' will occur until the set scan
duration is reached.
This pro
ram example should be placed at the be
innin
of a users pro
ram.
10.5 Alternating ON/OFF States
It is often useful to have a sin
le input control or to
le a situation. A basic,
et t
pical example
is the switchin
ON/OFF of a Li
ht. This can be easil
achieved b
usin
standard ladder
pro
ram to load an input and switch an output. However, this s
stem requires an input which is
latchable. If basic ladder steps are used to latch the pro
ram then it soon becomes complex
and prone to mis-pro
rammin
b
the user. Usin
the ALT instruction to to
le the ON/OFF
(SET/RESET, START/STOP, SLOW/FAST) state is much simpler, quicker and more efficient.
Explanation:
Pressin
the momentar
push button X1 once will switch the lamp ON. Pressin
the push
button for a second time will cause the lamp to turn OFF. And if the push button is a
ain
pressed for a third time, the lamp is turned ON a
ain and so the to
led status continues.
The second pro
ram shown identifies a possible motor interlock/control, possibl
a start/stop
situation.
M8000
M8039
MOV
K150
D8039
Newly set
constant scan
time = 150 msec
X 0
ALT Y 1
X 0 Y 1
X 0
Y 0
Y 1
M 0
M 0
ALT M 0
Program
example 1
Program example 2