![Mitsubishi Electric MELIPC MI5000 Series User Manual Download Page 151](http://html.mh-extra.com/html/mitsubishi-electric/melipc-mi5000-series/melipc-mi5000-series_user-manual_239727151.webp)
14 TIMER EVENT FUNCTION
149
14
14
TIMER EVENT FUNCTION
This function reports events to user programs at a specified cycle.
This function can be used to create timer tasks to be run periodically.
Timer
Specify the following items, and then the timer is run.
Up to 16 timers can be run, and each value can be specified individually.
A time of this function operates after registering a timer in a user program.
The event is reported when the timer reaches the specified cycle, and the waiting status of the user program waiting for the
notification of the event is cleared.
The events of all timers enter a non-occurrence status when the power supply of this product is turned from OFF to ON or the
product is reset.
■
Timer cycle
The timer cycle unit that can be specified differs by the value.
• 1 to 10: specify in 1 ms units.
• 10 to 1,000: specify in 5 ms units. (Specify in multiples of 5)
• 1,000 to 60,000: specify in 1,000 ms units. (Specify in multiples of 1,000)
The timer does not run when other values are specified.
Timers to be run once can be stopped by specifying "0" for the cycle. Stop the timer once to change the cycle.
■
Timer synchronization type
The operation of the user program (task) to receive notification of an event of a timer changes by the synchronization type.
Timer event settings
Configure timer events by a C Controller module dedicated function.
■
Function list
For details on the C Controller module dedicated functions, refer to the following manual.
MELIPC MI5000 Series Programming Manual (VxWorks)
Item
Description
range
cycle
Specify the cycle for the timer to report an event.
0, 1 to 60000 ms
Synchronization type
Specify the type of event to be reported by the timer.
• Batch synchronization
• Individual synchronization
Item
Description
Batch synchronization
Clears the waiting status of all user programs waiting for events when a timer event was reported. All tasks running
user programs waiting for events are run.
If there is no task waiting for an event or a task enters a wait status by a user program later when timer event is
reported, the waiting status is not cleared until the timer event is reported again, even when a user program is in a
timer event waiting status.
Individual synchronization
Clears the waiting status of one user program waiting for an event when a timer event was reported. When multiple
user programs are waiting for the same event report, waiting status is cleared in priority order of the tasks run by the
user program. (If the priority order is the same, clearing is done in the execution order of waiting processing. )
If there is no task waiting for an event when timer event is reported, the waiting status is immediately cleared if the
user program is placed in a waiting status after the notification.
Function name
Description
CCPU_EntryTimerEvent
Registers a timer event.
CCPU_WaitTimerEvent
Waits for a timer event to occur.
Summary of Contents for MELIPC MI5000 Series
Page 1: ...MELIPC MI5000 Series User s Manual Application MI5122 VW ...
Page 2: ......
Page 18: ...16 MEMO ...
Page 22: ...20 1 DIAGNOSTIC AND MAINTENANCE FUNCTIONS 1 1 Watchdog Timer WDT Function MEMO ...
Page 42: ...40 5 iQSS FUNCTION MEMO ...
Page 146: ...144 11 SECURITY FUNCTION 11 3 IP Filter Function MEMO ...
Page 148: ...146 12 MELSOFT PRODUCT AND GOT CONNECTION FUNCTION 12 1 Connection Method MEMO ...
Page 150: ...148 13 SYSTEM COUNT FUNCTION MEMO ...
Page 152: ...150 14 TIMER EVENT FUNCTION MEMO ...
Page 160: ...158 15 OS LINKING FUNCTIONS 15 3 Inter OS Event Notification Function MEMO ...
Page 162: ...160 16 SERIAL INTERFACE SWITCHING FUNCTION MEMO ...
Page 165: ...17 BASIC PARAMETERS 17 1 Basic Parameter List 163 17 Operation related setting Window ...
Page 170: ...168 17 BASIC PARAMETERS 17 1 Basic Parameter List RAS setting Window ...
Page 174: ...172 17 BASIC PARAMETERS 17 1 Basic Parameter List External device connection settings Window ...
Page 313: ...APPX Appendix 10 List of VxWorks Components 311 A MEMO ...
Page 315: ...I 313 MEMO ...
Page 319: ......