Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 72

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_StartLinkDeviceAssurance
Starts data assurance for access to a link device of CC-Link IE Field Network.
Format
short CCPU_StartLinkDeviceAssurance(unsigned short usIoNo, unsigned long ulTimeout)
Argument
Argument
usIoNo
ulTimeout
Description
• Starts data assurance for access to a link device of the CC-Link IE Field Network function.
• Operation is as follows during data assurance.
The statuses of RX and RWr of own station are as at the start of data assurance and are not updated.
The values at the start of data assurance are transmitted and retained even when the statuses of RY and RWw of own
station are updated.
• Execute the CCPU_EndLinkDeviceAssurance function to end data assurance.
• The time required until completion depends on the processing state of the CC-Link IE Field Network. (Waits until the
timeout specified value. )
• To perform data assurance of a link device, it is necessary to configure "Station unit block guarantee" in the parameters of
the CC-Link IE Field Network. If "Do not perform station unit block guarantee" is configured, a configuration error occurs.
• If the link has been cut, a data link error occurs.
• It is not possible to start two instances of data assurance. If this function is executed during data assurance, a data
assurance running error occurs.
• The specified timeout value (ulTimeout) is rounded (rounding up after the decimal point) to tick units.
• For the processing procedure to access a link device that underwent data assurance, refer to the following manual.
(MELIPC MI5000 Series User's Manual (Application))
Return value
Return value
0(0000H)
-362(FE96H)
-367(FE91H)
-368(FE90H)
-369(FE8FH)
-371(FE8DH)
-28632(9028H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 29 CCPU_EndLinkDeviceAssurance
3 DETAILS OF FUNCTIONS
70
3.1 C Controller Module Dedicated Functions
Name
Module position
Timeout value
Description
Normal
CC-Link IE Field Network hardware error
Timeout error
Configuration error ("Do not perform station unit block guarantee" setting)
Data link error (not linked)
During data assurance
Module position specification error
Description
Specify 0x03E0.
Specifies the timeout time in milliseconds. (0 to 0xFFFFFFFF)
(When '0xFFFFFFFF' is specified, the function waits for an event infinitely.)
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents