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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

195 D PTPO<br />

Type<br />

Single-axis pulse output by<br />

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

D *<br />

DPTPO: 13 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 : Source start device S 2 : Number of segments D: Pulse output device<br />

Explanations:<br />

1. S 1 specifies the output frequency and the number of pulses according to the number of<br />

segments set by S 2 . Each segment occupies consecutive 4 registers, i.e. (S 1 +0), (S 1 +1), (S 1 +2)<br />

and (S 1 +3). (S 1 +0) and (S 1 +1) stores the output frequency; (S 1 +2) and (S 1 +3) stores the<br />

number of output pulses.<br />

2. Available output frequency for S 1 : 6Hz~100,000Hz.<br />

3. S 2 + 0: total number of segments (range: 1 ~ 40). S 2 + 1: The No. of current executing<br />

segment. The number in S 2 + 1 will be updated when the PLC scan reaches this instruction.<br />

4. D can only be designated with output devices Y0 and Y2, i.e. only pulse output is supported.<br />

Users need to apply other instructions if a control on direction signal output is required.<br />

5. This instruction does not offer ramp up/down function. Therefore, when the instruction is<br />

disabled, the output pulses will stop immediately.<br />

6. There is no limitation on the times of using this instruction, however during each scan cycle,<br />

Y0 and Y2 can be driven by one instruction at a time.<br />

7. When the instruction is being executed, changes to the instruction parameter will be invalid.<br />

8. Cyclic output can be performed on this instruction by driving ON M1262.<br />

Program Example:<br />

1. When X0 = ON, pulse output will be operated according to the set frequency and number of<br />

pulses in every segment.<br />

2. Format of the table:<br />

S 2 = D300, number of<br />

segments (D300 = K40)<br />

S 1 = D0, frequency (S 1 + 0)<br />

K1 (1 st segment) D1, D0 D3, D2<br />

K2 (2 nd segment) D5, D4 D7, D6<br />

S 1 = D0, number of output<br />

pulses (S 1 + 2)<br />

: : :<br />

3-437

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

Saved successfully!

Ooh no, something went wrong!