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 />

50 REF P Refresh<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 REF, REFP: 5 steps<br />

D * *<br />

n * *<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 />

Operands:<br />

D: Start device for I/O refresh n: Number of devices for I/O refresh<br />

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

Explanations:<br />

1. PLC updates I/O status between END instruction and the start of next program scan. If an<br />

immediate I/O refresh is needed, REF can be applied for performing I/O refresh immediately.<br />

2. D can only be a multiple of 10, i.e. X0 or Y0, and the instruction is NOT applicable for I/O<br />

points on DIO modules.<br />

3. Only the I/O points on MPU can be specified for operand D for I/O refresh.<br />

• When D specifies X0 and n ≦ 8, only X0~X7 will be refreshed. If n > 8, all I/O points on<br />

MPU will be refreshed.<br />

• When D specifies Y0 and n = 8, only Y0~X7 will be refreshed. If n > 8, all I/O points on<br />

MPU will be refreshed.<br />

• When D specifies X10 or Y10, I/O points on MPU except for X0~X7 or Y0~Y3 will all be<br />

refreshed regardless of n value, i.e. only status of X0~X7 or Y0~Y3 remains.<br />

4. For <strong>EX2</strong>/<strong>SX2</strong> MPU only: If M1180 = ON and REF instruction executes, PLC will read the A/D<br />

value and update the read value to D1110~D1113. If M1181 = ON and REF instruction<br />

executes, PLC will output the D/A value in D1116 and D1117 immediately. When A/D or D/A<br />

values are refreshed, PLC will reset M1180 or M1181 automatically.<br />

5. Range for n (<strong>ES2</strong>/<strong>EX2</strong>): 4 ~ total I/O points on MPU. n should always be a multiple of 4.<br />

6. Range for n (<strong>SS2</strong>/<strong>SA2</strong>/SE/<strong>SX2</strong>): 8 ~ total I/O points on MPU.<br />

Program Example 1:<br />

When X0 = ON, PLC will refresh the status of input points X0 ~ X7 immediately without delay.<br />

X0<br />

REF X0 K8<br />

Program Example 2:<br />

When X0 = ON, the 4 output signals on Y0 ~ Y3 will be sent to output terminals immediately before<br />

the program proceeds to END instruction.<br />

3-118

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

Saved successfully!

Ooh no, something went wrong!