![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bgbb.png)
FX Series Programmable Controlers Applied Instructions 5
5-61
5.6.8 PLSY (FNC 57)
Operation:
A specified quantit
of pulses S
2
is output throu
h
device D at a specified frequenc
S
1
. This
instruction is used in situations where the quantit
of outputs is of primar
concern.
Points to note:
a) Users of the FX PLC can specif
output
frequencies (S
1
) of 1 to 1000Hz. Users of FX
Version 2.2 or earlier will need to initialize the
PLSY instruction. The pro
ram to the ri
ht can be
used to achieve this. FX
0
/FX
0N
users ma
use
frequencies of 10to 2000Hz. FX
2N
users ma
use
frequencies of 2 to 20000Hz.
b) The maximum number of pulses: 16 bit operation:
1 to 32,767 pulses, 32 bit operation: 1 to 2,147,483,647 pulses.
Note: special auxiliar
coil M8029 is turned ON when the specified number of pulses has
been completed. The pulse count and completion fla
(M8029) are reset when the PLSY
instruction is de-ener
ized. If “0" (zero) is specified the PLSY instruction will continue
eneratin
pulses for as lon
as the instruction is ener
ized.
c) A sin
le pulse is described as havin
a 50% dut
c
cle. This means it is ON for 50% of the
pulse and consequentl
OFF for the remainin
50% of the pulse. The actual output is
controlled b
interrupt handlin
, i.e. the output c
cle is NOT affected b
the scan time of the
pro
ram.
d) The data in operands S
1
and S
2
ma
be chan
ed durin
execution. However, the new data
in S
2
will not become effective until the current operation has been completed, i.e. the
instruction has been reset b
removal of the drive contact.
e) This instruction can onl
be used once within a pro
ram scan. Also, onl
one of either FNC
57 PLSY or FNC 59 PLSR can be in the active pro
ram at once.
f) Because of the nature of the hi
h speed output, transistor output units should be used with
this instruction. Rela
outputs will suffer from a
reatl
reduced life and will cause false
outputs to occur due to the mechanical ‘bounce’ of the contacts.
To ensure a ‘clean’ output si
nal when usin
transistor units, the load current should be
200mA or hi
her. It ma
be found that ‘pull up’ resistors will be required.
Mnemonic Function
Operands
Program steps
S
1
S
2
D
PLSY
FNC 57
(Pulse Y
output)
Outputs a
specified number
of pulses at a set
frequenc
K, H,
KnX, KnY,
KnM, KnS,
T, C, D, V, Z
Y
Note:
FX
0(S)
/FX
0N
users:
Y000 onl
.
FX users:
an
Y
PPP
.
FX
2N(C)
users: Y000 or
Y001 onl
.
PLSY:
7 steps
DPLSY:
13steps
X10
D 0K1000 Y 0PLSY
[ S1 ]
[ S2 ]
[ D ]
S2 D
PLSY
M8002
M8034
M8002
S1
It is possible to use subroutines or other such pro
rammin
techniques to isolate different
instances of this instructions. In this case, the current instruction must be deactivated before
chan
in
to the new instance.