6.17 Pulse train output
6.17.1 Pulse output
Input/output Operand
Data type
ID, QD, AID, AQD, MD, VD, HC, SMD, LD, *MD, *VD, *LD Double integer
F
ID, QD, AID, AQD, MD, VD, HC, SMD, LD, *MD, *VD, *LD Double integer
N
Bit
OUT
QX.X
PLSY: When the value of the enable bit is 1 , Instruction issues N
pulses.The pulse frequency is F.
PLSY instructions:
1. The frequency range of F is 10 ~ 40K (Hz).Different models have different
frequency ranges.Please set the frequency according to the specific model.Frequency
F can be changed in the process of pulse transmission, the sending pulse frequency is
also changed.
2. The range of N is 0 ~ 2147483647.If N is 0, the number of pulses is ignored.When n
is equal to 0 and the enable bit is 1, the PLSY instruction will send pulses ceaselessly.
When the pulse is sending, changing the value of N does not work.N changes will
be in effect after the next pulse.
3. If the value of the enable bit is 0, the pulse will stop sending.When the enable bit is
changed from 0 to 1 , PLSY instruction sends new pulses and ignores the interrupted
pulses before.
4.The duty ratio of pulse transmission is 50%ON, 50%OFF.The transmission of
the pulse is completely processed by the hardware interrupt, which is not
affected by the scan period.
204
Made with FlippingBook - Online magazine maker