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

62 D ABSD<br />

Absolute Drum<br />

Sequencer<br />

Controllers<br />

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

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

S 1 * * * * * * * DABSD: 17 steps<br />

S 2 * * *<br />

D * * *<br />

n * *<br />

<strong>SX2</strong><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 1 : Start device of the data table S 2 : No. of counter D: Start device for indicating comparison<br />

result n: Groups of data to be compared (n: 1~64)<br />

Explanations:<br />

105. ABSD instruction creates various output wave forms according to the current value of the<br />

counter designated by S 2. Usually, the instruction is applied for absolute cam control.<br />

106. S 2 of DABSD instruction can designate high speed counters. However, when the present value<br />

in the high speed counter is compared with the target value, the result cannot output<br />

immediately owing to the scan time. If an immediate output is required, please use DHSZ<br />

instruction that is exclusively for high speed counters.<br />

107. When operand S 1 uses KnX, KnY, KnM, KnS patterns, Kn should be K4 for 16-bit instruction<br />

and K8 for 32-bit instruction.<br />

Program Example:<br />

108. Before the execution of ABSD instruction, use MOV instruction to write all the set values into<br />

D100 ~ D107 in advance. The even-number D is for lower bound value and the odd-number D<br />

is for upper bound value.<br />

109. When X10 = ON, the present value in counter C10 will be compared with the four groups of<br />

lower and upper bound values in D100 ~ D107. The comparison results will be stored in M10 ~<br />

M13.<br />

110. When X10 = OFF, the original ON/OFF status of M10 ~ M13 will be retained.<br />

X20<br />

ABSD D100 C10 M10 K4<br />

C10<br />

X21<br />

RST<br />

C10<br />

X21<br />

CNT C10 K400<br />

3-161

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

Saved successfully!

Ooh no, something went wrong!