3. Instruction Set
3-437
API Mnemonic Operands Function
195
D PTPO Single-axis pulse output by
table
Controllers
ES2/EX2 SS2 SA2
SE SX2
Bit Devices Word devices Program Steps Type
OP X Y M S K H KnX KnY KnM KnS T C D E F
S1 *
S2 *
D *
DPTPO: 13 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2 SA2
SE SX2 ES2/EX2 SS2 SA2
SE SX2 ES2/EX2 SS2 SA2
SE SX2
Operands:
S1: Source start device S
2: Number of segments D: Pulse output device
Explanations:
1. S1 specifies the output frequency and the number of pulses according to the number of
segments set by S2. Each segment occupies consecutive 4 registers, i.e. (S1+0), (S1+1), (S1+2)
and (S1+3). (S1+0) and (S1+1) stores the output frequency; (S1+2) and (S1+3) stores the
number of output pulses.
2. Available output frequency for S1 : 6Hz~100,000Hz.
3. S2 + 0: total number of segments (range: 1 ~ 40). S2 + 1: The No. of current executing
segment. The number in S2 + 1 will be updated when the PLC scan reaches this instruction.
4. D can only be designated with output devices Y0 and Y2, i.e. only pulse output is supported.
Users need to apply other instructions if a control on direction signal output is required.
5. This instruction does not offer ramp up/down function. Therefore, when the instruction is
disabled, the output pulses will stop immediately.
6. There is no limitation on the times of using this instruction, however during each scan cycle,
Y0 and Y2 can be driven by one instruction at a time.
7. When the instruction is being executed, changes to the instruction parameter will be invalid.
8. Cyclic output can be performed on this instruction by driving ON M1262.
Program Example:
1. When X0 = ON, pulse output will be operated according to the set frequency and number of
pulses in every segment.
2. Format of the table:
S2 = D300, number of
segments (D300 = K40) S1 = D0, frequency (S1 + 0) S1 = D0, number of output
pulses (S1 + 2)
K1 (1st segment) D1, D0 D3, D2
K2 (2nd segment) D5, D4 D7, D6
: : :