Mitsubishi Electric MELSEC iQ-R C Programming Manual page 73

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents