Special Functions
D210
MOV K100 D220 // Transfer decimal data 10 ster D220
L //M10 igger condition
D // Tra l data 10000 into double-word register
D200
D K // Tra l data 8000 into double-word register
D210
LD M1 //M1 status trigger condition
OUT T //100m ds
LD T //T0 sta
SET M1 //set M1
SET M // set M
LDF M //M817 ition
RST M0 //reset M0
RST M // reset M
ALT M //M10 s
LD M0 //M0 status trigger condition
DPLSR D200 D210 D220 Y0 //Take value is D200 as frequency, value in D210 as
pulse number, value in D220 as speedup/speed-down
time, send pulse via Y0
0 into word regi
DP M10 rising edge tr
MOV K10000 D200 nsfer decima
MOV 8000 D210 nsfer decima
0 K20 s counter T0, time 2 secon
0 tus trigger condition
0 1
8170 0 falling edge trigger cond
1 1
10 tatus reverse
Program description:
When PLC changes from STOP to RUN, M8002 coil gets through a scan cycle, set high
ncy t ed-down time into D220, set M0,
tor uency and work 3 rounds, set coil M8170 at the same
time; the motor runs 3 rounds, the speed-down till stop, coil M8170 reset. Here reset M0, set
M1, revers quency parameters into D200、D210. the counter starts to
delay with 2 seconds, when reach this 2 seconds, M1 is reset, M0 is set again, the motor starts to
run 1 round with low frequency. After finish this 1 round, the motor starts to run with high
again! In this format, the motor runs with high frequency and low frequency.
freque
the mo
pulse parameters into D200、D210, se speedup/spe
start to speedup with high freq
e M10 status, set low fre
frequency
32