Ccpu_Entrytimerevent - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_EntryTimerEvent

Registers a timer event.
Format
short CCPU_EntryTimerEvent(long* plEvent)
Argument
Argument
Name
plEvent
Registered event
Registration events (plEvent) are specified as follows.
plEvent
plEvent[0]
plEvent[1]
plEvent[2]
plEvent[3]
plEvent[4]
plEvent[5]
plEvent[6]
plEvent[7]
plEvent[8]
plEvent[9]
When setting the timer event cycle, only the following specification method is applicable.
• For 1 to 9: Specify multiples of 1 (1 ms units)
• For 10 to 1000: Specify multiples of 5 (5 ms units)
• For 1000 to 60,000: Specify multiples of 1000 (1\ s units)
Description
• This function registers a timer event by specifying a cycle and synchronization type.
• When '0' is specified for a cycle for the registered event (plEvent), the registered timer event (occurrence) is cleared.
Deregistration will clear the events that have occurred before that.
• Up to 16 timer events can be set. The cycle (1 ms to 60 sec) and synchronization type (batch synchronization or individual
synchronization) can be specified. For details on the synchronization type, refer to the description of the
CCPU_WaitTimerEvent function.
• Specify the timer event number within the registration event (plEvent) without duplication. Otherwise, an error will be
returned.
• To change the cycle of a timer event number for which cycle settings are already set, clear registration (specify '0' to the
cycle), and then register the cycle (specify the cycle) again. Otherwise, an error will be returned.
• The registered timer event by this function can be placed into a wait state with the CCPU_WaitTimerEvent function.
• All the timer events are cleared at the initial status.
Description
Specify a timer event to be registered.
Description
Number of timer event settings (1 to 16)
First timer event number (1 to 16)
Cycle of the first timer event (0: Clear, 1 to 60,000: Cycle [ms])
Synchronization type of the first timer event (0: Batch synchronization, 1:
Individual synchronization)
Second timer event number (1 to 16)
Cycle of the second timer event (0: Clear, 1 to 60,000: Cycle [ms])
Synchronization type of the second timer event (0: Batch synchronization, 1:
Individual synchronization)
Third timer event number (1 to 16)
Cycle of the third timer event (0: Clear, 1 to 60,000: Cycle [ms])
Synchronization type of the third timer event (0: Batch synchronization, 1:
Individual synchronization)
First event setting
Second event setting
Third event setting
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
33

Advertisement

Table of Contents
loading

Table of Contents