100 EZMotion User/Programming Guide
www.controltechniques.com Revision: A8
Figure 100: Queue Block Diagram
Sources
Queue Exit - This source activates when the Comparator Select parameter is greater to or equal to the sum of the data entered into
the queue, and the queue offset.
Queue Empty - This source is active if no data is stored in the queue. It will become inactive when the first piece of data is loaded
into the queue and remain inactive until all data has been removed from the queue.
Queue Full - The Queue Full source will activate if the number of pieces of data in the queue equals or exceeds the Full Level
parameter. The source will deactivate when the number of pieces of data in the queue is less than the Full Level.
Queue Overflow - This source activates when there is no more room in the queue to store data. The maximum number of pieces of
data is determined by the Queue Size parameter.
Destinations
Queue Clear - This destination automatically clears all of the data out of the queue. The cleared data is not saved and there is no
way to recover the cleared data. This is typically activated on power-up of the system to make sure no old data remains in the queue.
Queue Compare Enable - The Compare Enable causes the comparator internal to the queue to function. If the Compare Enable is
inactive, then the Queue Exit source will never activate.
If activated, then the Queue Exit source will activate when the Queue Data plus the Queue Offset is greater than or equal to the
Comparator Select parameter.
To fully understand the operation of the queue, Figure 101 has a more detailed view of the Queue object.
Figure 101: Queue Object and Components Diagram
8.5.4 Timers View
The Timer View is used to configure necessary parameters to use Timer objects within an application. Timers are used in many
different types of applications to accurately control the timing of a given machine event with respect to one or more previous events.
For example: When a digital input turns on, we want to start a program exactly 500 msec later. Or, when an index is complete, we
want to hold an output on for exactly 2.000 seconds.
There are several different types of Timers available to the user based on the task they are trying to achieve.
Set # of Queue Objects = 0
and clear data in queue
Data In
Source Select:
MasterPosn
FeedbackPosn
CommandPosn
Comparitor
Sum
QueueClear
CompareEnable
IF (# of Queue
Objects = 0)
QueueEmpty
QueueExit
Data Out
{
Queue
Size
Full
Level
IF (# of Queue
Objects = or > Full Level)
QueueFull
IF (# of Queue
Objects = Queue Size)
QueueOverflow
Queue Offset Exit Position
Data[ ]
Size
Offset
Full Level
Comparitor Select
Name
Queue Object
Clear
Compare
Enable
Exit
Empty
Full
Overflo
Data In
ueue Data = X
Data Out
Y =
ueue Data