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

Controller module
Table of Contents

Advertisement

CCPU_GetCounterMillis
This function acquires a 1 ms counter value of a C Controller module.
Format
short CCPU_GetCounterMillis(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.
Return value
Return value
0 (0000H)
Other than 0
Relevant function
• Page 99 CCPU_GetCounterMicros
3 DETAILS OF FUNCTION
100
3.1 C Controller Module Dedicated Functions
Description
Specify the storage destination of the 1 ms counter value.
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
OUT

Advertisement

Table of Contents
loading

Table of Contents