393
Example 1
The positions of A, B, C are unknown. The speed of the three segments are different. The
application can be perform by PLSF instruction and external interruption. We can install three
proximity switch at postion A, B, C, and connect the signal to PLC input terminal X0, X1, X2.
(suppose X0, X1, X2 are external interruption terminal, the related rising edge interruption ID
are I0000, I0100, I0200. The PLC external interruption terminal please refer to “external
interruption terminal definition). The pulse terminal is Y0, the direction terminal is Y2. To
improve the speed changing precision, the acceleration and deceleartion time are 0. The speed
will switch by external interruption.
Frequency setting
value (Hz)
Acceleration
and deceleratoin
time
Note: as the pulse numbers of each segment is unknown, the pulse numbers should set large
enough to ensure the object can move to the proximity switch. The STOP instruction will be
run by external interruption when the object gets to position C.
Every input interruption is
equipped with special relays
(SM50~SM69) to disable
interruption.
In the left program, if use M0 to
set SM50 “ON”, then disable
the interruption 0.
tudonghoatoancau.com