- Manuals
- Brands
- Mitsubishi Electric
- Industrial PC
- MI5000 Series
- Programming Manual
Mitsubishi Electric MI5000 Series Programming Manual PDF
Summary of Content for Mitsubishi Electric MI5000 Series Programming Manual PDF
MELIPC MI5000 Series Programming Manual (Windows)
1
SAFETY PRECAUTIONS (Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle
the product correctly.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi industrial PC ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general industries. MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT. ("Prohibited Application") Prohibited Applications include, but not limited to, the use of the PRODUCT in; Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the
public could be affected if any problem or fault occurs in the PRODUCT. Railway companies or Public service purposes, and/or any other cases in which establishment of a special quality
assurance system is required by the Purchaser or End User. Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator and Escalator,
Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or other safety features which exceed the general specifications of the PRODUCTs are required. For details, please contact the Mitsubishi representative in your region.
2
CONSIDERATIONS FOR USE
For the product manufactured by Microsoft Corporation in the United States The MELIPC comes loaded with Windows 10 IoT Enterprise by Microsoft Corporation in the United States as an operating
system. Mitsubishi Electric accepts no responsibility for support or damage related to problems caused by products
manufactured by Microsoft Corporation in the United States when using the MELIPC.
For the problems or specifications of the Microsoft Corporation product, refer to the corresponding manual or consult
Microsoft Corporation.
For the Wind River Systems product The MELIPC is equipped with VxWorks, manufactured by Wind River Systems, Inc., as a real-time operating system.
Mitsubishi Electric accepts no responsibility for dealing with or damage from problems caused by products manufactured by
Wind River Systems, Inc. when using the MELIPC. For the problems or specifications of the Wind River Systems product,
refer to the corresponding manual or consult Wind River Systems, Inc.
Contact information is available on the following website.
Wind River Systems, Inc.: www.windriver.com
INTRODUCTION Thank you for purchasing the Mitsubishi Electric Industrial PC.
This manual describes the functions required for programming.
Before using the Mitsubishi Electric Industrial PC, please read this manual and the relevant manuals carefully and develop
familiarity with the functions and performance to handle the product correctly.
Please make sure that the end users read this manual.
3
C O
N T
E N
T S
CONTENTS SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CONSIDERATIONS FOR USE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
CHAPTER 1 PROGRAMMING 6
1.1 Development Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Configuration of a Development Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 C Controller Module Dedicated Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Argument specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
CHAPTER 2 FUNCTION LIST 15
2.1 C Controller Module Dedicated Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
CHAPTER 3 DETAILS OF FUNCTIONS 17
3.1 C Controller Module Dedicated Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
CCPU_FromBuf. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
CCPU_ReadDevice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
CCPU_ReadLinkDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
CCPU_ReadSharedMemory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
CCPU_ReceiveInterOSEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
CCPU_ResetDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
CCPU_SetDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
CCPU_SendInterOSEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
CCPU_ToBuf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
CCPU_WriteDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CCPU_WriteLinkDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
CCPU_WriteSharedMemory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
APPENDIX 29
Appendix 1 Function Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
INDEX 36
FUNCTION INDEX 38
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
4
RELEVANT MANUALS
e-Manual refers to the Mitsubishi FA electronic book manuals that can be browsed using a dedicated tool.
e-Manual has the following features:
Required information can be cross-searched in multiple manuals.
Other manuals can be accessed from the links in the manual.
Hardware specifications of each part can be found from the product figures.
Pages that users often browse can be bookmarked.
Manual name [manual number] Description Available form
MELIPC MI5000 Series Programming Manual
(Windows)
[SH-081934ENG](this manual)
Explains the programming specifications and dedicated function library. e-Manual
5
TERMS Unless otherwise specified, this manual uses the following terms.
Terms Description
C Controller module dedicated function A dedicated function library used for controlling a MELIPC.
Fan module An abbreviation for a fan module for Mitsubishi Electric Industrial PC, MI5FAN.
Main module An abbreviation for a main module for Mitsubishi Electric Industrial PC, MI5122.
MELIPC An abbreviation for Mitsubishi Electric Industrial PC, MI5122-VW
It comprises a main module, a power supply module, and a fan module.
MI Configurator A product name for SWnDNN-MICONF. ("n" indicates its version)
Power supply modules An abbreviation for a power supply module for Mitsubishi Electric Industrial PC, MI5A1P.
Virtual Ethernet A virtual network that connects the Windows part and VxWorks part in a MELIPC.
VxWorks A product name for a real-time operating system manufactured by Wind River Systems, Inc.
VxWorks part A device in which a real-time operating system VxWorks is embedded. The information acquired from a
programmable controller CPU or a CC-Link IE Field Network connected device via CC-Link IE Field Network can
be processed in this section.
Windows part A device in which Windows is embedded. Applications for processing complex calculations, such as data
analysis, to process various information can run in this section.
6 1 PROGRAMMING 1.1 Development Configuration
1 PROGRAMMING
A user program that is executed by the Windows part is programmed in accordance with the specifications of Windows 10 IoT
Enterprise, the operating system of the Windows part. Via the user program, it is possible to use the Windows standard API
functions and the dedicated function libraries provided by the MELIPC.
1. Install the development tools (development environment for Windows). ( Page 6 Development Configuration)
2. Create a project of the user program.
3. Configure the properties to use the C Controller module dedicated functions. ( Page 7 Configuration of a
Development Tool)
Configuration of include files
Configuration of library files
4. Create the user program.
5. Debug the user program.
6. Store the created user program on the MELIPC.
Store the created user program (.exe) in the startup folder of Windows 10 IoT Enterprise.
For the method to access the MELIPC, refer to the following.
MELIPC MI5000 Series User's Manual (Startup)
1.1 Development Configuration There are two development configurations for user programs of the MELIPC: standalone development and cross
development.
When using a cross development configuration, copy the header file (CCPUFunc.h) and library file
(CCPUFunc.lib) stored on the Windows part of the MELIPC to a local folder of the personal computer.
The following section shows the storage locations of the header and library files.
Header File: C:\MELIPC\INCLUDE
Library File: C:\MELIPC\LIB
For details on MELIPC storage configuration, refer to the following manual.
MELIPC MI5000 Series User's Manual (Startup)
Development tools The following development tools are necessary for the user program of the MELIPC.
Precautions
In the case of a standalone development configuration, the following development tools cannot be used.
Microsoft Visual C++ 2017
Development configuration Description
Standalone development
configuration
Install the development tools on the Windows part of the MELIPC, and then use them as the development
environment.
Cross development configuration Prepare a personal computer separate from the MELIPC, and then install the development tools on the personal
computer.
Connect the MELIPC and the personal computer via Ethernet, and then use it as the development environment.
Development tools Process of supported user-created applications
Microsoft Visual C++ 2015 64bit
Microsoft Visual C++ 2017
1 PROGRAMMING 1.2 Configuration of a Development Tool 7
1 1.2 Configuration of a Development Tool This section shows the configuration procedure necessary to use the C Controller module dedicated functions via the
development tools (development environment for Windows).
This is configuration procedure uses the screens of Microsoft Visual C++ 2015.
With other versions of Visual C++, the screen content is slightly different.
1. Open a program to create, and select "x64" in "Solution Platform" in the toolbar.
2. Select [View] [Solution Explorer].
3. In the "Solution Explorer" window, select a project. From the right-click shortcut menu, select [Properties].
8 1 PROGRAMMING 1.2 Configuration of a Development Tool
4. Under "Configuration" and "Platform", select the configuration and platform for which settings are to be changed.
When there are multiple configurations, they can be chosen at one time by selecting "All configurations".
When there are multiple platforms, they can be chosen at one time by selecting "All platforms".
5. Configure the include files and library files.
Page 9 Configuration of include files
Page 10 Configuration of library files
1 PROGRAMMING 1.2 Configuration of a Development Tool 9
1 Configuration of include files This section shows the configuration procedure for include files.
1. Choose "Configuration properties", and then "VC++ directory".
2. Select "Include directory", click , and then select "Edit".
3. Click , and then .
4. At the "Select directory" screen, select the folder that stores the include file (CCPUFunc.h).
Standalone development configuration: C:\MELIPC\INCLUDE
Cross development configuration: Folder to which the include file (CCPUFunc.h) was copied (Page 6 Development
Configuration)
5. Add "#include
10 1 PROGRAMMING 1.2 Configuration of a Development Tool
Configuration of library files This section shows the configuration procedure for library files.
1. Choose "Configuration properties", and then "All".
2. Select "Platform toolset", click , and then select "Visual Studio 2015 (v140)".
3. Choose "Configuration properties", "Linker", and then "Advanced settings".
1 PROGRAMMING 1.2 Configuration of a Development Tool 11
1
4. Choose "Image including safe exception handler", and then make sure that the options are not configured.
If the options are configured, remove the options.
5. Choose "Configuration properties", and then "VC++ directory".
6. Select "Library directory", click , and then select "Edit".
7. Click , and then .
12 1 PROGRAMMING 1.2 Configuration of a Development Tool
8. At the "Select directory" screen, select the folder that stores the library file (CCPUFunc.lib).
Standalone development configuration: C:\MELIPC\LIB
Cross development configuration: Folder to which the library file (CCPUFunc.lib) was copied (Page 6 Development
Configuration)
9. Open the program to be created, and select [Project], and then [Properties].
10.Choose "Configuration properties", "Linker", and then "Enter".
11. Select "Add dependent file", click , and then select "Edit".
12. In the dialog box of the "Add dependent file" screen, enter "CCPUFunc.lib".
1 PROGRAMMING 1.3 C Controller Module Dedicated Functions 13
1 1.3 C Controller Module Dedicated Functions C Controller dedicated functions of the dedicated function libraries are used to control C Controller module.
For the configuration of the dedicated function library, refer to the following manual.
MELIPC MI5000 Series User's Manual (Startup)
The following section shows the argument specifications of the C Controller module dedicated functions and considerations
when creating user programs.
Argument specifications This section shows the argument specifications of the C Controller module dedicated functions.
Device type For the device types to be specified by the C Controller module dedicated functions, either a code or a device name can be
specified.
Device names are defined in the include files (CCPUFunc.h).
Device type for own station access The following table shows the device types that can be specified by the argument [Device type (sDevType)].
Target functions
Page 18 CCPU_ReadDevice
Page 22 CCPU_ResetDevice
Page 23 CCPU_SetDevice
Page 26 CCPU_WriteDevice
Device types for accessing CC-Link IE Field Networks The following table shows the device types that can be specified by the argument [Device type (sDevType)].
*1 To access direct link registers (RWw, RWr), specify the device numbers as follows. RWw: 0H to 1FFFH RWr: 2000H to 3FFFH
Target functions
Page 19 CCPU_ReadLinkDevice
Page 27 CCPU_WriteLinkDevice
Device name (device) Code Device name specification
Decimal Hexadecimal
Internal relay (M) 4 4H Dev_CCPU_M
Special relay (SM) 5 5H Dev_CCPU_SM
Data register (D) 13 DH Dev_CCPU_D
Special register (SD) 14 EH Dev_CCPU_SD
Link relay (B) 23 17H Dev_CCPU_B
Link register (W) 24 18H Dev_CCPU_W
File register (ZR) 220 DCH Dev_CCPU_ZR
Device name (device) Code Device name specification
Decimal Hexadecimal
Direct link input (RX) 1000 3E8H Dev_LX
Direct link output (RY) 2000 7D0H Dev_LY
Direct link register (RWr, RWw)*1 24000 5DC0H Dev_LW
Direct link special relay (SB) 25000 61A8H Dev_LSB
Direct link special register (SW) 28000 6D60H Dev_LSW
14 1 PROGRAMMING 1.3 C Controller Module Dedicated Functions
Considerations This section shows the considerations when using the C Controller module dedicated functions.
Execution of the C Controller module dedicated functions When the following C controller module dedicated functions are run on the Windows part, the actual processing is carried out
on the VxWorks part. Because data is sent and received between the Windows part and VxWorks part every time the function
is executed, it takes longer than when running the same process on the VxWorks part.
CCPU_FromBuf
CCPU_ReadDevice
CCPU_ReadLinkDevice
CCPU_ResetDevice
CCPU_SetDevice
CCPU_ToBuf
CCPU_WriteDevice
CCPU_WriteLinkDevice
When these functions return an error code (258) or the execution of the function is not completed, make sure that the
VxWorks part is running normally.
Accessing programmable controller devices/buffer memory If the data size to be read or written is 1,921 words or greater when executing the following C controller module dedicated
functions in the Windows part, reading or writing is split over two or more times.
CCPU_FromBuf
CCPU_ReadDevice
CCPU_ReadLinkDevice
CCPU_ToBuf
CCPU_WriteDevice
CCPU_WriteLinkDevice
If the same programmable controller device/buffer memory is accessed from the Windows part and VxWorks part at the same
time at this time, the data inconsistency may occur on the Windows part.
To prevent data inconsistency, use exclusive control so that the same programmable controller device/buffer memory is not
accessed at the same time from the Windows part and VxWorks part.
2 FUNCTION LIST 2.1 C Controller Module Dedicated Functions 15
2
2 FUNCTION LIST
This chapter shows the functions that can be used for a MELIPC.
2.1 C Controller Module Dedicated Functions The C Controller module dedicated functions are as listed below.
Function name Function Reference
CCPU_FromBuf Reads data from the buffer memory of a MELIPC. Page 17 CCPU_FromBuf
CCPU_ReadDevice Reads data from the internal user devices and internal system devices of a
MELIPC.
Page 18 CCPU_ReadDevice
CCPU_ReadLinkDevice Reads data from link devices of CC-Link IE Field Network. Page 19 CCPU_ReadLinkDevice
CCPU_ReadSharedMemory Reads data from the shared memory of a MELIPC. Page 20 CCPU_ReadSharedMemory
CCPU_ResetDevice Resets internal user devices and internal system devices (bit devices) of a
MELIPC.
Page 22 CCPU_ResetDevice
CCPU_SetDevice Sets internal user devices and internal system devices (bit devices) of a
MELIPC.
Page 23 CCPU_SetDevice
CCPU_SendInterOSEvent Notifies inter OS events. Page 24 CCPU_SendInterOSEvent
CCPU_ToBuf Writes data to the buffer memory of a MELIPC. Page 25 CCPU_ToBuf
CCPU_ReceiveInterOSEvent Waits for notification of inter OS events. Page 21 CCPU_ReceiveInterOSEvent
CCPU_WriteDevice Writes data to internal user devices and internal system devices of a
MELIPC.
Page 26 CCPU_WriteDevice
CCPU_WriteLinkDevice Writes data to link devices of CC-Link IE Field Network. Page 27 CCPU_WriteLinkDevice
CCPU_WriteSharedMemory Writes data to the shared memory of a MELIPC. Page 28 CCPU_WriteSharedMemory
16 2 FUNCTION LIST 2.1 C Controller Module Dedicated Functions
MEMO
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 17
3
3 DETAILS OF FUNCTIONS
This chapter shows the details on the functions used for MELIPC MI5000 series.
3.1 C Controller Module Dedicated Functions This section shows the details of C Controller module dedicated functions.
CCPU_FromBuf Reads data from the buffer memory of a MELIPC.
Format short CCPU_FromBuf(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Description Reads data of the data size (ulSize) from an address moved by the amount of the offset (ulOffset) from the start of the
buffer memory, and then stores it in the data storage destination (pusDataBuf).
When "0" was specified for the data size (ulSize), a memory size specification error occurs.
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
If 1,921 words or greater is specified for the data size, data inconsistency may occur during reading. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 25 CCPU_ToBuf
Argument Name Description IN/OUT
usIoNo Module position Specify 0x03E0. IN
ulOffset Offset Specify the offset in word units. IN
ulSize Data size Specify the read data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of read data. OUT
ulBufSize Data storage destination size Specify the data storage destination size in word units. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-208(FF30H) Offset error
-209(FF2FH) Memory size specification error
-210(FF2EH) Read area size error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
-28632(9028H) Module position specification error
18 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_ReadDevice Reads data from the internal user devices and internal system devices of a MELIPC.
Format short CCPU_ReadDevice(short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Description This function reads data in a device after one specified to the device type (sDevType) and the start device number
(ulDevNo) for the size specified to the data size (ulSize), and stores it in the data storage destination (pusDataBuf).
When "0" was specified for the data size (ulSize), a specification size error occurs.
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
If 1,921 words or greater is specified for the data size, data inconsistency may occur during reading. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 26 CCPU_WriteDevice
Argument Name Description IN/OUT
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Start device number Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
IN
ulSize Data size Specify the read data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of read data. OUT
ulBufSize Data storage destination size Specify the data storage destination size in word units. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-210(FF2EH) Read area size error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-255(FF01H) Size specification error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 19
3
CCPU_ReadLinkDevice Reads data from link devices of CC-Link IE Field Network.
Format short CCPU_ReadLinkDevice(unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
Argument
Description Reads data of the device specified to the device type (sDevType) and the start device number (ulDevNo) of the CC-Link IE
field network and later devices for the size specified to the data size (ulSize), and stores it in the data storage destination
(pusDataBuf).
When "0" was specified for the data size (ulSize), a specification size error occurs.
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
If 1,921 words or greater is specified for the data size, data inconsistency may occur during reading. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 27 CCPU_WriteLinkDevice
Argument Name Description IN/OUT
usIoNo Module position Specify 0x03E0. IN
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Start device number Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
IN
ulSize Data size Specify the read data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of read data. OUT
ulBufSize Data storage destination size Specify the data storage destination size in word units. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-210(FF2EH) Read area size error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-255(FF01H) Size specification error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
-28632(9028H) Module position specification error
20 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_ReadSharedMemory Reads data from the shared memory of a MELIPC.
Format short CCPU_ReadSharedMemory(unsigned long ulOffset, unsigned long ulSize, unsigned char* pucDataBuf, unsigned long
ulBufSize)
Argument
Description Reads data of the data size (ulSize) from an address moved by the amount of the offset (ulOffset) from the start of the
shared memory, and then stores it in the data storage destination (pusDataBuf).
The size of the shared memory area is 256 MB (268,435,456 bytes (10000000H)). Specify the offset (ulOffset) and data
size (ulSize) so that data in the shared memory area is read.
When "0" was specified for the data size (ulSize), a memory size specification error occurs.
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 28 CCPU_WriteSharedMemory
Argument Name Description IN/OUT
ulOffset Offset Specify the offset in byte units. IN
ulSize Data size Specify the read data size in byte units. IN
pucDataBuf Data storage destination Specify the storage destination of read data. OUT
ulBufSize Data storage destination size Specify the data storage destination size in byte units. IN
Return value Description
0(0000H) Normal
-208(FF30H) Offset error
-209(FF2FH) Memory size specification error
-210(FF2EH) Read area size error
-264(FEF8H) Pointer error
-375(FE89H) Shared memory access error
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 21
3
CCPU_ReceiveInterOSEvent Waits for notification of inter OS events.
Format short CCPU_ReceiveInterOSEvent(short sOsEventNo, unsigned long ulTimeout)
Argument
Description Waits for notification of the inter OS event specified by the inter OS event number (sOsEventNo).
When an inter OS event was already reported when this function was executed, the user application restarts soon after the
inter OS event wait status.
When the same inter OS event was reported multiple times when this function was executed, the user application
processes them as a single inter OS event notification.
When an inter OS event was reported when multiple tasks were waiting for the same inter OS event notification, only the
task that executed this function first receives the notification and restarts execution.
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Argument Name Description IN/OUT
sOsEventNo Inter OS event number Specify 1.
(If a value other than "1" is specified, an error is returned.
IN
ulTimeout Timeout Specify the timeout value in milliseconds. (0H to FFFFFFFFH)
(When FFFFFFFFH is specified, the function waits for an event infinitely.)
IN
Return value Description
0(0000H) Normal
-231(FF19H) Event timeout error
-234(FF16H) Event wait error
-366(FE92H) Event number specification error
22 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_ResetDevice Resets internal user devices and internal system devices (bit devices) of a MELIPC.
Format short CCPU_ResetDevice(short sDevType, unsigned long ulDevNo)
Argument
Description Resets (turns OFF) the bit device of the MELIPC specified to the device type (sDevType) and device number (ulDevNo).
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 23 CCPU_SetDevice
Argument Name Description IN/OUT
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Device number Specify a device number. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-28158(9202H) WDT error
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 23
3
CCPU_SetDevice Sets internal user devices and internal system devices (bit devices) of a MELIPC.
Format short CCPU_SetDevice(short sDevType, unsigned long ulDevNo)
Argument
Description Sets (turns ON) the bit device of the MELIPC specified to the device type (sDevType) and the device number (ulDevNo).
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 22 CCPU_ResetDevice
Argument Name Description IN/OUT
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Device number Specify a device number. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-28158(9202H) WDT error
24 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_SendInterOSEvent Notifies inter OS events.
Format short CCPU_SendInterOSEvent(short sOsEventNo)
Argument
Description Sends notice of the inter OS event specified by the inter OS event number (sOsEventNo) to the VxWorks part from Windows
part.
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Argument Name Description IN/OUT
sOsEventNo Inter OS event number Specify 1.
(If a value other than "1" is specified, an error is returned.
IN
Return value Description
0(0000H) Normal
-366(FE92H) Event number invalid
-376(FE88H) Inter OS event notification error
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 25
3
CCPU_ToBuf Writes data to the buffer memory of a MELIPC.
Format short CCPU_ToBuf(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Description Writes data of the data storage destination (pusDataBuf) of the data size (ulSize) to the address moved by the amount of
the offset (ulOffset) from the start of the buffer memory.
When "0" was specified for the data size (ulSize), a memory size specification error occurs.
If this function is executed when the operating status of the MELIPC is not RUN, a STOP error occurs.
Precautions
If 1,921 words or greater is specified for the data size, data inconsistency may occur during writing. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 17 CCPU_FromBuf
Argument Name Description IN/OUT
usIoNo Module position Specify 0x03E0. IN
ulOffset Offset Specify the offset in word units. IN
ulSize Data size Specify the write data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of write data. IN
ulBufSize Data storage destination size Specify '0'. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-208(FF30H) Offset error
-209(FF2FH) Memory size specification error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
-28632(9028H) Module position specification error
-28640(9020H) STOP error
26 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_WriteDevice Writes data to internal user devices and internal system devices of a MELIPC.
Format short CCPU_WriteDevice(short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Description This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to a
device after one specified to the device type (sDevType) and the start device number (ulDevNo).
When "0" was specified for the data size (ulSize), a specification size error occurs.
Precautions
If 1,921 words or greater is specified for the data size, data inconsistency may occur during writing. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 18 CCPU_ReadDevice
Argument Name Description IN/OUT
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Start device number Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
IN
ulSize Data size Specify the write data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of write data. IN
ulBufSize Data storage destination size Specify '0'. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-255(FF01H) Size specification error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions 27
3
CCPU_WriteLinkDevice Writes data to link devices of CC-Link IE Field Network.
Format short CCPU_WriteLinkDevice(unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
Argument
Description Writes data of the data storage destination (pusDataBuf) of the size specified to the data size (ulSize) to the device
specified by the device type (sDevType) and the start device number (ulDevNo) of the CC-Link IE field network and later
devices.
When "0" was specified for the data size (ulSize), a specification size error occurs.
Precautions
If 1,921 words or greater is specified for the data size, data inconsistency may occur during writing. ( Page 14
Accessing programmable controller devices/buffer memory)
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 19 CCPU_ReadLinkDevice
Argument Name Description IN/OUT
usIoNo Module position Specify 0x03E0. IN
sDevType Device type Specify the device type.
Page 13 Device type
IN
ulDevNo Start device number Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
IN
ulSize Data size Specify the write data size in word units. IN
pusDataBuf Data storage destination Specify the storage destination of write data. IN
ulBufSize Data storage destination size Specify '0'. IN
Return value Description
0(0000H) Normal
258(0102H) Processing request transmission error
-253(FF03H) Device number specification error
-254(FF02H) Device type specification error
-255(FF01H) Size specification error
-264(FEF8H) Pointer error
-28158(9202H) WDT error
-28632(9028H) Module position specification error
28 3 DETAILS OF FUNCTIONS 3.1 C Controller Module Dedicated Functions
CCPU_WriteSharedMemory Writes data to the shared memory of a MELIPC.
Format short CCPU_WriteSharedMemory(unsigned long ulOffset, unsigned long ulSize, unsigned char* pucDataBuf)
Argument
Description Writes data of the data storage destination (pusDataBuf) of the data size (ulSize) to the address moved by the amount of
the offset (ulOffset) from the start of the shared memory.
The size of the shared memory area is 256 MB (268,435,456 bytes (10000000H)). Specify the offset (ulOffset) and data
size (ulSize) so that data in the shared memory area is written.
When "0" was specified for the data size (ulSize), a memory size specification error occurs.
Return value
For details on error codes, refer to the following section.
Page 29 Function Error Codes
Relevant function Page 20 CCPU_ReadSharedMemory
Argument Name Description IN/OUT
ulOffset Offset Specify the offset in word units. IN
ulSize Data size Specify the write data size in byte units. IN
pucDataBuf Data storage destination Specify the storage destination of write data. IN
Return value Description
0(0000H) Normal
-208(FF30H) Offset error
-209(FF2FH) Memory size specification error
-227(FF1DH) Control code send error
-264(FEF8H) Pointer error
-375(FE89H) Shared memory access error
APPX Appendix 1 Function Error Codes 29
A
APPENDIX Appendix 1 Function Error Codes This section shows the codes for errors occurred in the dedicated function library and their corrective actions.
Error code Description Corrective action
Decimal Hexadec imal
1 0001H Driver not started
The driver is not started.
Check the channel number.
Correct the error that occurred when the driver is started.
Check the status of the system drive of the MELIPC.
Check if the operating system is running normally.
2 0002H Timeout error
A timeout occurred while waiting for the response.
The module specified as the communication target is not
supported.
Review the operating status and mounting condition of the access
target station.
Retry on the user program.
Increase the timeout value of MELSEC data link function.
Check if the module specified as the communication target is
supported.
66 0042H Already opened error
The specified channel has already been opened.
The open processing is required only one time.
(If this error occurred, the path of the correct channel will be returned
to the argument.)
67 0043H Already closed error
The specified channel has already been closed.
The close processing is required only one time.
69 0045H Unsupported function performing error
An unsupported function in the target station was
performed.
Check the path of the channel, network number, and station
number.
Check if the function performed in the target station is supported.
70 0046H Station number error
The specified station number is incorrect.
The request for other stations was issued to the own
station, or the network number was not '0' even though
the station number was the own station (FFH).
Correct the network number and station number specified in the user
program.
77 004DH Memory reservation error
Resource shortage error
Task over error
Reserving sufficient memory failed. Or, there are too many
tasks using the dedicated function library.
The memory may be insufficient. End other running tasks.
Alternatively, reduce the excess size.
Reduce the number of tasks using the dedicated function library
and retry the operation.
Review the size or number specified to the arguments of the user
program.
Check if the MELIPC is running normally.
Reset the MELIPC, or turn the power OFF and ON.
102 0066H Data send error
Restart error
Sending data failed, or an attempt was made to send data
during restart.
Retry.
Retry after completion of the restart.
Check if the MELIPC is running normally.
Reset the MELIPC.
103 0067H Reception error
Receiving data failed.
Retry.
Check if the MELIPC is running normally.
Reset the MELIPC, or turn the power OFF and ON.
130 0082H Device number error
The specified device number is out of range.
The specified bit device number is not a multiple of 8.
Check the device number.
131 0083H Number of device points error
The specified number of device points is out of range.
The specified number of bit device points is not a multiple
of 8.
Check the specified number of device points.
258 0102H Processing request transmission error
An error occurred when processing execution was
requested for the VxWorks part.
Make sure that the VxWorks part is operating normally.
Reset the MELIPC.
16384 to
20479
4000H to
4FFFH
Errors detected in the access target CPU module Refer to the user's manual of the access target CPU module.
30 APPX Appendix 1 Function Error Codes
16480 4060H Online registration error
An online debugging function (online change, etc.) or
remote operation is being executed by another engineering
tool or another CPU module.
Complete the operation of the other engineering tool or other CPU
module, and then execute it again.
If operation of the other engineering tool or other CPU module is
suspended, execute the operation again using the other
engineering tool or other CPU module so that it completes
normally, and then execute again.
-201 FF37H Module identification error
The specified module identification is unavailable.
Check the specified module identification.
-203 FF35H I/O signal error
The specified I/O signal is out of range.
Check the specified I/O signal.
-204 FF34H I/O access size error
The specified access size of I/O signal is out of range.
Check the specified access size of I/O signal (I/O number and read/
write size in words).
-208 FF30H Offset error
The specified offset is out of range.
An AnS series module (buffer memory) was accessed.
Check the specified offset.
-209 FF2FH Memory size specification error
The specified offset and its size are out of range.
The address of data storage buffer pointer is 0.
The specified size is 0.
Check the specified memory size.
Check the offset and its size.
Check the specified data storage buffer pointer.
-210 FF2EH Read area size error
The read area size is smaller than the read size.
Check the read size.
Check the read area size.
-211 FF2DH Time setting error
The specified time is out of range.
Check the specified time.
-217 FF27H Driver not started
The driver is not started.
Check if the driver is started.
-220 FF24H WDT type error
The specified WDT type is out of range.
Check the specified WDT type.
-223 FF21H Memory reservation error
Reserving sufficient memory failed.
Check if sufficient memory is available.
-224 FF20H LED setting value error
The specified LED setting value is out of range.
Check the specified LED setting value.
-225 FF1FH Event number specification error
The specified event number is out of range or duplicated.
Check the specified event number.
-227 FF1DH Control code send error
Sending control code failed.
Retry.
Check if the MELIPC is running normally.
Reset the MELIPC.
-231 FF19H Event timeout error
A timeout occurred while waiting for an event.
Increase the timeout time.
Check if the interrupt event number (interrupt pointer number) is
set correctly.
-232 FF18H CPU number specification error
The specified CPU number is incorrect.
Check the value of the specified CPU number.
-234 FF16H Event wait error
An error other than timeout occurred while the function waits
for the event.
Check if a program is forcibly being terminated.
Check if the MELIPC is running normally.
Reset the MELIPC, or turn the power OFF and ON.
-235 FF15H Number of event settings specification error
The specified number of event settings is out of range.
Check the number of specified event settings.
-236 FF14H Remote operation specification code error
The remote operation specification code is out of range.
Check the specified remote operation specification code.
-237 FF13H Detailed information character string specification error
The length of the specified character string was out of range
or characters which cannot be specified was specified.
Correct the length of the specified character string or character
string data.
-238 FF12H Event log registration error
Registering an event log failed.
Reset the MELIPC, or turn the power OFF and ON.
-240 FF10H Clock data incorrect error
The clock data to be set or the read clock data is incorrect.
Check the clock data to be set.
If this error occurs when reading the clock data, set the data
again.
-241 FF0FH Cycle specification error
The specified cycle is out of range.
The cycle was set even when it had already been set.
Check the specified cycle.
Check if the cycle has been already set.
-242 FF0EH Synchronization type specification error
The specified synchronization type is out of range.
Check the specified synchronization type.
Error code Description Corrective action
Decimal Hexadec imal
APPX Appendix 1 Function Error Codes 31
A
-245 FF0BH Not executable during interrupt service routine
A function was executed from an interrupt service routine
without specifying "1" (ISR) to the call source flag.
Specify "1" to the call source flag (ISR) and execute the function
again.
-246 FF0AH Timer event registration error
Registering a timer event failed.
Retry.
Check if the MELIPC is running normally.
Reset the MELIPC, or turn the power OFF and ON.
-253 FF03H Device number specification error
The specified device number is out of range.
The specified bit device number is not a multiple of 16.
Correct the start device number of the specified device.
-254 FF02H Device type specification error
The specified device type is unavailable.
Check the specified device type.
-255 FF01H Size specification error
The specified number of words is out of range.
The specified size is 0.
Correct the specified start device number and number of words.
-256 FF00H Response completion wait timeout error
A timeout occurred while waiting for completion of a
response of a processing requested to other CPU modules.
Increase the timeout time specified to the argument.
Review and correct the user program (including other tasks which
execute motion CPU interaction functions).
Review the program used for the request destination CPU module
and correct it to perform the processing requested from other CPU
modules, for example, by adding the WAIT instruction.
-257 FEFFH Interrupt event type specification error
The value specified to the interrupt event type is out of
range.
Check the specified value.
-258 FEFEH Interrupt pointer number specification error
The value specified as the interrupt pointer number is out of
range.
Check the specified value.
-259 FEFDH Interrupt service routine unregistered error
The processing was not registered when enabling the
processing corresponding to an event (interrupt).
Register the processing for the event (interrupt) and perform the
operation again.
-263 FEF9H Caller flag error
The value specified to the caller flag is out of range.
Review the specified value, and specify a value within the range.
-264 FEF8H Pointer error
The address of the specified pointer is incorrect.
Check the address of the specified pointer.
-265 FEF7H Target system specification error
The value specified in the target system is out of range.
Check the specified value.
-266 FEF6H WDT start error
The user WDT is being started.
Check the user WDT settings.
-267 FEF5H Authentication error
The username or password is incorrect.
Check the specified username and password.
-268 FEF4H Security error
The setting content of the security function is incorrect.
Check the settings of the specified security function.
-279 FEE9H File specification error
The specified file does not exist.
A file with the same name already exists. (The existing file
is overwrite-protected.)
A file cannot be created in the specified path, or the
specified path does not exist.
Check the specified file.
Check if the existing file is overwrite-protected.
Check if no files exist with the same name as the file to be
created.
-280 FEE8H File access error
The specified file is in use.
Check if the specified file is in use.
-288 FEE0H Individual identification information read error
Reading individual identification information failed.
Check if the MELIPC is running normally.
Reset the MELIPC, or turn the power OFF and ON.
-289 FEDFH Dot matrix LED Display mode error
The dot matrix LED is in standard mode, but a setting other
than "User" is selected for the Display mode.
Using the menu operation, select "User" as the Display mode, and
then close the menu.
-290 FEDEH Dot matrix LED display status error
The dot matrix LED is not in normal mode.
Using the menu operation, select "User" as the Display mode, and
then close the menu.
-292 FEDCH User drive shutdown error
The shutdown processing of the user drive failed.
Check if files on the user drive are being accessed.
Check if all files on the user drive have been closed.
-295 FED9H Selected operation is being checked
This function was executed while checking the selected
operation.
Execute the function after checking the operation.
Error code Description Corrective action
Decimal Hexadec imal
32 APPX Appendix 1 Function Error Codes
-296 FED8H Setting data size error
The setting data size is out of range.
Check the setting data size.
-328 FEB8H Group number error
The specified group number is out of range.
Check the specified group number.
-329 FEB7H Link time specification error
The specified link scan time is out of range.
Check the specified link scan time.
-330 FEB6H Number of detections of disconnected slave stations error
The specified number of detections of disconnected slave
stations is out of range.
Check the specified number of detections of disconnected slave
stations.
-331 FEB5H CC-Link IE Field Network Basic parameter unset
The function was executed without setting CC-Link IE Field
Network Basic parameters.
Set the CC-Link IE Field Network Basic parameters with MI
Configurator.
-332 FEB4H Slave station timeout time specification range error Check the timeout time for the disconnection detection of the
specified slave station.
-335 FEB1H Link scan data assurance wait time timed out
The specified data assurance wait time is elapsed.
Increase the timeout time specified to the argument.
-336 FEB0H Slave station number specification error
The specified slave station number does not exist in the
slave station.
Check the specified slave station number.
-361 FE97H Data assurance ended error
Ending of data assurance was attempted when data
assurance was not being performed.
Make sure that data assurance is ended only when the user program
is performing data assurance.
-362 FE96H CC-Link IE Field Network hardware error
Data assurance of the CC-Link IE field network cannot be
started due to a hardware error.
Check if the MELIPC is running normally.
Reset the MELIPC.
Retry.
-366 FE92H Event number specification error
The specified event number is out of range.
Check the specified event number.
-367 FE91H Data assurance start timeout error
A timeout occurred at the start of data assurance.
Increase the timeout time of the argument to be specified by the
user program.
Retry.
-368 FE90H Data assurance setting error
There was an attempt to start data assurance when "Station
unit block guarantee" was "Disable" in the parameters of the
CC-Link IE Field Network.
In the parameters of the CC-Link IE Field Network, change "Station
unit block guarantee" to "Enable".
-369 FE8FH Data link error
Starting of data assurance was attempted when there was
no data linking.
Restart the date link.
-371 FE8DH Data assurance running error
Starting of data assurance was attempted when data
assurance was already being performed.
Make sure that data assurance is not started in two instances by the
user program.
-372 FE8CH Timeout value invalid
The specified timeout value is out of range for the OS
linking function.
Check the specified timeout value.
-373 FE8BH Timeout error
A timeout occurred during inter OS shared semaphore
acquisition.
Consider the synchronization, or the time required for processing by
a target under exclusive control, and then set a sufficiently long
timeout value.
-374 FE8AH Windows part forced restart not permitted
There was an attempt by a C Controller module dedicated
function to perform a Windows part forced restart when the
"Windows part forced restart" setting in Basic parameters
was "Disable".
Configure "Enable" for the "Windows part forced restart" setting in
the basic parameters.
-375 FE89H Shared memory access error
Access of the shared memory of the OS linking function has
failed.
Check if the MELIPC is running normally.
Reset the MELIPC.
Retry.
-376 FE88H Inter OS event notification error
Notification of an inter-OS event of the OS linking function
has failed.
Check if the MELIPC is running normally.
Reset the MELIPC.
Retry.
-377 FE87H Data assurance running by other task error
Ending of data assurance was attempted when data
assurance was being performed by another task.
Revise the user program so that the same task starts and ends data
assurance.
Error code Description Corrective action
Decimal Hexadec imal
APPX Appendix 1 Function Error Codes 33
A
-25056 9E20H Processing code error
A request which cannot be performed in the request
destination was issued.
Check the network number and station number of the request
destination.
-26334 9922H Reset error
Another task using the same channel was reset while
accessing another station.
A reset operation was performed while monitoring with MI
Configurator.
Retry.
Monitor again.
-26336 9920H Routing request error for unsupported station
A routing request to another loop was issued to a station
which does not support the routing function.
Check the settings of routing parameters.
-28150 920AH Device access error during data link stop
The devices (RX, RY, RWw, and RWr) of the own station
were accessed when the data link was not performed.
Check the specified device start number and size, or the device
range of the parameter for the master station.
Restart the date link.
(Note that data is written/read despite this error, however, the
contents of the data will not be guaranteed.)
-28151 9209H Abnormal data reception error
Abnormal response data received.
Check if an error occurred in the request destination CPU module or
link module.
(If the status is normal, resend the request.)
-28158 9202H WDT error
WDT (system/user) error occurred.
Reset the MELIPC, or turn the power OFF and ON.
-28410 9106H Target CPU busy error
The target CPU module is busy.
Add the processing to wait for the completion of the target
operation or to retry the operation in the user program.
Increase the timeout time specified to the argument in the user
program.
-28412 9104H Target CPU unsupported error
An unsupported request was issued to the target CPU
module.
Change the target CPU module specified in the user program.
-28413 9103H Target CPU down error
The target CPU module is down.
Check the operating status of the target CPU module. In case of an
error, troubleshoot while following the user manual of the target CPU
module.
-28414 9102H Target CPU abnormal start error
A request was issued to the CPU module which is not
operating normally.
Check the operating status of the target CPU module. In case of an
error, troubleshoot while following the user manual of the target CPU
module.
-28415 9101H Target CPU major error
A request was issued to the CPU module in which a major
error occurred.
Check the operating status of the target CPU module. In case of an
error, troubleshoot while following the user manual of the target CPU
module.
-28416 9100H Target CPU mounting error
A request was issued by specifying the CPU number in the
state where no CPU module is mounted.
Check the mounting condition of the target CPU module.
Change the target CPU number specified in the user program.
-28622 9032H Target module busy error
The target module is busy.
The own station channel or the target station storage
channel is used for other instructions, or multiple identical
instructions are being executed.
Add the processing to wait for the completion of the target operation
or to retry the operation in the user program.
-28624 9030H Function unsupported error
Any processing was performed to the module which does
not support the station-based block data assurance
function for cyclic data.
Any processing was performed to the module on which
the station-based block data assurance function for cyclic
data is not set.
An attempt was made to access a module which was not
controlled by the host CPU module.
Check if the target CC-Link module supports the station-based
block data assurance function for cyclic data.
Check if the station-based block data assurance function for cyclic
data is set for the target module.
Check if the control CPU of the target module is the host CPU
module.
-28626 902EH Control data setting value out of range error
The specified control data is out of range.
Check the value set to the control data.
-28627 902DH Transient unsupported error
Transient transmission cannot be performed via the
specified communication route and target. (Another station
was specified when the station number of the own station is
'64' during CC-Link communication.)
Check the communication route and target which support the
transient request.
Change the station number of the own station.
-28628 902CH Pointer address specification error
An incorrect address was specified to the argument pointer.
Check the address of the specified pointer.
Error code Description Corrective action
Decimal Hexadec imal
34 APPX Appendix 1 Function Error Codes
-28629 902BH WDT not started error
An attempt was made to reset a WDT before starting it.
Reset the WDT after starting it.
-28630 902AH WDT startup error
An attempt was made to start WDT while the other WDT is
starting up.
Start the WDT after stopping the WDT which is starting up.
-28631 9029H Buffer access range error
The specified offset is out of range.
The specified offset and its size are out of range.
Check the specified offset.
Check the specified buffer size.
Check the offset and its size.
-28632 9028H I/O number error
The specified I/O number is out of range.
No accessible module is mounted on the specified I/O
number.
Check the specified I/O number.
-28640 9020H STOP error
The output or buffer memory writing was requested when
the operating status of the CPU module is STOP.
Change the operation status of the CPU module to RUN.
-28653 9013H I/O assignment error
An attempt was made to read the input value (X) from an
output module.
An attempt was made to write the output value (Y) to an
input module.
An attempt was made to read the output value (Y) from
an input module.
Check the input number (X) and output number (Y).
-28660 900CH Access size error
The specified size is out of range.
Review the specified offset and size.
-28661 900BH Inaccessible error
Inaccessible area was specified.
Review the specified offset and size.
-28662 900AH CPU number specification error
The specified CPU number is out of range or unavailable.
Review the specified CPU number.
Check the operating status of the specified CPU module.
-28664 9008H Data send area occupied Retry.
-28665 9007H No registration data error Reset the MELIPC, or turn the power OFF and ON.
-28666 9006H Data length error Reset the MELIPC, or turn the power OFF and ON.
-28668 9004H Reply data stored error Resend the request.
-28669 9003H Area number error
The specified area number, offset address, and mode are
out of range.
Review the area number, offset address, and mode.
-28671 9001H Module identification error Review the parameters.
Check the specified module.
Reset the MELIPC, or turn the power OFF and ON.
-28672 9000H Processing code error Reset the MELIPC, or turn the power OFF and ON.
Error code Description Corrective action
Decimal Hexadec imal
APPX Appendix 1 Function Error Codes 35
A
MEMO
36
INDEX
C
Cross development configuration . . . . . . . . . . . . . 6
D
Development tool . . . . . . . . . . . . . . . . . . . . . . . . 6 Device type . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
H
Header file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
I
Include file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
L
Library file . . . . . . . . . . . . . . . . . . . . . . . . . . . 6,10
S
Standalone development configuration . . . . . . . . . 6
I
37
MEMO
38
FUNCTION INDEX
C
CCPU_FromBuf . . . . . . . . . . . . . . . . . . . . . . . . 17 CCPU_ReadDevice . . . . . . . . . . . . . . . . . . . . . 18 CCPU_ReadLinkDevice. . . . . . . . . . . . . . . . . . . 19 CCPU_ReadSharedMemory . . . . . . . . . . . . . . . 20 CCPU_ReceiveInterOSEvent . . . . . . . . . . . . . . . 21 CCPU_ResetDevice . . . . . . . . . . . . . . . . . . . . . 22 CCPU_SendInterOSEvent . . . . . . . . . . . . . . . . . 24 CCPU_SetDevice . . . . . . . . . . . . . . . . . . . . . . . 23 CCPU_ToBuf . . . . . . . . . . . . . . . . . . . . . . . . . . 25 CCPU_WriteDevice. . . . . . . . . . . . . . . . . . . . . . 26 CCPU_WriteLinkDevice. . . . . . . . . . . . . . . . . . . 27 CCPU_WriteSharedMemory . . . . . . . . . . . . . . . 28
I
39
MEMO
40
REVISIONS *The manual number is given on the bottom left of the back cover.
Japanese manual number: SH-081933-C
2018MITSUBISHI ELECTRIC CORPORATION
Revision date *Manual number Description
May 2018 SH(NA)-081934ENG-A First edition
May 2018 SH(NA)-081934ENG-B Partial correction
This manual confers no industrial property rights of any kind nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible
for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
41
WARRANTY Please confirm the following product warranty details before using this product.
1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc., which
follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product.
(2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused
by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions
or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided.
4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced.
5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage.
6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user.
2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued.
3. Overseas service Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ.
4. Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation to: (1) Damages caused by any cause found not to be the responsibility of Mitsubishi. (2) Loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products. (3) Special damages and secondary damages whether foreseeable or not, compensation for accidents, and
compensation for damages to products other than Mitsubishi products. (4) Replacement by the user, maintenance of on-site equipment, start-up test run and other tasks.
5. Changes in product specifications The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice.
42
TRADEMARKS Ethernet is a registered trademark of Fuji Xerox Co., Ltd. in Japan.
Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
Unicode is either a registered trademark or a trademark of Unicode, Inc. in the United States and other countries.
The company names, system names and product names mentioned in this manual are either registered trademarks or
trademarks of their respective companies.
In some cases, trademark symbols such as '' or '' are not specified in this manual.
Related manuals for Mitsubishi Electric MI5000 Series Programming Manual
Manualsnet FAQs
If you want to find out how the MI5000 Series Mitsubishi Electric works, you can view and download the Mitsubishi Electric MI5000 Series Programming Manual on the Manualsnet website.
Yes, we have the Programming Manual for Mitsubishi Electric MI5000 Series as well as other Mitsubishi Electric manuals. All you need to do is to use our search bar and find the user manual that you are looking for.
The Programming Manual should include all the details that are needed to use a Mitsubishi Electric MI5000 Series. Full manuals and user guide PDFs can be downloaded from Manualsnet.com.
The best way to navigate the Mitsubishi Electric MI5000 Series Programming Manual is by checking the Table of Contents at the top of the page where available. This allows you to navigate a manual by jumping to the section you are looking for.
This Mitsubishi Electric MI5000 Series Programming Manual consists of sections like Table of Contents, to name a few. For easier navigation, use the Table of Contents in the upper left corner.
You can download Mitsubishi Electric MI5000 Series Programming Manual free of charge simply by clicking the “download” button in the upper right corner of any manuals page. This feature allows you to download any manual in a couple of seconds and is generally in PDF format. You can also save a manual for later by adding it to your saved documents in the user profile.
To be able to print Mitsubishi Electric MI5000 Series Programming Manual, simply download the document to your computer. Once downloaded, open the PDF file and print the Mitsubishi Electric MI5000 Series Programming Manual as you would any other document. This can usually be achieved by clicking on “File” and then “Print” from the menu bar.