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

Controller module
Table of Contents

Advertisement

CCPU_GetSerialNo
This function acquires the serial number of a C Controller module.
Format
short CCPU_GetSerialNo(char* pcGetData, unsigned long ulDataSize)
Argument
Argument
Name
pcGetData
Serial number storage destination
ulDataSize
Serial number storage destination
size
*1 The serial number of a C Controller module has 16 digits. Therefore, reserve an area of 16 bytes or more in the serial number storage
destination and specify 16 bytes for the serial number storage destination size (ulDataSize).
Description
• This function acquires the serial number (16-digits) of a C Controller module, and stores it in the serial number storage
destination (pcGetData).
• It also acquires the information for the size specified to the serial number storage destination size (ulDataSize).
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant function
• Page 107 CCPU_GetIDInfo
Description
Specify the serial number storage destination.
Specify the serial number storage destination in byte units.
(When '0' is specified, this function ends normally without processing.)
*1
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
OUT
IN
113

Advertisement

Table of Contents
loading

Table of Contents