Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 171

Controller module
Table of Contents

Advertisement

CCPU_GetCounterMicros_ISR
This function acquires a 1 μs counter value of a C Controller module.
Format
short CCPU_GetCounterMicros_ISR(unsigned long* pulMicros)
Argument
Argument
Name
pulMicros
1μs counter value storage
destination
Description
• This function acquires a 1μs counter value of C Controller module and stores the value in the 1μs counter value storage
destination (pulMicros).
• The 1 μs counter value increases by 1 every 1 μs after the power is turned ON.
• The count cycles between 0 and 4294967295.
Do not execute this function in a routine other than an interrupt routine.
Return value
Return value
Description
0 (0000H)
Normal
Relevant function
• Page 170 CCPU_GetCounterMillis_ISR
Description
Specify the storage destination of the 1μs counter value.
3 DETAILS OF FUNCTION
3.2 C Controller module dedicated functions for ISR
3
IN/OUT
OUT
169

Advertisement

Table of Contents
loading

Table of Contents