3 . I ns t r uc ti on Se t3- 4 6 5API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SESX2195 D PTPO Single-axis pulse output bytableTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F DPTPO: 13 stepsS1 *S2 *D *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:S1: Source start device S2: Number of segments D: Pulse output deviceExplanations:1. S 1 specifies the output frequency and the number of pulses according to the number ofsegments set by S2. Each segment occupies consecutive 4 registers, i.e. (S 1+0), (S1+1), (S1+2)and (S1+3). (S1+0) and (S1+1) stores the output frequency; (S1+2) and (S1+3) stores thenumber 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 executingsegment. 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 isdisabled, 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 ofpulses in every segment.2. Format of the table:S2 = D300, number ofsegments (D300 = K40) S1 = D0, frequency (S1 + 0) S1 = D0, number of outputpulses (S1 + 2)K1 (1st segment) D1, D0 D3, D2K2 (2nd segment) D5, D4 D7, D6: : :K40 (40th segment) D157, D156 D159, D158