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

63 INCD<br />

Incremental drum<br />

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

S 1 * * * * * * *<br />

S 2 *<br />

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

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

Explanations:<br />

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

counter designated by S 2. and S 2. +1. Usually, the instruction is applied for relative cam control<br />

114. The current value in S 2 is compared with the set points specified by S 1 (n consecutive devices)<br />

When value in S 2 reaches the first set point, S 2. +1 counts once for indicating the number of<br />

present section, associated D turns ON, and S 2 is reset then counts up from 0 again. When the<br />

drive contact of INCD instruction is OFF, the content in S 2. and S 2. +1 will be cleared.<br />

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

116. Operand S 2 should be C0~C198 and occupies 2 consecutive counters.<br />

117. When the comparison of n data has been completed, the execution completed flag M1029 =<br />

ON for one scan cycle.<br />

Program Example:<br />

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

D100 ~ D104 in advance. D100 = 15, D101 = 30, D102 = 10, D103 = 40, D104 = 25.<br />

119. The current value of counter C10 is compared against the set-point value of D100~D104.<br />

Once the current value is equal to the set-point value, C10 will be reset and count up from 0<br />

again. Meanwhile C11 counts once for indicating the number of present section<br />

120. When the content of C11 increase 1, M10~M14 will be ON sequentially. Please refer to the<br />

following timing diagram.<br />

121. When the comparison of 5 data has been completed, the execution completed flag M1029 =<br />

ON for one scan cycle and C11 is reset for next comparison cycle.<br />

3-163

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

Saved successfully!

Ooh no, something went wrong!