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

197 D CLLM<br />

Type<br />

Close loop position<br />

control<br />

Controllers<br />

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

SE<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S 1 * *<br />

S 2 * * *<br />

S 3 * * *<br />

D *<br />

DCLLM: 17 steps<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 : Feedback source device S 2 : Target number of feedbacks S 3 : Target frequency of<br />

output D: Pulse output device<br />

Explanations:<br />

1. The corresponding interrupt pointers of S 1 :<br />

Source device X4 X6 C243 ~ C254<br />

Associted outout Y0 Y2 Y0 Y2<br />

No. of Interrupt pointer I40 I60 I010 I050<br />

= 1: rising-edige triggered; = 0: falling-edge triggered<br />

a) When S 1 designates input points X and the pulse output reaches the target number of<br />

feedbacks in S 2 , the output will continue to operate by the frequency of the last shift (end<br />

frequency) until interrupts occur on input points X.<br />

b) When S 1 designates high speed counters and the pulse output reaches the target<br />

number of feedbacks in S 2 , the output will continue to operate by the frequency of the<br />

last shift (end frequency) until the feedback pulses reaches the target number.<br />

c) S 1 can be a high speed counter C or an input point X with external interrupt. If S 1 is C,<br />

DCNT instruction should be executed in advance to enable the high-speed counting<br />

function, and EI instruction with I0x0 should be enabled for external interrupts. If S 1 is X,<br />

EI instruction with I0x0 should be enabled for external interrupts.<br />

d) If S 1 is specifed with counters, DHSCS instruction has to be programmed in user<br />

program. Please refer to Program example 2 for details.<br />

2. Range of S 2 : -2,147,483,648 ~ +2,147,483,647 (+ / - indicates the positive / negative rotation<br />

direction). the present value of pulse output in CH0 (Y0, Y1) and CH1 (Y2, Y3) increases in<br />

positive direction and decreases in negative direction. Registers storing present value of<br />

pulse output: CH0(D1031 High, 1030 Low), CH1(D1337 High, D1336 Low)<br />

3. If S 3 is lower than 6Hz, the output will operate at 6Hz; if S 3 is higher than 100kHz, the output<br />

will operate at 100kHz.<br />

3-439

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

Saved successfully!

Ooh no, something went wrong!