296
4
4 Instructions4.9.6 Refreshing
◆
Example 1:
When the preceding program is executed, if X20 = ON, the input statuses of X0 to X17 are read
immediately and input signals are updated. No input delay is incurred.
◆
Example 2:
When the preceding program is executed, if X0 = ON, the statuses of Y0 to Y17 are refreshed and output
signals are updated immediately, without waiting for the END instruction.
REFF: Input lter time adjustment
◆
Overview
When driving conditions are met, the REFF instruction sets the lter time constants of X0 to X7 input ports
to n ms.
REFF n
Input lter time
adjustment
Applicable model:
H3U
n Filter time Unit: ms
16-bit instruction
(5 steps)
REFF:
Continuous
execution
REFFP: Pulse
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The lter time constants of X0 to X7 input ports are set to n ms.
In the PLC, X0 to X7 ports use digital lters. The default lter time constant is set by D8020. Use the
REFF instruction to change the value in D8020 within the range 0 ms to 60 ms. Other X ports support only
hardware RC lter. The lter time constant is about 10 ms, which cannot be modied.
When a high-speed counter is used or the X input interrupt function is enabled, the lter time of related
ports is automatically adjusted to the shortest time, whereas the lter time of unrelated ports remains
unchanged.
You can also use the MOV instruction to assign a value to D8020; then the lter time is changed.