Delta AS Series Programming Manual page 178

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

The procedure
There are four procedures A-D, when the input counted value changes 49 -> 50 to output the pulses through Y0.0.
A.
The input counted value changes from 49 to 50.
B.
The high-speed comparison interrupt is triggered. The PLC program is interrupted and the high-speed
comparison interrupt is executed.
C.
Execute instruction DPLSY that is written in the high-speed comparison interrupt.
D.
Pulses are outputted from Y0.0.
Since the interrupt is affected by the time it is triggered and by the PLC on-going executions, such as IO points
refreshing, communication implementing and so forth, the time when the pulses to be outputted can be greatly delayed.
To improve the execution time, new SM flags are added.
SM120-SM151: To pre-store the parameters for DPLSY to output
Set the SM in this category to ON to save the DPLSY to-be-outputted parameters, including output point number, target
frequency and number of pulses to the PLC flash memory. When the high-speed comparison interrupt is triggered and
any of the SM360-391 is set to ON, the output can be started right away. Once any of SM120-151 is used, it is set to
OFF. You need to set it to ON before using it again.
SM360-SM391: To enable triggering DPLSY in the interrupt to output pulses
When the high-speed comparison interrupt is triggered and any of the SM360-391 is set to ON, the output can be started
right away to output any of the SM120-151 stored DPLSY parameters. Auto-reset the control, after the output is
complete.
The corresponding numbers of high-speed comparison interrupt to the newly added SMs are listed below.
Number of the high-
speed comparison
interrupt
I200
I201
I202
I203
I210
I211
I212
I213
I220
I221
I222
I223
I230
I231
I232
I233
I240
I241
To pre-store the parameters for
DPLSY to output
SM120
SM121
SM122
SM123
SM124
SM125
SM126
SM127
SM128
SM129
SM130
SM131
SM132
SM133
SM134
SM135
SM136
SM137
Cha p ter 2 De vices
To enable triggering DPLSY in
the interrupt to output pulses
SM360
SM361
SM362
SM363
SM364
SM365
SM366
SM367
SM368
SM369
SM370
SM371
SM372
SM373
SM374
SM375
SM376
SM377
2_
2 - 1 5 5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents