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.

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

77 PR Print (ASCII Code Output)<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 PR: 5 steps<br />

S * * *<br />

D *<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: Device for storing ASCII code (occupies 4 consecutive devices) D: External ASCII code output<br />

points (occupies 10 consecutive devices)<br />

Explanations:<br />

1. This instruction will output the ASCII codes in the 4 registers starting from S through output<br />

points started from D.<br />

2. D 0 ~ D 7 map to source data (ASCII code) directly in order, D 10 is the scan signal and D 11 is the<br />

execution flag.<br />

3. This instruction can only be used twice in the program.<br />

4. Flags: M1029 (PR execution completed); M1027 (PR output mode selection).<br />

Program Example 1:<br />

1. Use API 76 ASC to convert A ~ H into ASCII codes and store them in D0 ~ D3. After this, use<br />

this instruction to output the codes in sequence.<br />

2. When M1027 = OFF and X20 = ON, the instruction will designate Y20 (lowest bit) ~ Y27<br />

(highest bit) as the output points and Y30 as scan signals, Y31 as execution flag. In this mode,<br />

users can execute an output for 8 letters in sequence..<br />

3. If X20 turns from ON → OFF during the execution of the instruction, the data output will be<br />

interrupted, and all the output points will be OFF. When X20 = ON again, the data output will<br />

start from the first letter again.<br />

X20<br />

PR D0 Y20<br />

3-198

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

Saved successfully!

Ooh no, something went wrong!