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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

75 ARWS Arrow switch<br />

Controllers<br />

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

SE<br />

<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 ARWS: 9 steps<br />

S * * * *<br />

D 1 * * * * *<br />

D 2 *<br />

n * *<br />

PULSE 16-bit 32-bit<br />

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

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

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

<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 SE SE <strong>SX2</strong><br />

Operands:<br />

S: Start device for key input (occupies 4 consecutive devices) D 1 : Device storing the value to be<br />

displayed in 7-segment display D 2 : Output device for 7-segment display n: Configuration<br />

setting of output signal (n = 0~3). Please refer to explanations of SEGL instruction for the n usage.<br />

Explanations:<br />

1. ARWS instruction displays the value set in device D 1 on a set of 4-digit 7 segment display.<br />

PLC automatically converts the decimal value in D 1 to BCD format for displaying on the 7<br />

segment display. Each digit of the display can be modified by changing the value in D 1 through<br />

the operation of the arrow switch.<br />

2. Number of D 2 only can be specified as a multiple of 10, e.g. Y0, Y10, Y20…etc.<br />

3. Output points designated by this instruction should be transistor output.<br />

4. When using this instruction, please fix the scan time, or place this instruction in the timer<br />

interruption subroutine (I610/I699, I710/I799).<br />

5. There is no limitation on the times of using this instruction in the program, but only one<br />

instruction is allowed to be executed at a time.<br />

Program Example:<br />

1. When the instruction is executed, X20 is defined as the Minus key, X21 is defined as the Add<br />

key, X22 is defined as the Right key and X23 is defined as the Left key. The keys are used to<br />

modify the set values (range: 0 ~ 9,999) stored in D20..<br />

2. When X0 = ON, digit 10 3 will be the valid digit for setup. When Left key is pressed, the valid<br />

digit will shift as the following sequence: 10 3 →10 0 →10 1 →10 2 →10 3 →10 0 .<br />

3. When Right key is pressed, the valid digit will shift as the following sequence: 10 3 →10 2 →10 1<br />

→10 0 →10 3 →10 2 . Besides, the digit indicators (LED, Y24 to Y27) will be ON for indicating the<br />

position of the valid digit during shift operation.<br />

4. When Add key is pressed, the content in the valid digit will change as 0 → 1 → 2 … → 8 →<br />

9 → 0 →1. When Minus key is pressed, the content in the valid digit will change as 0 → 9<br />

→ 8 … → 1 → 0 → 9. The changed value will also be displayed in the 7-segment display.<br />

3-195

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

Saved successfully!

Ooh no, something went wrong!