DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

Mnemonic

Operands

Function

Controllers

51

REFF

 

P

 

 

 

Refresh and Filter Adjust

ES2/EX2

SS2

SA2

SX2

 

 

 

 

SE

Type

Bit Devices

 

 

 

Word devices

 

 

Program Steps

 

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C D

E

F REFF, REFFP: 3 steps

n

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

16-bit

 

 

32-bit

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2 ES2/EX2

SS2

SA2

SX2 ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

SE

SE

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

Operands:

n: Response time (unit: ms)

Explanation:

1.PLC provides digital input filters to avoid interference. The response time (n) of X0 ~ X7 input filters can be adjusted by REFF instruction. The instruction sets the value specified in n to D1020 (X0 ~ X7 input filter time) directly.

2.When PLC turns from OFF to ON or the END instruction is reached, the response time is dictated by the value of D1020.

3.During program execution, the value in D1020 can be changed by using MOV instruction.

4.When using REFF instruction during program execution, the modified response time will be move to D1020 and refreshed until next program scan..

5.Range of n: = K2 ~ K20.

Program Example:

1.When the power of PLC turns from OFF to ON, the response time of X0~X7 inputs is specified by the value in D1020.

2.When X20 = ON, REFF K5 instruction is executed, response time changes to 5 ms and takes affect the next scan.

3.When X20 = OFF, the REFF instruction will not be executed, the response time changes to 20ms and takes affect the next scan.

X20

K5

REFF

X0

 

Y1

 

X20

 

REFF

K20

X1

 

Y2

 

END

 

Points to note:

Response time is ignored (no delay) when input points are occupied by external interrupts, high-speed counters or SPD instruction.

3 - 120

Page 236
Image 236
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T REFF, Reffp 3 steps