![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452280.webp)
3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3- 111
API Mnemonic
Operands
Function
51
REFF P
n
Refresh and Filter Adjust
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
n
*
*
REFF, REFFP: 3 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
n
: Response time setting, in ms
Description:
1.
The ELC provides an input filter to prevent noise or interference from creating a false reading.
Inputs X0~X17 are digitally filtered. REFF can adjust the response time of the input filters.
D1020 (adjusts the filter time of X0~X7) and D1021 (adjusts the filter time of X10~X17).
2.
When the ELC turns OFF
→
ON or the END instruction is reached, the response time is
dictated by the values in D1020 and D1021.
3.
During program execution, the values in D1020 and D1021 may be modified using the MOV
instruction.
4.
The response time can also be changed by using the REFF instruction in the program. When
executed, the response time specified in the REFF instruction will be moved to both D1020
and D1021 and will take effect the next program scan.
5. Range
of
n
: for ELC-PC/PA/PH,
n
= K0 ~ K20; for ELC-PV,
n
= K0 ~ K60, for ELCM-PH/PA,
n
= K2 ~ K20.
Program Example:
1.
When power to the ELC turns from OFF
→
ON, the filter
time of X0~X7 inputs is dictated by the value in D1020
and D1021.
2.
When X20=ON, REFF K5 instruction is executed, the
response time will change to 5 ms and will take affect the
next program scan.
3.
When X20=OFF, the filter time will change to 20ms and
will take affect the next program scan.
X20
REFF
K5
X0
Y1
X20
REFF
K20
X1
Y2
END
Points to note:
The response time is ignored (no delay set) If any external interrupts, high-speed counters or SPD
instructions are used in the program, the filter times for the I/O associated with these instructions
will be ignored.
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...