DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming API 195 Operands: S 1 : Source start device S 2 : Number of segments D : Pulse output device Explanations: 1. S 1 specifies the output frequency and the number of pulses according to the number of segments set by S 2 . Each segment occupies consecutive 4 registers, i.e. ( S 1 +0), ( S 1 +1), ( S 1 +2) and ( S 1 +3). ( S 1 +0) and ( S 1 +1) stores the output frequency; ( S 1 +2) and ( S 1 +3) stores the number of output pulses. 2. Available output frequency for S 1 : 6Hz~100,000Hz. 3. S 2 + 0: total number of segments (range: 1 ~ 40). S 2 + 1: The No. of current executing 4.
D can only be designated with output devices Y0 and Y2, i.e. only pulse output is supported. segment. The number in S 2 + 1 will be updated when the PLC scan reaches this instruction. 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: 3-470 Mnemonic Operands Function Controllers D PTPO Single-axis pulse output by table ES2/EX2 SS2 SA2 SX2 SE Typ e OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DPTPO:
13 steps S 1 * S 2 * D * PULSE 16-bit 32-bit SA2 SA2 SA2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE SE SE S 2 = D300, number of segments (D300 = K40) S 1 = D0, frequency (S 1 + 0) S 1 = D0, number of output pulses (S 1 + 2) K1 (1st segment) D1, D0 D3, D2 K2 (2nd segment) D5, D4 D7, D6 : : : K40 (40th segment) D157, D156 D159, D158