17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

API Mnemonic Operands Function<br />

51 REFF P Refresh and Filter Adjust<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE <strong>SX2</strong><br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F REFF, REFFP: 3 steps<br />

n * *<br />

Operands:<br />

n: Response time (unit: ms)<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

SE<br />

SE<br />

Explanation:<br />

1. PLC provides digital input filters to avoid interference. The response time (n) of X0 ~ X7 input<br />

filters can be adjusted by REFF instruction. The instruction sets the value specified in n to<br />

D1020 (X0 ~ X7 input filter time) directly.<br />

2. When PLC turns from OFF to ON or the END instruction is reached, the response time is<br />

dictated by the value of D1020.<br />

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

4. When using REFF instruction during program execution, the modified response time will be<br />

move to D1020 and refreshed until next program scan..<br />

5. Range of n: = K2 ~ K20.<br />

Program Example:<br />

1. When the power of PLC turns from OFF to ON, the response time of X0~X7 inputs is<br />

specified by the value in D1020.<br />

2. When X20 = ON, REFF K5 instruction is executed, response time changes to 5 ms and takes<br />

affect the next scan.<br />

3. When X20 = OFF, the REFF instruction will not be executed, the response time changes to<br />

20ms and takes affect the next scan.<br />

<strong>SX2</strong><br />

X20<br />

X0<br />

X20<br />

X1<br />

REFF<br />

Y1<br />

REFF<br />

Y2<br />

K5<br />

K20<br />

END<br />

Points to note:<br />

Response time is ignored (no delay) when input points are occupied by external interrupts,<br />

high-speed counters or SPD instruction.<br />

3-120

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!