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

Controller module
Table of Contents

Advertisement

CCPU_GetCounterMillis_ISR
This function acquires a 1 ms counter value of a C Controller module.
Format
short CCPU_GetCounterMillis_ISR(unsigned long* pulMillis)
Argument
Argument
Name
pulMillis
1 ms counter value storage
destination
Description
• This function acquires a 1 ms counter value of C Controller module and stores the value in the 1 ms counter value storage
destination (pulMillis).
• The 1 ms counter value increases by 1 every 1 ms 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
0 (0000H)
Relevant function
• Page 169 CCPU_GetCounterMicros_ISR
3 DETAILS OF FUNCTION
170
3.2 C Controller module dedicated functions for ISR
Description
Specify the storage destination of the 1 ms counter value.
Description
Normal
IN/OUT
OUT

Advertisement

Table of Contents
loading

Table of Contents