Справочник Пользователя для Mitsubishi Electronics FX0

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-61
5.6.8
PLSY (FNC 57)
Operation:
A specified quantity of pulses S
2
is output through
devic e D  at  a spe c if ie d fre quenc y   S
1
.   T h is
instruction is used in situations where the quantity
of outputs is of primary concern.
Points to note:
a) Users of the FX PLC can specify output
frequencies (S
1
) of 1 to 1000Hz. Users of FX
Version 2.2 or earlier will need to initialize the
PLSY instruction. The program to the right can be
used to achieve this. FX
0
/FX
0N 
users may use
frequencies of 10to 2000Hz. FX
2N 
users may 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 auxiliary coil M8029 is turned ON when the specified number of pulses has
been completed. The pulse count and completion flag (M8029) are reset when the PLSY
instruction is de-energized. If “0" (zero) is specified the PLSY instruction will continue
generating pulses for as long as the instruction is energized.
c) A single pulse is described as having a 50% duty cycle. This means it is ON for 50% of the
pulse and consequently OFF for the remaining 50% of the pulse. The actual output is
controlled by interrupt handling, i.e. the output cycle is NOT affected by the scan time of the
program.
d) The data in operands S
and S
may be changed during execution. However, the new data
in S
will not become effective until the current operation has been completed, i.e. the
instruction has been reset by removal of the drive contact.
e) This instruction can only be used once within a program scan. Also, only one of either FNC
57 PLSY or FNC 59 PLSR can be in the active program at once.
f) Because of the nature of the high speed output, transistor output units should be used with
this instruction. Relay outputs will suffer from a greatly reduced life and will cause false
outputs to occur due to the mechanical ‘bounce’ of the contacts. 
To ensure a ‘clean’ output signal when using transistor units, the load current should be
200mA or higher. It may 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
frequency
K, H,
KnX, KnY,
KnM, KnS,
T, C, D, V, Z
Y
Note:
FX
0(S)
/FX
0N 
users: 
Y000 only 
.
FX users: 
any Y
PPP
.
FX
2N(C) 
users: Y000 or 
Y001 only 
.
PLSY:
7 steps
DPLSY:
13steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
FLAGS
Operation
Complete M8029
X10
D 0
K1000
Y 0
PLSY
[ S1 ] [ S2 ] [ D ]
S2
D
PLSY
M8002
M8034
M8002
S1
It is possible to use subroutines or other such programming techniques to isolate different
instances of this instructions. In this case, the current instruction must be deactivated before
changing to the new instance.