3. Instruction Set
3-137
API Mnemonic Operands Function
57
D PLSY Pulse Output
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 *
PLSY: 7 steps
DPLSY: 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: Pulse output frequency S2: Number of output pulses D: Pulse output device (Y0 ~ Y3
available)
Explanations:
21. When PLSY instruction has been executed, the specified quantity of pulses S2 will be output
through the pulse output device D at the specified pulse output frequency S1
22. S1 specifies the pulse output frequency
Output frequency range of MPU
Output Y0, Y2 Y1, Y3
16-bit instruction SS2: 0~10,000Hz
ES2/EX2/SA2/SX2/SE: 0~32,767 Hz 0~10,000Hz
range
32-bit instruction SS2: 0~10,000Hz
ES2/EX2/SA2/SX2/SE: 0~100,000 Hz 0~10,000Hz
If frequency equals or smaller than 0Hz is specified, pulse output will be disabled.
If frequency bigger than max frequency is specified, PLC will output with max frequency.
23. S2 specifies the number of output pulses.
16-bit instruction: -32,768~32,767. 32-bit instruction: -2,147,483,648~2,147,483,647.
When S2 is specified as K0, the pulse will be output continuously regardless of the limit of
pulse number.
24. When D1220/D1221 = K1 or K2, the positive/negative sign of S2 denotes pulse output direction
(Positive/negative).