![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bgb3.png)
FX Series Programmable Controlers Applied Instructions 5
5-53
5.6.1 REF (FNC 50)
Operation:
Standard PLC operation processes output and input
status between the END instruction of one pro
ram
scan and step 0 of the followin
pro
ram scan. If an
immediate update of the I/O device status is required
the REF instruction is used. The REF instruction can onl
be used to update or refresh blocks of
8 (n) consecutive devices. The head address of the refreshed devices should alwa
s have its
last di
it as a 0 (zero), i.e. in units of 10.
5.6.2 REFF (FNC 51)
Operation:
PLC’s are provided with input filters to overcome
problems
enerated b
mechanical switch
ear.
However, as this involves ensurin
a stead
input
si
nal is received for a fixed time duration, the use of
input filters slows down the PLC response times. For hi
h speed applications, especiall
where
solid state switchin
provides the input si
nal, input filter times ma
be reduced. The default
settin
for the input filters is approximatel
10 msec. Usin
this instruction input filter times of 0
to 60 msec ma
be selected. The settin
‘0’ (zero) is actuall
50
µ
sec. This is the minimum
available settin
. It is automaticall
selected when direct input, interrupts or hi
h speed countin
functions are used. The REFF instruction needs to be driven for each pro
ram scan if it is to be
effective, otherwise, the standard 10 msec filter time is used.
Mnemonic Function
Operands
Program steps
Dn
REF
FNC 50
(
Refresh
å
Forces an
immediate update
of inputs or
outputs as
specified
X, Y
Note:
D should alwa
s be a
multiple of 10, i.e. 00,
10, 20, 30 etc.
K, H
Note:
n should alwa
s be a
multiple of 8, i.e. 8, 16,
24, 32 etc.
REF, REFP:
5 steps
Mnemonic Function
Operands
Program steps
n
REFF
FNC 51
(Refresh
and filter
ad
ust)
Inputs are
refreshed, and
their input filters
are reset to the
newl
desi
nated
value
K, H,
Note: n= 0 to 60 msec (0 = 50
µ
s)
X000 to X007 (X000 to X017 for FX
2N
) are
automaticall
desi
nated when usin
this
instruction
REFF,
REFFP:
3 steps
X0
X 10
[ D ]
K 8REF
[ n ]
Note:
A short dela
will occur before the I/O device is ph
sicall
updated, in the case of inputs
a time equivalent to the filter settin
, while outputs will dela
for their set ener
ized time.
X10
K 1
REFF
[ n ]