MX Component Version 5 Reference Manual
MX Component Version 5 Reference Manual
Reference Manual
-SW5DND-ACT-E
SAFETY PRECAUTIONS
(Read these precautions before using this product.)
Before using this product, please read this manual carefully and pay full attention to safety to handle the product correctly. If
the equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be
impaired.
The precautions given in this manual are concerned with this product. For the safety precautions of the programmable
controller system, refer to the user's manual for the module used and MELSEC iQ-R Module Configuration Manual.
In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION".
Under some circumstances, failure to observe the precautions given under " CAUTION" may lead to serious
consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
[Design Precautions]
WARNING
When data change, program change, or status control is performed from a personal computer to a
running programmable controller, create an interlock circuit outside the programmable controller to
ensure that the whole system always operates safely.
Furthermore, for the online operations performed from a personal computer to a CPU module, the
corrective actions against a communication error due to such as a cable connection fault should be
predetermined as a system.
[Design Precautions]
CAUTION
The online operations performed from a personal computer to a running CPU module (forced output
and operating status changes) must be executed after the manual has been carefully read and the
safety has been ensured.
The operation failure may cause the injury or machine damage.
[Security Precautions]
WARNING
To maintain the security (confidentiality, integrity, and availability) of the programmable controller and
the system against unauthorized access, denial-of-service (DoS) attacks, computer viruses, and other
cyberattacks from external devices via the network, take appropriate measures such as firewalls,
virtual private networks (VPNs), and antivirus solutions.
1
CONDITIONS OF USE FOR THE PRODUCT
(1) MELSEC programmable controller ("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 ELECTRIC 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 ELECTRIC USER'S, 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 Electric 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 Electric 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 Electric representative in your region.
(3) Mitsubishi Electric shall have no responsibility or liability for any problems involving programmable controller trouble and
system trouble caused by DoS attacks, unauthorized access, computer viruses, and other cyberattacks.
2
INTRODUCTION
Thank you for purchasing the engineering software, MELSOFT series.
This manual is designed for users to understand operations of MX Component.
Before using the product, thoroughly read this manual and related manuals to develop full familiarity with the functions and
performance of MX Component and supported modules to ensure correct use.
Note that the menu names and operating procedures may differ depending on an operating system in use and its version.
When reading this manual, replace the names and procedures with the applicable ones as necessary.
3
CONTENTS
SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
GENERIC TERMS AND ABBREVIATIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
4
[Communication test] tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Exporting/importing the communication settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Specifying a created logical number in a program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5.2 Setting in Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Checking a property with Communication Settings Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Setting a required property in a user program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
CONTENTS
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Settings of serial communication modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.2 Ethernet Communication (When Using Ethernet Modules) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Settings of modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.3 Ethernet Communication (When Using Built-in Ethernet CPUs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Settings of modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.4 Ethernet Communication (When Using Ethernet Adapter Modules) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
6.5 Ethernet Communication (When Using Ethernet Adapter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
6.6 CPU COM Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
6.7 CPU USB Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6.8 CC-Link Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Settings of modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.9 CC-Link system RS-232 interface Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.10 GX Simulator2 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.11 GX Simulator3 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
6.12 MT Simulator2 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
6.13 MELSECNET/H Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
5
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
6.14 CC-Link IE Controller Network Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
6.15 CC-Link IE Field Network Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6.16 CC-Link IE TSN Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.17 GOT Gateway Device Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.18 GOT Transparent Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.19 Inverter COM Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6.20 Inverter USB Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
6.21 Robot controller COM Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
6.22 Robot controller USB Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
6.23 Robot controller Ethernet Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Access procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Logical station number setting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
6
CHAPTER 8 ACCESSIBLE DEVICES AND DEVICE TYPES 154
8.1 Accessible Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
When the access target is a CPU module (other than motion CPU and MELSECWinCPU) . . . . . . . . . . . . . . 155
When the access target is a motion CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
When the access target is a MELSECWinCPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
When the access target is an RnSFCPU or RnPSFCPU (safety device) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
When the access target is an own board for CC-Link communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
When the access target is an own board for MELSECNET/H communication . . . . . . . . . . . . . . . . . . . . . . . . . 159
When the access target is an own board for CC-Link IE Controller Network communication. . . . . . . . . . . . . . 159
CONTENTS
When the access target is an own board for CC-Link IE Field Network communication. . . . . . . . . . . . . . . . . . 159
When the access target is an own board for CC-Link IE TSN communication . . . . . . . . . . . . . . . . . . . . . . . . . 160
When the access target is an inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
When the access target is a robot controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
8.2 Device Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
7
Ethernet communication when the connected station is an Ethernet adapter (UDP) (2) . . . . . . . . . . . . . . . . . 259
Ethernet communication when the connected station is an Ethernet adapter (UDP) (3) . . . . . . . . . . . . . . . . . 261
Ethernet communication when the connected station is a robot controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Ethernet communication when the connected station is a CC-Link IE TSN module (TCP) . . . . . . . . . . . . . . . 264
Ethernet communication when the connected station is a CC-Link IE TSN module (UDP) . . . . . . . . . . . . . . . 267
10.3 CPU COM Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
CPU COM communication when the connected station is an FX5CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
CPU COM communication when the connected station is a QCPU (Q mode) . . . . . . . . . . . . . . . . . . . . . . . . . 272
CPU COM communication when the connected station is an LCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
CPU COM communication when the connected station is a Q motion CPU. . . . . . . . . . . . . . . . . . . . . . . . . . . 278
CPU COM communication when the connected station is an FXCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
CPU COM communication when the connected station is an inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
CPU COM communication when the connected station is a robot controller . . . . . . . . . . . . . . . . . . . . . . . . . . 283
10.4 CPU USB Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
CPU USB communication when the connected station is an RCPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
CPU USB communication when the connected station is an R motion CPU . . . . . . . . . . . . . . . . . . . . . . . . . . 287
CPU USB communication when the connected station is an LHCPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
CPU USB communication when the connected station is an FX5CPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
CPU USB communication when the connected station is a QCPU (Q mode) . . . . . . . . . . . . . . . . . . . . . . . . . 293
CPU USB communication when the connected station is an LCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
CPU USB communication when the connected station is a QSCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
CPU USB communication when the connected station is a Q motion CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
CPU USB communication when the connected station is an FXCPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
CPU USB communication when the connected station is an inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
CPU USB communication when the connected station is a robot controller . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
10.5 MELSECNET/H Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
10.6 CC-Link IE Controller Network Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
CC-Link IE Controller Network communication when the connected station is an RCPU. . . . . . . . . . . . . . . . . 309
CC-Link IE Controller Network communication when the connected station is a module supporting Q series. 311
10.7 CC-Link IE Field Network Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
CC-Link IE Field Network communication when the connected station is an RCPU . . . . . . . . . . . . . . . . . . . . 314
CC-Link IE Field Network communication when the connected station is a module supporting QCPU (Q mode) or
LCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
10.8 CC-Link IE TSN Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
CC-Link IE TSN communication when the connected station is an RCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
10.9 CC-Link Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
CC-Link communication when the connected station is an RCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
CC-Link communication when the connected station is an LCPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
CC-Link communication when the connected station is a module supporting Q series . . . . . . . . . . . . . . . . . . 325
10.10 CC-Link System RS-232 Interface Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
10.11 GX Simulator2 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
10.12 GX Simulator3 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
10.13 MT Simulator2 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
10.14 GOT Gateway Device Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
10.15 GOT Transparent Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Direct connection (1). . . . . . . . 333
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Direct connection (2). . . . . . . . 335
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Direct connection (3). . . . . . . . 337
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Direct connection (4). . . . . . . . 340
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Bus connection . . . . . . . . . . . . 342
8
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (1) .
345
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (2) .
348
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (3) .
350
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (4) .
352
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (5) .
CONTENTS
354
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Serial communication module (6) .
357
Personal computer side port: Serial, GOT2000 side port: Serial, CPU side port: MELSEC iQ-R series-compatible
E71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: MELSEC iQ-R series-compatible
E71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Q series-compatible E71 . . . . 365
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: L series-compatible E71 . . . . . 368
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet port (1) . . . . . . . . . . . 371
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet port (2) . . . . . . . . . . . 374
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet port (3) . . . . . . . . . . . 376
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet port (4) . . . . . . . . . . . 380
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet adapter module . . . . 383
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet adapter/module . . . . 387
Personal computer side port: USB, GOT2000 side port: USB, CPU side port: Ethernet adapter . . . . . . . . . . . 389
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Serial (1) . . . . . . 391
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Serial (2) . . . . . . 393
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Serial (3) . . . . . . 396
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Serial (4) . . . . . . 399
Personal computer side port: Ethernet board, GOT2000 side port: Ethernet port, CPU side port: Serial communi-
cation module (1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Personal computer side port: Ethernet board, GOT2000 side port: Ethernet port, CPU side port: Serial communi-
cation module (2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Personal computer side port: Ethernet board, GOT2000 side port: Ethernet port, CPU side port: Serial communi-
cation module (3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Personal computer side port: Ethernet board, GOT2000 side port: Ethernet port, CPU side port: Bus connection
409
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Ethernet port. . . 412
Personal computer side port: Ethernet board, GOT2000 port: Ethernet port, CPU side port: Q series-compatible
E71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
9
WriteDeviceRandom (Writing devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
SetDevice (Setting device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
GetDevice (Acquiring device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
ReadBuffer (Reading data from buffer memory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
WriteBuffer (Writing data to buffer memory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
GetClockData (Reading clock data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
SetClockData (Writing clock data). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
GetCpuType (Reading CPU module model) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
SetCpuStatus (Remote control). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
EntryDeviceStatus (Registering devices for status monitoring). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
FreeDeviceStatus (Deregistering devices for status monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
OnDeviceStatus (Event notification) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
ReadDeviceBlock2 (Reading devices in batch). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
WriteDeviceBlock2 (Writing devices in batch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
ReadDeviceRandom2 (Reading devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
WriteDeviceRandom2 (Writing devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
SetDevice2 (Setting device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
GetDevice2 (Acquiring device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
GetErrorMessage(Acquiring error description and corrective action) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
11.4 Details of Functions (For Act Control (Logging File Transfer)). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494
Open (Opening communication line) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494
Close (Closing communication line) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496
ReadFirstFile (Searching for a file/directory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
ReadNextFile (Searching for a file/directory). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
ReadClose (Ending the search) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
GetFile (Transferring logging files) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
11.5 Details of Functions (For .Net Control) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
Open (Opening communication line) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
Close (Closing communication line) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
ReadDeviceBlock (Reading devices in batch). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506
WriteDeviceBlock (Writing devices in batch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
ReadDeviceRandom (Reading devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518
WriteDeviceRandom (Writing devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
SetDevice (Setting device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
GetDevice (Acquiring device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
ReadBuffer (Reading data from buffer memory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
WriteBuffer (Writing data to buffer memory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
GetClockData (Reading clock data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
SetClockData (Writing clock data). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
GetCpuType (Reading CPU module model) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
SetCpuStatus (Remote control). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
EntryDeviceStatus (Registering devices for status monitoring). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
FreeDeviceStatus (Deregistering devices for status monitoring) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
OnDeviceStatus (Event notification) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563
ReadDeviceBlock2 (Reading devices in batch). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565
WriteDeviceBlock2 (Writing devices in batch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
ReadDeviceRandom2 (Reading devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
WriteDeviceRandom2 (Writing devices randomly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
SetDevice2 (Setting device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
GetDevice2 (Acquiring device data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
Dispose (release memory) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
10
CHAPTER 12 SAMPLE PROGRAMS 603
12.1 Visual Basic.NET, Visual C#, Visual C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
Act_2019.sln, Dot_2019.sln. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
ActDatalogging_2019.sln. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608
12.2 VBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
For Access (ActTest_EarlyBind.accdb, ActTest_LateBind.accdb, ActTest64.accdb) . . . . . . . . . . . . . . . . . . . . . 609
For Excel (ActUtlType.xlsm, ActUtlType64.xlsm, ActProgType.xlsm, and ActProgType64.xlsm) . . . . . . . . . . . 613
CONTENTS
13.1 Error Code List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
13.2 Error Codes Returned by CPUs, Modules, and Network Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
13.3 HRESULT Type Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
13.4 Error Codes Displayed on Event Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
APPENDIX 646
Appendix 1 Changes from Previous Version. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
Appendix 2 Concept of Routing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Appendix 3 Multi-CPU System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
Appendix 4 The Number of Mountable Network Modules for Q00UJCPU, Q00UCPU, and Q01UCPU. . . . . . . . 651
Appendix 5 Compatibility with Redundant CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
For RnPCPU (redundant mode) and RnPSFCPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
For QnPRH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
Appendix 6 Character Strings that cannot be Used for Label Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Appendix 7 Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Performance of MX Component (Control) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Performance of the Label Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Performance of the Label Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Appendix 8 Installing a USB Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
Appendix 9 Programing Examples for Monitoring Word Device Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
Appendix 10Time-Out Periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Communication retries at time-out error occurrence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Communication retries at receive data error occurrence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Time-out errors at fixed time in the Act control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Appendix 11 Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
When a header file is not created properly at the time of pasting a control to a form with Visual C++ . . . . . . . 677
When an error occurs in the setting for using controls in Visual Studio .NET . . . . . . . . . . . . . . . . . . . . . . . . . . 678
When a link error occurs in creating a user program in Visual C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
When an unstart error occurs during communication with GX Simulator3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680
Appendix 12Differences with previous version of MX Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681
Comparison with MX Component Version 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681
Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .688
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .689
INFORMATION AND SERVICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .690
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .690
COPYRIGHTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .690
11
RELEVANT MANUALS
Manual name [manual number] Description Available
form
MX Component Version 5 Reference Manual Operation method, programming procedures, and error codes of MX e-Manual
[SH-082395ENG] (this manual) Component Version 5 PDF
e-Manual refers to the Mitsubishi Electric 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.
• Sample programs can be copied to an engineering tool.
TERMS
Unless otherwise specified, this manual uses the following terms.
Term Description
Control CPU A CPU module that controls connected I/O modules and intelligent function modules. In a multiple CPU system, a control
CPU can be set for each module.
Control station Only one station that controls the network to which it is connected. Each station's send range for cyclic transmission is
assigned to the control station.
Control system A system that controls a redundant system and performs network communications in a redundant system
Engineering tool A tool used for setting up programmable controllers, programming, debugging, and maintenance
Ethernet port direct connection A direct connection between a programmable controller and personal computer without using a hub
Intelligent function module A module that has functions other than an input or output, such as an A/D converter module and D/A converter module
Master station A station that controls the entire network. This station can perform cyclic transmission and transient transmission with all
stations. Only one master station can be used in a network.
MELSOFT Navigator An integrated development environment included in MELSOFT iQ Works
Multiple CPU system A system where two to four CPU modules separately control I/O modules and intelligent function modules
Other station A station connected to the connected station (host station) on the network
Own system A system that contains the CPU module that takes control in a redundant system
Process CPU A CPU module that performs process control and sequence control. Process control function blocks and the online
module change function can be executed.
This module is also used with a redundant function module as a pair and configures a redundant system.
Redundant system A system consisting of two systems that have same configuration (CPU module, power supply module, network module,
and other modules). Even after an error occurs in one of the two system, the other system takes over the control of the
entire system.
Relay station A station that relays data link to other station with mounting more than one network modules on one programmable
controller
Safety CPU A module that performs both standard control and safety control and is used with a safety function module
Sequence program Programming system devised to make a contact type sequence compatible with the programmable controller language
as-is. Draw two vertical control buses and describe contacts, etc. between the buses to perform programming.
Standby system A backup system in a redundant system
System A A system that is set as system A to distinguish two systems in a redundant system.
It is used to distinguish connected two systems (system A and system B).
System B A system that is set as system B to distinguish two systems in a redundant system.
It is used to distinguish connected two systems (system A and system B).
System switching A function which switches the systems between the control system and the standby system to continue operation of the
redundant system when a failure or an error occurs in the control system
The other system The other system that has been connected to own system with tracking cables. When the system A is the own system, the
system B is the other system, and vice versa.
12
GENERIC TERMS AND ABBREVIATIONS
Unless otherwise specified, this manual uses the following generic terms and abbreviations.
Generic term/abbreviation Description
CC-Link IE TSN board CC-Link IE TSN interface board
CC-Link IE Controller Network CC-Link IE Controller Network interface board
board
CC-Link IE Field Network board CC-Link IE Field Network interface board
CC-Link Ver.2 board CC-Link system master/local interface board
C Controller module R12CCPU-V, Q12DCCPU-V (Basic mode), Q12DCCPU-V (Extended mode), Q24DHCCPU-V, Q24DHCCPU-LS,
Q24DHCCPU-VG, Q26DHCCPU-LS
Ethernet adapter module NZ2GF-ETB CC-Link IE Field Network Ethernet adapter module
Built-in Ethernet port QCPU A Q series CPU module with an Ethernet port
Ethernet module MELSEC iQ-R series-compatible E71, Q series-compatible E71, L series-compatible E71
Built-in Ethernet CPU A CPU module with an Ethernet port
GOT Mitsubishi Electric Graphic Operation Terminal GOT1000 series, GOT2000 series
GT SoftGOT GT SoftGOT2000 Version1, GT SoftGOT1000 Version2, GT SoftGOT1000 Version3
MELSECNET/H board MELSECNET/H interface board
Q12DCCPU-V (Extended mode) Status that Q12DCCPU-V is initialized with the extended mode.
For Q12DCCPU-V (Extended mode), refer to the following:
MELSEC-Q C Controller Module User's Manual
Q12DCCPU-V (Basic mode) Status that Q12DCCPU-V is initialized with the basic mode.
For Q12DCCPU-V (Basic mode), refer to the following:
C Controller Module User's Manual (Hardware Design, Function Explanation)
QnPRH Q12PRHCPU, Q25PRHCPU
Serial communication module MELSEC iQ-R series-compatible C24, Q series-compatible C24, L series-compatible C24, FX extended port
Redundant CPU QnPRH, RnPCPU, RnPSFCPU
Redundant type extension base Q65WRB extension base unit for redundant system
unit
High performance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU
Basic model QCPU Q00JCPU, Q00CPU, Q01CPU
Robot controller CR750-D series, CRnD-700 series
13
MEMO
14
PART 1
PART 1 FUNDAMENTALS AND
CREATING PROCEDURE
1 FUNDAMENTALS OF MX Component
2 SYSTEM CONFIGURATIONS
5 COMMUNICATION SETTING
7 PROGRAMMING
15
1 FUNDAMENTALS OF MX Component
Using MX Component
Communication setting
Personal computer Personal computer
data is moved.
used for development used for operation
MX MX
Component Component
1 FUNDAMENTALS OF MX Component
16 1.1 Before Using this Product
Create programs with labels
Programs can be created without considering device numbers by using the label function.
1
Devices can be read/written by using the label names.
X39 is ON.
X39 is ON!
MX
Component
Device status is checked.
MX
Component
Access to buffer memory
1 FUNDAMENTALS OF MX Component
1.1 Before Using this Product 17
Read/write of CPU module clock data
The clock data of a CPU module connected to a personal computer can be read/written.
MX
Component
Access to clock data
Multi-thread communication
The same communication route can be accessed from multiple threads at the same time.
User program
Thread 1 Thread 2
Control 1 Control 2
MX
Component
Programmable controller is
not required to be connected.
1 FUNDAMENTALS OF MX Component
18 1.1 Before Using this Product
A wide variety of programming languages supported
MX Component supports Visual Basic .NET, Visual C++, Visual C#, and VBA.
1
VBA-driven data collection and monitoring function
Programming using VBA allows Excel or Access functions to be utilized to create an application for providing a real-time
graph display.
Device data of a programmable controller can be logged and device data can be sampled/saved in real time.
<Excel> <Access>
1 FUNDAMENTALS OF MX Component
1.1 Before Using this Product 19
Accessibility to gateway devices of GOT
The device data of a CPU module that is being monitored by GOT can be read/written by reading from/writing to the gateway
device data of GOT.
MX
Component
MX
Component GOT
1 FUNDAMENTALS OF MX Component
20 1.1 Before Using this Product
1.2 Types of Control
This section explains controls provided by MX Component.
1
Controls shown in this section are used to create user programs to communicate with a CPU module. By using these controls,
communication with a CPU module can be realized without being aware of the hardware and the communication protocol.
There are the following three types of controls provided by MX Component.
• Act Control
• Act Control (logging file transfer)
• .Net Control
The following table shows each control.
Control list
Act control
The following table shows the ActiveX Controls provided by MX Component.
Data can be accessed using devices.
Control name Application Supported
language
32-bit ActUtlType A utility setting type control. Visual C#
It is used to create a user program by using Communication Settings Utility. Visual Basic
64-bit ActUtlType64
.NET
32-bit ActProgType A program setting type control.*1 Visual C++
It is used to create a user program without using Communication Settings Utility. VBA
64-bit ActProgType64
32-bit ActSupportMsg Common control for a utility setting type and program setting type.
Used for the troubleshooting function.
64-bit ActSupportMsg64
.Net control
The following table shows the .Net Controls provided by MX Component.
Data can be accessed using labels.
Control name Application Supported
language
32-bit DotUtlType A utility setting type control. Visual C#
It is used to create a user program by using Communication Settings Utility. Visual Basic
64-bit DotUtlType64
.NET
1 FUNDAMENTALS OF MX Component
1.2 Types of Control 21
1.3 Types of Utility
The following are the utilities used in MX Component.
Item Description Reference
Communication Settings Utility Sets the communication settings in the wizard format. Page 54 Setting with Utilities
Label Utility Registers/utilizes the system labels. Page 115 Creating a Label
With Label Utility
PLC Monitor Utility Sets a connection destination by using a logical station number, and monitors the Page 143 Checking a value
devices and buffer memories of a programmable controller. using PLC Monitor Utility
Administrator authority
When Label Utility is executed, the status is switched to the administrator authority automatically.
When executing Communication Settings Utility and PLC Monitor Utility, the performance differs according to the user
account control (UAC) settings.
To execute a utility as an administrator at all times, select the checkbox of "Run this program as an
administrator" in the [Compatibility] tab of [Property].
1 FUNDAMENTALS OF MX Component
22 1.3 Types of Utility
When MX Component is operated by a user without Administrator's authority.
Note that the following restrictions are applied when MX Component is operated by a user without Administrator's authority.
Item Restrictions 1
Communication Settings Utility The logical station number cannot be created, changed, or deleted.
Communication settings cannot be imported.
This utility cannot be started up if the communication settings are set using MX Component earlier than Version
3.00A.*1
PLC Monitor Utility This utility cannot be started up if the communication settings are set using MX Component earlier than Version
3.00A.*1
*1 If the following error message appears, start up or close the utility as a user with Administrator's authority.
This operation enables a user without Administrator's authority to start up the utility.
1 FUNDAMENTALS OF MX Component
1.3 Types of Utility 23
2 SYSTEM CONFIGURATIONS
This chapter explains the system configuration of MX Component such as the operating environment, communication routes,
and available devices.
2 SYSTEM CONFIGURATIONS
24 2.1 Operating Environment
• The size of the text and other items in the screen is other than 100% (96 DPI, 9 pt etc.).
• The resolution of the screen is changed in operation.
• The Windows theme is changed in operation.
• The multi-display is set.
If the Windows firewall setting is enabled, the "Find Module function" and "Direct connection function" may not operate
correctly. Disable the Windows firewall setting.
In this product, the period (.) is used as the symbol of the decimal point. Regardless of the setting of "Decimal symbol" on the
2
control panel, use the period when entering the decimal point.
Precautions
• A communication error may occur when communicating with a CPU module after setting the resume function, suspend
setting, power-saving function, and/or standby mode of a personal computer.
Therefore, when communicating with the CPU module, do not set the above functions.
• Surrogate pair characters and environment dependent characters are not available in MX Component utilities.
• MX Component cannot be used from a Windows service application.
2 SYSTEM CONFIGURATIONS
2.1 Operating Environment 25
2.2 Supported Communication Routes
This section shows the supported communication routes by MX Component.
Communication route Description Reference
Serial communication To perform communication with a CPU module by using a serial Page 32 Serial communication
communication module.
Ethernet communication To perform communication by connecting a personal computer to an Page 33 Ethernet communication
Ethernet module or a built-in Ethernet CPU.
CPU COM communication To perform communication by connecting a personal computer to an RS- Page 33 CPU COM
232 or RS-422 connector of a CPU module. communication
CPU USB communication To perform communication by connecting a personal computer to a USB Page 36 CPU USB communication
connector of a CPU module.
MELSECNET/H communication*1 To perform communication with a CPU module by using a MELSECNET/ Page 36 MELSECNET/H
H board. communication
CC-Link IE Controller Network To perform communication with a CPU module by using a CC-Link IE Page 36 CC-Link IE Controller
communication*1 Controller Network board. Network communication
CC-Link IE Field Network communication*1 To perform communication with a CPU module by using a CC-Link IE Page 36 CC-Link IE Field Network
Field Network board. communication
CC-Link IE TSN communication*1 To perform communication with a CPU module by using a CC-Link IE Page 36 CC-Link IE TSN
TSN board. communication
CC-Link communication*1 To perform communication with a CPU module by using a CC-Link Ver.2 Page 37 CC-Link communication
board.
CC-Link system RS-232 interface To perform communication with a CPU module by using an AJ65BT-R2N Page 37 CC-Link system RS-232
communication module. interface communication
GX Simulator2 communication To perform communication using the simulation function of GX Works2. Page 37 GX Simulator2
communication
GX Simulator3 communication To perform communication using the simulation function of GX Works3. Page 37 GX Simulator3
communication
MT Simulator2 communication To perform communication using the simulation function of MT Page 37 MT Simulator2
Developer2. communication
GOT gateway device communication To perform communication with a CPU module and a third-party Page 37 GOT gateway device
programmable controller by using the gateway functions of GOT. communication
GOT transparent communication To perform communication with a CPU module by using the GOT Page 37 GOT transparent
transparent function. communication
Inverter COM communication To perform communication by connecting an inverter to a COM port of a Page 37 Inverter (COM/USB)
personal computer. communication
Inverter USB communication To perform communication by connecting an inverter to a USB port of a
personal computer.
Robot controller COM communication To perform communication by connecting a robot controller to a COM Page 38 Robot controller(COM/
port of a personal computer. USB/Ethernet) communication
Robot controller USB communication To perform communication by connecting a robot controller to a USB
port of a personal computer.
Robot controller Ethernet communication To perform communication by connecting a robot controller and a
personal computer to Ethernet.
2 SYSTEM CONFIGURATIONS
26 2.2 Supported Communication Routes
2.3 System Configuration List
For details on the available cables and considerations for communication, refer to the manual of each module.
2
System configuration examples of each communication route
Personal computer
Ethernet
board Built-in Ethernet CPU
Ethernet adapter/module
MELSECNET/H FXCPU
Converter/cable
communication (FX3S/FX3G/FX3GC/FX3U/FX3UC)
CC-Link IE TSN
CC-Link IE TSN
communication CC-Link IE TSN module
CC-Link IE TSN board
CC-Link
CC-Link
communication CC-Link module
CC-Link system
RS-232 interface RS-232 AJ65BT-R2N
CC-Link CC-Link module
module
communication
2 SYSTEM CONFIGURATIONS
2.3 System Configuration List 27
Personal computer
Ethernet
GOT Gateway Device GOT
communication
Ethernet board
RS-232 RCPU, QCPU (Q mode),
GOT transparent USB, RS-232
LCPU, C Controller module,
communication Ethernet Q motion CPU
GOT
RS-232/RS-422
FX5CPU, FXCPU
Ethernet
Ethernet module
Ethernet
Built-in Ethernet CPU
Ethernet
CC-Link IE Field CC-Link IE Field Network module
Ethernet adapter module Network
Ethernet board
2 SYSTEM CONFIGURATIONS
28 2.3 System Configuration List
2.4 Available Module Lists
The following shows available models in MX Component.
*1 The first five digits of the serial number is 12042 or higher are supported.
2 SYSTEM CONFIGURATIONS
2.4 Available Module Lists 29
Considerations
RnSFCPU
In order to protect the safety programmable controller system, a function to write data to the buffer memory or safety devices
in safety mode cannot be executed.
FX5CPU
• Multiple simultaneous communications cannot be established via the route specified by a different adapter when an adapter
to be used for Ethernet direct connection is specified to establish a communication.
• Personal computer side adapter information of communication settings may need to reset depending on the change in
personal computer environment or other MELSOFT application settings.
Q00UJ/Q00U/Q01U/Q02UCPU
"Serial communication function compatible CPU" indicates Q00UJ/Q00U/Q01U/Q02UCPU.
When the following conditions are all satisfied, communication between a personal computer and a serial communication
function compatible CPU is set at 9600bps speed.
• The serial communication function of the connected CPU is valid.
• The transmission speed settings differ between the personal computer and the serial communication function compatible
CPU side.
To increase the communication speed, match the transmission speed of the personal computer with that of the serial
communication function compatible CPU.
QSCPU
In order to protect the safety programmable controller system, a function to write data to the buffer memory or safety devices
in safety mode cannot be executed.
FXCPU
• When an FXCPU is used, the TN devices (timer present values) or CN devices (counter present values) cannot be
accessed if the device numbers specified are split across 199 or lower and 200 or higher.
• Since FXCPUs do not feature the PAUSE switch as CPU modules, an error is returned when remote pause is specified in
SetCpuStatus.
• Note that specifying the first I/O number of a non-existing module and executing the WriteBuffer() method will not return an
error.
• For the index registers (Z, V) of FXCPUs, data cannot be written to 2 or more consecutive points using WriteDeviceBlock().
(Data may be written to only one point.)
2 SYSTEM CONFIGURATIONS
30 2.4 Available Module Lists
Module list
The following table shows the modules and boards that are available for communication with a CPU module in each
communication type.
Communication type Category Module model
Serial communication MELSEC iQ-R series-compatible C24 RJ71C24, RJ71C24-R2, RJ71C24-R4 2
Q series-compatible C24 QJ71C24, QJ71C24N, QJ71C24N-R2, QJ71C24N-R4
L series-compatible C24 LJ71C24, LJ71C24-R2
FX extended port FX3G-485-BD, FX3U-485-BD
Ethernet communication MELSEC iQ-R series-compatible E71 RJ71EN71
Q series-compatible E71 QJ71E71, QJ71E71-B2, QJ71E71-B5, QJ71E71-100
L series-compatible E71 LJ71E71
Ethernet adapter module NZ2GF-ETB
Ethernet adapter/module FX3U-ENET-ADP, FX3U-ENET, FX5-CCLGN-MS,
FX5-ENET, FX5-ENET/IP
MELSECNET/H communication MELSECNET/H module RJ71LP21
QJ71LP21
*1
MELSECNET/H board Q80BD-J71LP21-25, Q80BD-J71LP21S-25, Q81BD-J71LP21-25,
Q80BD-J71LP21G, Q80BD-J71BR11
CC-Link communication CC-Link module RJ61BT11
QJ61BT11N
LJ61BT11
FX3U-64CCL
CC-Link Ver.2 board*2 Q80BD-J61BT11N, Q81BD-J61BT11
CC-Link system RS-232 interface AJ65BT-R2N module AJ65BT-R2N
communication
CC-Link IE Controller Network CC-Link IE Controller Network module RJ71GP21-SX
communication QJ71GP21S-SX, QJ71GP21-SX
LJ71GP21-SX
CC-Link IE Controller Network board*3 Q80BD-J71GP21-SX, Q80BD-J71GP21S-SX, NZ81GP21-SX
CC-Link IE Field Network CC-Link IE Field Network module RJ71GF11-T2
communication
QJ71GF11-T2
LJ71GF11-T2
CC-Link IE Field Network board*4 Q81BD-J71GF11-T2
CC-Link IE TSN communication CC-Link IE TSN module RJ71GN11-T2, RJ71GN11-SX
*5
CC-Link IE TSN board NZ81GN11-T2, NZ81GN11-SX
GOT transparent communication GOT2000 GT27, GT25
Inverter communication A800
Robot controller communication CR750 CR750-DCR751-D
CRnD-700 CR1DA-7xx, CR2DA-7xx, CR3DA-7xx
2 SYSTEM CONFIGURATIONS
2.4 Available Module Lists 31
2.5 Details on the Communication Routes
This section explains details and the considerations for each communication route.
Serial communication
For the method for connecting to a serial communication module, refer to the manual of the serial communication module.
Serial communication
• On any serial communication modules, remote "PAUSE" operation will result in an error for all connections.
• An FX extended port is required when performing the serial communication using FX3S, FX3G(C), or FX3U(C)CPU.
2 SYSTEM CONFIGURATIONS
32 2.5 Details on the Communication Routes
Ethernet communication
• For the method for connecting to an Ethernet module, refer to the manual of the Ethernet communication module.
• For the FX series Ethernet module, refer to the user's manuals for the FX series.
• For the method for connecting to an Ethernet Built-in CPU, refer to the manual of the Ethernet Built-in CPU.
• For the method for connecting to an Ethernet adapter module, refer to the manual of the Ethernet adapter module.
2
• For the method for connecting to an Ethernet adapter, refer to the manual of the Ethernet adapter.
• For the method for connecting to a CC-Link IE TSN module, refer to the manual of the CC-Link IE TSN module.
2 SYSTEM CONFIGURATIONS
2.5 Details on the Communication Routes 33
USB cables and function expansion boards (compatible with FX3U, FX3UCCPU)
System configuration
• FX3U-USB-BD
• USB cable (included)
• PLC parameter
When "Operate Communication Setting" is selected on the [PLC System (2)] tab of PLC parameter in GX
Works2, the corresponding port cannot communicate with the CPU module. Write the setting in which
"Operate Communication Setting" is cleared from the built-in programming port of the CPU module.
For the method of PLC parameter settings, refer to the following:
GX Works2 Version 1 Operating Manual (Common)
2 SYSTEM CONFIGURATIONS
34 2.5 Details on the Communication Routes
RS-232 cable and function expansion board (special adaptor) for FXCPUs
Serial port shape of Series Function expansion board and special adapter RS-232 cable
personal computer
9-pin D-sub FX3U, FX3UC FX3U-232-BD*1 FX-232CAB-1
Function expansion board (FX3U-***-BD)*2 + FX3U-232ADP
FX3G, FX3GC FX3G-232-BD*3 FX-232CAB-1 2
FX3G-CNV-ADP*4 + FX3U-232ADP
FX3S FX3G-232-BD FX-232CAB-1
FX3S-CNV-ADP + FX3U-232ADP
Half pitch 14-pin FX3U, FX3UC FX3U-232-BD FX-232CAB-2
Function expansion board (FX3U-***-BD)*2 + FX3U-232ADP
FX3G, FX3GC FX3G-232-BD*3 FX-232CAB-2
FX3G-CNV-ADP*4 + FX3U-232ADP
FX3S FX3G-232-BD FX-232CAB-2
FX3S-CNV-ADP + FX3U-232ADP
25-pin D-sub FX3U, FX3UC FX3U-232-BD F2-232CAB-1
*2
Function expansion board (FX3U-***-BD) + FX3U-232ADP
FX3G, FX3GC FX3G-232-BD*3 F2-232CAB-1
FX3G-CNV-ADP*4 + FX3U-232ADP
FX3S FX3G-232-BD F2-232CAB-1
FX3S-CNV-ADP + FX3U-232ADP
• PLC parameter
When "Operate Communication Setting" is selected on the [PLC System (2)] tab of PLC parameter in GX
Works2, the corresponding port cannot communicate with the CPU module. Write the setting in which
"Operate Communication Setting" is cleared from the built-in programming port of the CPU module.
For the method of PLC parameter settings, refer to the following:
GX Works2 Version 1 Operating Manual (Common)
2 SYSTEM CONFIGURATIONS
2.5 Details on the Communication Routes 35
CPU USB communication
The following table shows the available USB cables.
Product name Module model
USB cable (USB A type USB B type) AU230
USB cable (USB A type USB miniB type) KU-AMB530
U2C-M30BK
MR-J3USBCBL3M
GT09-C30USB-5P
MELSECNET/H communication
• A MELSECNET/H board can be used.
• Use the communication driver SW0DNC-MNETH-B or later.
The other communication drivers cannot be used.
• For details on the supported operating system of the network board to be used for communication, refer to the manual of
each network board.
2 SYSTEM CONFIGURATIONS
36 2.5 Details on the Communication Routes
CC-Link communication
• A CC-Link Ver.2 board can be used.
• Use the communication driver SW1DNC-CCBD2-B or later.
The other communication drivers cannot be used.
• For details on the supported operating system of the network board to be used for communication, refer to the manual of
2
each network board.
• Use the CC-Link master station module the software version of which is "N" or later.
Modules of software version "M" or earlier do not operate normally.
GX Simulator2 communication
When performing GX Simulator2 communication, use GX Works2.
GX Simulator3 communication
When performing GX Simulator3 communication, use GX Works3.
MT Simulator2 communication
When performing MT Simulator2 communication, use MT Developer2.
This function is supported by a Q motion CPU only.
2 SYSTEM CONFIGURATIONS
2.5 Details on the Communication Routes 37
Robot controller(COM/USB/Ethernet) communication
For the connection cables, refer to the following:
CR750/700/500 series RT ToolBox2 / RT ToolBox2 mini User's Manual
Multiplex communication
Do not perform multiplex communication for one robot controller.
2 SYSTEM CONFIGURATIONS
38 2.5 Details on the Communication Routes
3 USER APPLICATION CREATING
PROCEDURES
This chapter shows the procedure for creating a user program.
1. Install MX Component
Precautions
• When performing overwrite installation, install the software in the same folder where it is installed previously.
• When downloading the installer, save the installer to a directory which does not include any space and execute it.
• When uninstalling MX Component, the item may remain in the start menu. In this case, restart the personal computer.
Operating procedure
Select [Help] [About].
Operating procedure
Select [Help] [Help].
For the difference between using Communication Settings Utility and the program as the "communication setting," refer to the
following:
Page 40 Selecting a Communication Setting Method
For the method to incorporate the Act control and .Net control into the development environment, refer to the following:
Page 42 ADDING CONTROLS TO USER PROGRAM
3.7 Programming
Create a program to communicate with a program controller by using a property and function of a control.
In addition, create a label used in the program by using a label utility.
When debugging the created user program, a device and buffer memory can be checked easily by using PLC Monitor Utility.
For details, refer to the following:
Page 115 PROGRAMMING
• When using Microsoft Access 2019: Select [Controls] on the [Form Design] tab [ActiveX Controls].
Operating procedure
1. Close Excel.
When the displayed property name is collapsed after pasting Act control and displaying
property
This symptom only occurs on the display, and this does not affect the functions of the property.
3. Add a control of "Development type" to be used (Page 47 Applicable Controls (When using a control by creating an
object)).
• When using Act control: Select a control from "COM" in the "Reference Manager" screen.
• When using .Net control: Select a control from "Extensions" in "Assemblies" in the "Reference Manager" screen.
4. When developing a program by using the program setting type, select [Project] [Add Existing Item], and add include
files (Page 47 Include file (When using Visual Basic .NET, Visual C# )). The include files are stored in the following
folder at the time of installation.
(User-specified folder)\Act\Include
5. Create an instance of class for each control to be used. (Page 47 Class created for each control)
Operating procedure
1. Start Visual Studio.
3. Select a control of "Development type" to be used (Page 48 Applicable Controls (When pasting a control to a form))
from the [COM Components] tab in the "Choose Toolbox Items" screen, click the [OK] button.
5. Select [Project] [Add Existing Item], and add included files (Page 47 Include file (When using Visual Basic .NET,
Visual C# )). The include files are stored in the following folder at the time of installation.
(User-specified folder)\Act\Include
2. Set required include files for "Development type" to be used by referring the following table. (Page 50 Setting the
include file (for Visual C++)) The include files are stored in the following folder at the time of installation.
4
(User-specified folder)\Act\Include
Development type Required include file
Utility setting type (for 32-bit) ActUtlType_i.c
ActUtlType_i.h
ActUtlDataLogging_i.c
ActUtlDataLogging_i.h
ActSupportMsg_i.c
ActSupportMsg_i.h
Utility setting type (for 64-bit) ActUtlType64_i.c
ActUtlType64_i.h
ActUtlDataLogging64_i.c
ActUtlDataLogging64_i.h
ActSupportMsg64_i.c
ActSupportMsg64_i.h
Program setting type (for 32-bit) ActProgType_i.c
ActProgType_i.h
ActProgDataLogging_i.h
ActProgDataLogging_i.c
ActSupportMsg_i.c
ActSupportMsg_i.h
ActDefine.h
Program setting type (for 64-bit) ActProgType64_i.c
ActProgType64_i.h
ActProgDataLogging64_i.h
ActProgDataLogging64_i.c
ActSupportMsg64_i.c
ActSupportMsg64_i.h
ActDefine.h
3. Create instances for each control to be used. For the creation method of instance, refer to the sample program for Visual
C++.
Operating procedure
1. Start Visual Studio and select [Project] [Properties].
2. Select [Configuration Properties] [VC++ Directories] on the navigation pane displayed on the left side of the screen.
3. Select "Include Directories" displayed on the right side of the screen and click the [] button, then select <Edit...>.
6. On the "Select Directory" screen, select the folder in which the include files are stored.
The include files are stored in the following folder at the time of installation.
(User-specified folder)\Act\Include
3. Select a control of "Development type" to be used (Page 53 Applicable Controls (When pasting a control to a form)),
and click the [OK] button.
5. Enter "Name" and "Variable type" (Page 53 Variable type) in "General settings" of the "Add Control Variable" screen,
and click the [Next] button.
For "Name," enter the name of an object to be used in the program.
7. Make sure that ".h file" and ".cpp file" set in the step 6 are crated in Solution Explorer.
8. When using ActProgType or ActProgDataLogging, select [Project] [Add Existing Item], and add an include file
"ActDefine.h." The include file is stored in the following folder at the time of installation.
(User-specified folder)\Act\Include
".h file" created in the step 6 from 'When pasting a control to the form (Page 51 When using a control by
pasting a control to a form)' may not be created properly. (Page 677 When a header file is not created
properly at the time of pasting a control to a form with Visual C++)
Variable type
The following list shows "Variable type" for each control to be entered in the "Add Control Variable" screen.
Control Variable type
ActUtlType CActUtlType
4
ActUtlDataLogging CActUtlDataLogging
ActSupportMsg CActSupportMsg
ActProgType CActProgType
ActProgDataLogging CActProgDataLogging
Operation procedure
1. Create settings for each logical station number by using Communication Settings Utility.
Ex.
For CPU COM communication
CPU module
Personal computer (Communication target CPU)
CPU module
Ethernet
(Network No. 1)
Ethernet module
CPU COM communication
(Station number: 3)
(COM 1) Ethernet module
Transmission speed
Time-out period (Station number: 1)
Transmission control
5 COMMUNICATION SETTING
54 5.1 Setting with Utilities
[Target setting] tab
This tab is used to display the setting details of the logical station number set in Communication Setting Wizard and to edit it.
Window
(1)
Item Description
Logical station number Select a logical station number to display and edit the setting details set in Communication Setting Wizard.
[Wizard] button Click this to start Communication Setting Wizard and set the logical station number.
[Delete] button Click this to delete the preset logical station number.
(1) Connection image Displays the connection image diagram of the selected logical station number.
diagram By clicking any sketch (personal computer or module) in the connection image diagram, Communication Setting Wizard starts
and the settings can be changed.
5 COMMUNICATION SETTING
5.1 Setting with Utilities 55
Operations on Communication Setting Wizard screens
Set a logical station number which is required to perform communication with the utility setting type.
Personal computer
MX
Component
The following are the descriptions of the settings set in Communication Setting Wizard screens.
Communication Screen Name Description
Setting Wizard
Wizard (1) Introduction Set the logical station number.
Wizard (2) PC side Set the connected network between the personal computer and connected station (CPU module and
module).
Wizard (3) PLC side Set the connected station (CPU module and module).
Wizard (4) Network Set the relayed network between the connected station (CPU module and module) and relayed station (CPU
module and module).
Wizard (5) Other station Set the relayed station CPU.
Wizard (6) Finished Add a comment to the logical station number.
Window
• Select [Menu] [Wizard].
• Click the [Wizard] button on the utility screen.
5 COMMUNICATION SETTING
56 5.1 Setting with Utilities
Display procedure of Communication Setting Wizard screens.
Communication Setting Wizard screens are displayed from wizard (1) to wizard (6) in order.
The following explains Communication Setting Wizard screens in displayed order.
• The displays or available setting items of Communication Setting Wizard screens differ depending on the
settings.
Set all the available setting items being displayed.
• Some of Communication Setting Wizard screens may not be displayed depending on the settings.
Operating procedure
Wizard (1) - Introduction
5 COMMUNICATION SETTING
5.1 Setting with Utilities 57
Wizard (4) - Network
4. Select a communication route.
5 COMMUNICATION SETTING
58 5.1 Setting with Utilities
Items corresponding to the communications in "PC side I/F"
Setting Item Communication Name
USB USB communication
USB (via GOT) GOT transparent communication
Serial Serial communication, CPU COM communication, CC-Link system RS-232 interface communication
Serial (via GOT) GOT transparent communication
Ethernet board Ethernet communication, GOT gateway device communication
Ethernet board (via GOT) GOT transparent communication
CC IE Control board CC-Link IE Controller Network communication
MELSECNET/H board MELSECNET/H communication
CC IE TSN board CC-Link IE TSN communication
CC IE Field board CC-Link IE Field Network communication
CC-Link board CC-Link communication
GX Simulator3 GX Simulator3 communication
GX Simulator2 GX Simulator2 communication
5
MT Simulator2 MT Simulator2 communication
5 COMMUNICATION SETTING
5.1 Setting with Utilities 59
[List view] tab
This tab is used to list and edit the registered logical station number, and list the properties required for the program setting
type.
Window
(1)
Item Description
Property list Displays the settings of the registered logical station number.
By double-clicking the logical station number, Communication Setting Wizard starts.
[Wizard] button Click this to start Communication Setting Wizard and set the logical station number.
[Delete] button Click this to delete the preset logical station number.
Display Utility: Displays the settings set for the logical station number in the property list.
Program: Displays the property list required for setting with the program setting type.
[Save text] button Click this to save the settings of property list to a file in the .txt format.
5 COMMUNICATION SETTING
60 5.1 Setting with Utilities
[Communication test] tab
This tab is used to perform the communication test of a registered logical station number.
Window
Item Description
Logical station number Select a logical station number to perform a communication test.
Communication diagnosis count Set how many times (1 to 32767) the communication test will be repeated for the specified logical station
number.
[Test] button ([Cancel] button) Click this to start (stop) the communication test.
Result Diagnosis count Displays the number of connections during the communication test.
Result Displays the test result. An error code is displayed at error occurrence. '0' is displayed at normal termination, or
any value other than '0' is displayed at abnormal termination.
CPU name Displays the connected CPU type.
Mean time of Displays the average time taken until one communication test is established. (Unit: ms)
communication
Operating procedure
1. Select a logical station number.
Create a user program and correct device date with PLC Monitor Utility by using a logical station number
whose communication is conformed as normal.
5 COMMUNICATION SETTING
5.1 Setting with Utilities 61
Exporting/importing the communication settings
Exporting
Save the communication settings set to a personal computer in a file. (The file where data is saved is called the ACT
registered file.)
This file is used to apply the communication settings to another personal computer.
Operating procedure
Select [Menu] [COM setup export].
Window
Importing
Apply the exported communication settings saved to the file (Page 62 Exporting) to the utility.
This screen is used when the communication settings set on another personal computer are to be applied to the personal
computer being used.
Operating procedure
Select [Menu] [COM setup import].
Window
5 COMMUNICATION SETTING
62 5.1 Setting with Utilities
To import the communication settings, use MX Component of a version of the one used for export, or later.
Using a MX Component version earlier than that may cause incorrect import.
5 COMMUNICATION SETTING
5.1 Setting with Utilities 63
Specifying a created logical number in a program
Communication can be established by specifying the logical station number set with Communication Settings Utility to the
ActLogicalStationNumber(LONG) which is the open function property, and executing the open function.
5 COMMUNICATION SETTING
64 5.1 Setting with Utilities
5.2 Setting in Programs
To perform communication using the program setting type, the properties of the corresponding Act controls is required to be
set.
For the properties of the corresponding Act controls, directly enter them on the property window or change their settings in the
user program.
For details on the properties which must be set for the corresponding Act controls, refer to the following:
Page 172 Details of Control Properties
For module settings when using MX Component, refer to the following:
Item Reference
Serial communication Page 24 SYSTEM CONFIGURATIONS
Ethernet communication (when using Ethernet modules)
CC-Link system RS-232 interface communication
5
Operation procedure
1. Check the required property by using Communication Settings Utility.
Operating procedure
1. Specify a communication route in "Communication
Setting Wizard" on Communication Settings Utility.
For details on Communication Setting Wizard, refer to
the following:
Page 56 Operations on Communication Setting
Wizard screens
5 COMMUNICATION SETTING
5.2 Setting in Programs 65
2. Click the [List view] tab.
For details on the [List view] tab, refer to the following:
Page 60 [List view] tab
5 COMMUNICATION SETTING
66 5.2 Setting in Programs
Setting a required property in a user program
Check the property values with the text file output from Communication Settings Utility, and enter the values into Properties of
the property window.
Example) Visual Basic .NET
The settings of the property can be changed with the source code.
5 COMMUNICATION SETTING
5.2 Setting in Programs 67
6 COMMUNICATION SETTING EXAMPLES
(UTILITY SETTING TYPE)
This chapter explains the setting procedure and setting example of each communication route when the utility setting type is
used for programming.
• The communication settings can be registered or changed easily with the utility setting type in MX
Component.
• For the settings other than "As set by user," set the value shown in the table.
• When checking the communication settings in MX Component for the first time, make sure that
communication of each communication route can be established properly in each engineering tool in
advance so that the cause of the communication failure can be identified easily.
• For details on the settings of modules, refer to the manual of each module.
Module Ò
CPU C24 module CPU C24 module
module (Sta. No.1) module (Sta. No.1)
Serial communication
(Multi-drop)
COM1 COM1
Module Ó
CPU C24 module
module (Sta. No.3)
Access procedure
The following shows the procedure before accessing a CPU module.
Operating procedure
1. Set a module.
Page 70 Settings of serial communication modules
Setting data
For 1:n communication
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Serial
Connect port COM1
Time out 10000
PLC side PLC side I/F C24 module
Module type Select a C24 module to be used.
Station No. 1
Transmission speed 19200
Parity Odd
6
Control DTR or RTS Control
Network Station type Other station
Network C24
Network type Multidrop(combine)
Other station CPU type Select a CPU module to be used.
Station No. 3
Finished Comment (Optional)
*1
*1 Use of CH1
When connecting a personal computer with Q/L series compatible C24 on a 1:1 basis, the communication can
be performed without the switch setting of Q/L series compatible C24. When the switch setting is not set, the
module operates as GX Developer/MELSOFT connection as shown below.
When the communication protocol is set to '00H' (GX Developer/MELSOFT connection), the module operates with the value
shown in the following table.
For details, refer to the following:
Q Corresponding Serial Communication Module User's Manual (Basic)
MELSEC-L Serial Communication Module User's Manual (Basic)
Transmission setting Setting
Data bit 8
Parity bit Yes
Odd/even number parity Odd number
Stop bit 1
Sum check code Yes
Online change Enable
*1
1 Station
Item Setting Setting value
b15 to b8 b7 to b0 Independent operation
Switch 1 CH1 communication speed CH1 transmission setting Set to satisfy the application of CH1.
Switch 2 CH1 communications protocol
Switch 3 CH2 communication speed CH2 transmission setting 07E6H
Switch 4 CH2 communications protocol 0005H
Switch 5 Module station number 0000H (As set by user)
The module operates with the value shown in the following table.
Transmission setting Setting
Operation setting 0 Station Synchronous
1 Station Independent
Data bit 8
Parity bit Yes
Odd/even number parity Odd number
Stop bit 1
Sum check code Yes
Online change Enable
Transmission speed setting 19200 bps
Personal computer
Module 1 Module 2
Commercially available
RS-422/RS-485 <-->
RS-232C converter for
long distance
communication*1
Operating procedure
1. Start GX Works2.
• When communication setting is set, turn ON the FXCPU again after writing to programmable controller.
• When performing multi-drop connection, set the same communication settings for the devices.
However, check that the station number is not overlapped. 6
Settings by writing values to the special data registers in a sequence program
D8120 (communication format)
Transmission speed b7 b6 b5 b4
300 bps 0 0 1 1
600 bps 0 1 0 0
1200 bps 0 1 0 1
2400 bps 0 1 1 0
4800 bps 0 1 1 1
9600 bps 1 0 0 0
19200 bps 1 0 0 1
b15 to b0
D8121 Station number range: 00H to 0FH
b15 to b0
D8129 FX3S, FX3G(C), FX3U(C): 1 to 255
• When communication setting is set, turn ON the FXCPU again after writing to programmable controller.
• When performing multi-drop connection, set the same communication settings for the devices.
However, check that the station number is not overlapped.
The following shows an example of setting values to the special data registers.
The following shows the setting details of each special data register in the above program.
• D8120
Transmission control procedure: Form 1
Communication protocol: Serial communication
Sum check: Available
H/W type: RS-485
Transmission speed: 9600 bps
Stop bit: 1 bit
Parity: NONE
Data length: 7 bit
• D8121
Station number : 12
• D8129
Time out time : 200 ms
CPU1
CPU module Ethernet module (192.168.0.1)
Station number: 1
CPU2
CPU module
6
Network No.2
Access procedure
The following shows the procedure before accessing a CPU module.
Operating procedure
1. Set the module parameters.
Page 77 Settings of modules
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module Select an Ethernet board to be used.
Protocol TCP
Network No. 1
Station No. 2
Time out 60000
PLC side PLC side I/F Ethernet module
Module type Select an Ethernet module to be used.
Host (IP Address) 192.168.0.1
Station No. 1
Network Station type Other station
Network Ethernet
Other station CPU type Select a CPU module to be used.
Network No. 2
Station No. 3
Multiple CPU None
Finished Comment (Optional)
Settings of parameters
Set the network type, start I/O number, network number, station number, mode and operational settings on the Network
Parameter - MELSECNET/CC IE/Ethernet Module Configuration screen of GX Works2.
CPU to be set Setting screen example
CPU 1 Ethernet parameters Operation setting
CPU 2
IP address (192.168.0.1)
Access procedure
The following shows the procedure before accessing a CPU module. 6
Operating procedure
When directly connecting to an Ethernet port
1. Connect a module and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
When directly connecting to an Ethernet port
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module CPU module
Protocol UDP
Time out 60000
PLC side PLC side I/F CPU module
Ethernet port direct connection Select the checkbox
Network Station type Host station
CPU type Select a CPU module to be used.
Multiple CPU None
Finished Comment (Optional)
When using the built-in Ethernet CPU search, click the [Find CPU (Built-in Ethernet port) on network] button.
Built-in Ethernet CPUs on the same network is the target of the search.
Choose the target CPU from the list and clicking the [OK] button.
An IP address can be applied to the "Communication Setting Wizard - PLC side" setting.
Access procedure
The following shows the procedure before accessing a CPU module.
Operating procedure
1. Connect a module and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module CC IE Field Ethernet adapter
Protocol TCP
Time out 60000
PLC side PLC side I/F CC IE Field Ethernet adapter
Host (IP Address) 192.168.3.30
Network Station type Other station (Single)
Other station CPU type Select a CPU module to be used.
Network No. 1
Station No. 0
Multiple CPU None
Finished Comment (Optional)
FX3U(C)/FX3G(C)/FX3S
Ethernet
FX3U-ENET-ADP
FX3U(C)/FX3G(C)/FX3S
6
Hub
Ethernet Ethernet
FX3U-ENET-ADP
Access procedure
The following shows the procedure before accessing a CPU module.
Operating procedure
When directly connecting to an Ethernet port
1. Connect an Ethernet adapter and a personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Direct connection
Communication Setting Item Setting example (direct connection)
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module FX3U-ENET-ADP
Time out 60000
PLC side PLC side I/F FX3U-ENET-ADP
Ethernet port direct connection Select the checkbox
Network Station type Host station
CPU type Select an FXCPU to be used.
Finished Comment (Optional)
When using the built-in Ethernet CPU search, click the [Find CPU (Built-in Ethernet port) on network] button.
Built-in Ethernet CPUs on the same network is the target of the search.
Choose the target CPU from the list and clicking the [OK] button.
An IP address can be applied to the "Communication Setting Wizard - PLC side" setting.
MELSECNET/H
(Network No. 5)
COM1
CPU Normal station
module (Sta. No.5)
Access procedure
The following shows the procedure before accessing a CPU module.
6
Operating procedure
1. Connect a module and personal computer.
Page 24 SYSTEM CONFIGURATIONS
2. Set a logical station number with Communication Settings Utility.
Page 85 Logical station number setting example
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Serial
Connect port COM1
Time out 10000
PLC side PLC side I/F CPU module
CPU type Select a CPU module to be used.
Transmission speed 19200
Control DTR or RTS Control
Network Station type Other station
Network MELSECNET/10(H)
Mode MELSECNET/H
Other station CPU type Select a CPU module to be used.
Network No. 5
Station No. 5
Multiple CPU None
Finished Comment (Optional)
MELSECNET/H
(Network No.1)
USB port
CPU Normal station
module (Sta. No.8)
Access procedure
The following shows the procedure before accessing a CPU module.
Operating procedure
1. Connect a module and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F USB
Time out 10000
PLC side PLC side I/F CPU module
CPU type Select a CPU module to be used.
Network Station type Other station
Network MELSECNET/10(H)
Mode MELSECNET/H
Other station CPU type Select a CPU module to be used.
Network No. 1
Station No. 8
Multiple CPU None
Finished Comment (Optional)
Master station
(Station number 1)
Number of occupied
stations 1 Transmission speed: 10 Mbps
CC-Link
Supported CPU and module in CC-Link communication via a personal computer board to an RCPU are as follows.
CC-Link module Compatible CPU Station No.
RJ61BT11 RCPU 0 to 64
6
Supported CPUs and module in CC-Link communication to an FXCPU are as follows.
CC-Link module Compatible CPU Station No.
FX3U-64CCL FX3G, FX3GC, FX3U, FX3UC 1 to 63
• Accessible to an FXCPU with CC-Link communication only via the serial/USB connection of QCPU or via Q series-
compatible C24.
Access procedure
The following shows the procedure before accessing a CPU module by using CC-Link communication.
Operating procedure
1. Set a CC-Link Ver.2 board.
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F CC-Link board
Board No. 1st module
Network Station type Other station (Single)
Other station CPU type Select a CPU module to be used.
Station No. 5
Multiple CPU None
Finished Comment (Optional)
Operating procedure
1. Start MELSEC CC-Link Ver.2 Utility from "MELSEC" in
Windows Start.
AJ65BT-R2N(Q) CC-Link
Station number: 1
Access procedure
The following shows the procedure before accessing a CPU module by using CC-Link system RS-232 interface
communication.
Operating procedure
1. Set the operation setting DIP switches of an AJ65BT-R2N module.
CC-Link System RS-232 Interface Module User's Manual
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Serial
Connect port COM1
Time out 10000
PLC side PLC side I/F AJ65BT-R2N
Mode Q
Transmission speed 19200
Control DTR or RTS Control
Network Station type Host station
CPU type
CC-Link module No.
Select a CPU module to be used.
0
6
Finished Comment (Optional)
MX
Component
The simulation function of GX Works2 cannot be terminated even if stopped by GX Works2 while connecting
to MX Component.
(The simulation function of GX Works2 cannot be terminated even if GX Works2 is terminated.)
The simulation function of GX Works2 can be terminated after disconnected to MX Component.
Access procedure
The following shows the procedure before accessing the simulation function of GX Works2 by using GX Simulator2
communication.
Operating procedure
1. Start GX Works2 and the simulation function.
Page 24 SYSTEM CONFIGURATIONS
2. Set a logical station number with Communication Settings Utility.
Page 92 Logical station number setting example
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F GX Simulator2
Target Simulator Simulator A
CPU Series Select a CPU series to be used.
Finished Comment (Optional)
MX
Component
The simulation function of GX Works3 can be stopped while connecting to MX Component by using GX
Simulator3.
However, it is necessary to open after closing on the communication line of MX Component in order to restart
the simulation function of GX Works3. 6
If the function is restarted without closing on the communication line of MX Component, an error occurs.
Access procedure
The following shows the procedure before accessing the simulation function of GX Works3 by using GX Simulator3
communication.
Operating procedure
1. Start GX Works3 and the simulation function.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F GX Simulator3
CPU type Select a CPU module to be used.
Set Port No.*1 Unselected
System No. 1
PLC No*2 1
Time out 10000
Finished Comment (Optional)
*1 When specifying a port number, select the checkbox and then specify a port number.
The target port number is calculated with the following calculation formula.
PortNumber=5500+ System No. 10+ PLC No
<Example> For System No. = 1, PLC No = 1
5511=5500+110+1
*2 For the system number and PLC number, refer to the following:
GX Works3 Operating Manual
MX
Component
The communication will be disconnected when the simulation function is stopped by MT Developer2 while
communicating to MX Component.
Access procedure 6
The following shows the procedure before accessing the simulation function of MT Developer2 by using MT Simulator2
communication.
Operating procedure
1. Start MT Developer2 and the simulation function.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F MT Simulator2
Target Simulator Select a target simulator to be used.
Finished Comment (Optional)
Normal station
(Sta. No. 1)
1
CPU module (No. 2) at normal station
(station number: 2) on network number 2
4 Network No. 1 2 3 Network No. 2 2 is accessed.
Access procedure
The following shows the procedure before accessing a CPU module by using MELSECNET/H communication.
Operating procedure
1. Set an MELSECNET/H board.
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F MELSECNET/H board
Board No. 1st module
Network Station type Other station (Single)
Other station CPU type Select a CPU module to be used.
Network No. 2
Station No. 2
Multiple CPU No. 2
Finished Comment (Optional)
Operating procedure
1. Start MELSECNET/H Utility from "MELSEC" in
Windows Start.
6
3. Set the following items and click the [Set] button.
Transfer to Network No.: 2
Intermediate Network No.: 1
Intermediate Sta.No.: 2
Then, click the [OK] button to close the dialog box.
Normal station
(Sta. No. 2)
Supported CPU and modules in CC-Link IE Controller Network communication via a personal computer board to RCPU are
as follows.
Module Compatible CPU Station No.
RJ71GP21-SX RCPU Refer to the manual of a module to be used.
RJ71EN71*1 RCPU
Access procedure
The following shows the procedure before accessing a CPU module by using CC-Link IE Controller Network communication.
Operating procedure
1. Set a CC-Link IE Controller Network board.
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F CC IE Control board
Board No. 1st module
Network Station type Host station
Finished Comment (Optional)
Operating procedure
1. Start CC IE Control Utility from "MELSEC" in Windows
Start.
Master station
(Sta. No. 0)
Supported CPU and modules in CC-Link IE Field Network communication via a personal computer board to RCPU are as
follows. 6
Module Compatible CPU Station No.
RJ71GF11-T2 RCPU Refer to the manual of a module to be used.
*1
RJ71EN71 RCPU
Access procedure
The following shows the procedure before accessing a CPU module by using CC-Link IE Field Network communication.
Operating procedure
1. Set a CC-Link IE Field Network board.
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F CC IE Field board
Board No. 1st module
Network Station type Other station (Single)
Other station CPU type Select a CPU module to be used.
Network No. 1
Station No. 1
Multiple CPU None
Finished Comment (Optional)
Operating procedure
1. Start CC IE Field Utility of CC IE Field Board from
"MELSEC" in Windows Start.
Master station
(Sta. No. 0)
Supported CPU and modules in CC-Link IE TSN communication via a personal computer board to RCPU are as follows.
Module Compatible CPU Station No.
RJ71GN11-T2 RCPU Refer to the manual of a module to be used.
RJ71GN11-SX RCPU
Access procedure
The following shows the procedure before accessing a CPU module by using CC-Link IE TSN communication.
Operating procedure
1. Set a CC-Link IE TSN board.
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F CC IE TSN board
Board No. 1st module
Network Station type Other station (Single)
Other station CPU type Select a CPU module to be used.
Network No. 1
Station No. 1
Multiple CPU None
Finished Comment (Optional)
6
Checking the CC-Link IE TSN board
Check whether a personal computer is connected properly to CC-Link IE TSN.
For details on the checking method, refer to the following:
CC-Link IE TSN Interface Board User's Manual
Ethernet
GOT (192.168.0.1)
Access procedure
The following shows the procedure before accessing a GOT by using GOT gateway device communication.
Operating procedure
1. Set a GOT.
GOT operating manual to be used
2. Connect the GOT to Ethernet.
GOT operating manual to be used
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module GOT
Port No. 5011
Time out 60000
PLC side PLC side I/F Ethernet module
Module type GOT
Host (IP Address) 192.168.0.1
Finished Comment (Optional)
6
Checking the communication
After completion of preparations for GOT gateway device communication, execute ping in the MS-DOS mode to check
connection before starting communications on MX Component.
• When normal
C:\>ping 192.168.0.1
Reply from 192.168.0.1 : bytes=32 time<10ms TTL=32
• When abnormal
C:\>ping 192.168.0.1
Request timed out.
If ping does not pass through, check a cable and module connections and Windows side IP address and other settings.
GOT MELSECNET/H
(Network No. 1)
USB port
CPU Normal station
module (Sta. No.8)
Access procedure
The following shows the procedure before accessing a GOT by using the GOT transparent function.
Operating procedure
1. Set a GOT.
GOT operating manual to be used
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F USB (via GOT)
Time out 10000
GOT side GOT - PLC I/F Serial
Connect module CPU module
PLC side PLC side I/F CPU module
CPU type Select a CPU module to be used.
Network Station type Other station
Network MELSECNET/10(H)
Other station
Mode
CPU type
MELSECNET/H
Select a CPU module to be used.
6
Network No. 1
Station No. 8
Multiple CPU None
Finished Comment (Optional)
Inverter
COM1
Access procedure
The following shows the procedure before accessing an inverter by using inverter COM communication.
Operating procedure
1. Connect an inverter and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Serial
Connect port COM1
Time out 10000
PLC side PLC side I/F Inverter
Inverter A800
Station No. 0
Transmission speed 19200
Parity Even
Data bit 8
Stop bit 1
Delimiter CR
Transmission wait time 0
Finished Comment (Optional)
Inverter
USB port
Access procedure
The following shows the procedure before accessing an inverter by using inverter USB communication.
Operating procedure
6
1. Connect an inverter and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F USB
Time out 10000
PLC side PLC side I/F Inverter
Inverter A800
Station No. 0
Transmission wait time 0
Finished Comment (Optional)
Robot controller
COM1
Access procedure
The following shows the procedure before accessing a robot controller by using robot controller COM communication.
Operating procedure
1. Connect a robot controller and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Serial
Connect port COM1
Time out 10000
PLC side PLC side I/F Robot controller
R/C type CRnD-7xx/CR75x-D
Transmission speed 19200
Parity Even
Character Size 8
Stop bit 1
Send timeout 5000
Receive timeout 30000
Retries 3
Usage protocol Procedural
Finished Comment (Optional)
Robot controller
USB port
Access procedure
The following shows the procedure before accessing a robot controller by using robot controller USB communication.
Operating procedure
6
1. Connect a robot controller and personal computer.
Page 24 SYSTEM CONFIGURATIONS
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F USB
Time out 10000
PLC side PLC side I/F Robot controller
R/C type CRnD-7xx/CR75x-D
Send timeout 5000
Receive timeout 30000
Retries 3
Finished Comment (Optional)
Robot
controller
Access procedure
The following shows the procedure before accessing a robot controller by using robot controller Ethernet communication.
Operating procedure
1. Connect a robot controller to Ethernet.
Robot controller Manual to use
Setting data
Communication Setting Item Setting example
Wizard
Introduction Logical station number 0 to 1023
PC side PC side I/F Ethernet board
Connect module Robot controller
Port No. 10001
PLC side PLC side I/F Robot controller
R/C type CRnD-7xx/CR75x-D
Host (IP Address) 192.168.0.1
Send timeout 5000
Receive timeout 30000
Retries 3
Finished Comment (Optional)
Label screen 7
Window
LabelSpace
window
Work window
Navigation
window
Task window
Status bar
7 PROGRAMMING
7.1 Creating a Label With Label Utility 115
Basic operations
Operating procedure
Adding LabelSpace
• Select [Menu] [Add LabelSpace].
• Right-click the LabelSpace window, and select [Add LabelSpace].
For system label Ver.1, select [Add LabelSpace]. As for system label Ver.2, select [Add LabelSpace Ver.2].
The maximum number of LabelSpaces is 8. Note that the sum of LabelSpaces and referred Workspaces
should be 16 or less.
Saving LabelSpace
• Select [Menu] [Save LabelSpace].
• Exit Label Utility.
Deleting LabelSpace
• Select the LabelSpace name on the LabelSpace window, and select [Menu] [Delete LabelSpace].
• Right-click the LabelSpace name on the LabelSpace window, and select [Delete LabelSpace].
7 PROGRAMMING
116 7.1 Creating a Label With Label Utility
Registering/deleting a logical station number
Registration
Register a logical station number to LabelSpace.
Operating procedure
• Select a LabelSpace name on the LabelSpace window, and select [Menu] [Logical Station Number] [Register].
• Select a LabelSpace name on the LabelSpace window, right-click "Logical Station Number" on the Navigation window, and
select [Logical Station Number] [Register].
Window
Item Description
Logical station number Select the logical station number defined in Communication Settings Utility from the list box.
The logical station number which has already been registered to other LabelSpace is not displayed.
[Communication setting]
button
Click this to start Communication Settings Utility. 7
[Register] button Click this to register the logical station number, and close the screen.
[Cancel] button Click this to close the screen without registering the logical station number.
Deletion
Delete the logical station number registered to LabelSpace.
Operating procedure
• Select the station number to be deleted from the Navigation window, and select [Menu] [Logical Station Number]
[Deregister].
• Right-click the station number to be deleted from the Navigation window, and select [Logical Station Number]
[Deregister].
7 PROGRAMMING
7.1 Creating a Label With Label Utility 117
System label list
Register, edit, and browse a system label.
Window
Basic operations
Operating procedure
Adding system label list
• Select a LabelSpace name on the LabelSpace window, and select [Menu] [System Label] [System Label List]
[New].
• Select a LabelSpace name on the LabelSpace window, right-click "System Label List" on the Navigation window, and select
[New].
7 PROGRAMMING
118 7.1 Creating a Label With Label Utility
Deleting LabelSpace
• Select the system label list name to be deleted on the Navigation window, and select [Menu] [System Label] [System
Label List] [Delete].
• Right-click the system label list name to be deleted on the Navigation window, and select [System Label List] [Delete].
• Select the system label list name to be deleted on the Navigation window, and press the key.
7
*1
String[Unicode]
Time
Timer*1
*1*3
Timer[Unsigned]
Long timer*1*3
*1
Counter
Counter[Unsigned]*1*3
Long counter*1*3
*1
Retentive timer
Retentive Timer[Unsigned]*1*3
Retentive long timer*1*3
*2
Structure
7 PROGRAMMING
7.1 Creating a Label With Label Utility 119
Window
Click [...] on the data type input field of the system label list or the structure setting.
Operating procedure
1. Select a type from "Type Class."
Item Description
Simple Types Specify this to select a data type from basic types such as bit, word.
Structure Specify this to select a data type from the defined structures.
(Not displayed for the structured data settings)
2. In the "Data Type" field, select the data type and structure.
Operating procedure
1. Click [...] on the data type input field of the system label list or the structure setting.
3. Set "Element (One Dimension)," and if necessary, set "Element (Two Dimension)," "Element (Three Dimension)."
4. Set the data type of the array element in the same manner as setting the normal data type.
7 PROGRAMMING
120 7.1 Creating a Label With Label Utility
Assigning devices to structured data type labels
Window
Click "Detail Setting" on the "Device" column of System Label List.
Operating procedure
Set the items on the screen.
Item Description
Label Name Displays label names defined as structure.
7
Data Type Displays data types set to data names.
Device Set device names to be assigned.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 121
Assigning devices to structure array type labels
Window
Click "Detail Setting" on the "Device" column of System Label List.
Operating procedure
Set the items on the screen.
Item Description
the array of structure Displays elements of the structure array in tree format.
The device setting of the element selected in the tree is displayed in the right area of the screen.
Label Name Displays label names defined as structure.
Data Type Displays data types set to data names.
Device Set device names to be assigned.
Device names can be entered for the start array element only.
7 PROGRAMMING
122 7.1 Creating a Label With Label Utility
Structure setting
Register, edit, and browse each data (element) that is configured in the structure managed in the LabelSpace.
Window
Deleting LabelSpace
• Select the structure name to be deleted on the Navigation window, and select [Menu] [System Label] [Structured Data
Types] [Delete].
• Right-click the structure name to be deleted on the Navigation window, and select [Structured Data Types] [Delete].
• Select the structure name to be deleted on the Navigation window, and press the key.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 123
Referring and registering/canceling Workspaces
Operating procedure
• Select the LabelSpace name on the LabelSpace window, and select [Menu] [Workspace] [Reference Registration].
• Right-click "Reference Workspace" on the Navigation window, and select [Workspace] [Reference Registration].
Window
Item Description
Save Folder Path Click the [Browse] button, and select a folder in the "Browse for Folder" screen.
Workspace List Displays the list of Workspaces.
The structure array labels whose devices are automatically assigned or whose devices are bit-specified
cannot be referred and registered properly.
Register them with the system label list.
Canceling
Cancel the reference of registered Workspace for importing the system label.
• The label information within the LabelSpace can be edited after canceling the reference registration.
Operating procedure
• Select the LabelSpace name on the LabelSpace window, and select [Menu] [Workspace] [Dereference Registration].
• Right-click "Reference Workspace" on the Navigation window, and select [Workspace] [Dereference Registration].
7 PROGRAMMING
124 7.1 Creating a Label With Label Utility
Change notification
Change notification
When Workspace is referred and registered, the system label notification icon is displayed by executing the change
confirmation when the status-changed labels exist.
Operating procedure
Select [Menu] [System Label] [Check Changes of System Label Database].
(The change confirmation is also executed when Label Utility starts.)
Window
• For using the change notification function, use MELSOFT Navigator Version 1.39R or later.
• Receive a change notification when executing any of the following operations on the reference Workspace.
(The change notification is not sent when creating a new system label.)
Change in system labels (including the change of comment and remark)
Deletion of system labels 7
Operating procedure
• Select [Menu] [System Label] [Change Contents of System Label Database].
• Right-click the system label notification icon ( ), and select [Change Contents of System Label Database].
7 PROGRAMMING
7.1 Creating a Label With Label Utility 125
Updating system label data
Update the system label data.
Operating procedure
Select [Menu] [Refresh system label data for Control].
7 PROGRAMMING
126 7.1 Creating a Label With Label Utility
Exporting/Importing LabelSpace
Exporting
Save the information used in Label Utility to a file.
Operating procedure
Select [Menu] [Export].
Window
The assignment information of the logical station number is not included in the exported information.
When using the exported information by importing it, the assignment of logical station number is required.
Importing
Import the saved information saved in a file by exporting LabelSpace (Page 127 Exporting/Importing LabelSpace) to
Label Utility.
To import LabelSpace of MX Component Version 4 to MX Component Version 5, change the number of characters used in the
LabelSpace name to less than 32 characters.
Operating procedure
Select [Menu] [Import].
Window
7 PROGRAMMING
7.1 Creating a Label With Label Utility 127
System label
System labels are labels that can be used with sharing them with multiple projects by opening devices of programmable
controller projects and motion controller projects as system labels.
Therefore, programming efficiency is improved.
As the device assignment settings are changed in bulk, device assignment changes on applications are not required.
Act.LogifalNumber=1;
Act.Open();
ret=Act.GetDevice("Temperature", Data); User application
Act.Close();
MX Component
Label Utility
Syetem label
Data base
• System labels
Define labels on a 1:1 basis with devices, and register the labels.
Structure can be used. Structure consists of aggregate of various devices.
Set data types. Any data types can be set as array.
System labels used in MELSOFT Navigator can be utilized in MX Component.
• System label data base
A system label data base is a data base to manage system labels.
• System label Ver.2
The labels can be registered to system label Ver.2 using MX Component Version 4.07H or later.
Structure labels and array labels can also be registered.
System label structure of up to five-level can be used by MX Component Version 4.11M or later.
7 PROGRAMMING
128 7.1 Creating a Label With Label Utility
Registering system labels in MX Component
Register a system label with Label Utility.
Operating procedure
1. Start Label Utility.
Select the set system label list name to display the system
label list.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 129
5. Right-click "Logical Station Number" on the Navigation
window, and select [Logical Station Number]
[Register].
7 PROGRAMMING
130 7.1 Creating a Label With Label Utility
Deleting system labels
Operating procedure
1. Select "Delete" for a system label to be deleted.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 131
Registering system labels (structured data type)
Operating procedure
1. Start Label Utility.
7 PROGRAMMING
132 7.1 Creating a Label With Label Utility
5. Right-click "System Label List" on the Navigation
window, and select [System Label List] [New].
Set the system label list name.
Select the set system label list name to display the system
label list.
7. Specify a device.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 133
9. Select [Menu] [Refresh system label data for Control].
The labels referred from controls are updated.
7 PROGRAMMING
134 7.1 Creating a Label With Label Utility
Utilizing labels used in MELSOFT Navigator
Refer a system label from existing Workspace, and register it with Label Utility.
Operating procedure
1. Start Label Utility.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 135
The referred and registered Workspace name is displayed on
the Navigation window.
Select the system label name to display the referred system
label list.
7 PROGRAMMING
136 7.1 Creating a Label With Label Utility
Applying device settings changed in GX Works2 to MX Component
Update the settings with Label Utility after changing the device assignment settings of referred and registered system labels
with GX Works2.
Operating procedure
1. Start Label Utility.
The system label notification icon is displayed on the status
bar of Label Utility.
7
3. Right-click the system label notification icon, and select
[Change Contents of System Label Database].
(Page 125 Change notification)
7 PROGRAMMING
7.1 Creating a Label With Label Utility 137
The system label notification icon is displayed while referring
more than one Workspace.
The system label notification icon is not displayed when the system labels are used without referring and
registering the Workspace.
7 PROGRAMMING
138 7.1 Creating a Label With Label Utility
Using System Labels on another personal computer
Export a LabelSpace, and import it to another personal computer to use a system label.
Exporting LabelSpace
Export a LabelSpace, and create a file.
Operating procedure
1. Start Communication Settings Utility.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 139
Importing LabelSpace
Import an exported file to LabelSpace of another personal computer.
Copy the exported files of the communication setting and the LabelSpace to the personal computer to be imported
beforehand.
Operating procedure
1. Start Communication Settings Utility.
7 PROGRAMMING
140 7.1 Creating a Label With Label Utility
6. Specify the file name of LabelSpace to be imported.
7 PROGRAMMING
7.1 Creating a Label With Label Utility 141
7.2 Coding
Create the processing for reading/writing the target devices, devices, and labels by using the properties and functions
provided by a control.
For accessible devices, properties of controls, and functions, refer to the following:
Page 154 Accessible Devices
Page 170 PROPERTIES OF CONTROLS
Page 416 FUNCTIONS
7 PROGRAMMING
142 7.2 Coding
7.3 Debugging
Debugging can be performed efficiently by using PLC Monitor Utility when checking the device value.
The following explains the operation and setting method of PLC Monitor Utility.
Start
Operating procedure
Start PLC Monitor Utility from "MELSOFT" in Windows Start.
Operating procedure
Select [Online] [Transfer setting].
(This screen is also displayed when PLC Monitor Utility is started.)
7
Window
Item Description
Connection using logical Select this when using a logical station number.
station number
Logical station number Select the logical station number set in Communication Settings Utility.
Connection without logical Select this when not using a logical station number.
station number
[Wizard] button Click this to start Communication Setting Wizard and set the transfer setting.
Connect Retry Times Set the number of retries (0 to 9) to be performed when an error occurs during monitoring with PLC Monitor Utility.
7 PROGRAMMING
7.3 Debugging 143
• Before specifying the logical station number, confirm that the settings of the logical station number, (the
CPU type, station number, or the like) are correct in Communication Settings Utility.
• When the program setting type is selected, the details of the transfer setting can be changed by clicking the
programmable controller or personal computer sketch.
7 PROGRAMMING
144 7.3 Debugging
Device Batch tab
This tab is used to monitor the specified device.
Window
(1)
7 PROGRAMMING
7.3 Debugging 145
• Specifying the device memory in the Un\G format enables the buffer memory to be monitored.
• When monitoring the setting values of the timers and counters, indirectly specify the data registers.
• Devices cannot be monitored if the connection destination is not established.
• The transfer settings cannot be set during monitoring.
• Device data of QSCPU cannot be changed.
Window
(1)
Item Description
Module I/O Enter the start address of the module to be monitored.
For access to an FXCPU, enter the block number of the special expansion device into Module I/O.
Memory address Enter the address of the buffer memory to be monitored in hexadecimal or decimal.
[Start monitor] button ([Stop Click this to start (stop) monitor.
monitor] button)
Monitor format Set the monitor format.
Item
Bit&Word: Set the monitor screen to the bit and word display.
Bit: Set the monitor screen to the bit display only.
Word: Set the monitor screen to the word display only.
Display Set the display format of the device values to be displayed when the monitor format is "Bit&Word" or "Word."
Item
16bit integer: Set to the 16-bit integer display.
32bit integer: Set to the 32-bit integer display.
Real number (single precision): Set to the real number (single precision) display.
Real number (double precision): Set to the real number (double precision) display.
ASCII character: Set to the ASCII character string display.
Data format Set the radix when the display is "16 bit integer" or "32 bit integer."
Item
DEC: Set to the decimal display.
HEX: Set to the hexadecimal display.
Bit order Set the order of the bit devices being monitored.
Item
F-0: Display in order of F, E, ... 1, 0 from left to right.
0-F: Display in order of 0, 1, ... E, F from left to right.
(1) Monitor screen Displays the buffer memory status.
For the bit device status, 1 indicates an ON status and 0 an OFF status.
"*" flickers under the scroll button during monitoring.
(2) Target CPU name Displays the communication target CPU name specified in Communication Setting Wizard.
7 PROGRAMMING
146 7.3 Debugging
Item Description
(3) Communication route Displays such information as the network type, network number, start I/O address and station number.
information
(4) Logical station number Displays the logical station number set for the utility setting type.
This number is not displayed when the program setting type is used.
7 PROGRAMMING
7.3 Debugging 147
Entry Device tab
This tab is used to monitor the specified devices on a single screen at the same time.
Window
(1)
Item Description
[Register device] button Click this to register the device to be monitored.
The following screen is displayed by clicking the [Register device] button.
Page 149 The "Register device" screen
[Delete device] button Click this to delete the device to be monitored.
[Clear device] button Click this to delete all devices registered in device entry monitor from the monitor screen.
[Start monitor] button Click this to start (stop) monitor.
([Stop monitor] button)
(1) Monitor screen Displays the device status.
The "Write to Device" screen is displayed by clicking the device name. (Page 150 Write to Device screen)
"*" flickers under the scroll button during monitoring.
(2) Target CPU name Displays the communication target CPU name specified in Communication Setting Wizard.
(3) Communication route Displays such information as the network type, network number, start I/O address and station number.
information
(4) Logical station Displays the logical station number set for the utility setting type.
number This number is not displayed when the program setting type is used.
7 PROGRAMMING
148 7.3 Debugging
The "Register device" screen
The screen is displayed by clicking the [Register device] button.
Register the device to be monitored.
Window
Item Description
Device Enter the device to be registered.
Value Set the value to be entered when a word device is specified.
Item
DEC: Set to decimal.
HEX: Set to hexadecimal.
Display Set the display format when a word device is specified.
Item
16bit integer: Set to the 16-bit integer display.
32bit integer: Set to the 32-bit integer display.
Real number (single precision): Set to the real number (single precision) display. 7
Real number (double precision): Set to the real number (double precision) display.
ASCII character: Set to the ASCII character string display.
[Register] button Click this to register the device.
[Close] button Click this to close the dialog box.
• When monitoring the setting values of the timers and counters, indirectly specify the data registers.
• Devices cannot be monitored if the connection destination is not established.
• The transfer settings cannot be set during monitoring.
7 PROGRAMMING
7.3 Debugging 149
Write to Device screen
This screen is used to change the ON/OFF of a bit device or the present value of a word device or buffer memory.
Operating procedure
• Select [Online] [Device write].
• Double-click the monitor screen of the corresponding tab.
Window
Item Description
Bit device Device Enter the device name.
[Force ON] button Click this to forcibly change the specified device to the ON status.
[Force OFF] button Click this to forcibly change the specified device to the OFF status.
[Toggle force] button Click this to forcibly change the specified device from the ON to OFF status or from the OFF to ON
status.
Word device/Buffer Device Select this to enter the word device to be written.
memory
Buffer memory Select this to enter a module start I/O address and a buffer memory address.
Setting value Enter the value to be written.
The following table indicates the input range.
Item
16bit integer: -32768 to 32767
32bit integer: -2147483648 to 2147483647
Real number (single precision), Real number (double precision): -999999999999999 to
9999999999999999 Number of significant figures: 13 digits
[Set] button Click this to write the set data.
• When using an RnSFCPU, writing to the safety device cannot be performed in the safety mode. Page
158 When the access target is an RnSFCPU or RnPSFCPU (safety device)
• When using a QSCPU, [Device write] cannot be selected.
• When using a QSCPU, buffer memory cannot be written.
7 PROGRAMMING
150 7.3 Debugging
Time setting screen
This screen is used to read or change the clock data of the programmable controller.
Operating procedure
Select [Online] [Set time].
Window
Item Description
PC Time Displays the time of the personal computer. (Write disabled)
PLC Time Displays the time of the CPU module.
[Set] button Click this to write the "PLC Time" information to the CPU module.
[Close] button Click this to close the "Time setting" screen.
7
Time setting is not available when either of the following communications is selected.
• GOT gateway device communication (An error occurs.)
For a QSCPU, the clock data cannot be changed.
7 PROGRAMMING
7.3 Debugging 151
MEMO
7 PROGRAMMING
152 7.3 Debugging
PART 2
PART 2 DETAILED
SPECIFICATIONS OF
PROGRAMS
This part explains the details of the properties and functions used in a program.
9 PROPERTIES OF CONTROLS
11 FUNCTIONS
12 SAMPLE PROGRAMS
13 ERROR CODES
153
8 ACCESSIBLE DEVICES AND DEVICE TYPES
This chapter explains the accessible devices in each communication route and device types that can be specified with the
functions.
The following devices and CPUs are not supported by MX Component. Therefore, do not specify them.
• Devices that are not in the list of accessible devices
• Connected station CPUs and relayed station CPUs that are not in the list of accessible devices(Page
181 PROPERTY SETTINGS OF COMMUNICATION ROUTES)
*1 In a multi-CPU configuration, reading from the shared memory of the host CPU cannot be performed.
Writing to the shared memory cannot be performed regardless of the host or other CPU.
• Specify devices with "device name + device number" for any of the following functions.
For the device numbers, note the differences between octal, decimal, and hexadecimal numbers.
Target functions: ReadDeviceBlock, ReadDeviceBlock2, WriteDeviceBlock, WriteDeviceBlock2,
ReadDeviceRandom, ReadDeviceRandom2, WriteDeviceRandom, WriteDeviceRandom2,
SetDevice, SetDevice2, GetDevice, GetDevice2
• When specifying bit devices for ReadDeviceBlock, ReadDeviceBlock2, WriteDeviceBlock, or
WriteDeviceBlock2, specify the device number with a multiple of 16.
• Local devices and file registers per program of CPU module cannot be accessed by specifying a program
name.
• Only the devices indicated in this section are supported. Do not use unsupported devices.
*1 4 words/1 point. For a bulk operation, the operation is performed continuously in units of one word. For a random operation, only the first
one word is read.
*2 For FXCPU, the device number is octal.
*3 For FXCPU, the value higher than or equal to 200 is 32-bit data.
*4 These devices cannot be used when E71 is relayed.
*5 When specifying a file register in FX series CPU other than FX3G(C)CPU and FX3U(C)CPU, specify the data register (D). The extended
register (R) can be specified only in FX3G(C)CPU or FX3U(C)CPU.
*6 For a direct specification, enter "\" between the direct specification and the device specification.
*7 Jn specifies a network number.
*8 Un specifies a special module I/O number (hexadecimal), and G specifies a buffer memory address (decimal).
(Example: When the special module I/O number is 200H and the buffer memory address is 100, the device name will be "U20\G100.")
*9 In a QCPU multiple CPU configuration, an error occurs if the shared memory of the host QCPU is specified.
Regardless of whether the CPU is a host CPU or other CPU, an error occurs if data is written to the shared memory.
*10 For FXCPU, this device name can be used on FX3U(C)CPU only.
*11 When accessing the device using a label of system label Ver.2, the label of system label Ver.2 which is corresponding to a device for
contact/coil/present value is required to be defined.
*12 The device is not available in LHCPU.
*1 When accessing the device using a label of system label Ver.2, the label of system label Ver.2 which is corresponding to a device for
contact/coil/present value is required to be defined.
*1 If a gateway device to which a CPU module device is not assigned is read, the read data becomes 0.
9 PROPERTIES OF CONTROLS
170 9.1 Property List
Control name Property name
ACT Control ActProgType ActATCommand*4
ActProgType64
ActProgDataLogging*1*2
ActATCommandPasswordCancelRetryTimes*4
9
ActProgDataLogging64*1*2 ActATCommandResponseWaitTime*4
ActCallbackCancelWaitTime*4
ActCallbackDelayTime*4
ActCallbackNumber*4
ActCallbackReceptionWaitingTimeOut*4
ActConnectionCDWaitTime*4
ActConnectionModemReportWaitTime*4
ActConnectWay*4
ActDialNumber*4
ActDisconnectionCDWaitTime*4
ActDisconnectionDelayTime*4
ActLineType*4
ActOutsideLineNumber*4
ActPasswordCancelResponseWaitTime*4
ActTransmissionDelayTime*4
ActSupportMsg
ActSupportMsg64
.NET Control DotUtlType ActLogicalStationNumber
DotUtlType64
ActPassword
DotSupportMsg
DotSupportMsg64
9 PROPERTIES OF CONTROLS
9.1 Property List 171
9.2 Details of Control Properties
This section explains the details of properties set when creating a user program.
*1 Characters exceeded the maximum number of characters for the password are ignored.
If a character other than alphanumeric is specified, a character code conversion error (0xF1000001) occurs at the execution of the Open
function.
9 PROPERTIES OF CONTROLS
172 9.2 Details of Control Properties
Property name (Type) Description Default value
ActCpuType(LONG) When the ActMxUnitSeries property is set to '0' (programmable controller/motion controller) 34
Specify the target CPU to communicate with.
In the parameter, specify the CPU type in the following table.
(CPU_Q02CPU)
9
Page 176 ActCpuType(LONG): When the ActMxUnitSeries property is set to '0'
(programmable controller/motion controller)
When the ActMxUnitSeries property is set to '1' (inverter)
Specify the target Inverter to communicate with.
In the parameter, specify the CPU type in the following table.
Page 177 ActCpuType(LONG): When the ActMxUnitSeries property is set to '1' (inverter)
When the ActMxUnitSeries property is set to '2' (robot)
Specify the target robot to communicate with.
In the parameter, specify the CPU type in the following table.
Page 177 ActCpuType(LONG): When the ActMxUnitSeries property is set to '2' (robot)
ActPortNumber(LONG) Specify the connection port number of personal computer. 1 (PORT_1)
When an Ethernet module is connected, set any value as a port number of the requesting source
(personal computer).
When "=0" was specified as a port number, the Station No. IP information system should be
the automatic response system. (When the system other than the automatic response system is
selected, set the fixed value "5001.")
When the network board is used, specify the first board as PORT_1, and the second and
subsequent boards as PORT_2, PORT_3, and so on.
Page 178 ActPortNumber(LONG)
ActBaudRate(LONG) Specify the baud rate for serial communication. 19200
Property value (Property window input value) (BAUDRATE_19
BAUDRATE_300 (300): 300 bps 200)
BAUDRATE_600 (600): 600 bps
BAUDRATE_1200 (1200): 1200 bps
BAUDRATE_2400 (2400): 2400 bps
BAUDRATE_4800 (4800): 4800 bps
BAUDRATE_9600 (9600): 9600 bps
BAUDRATE_19200 (19200): 19200 bps
BAUDRATE_38400 (38400): 38400 bps
BAUDRATE_57600 (57600): 57600 bps
BAUDRATE_115200 (115200): 115200 bps
For inverter communication, specify the property value greater than BAUDRATE_4800 (4800).
ActDataBits(LONG) Specify the number of bits of the byte data sent and received for serial communication. 8 (DATABIT_8)
Property value (Property window input value)
DATABIT_7 (7): 7 bits
DATABIT_8 (8): 8 bits
For robot controller, specify the character size.
ActParity(LONG) Specify the parity system used for serial communication. 1
Property value (Property window input value) (ODD_PARITY)
NO_PARITY (0): No parity
ODD_PARITY (1): Odd
EVEN_PARITY (2): Even
ActStopBits(LONG) Specify the number of stop bits used for serial communication. 0
Property value (Property window input value) (STOPBIT_ONE
STOPBIT_ONE (0): 1 stop bit )
STOPBITS_TWO (2): 2 stop bits
For robot controller, specify the following setting.
Property value (Property window input value)
ONESTOPBIT (0): 1 stop bit
ONE5STOPBITS (1): 1.5 stop bits
TWOSTOPBITS (2): 2 stop bits
ActControl(LONG) Specify the control setting of the signal line. 8
Page 178 ActControl(LONG) (TRC_DTR_OR
_RTS)
ActHostAddress(BSTR) Pointer which indicates the connection host name (IP address) for Ethernet communication. 1.1.1.1
When setting the first character of each octet to '0,' the value is processed as octal number.
ActCpuTimeOut(LONG) Specify the CPU watchdog timer for Ethernet communication. (Unit: Multiplied by 250 ms) 0 (0x00)
For FXCPU/inverter, specify the transmission waiting time for serial communication of FXCPU/
inverter. (Unit: Multiplied by 10 ms)
For robot controller, specify the transmission timeout time. (1000 to 30000 ms)
9 PROPERTIES OF CONTROLS
9.2 Details of Control Properties 173
Property name (Type) Description Default value
ActTimeOut(LONG) Set the time-out value of communication between the personal computer and programmable 10000
controller/inverter. (Unit: ms)
For robot controller, specify the transmission timeout time. (5000 to 120000 ms)
A time-out processing may be performed internally depending on the communication route in MX
Component.
For details, refer to the following:
Page 673 Time-Out Periods
ActSumCheck(LONG) Specify whether sum check is applied or not. 0
This setting is valid for serial communication module only. (NO_SUM_CHE
Property value (Property window input value) CK)
NO_SUM_CHECK (0): Without sum check
SUM_CHECK (1): With sum check
ActSourceNetworkNumber(LONG) Specify the requesting network number when an Ethernet module is specified. 0 (0x00)
Specify the same network number (which is specified in the network parameter) as that of
Ethernet connected.
ActSourceStationNumber(LONG) Specify the requesting station number (personal computer side station number) when an Ethernet 0 (0x00)
module is specified.
Set the setting to avoid setting the same station number as that of an Ethernet module set within
the same Ethernet loop.
ActDestinationPortNumber(LONG) Specify the port number of the target when Ethernet communication is specified. 0 (0x00)
When accessing another network, specify the relay destination port number.
For the system other than the automatic response system, set the following setting.
Setting
MELSEC iQ-R series-compatible E71 (TCP/IP) - MELSOFT connection: Fixed to "5002"
MELSEC iQ-R series-compatible E71 (TCP/IP) - OPS connection: Depending on network
parameter
MELSEC iQ-R series-compatible E71 (UDP/IP): Fixed to "5001"
Q series-compatible E71 (TCP/IP) - Other than redundant CPU: Fixed to "5002"
Q series-compatible E71 (TCP/IP) - MELSOFT connection*1: Fixed to "5002"
Q series-compatible E71 (TCP/IP) - OPS connection*1: Depending on network parameter
Q series-compatible E71 (UDP/IP): Fixed to "5001"
ActDestinationIONumber(LONG) For multi-drop connection (via MELSEC iQ-R series-compatible C24/Q series-compatible C24/L 0 (0x00)
series-compatible C24/CC-Link), specify the actual I/O number (start I/O number divided by 16)
of the last access target station. (When the target is an intelligent function module)
Specify "992" (0x3E0) to "1023" (0x3FF) when making access to another station via the host
station CPU or network.
ActMultiDropChannelNumber(LONG) For multi-drop connection (via MELSEC iQ-R series-compatible C24/Q series-compatible C24/L 0 (0x00)
series-compatible C24/CC-Link), specify the multi-drop connection channel number (CH1/CH2).
For robot controller, specify the retry count at communication error. (0 to 10 times)
This setting is invalid for other connections.
ActThroughNetworkType(LONG) Specify whether MELSECNET/10 is included in the relayed network when accessing other station 0 (0x00)
via network.
Property value
0 (0x00): MELSECNET/10 is not included.
1 (0x01): MELSECNET/10 is included.
For robot controller, specify the protocol to be used (communication method). (Procedural (0)/
Nonprocedural (1))
ActIntelligentPreferenceBit(LONG) For multi-drop connection (via MELSEC iQ-R series-compatible C24/Q series-compatible C24/L 0 (0x00)
series-compatible C24/CC-Link), specify whether to relay the network of the multi-drop link
destination. (To differentiate the own network module.)
Property value
0 (0x00): Another network of multi-drop link destination is not accessed.
1 (0x01): Another network of multi-drop link destination is accessed.
ActDidPropertyBit(LONG) For accessing the Q series-compatible host station intelligent function module (intelligent function 1 (0x01)
module mounted on the host station CPU), the setting of "ActUnitNumber" is not necessary by
invalidating the following setting. (Specify the property with the setting of "ActIONumber" only.)
Property value
0 (0x00): Module number is validated.
1 (0x01): Module number is invalidated.
ActDsidPropertyBit(LONG) For multi-drop connection (via MELSEC iQ-R series-compatible C24/Q series-compatible C24/L 1 (0x01)
series-compatible C24/CC-Link), the setting of "ActDestinationIONumber" is not necessary by
invalidating the following setting.
However, when the following setting is invalidated, validate the setting of "ActDidPropertyBit."
(Specify the property with the setting of "ActUnitNumber.")
Property value
0 (0x00): I/O number of the last access target station is validated.
1 (0x01): I/O number of the last access target station is invalidated.
9 PROPERTIES OF CONTROLS
174 9.2 Details of Control Properties
Property name (Type) Description Default value
ActPacketType(LONG) Specify whether CR/LF exists or not. 1(CRLF_CR)
Property value (Property window input value)
CRLF_NONE (0): Without CR/LF 9
CRLF_CR (1): With CR
CRLF_CRLF (2): With CR/LF
ActPassword(BSTR)*2 Specify a password to disable the password set to the password protected modules.*3*4*5 Empty
This setting is ignored when a password protected module is not used.
ActTargetSimulator(LONG) Specify the connection destination GX Simulator2 in start status. 0 (0x00)
When connecting to FXCPU, specify "0" (0x00).
Property value
0 (0x00): None
(When only one simulator is in start status, connects to the simulator in start status. When
multiple simulators are in start status, search for the simulators in start status and connect them in
alphabetical order.)
1 (0x01): Simulator A
2 (0x02): Simulator B
3 (0x03): Simulator C
4 (0x04): Simulator D
Specify the PLC number of the connection destination GX Simulator3 in start status.
Specify the connection destination MT Simulator2 in start status.
Property value
2 (0x02): Simulator No.2
3 (0x03): Simulator No.3
4 (0x04): Simulator No.4
ActUnitType(LONG) Specify the module type connected to the physical port. 0x13
Page 178 ActUnitType(LONG) (UNIT_QNCPU)
ActProtocolType(LONG) Specify the communication protocol type of the module (board) to be connected. 0x04
Page 180 ActProtocolType(LONG) (PROTOCOL_S
ERIAL)
ActATCommand They can be used in only MX Component Version 4, and cannot be used in MX Component
Version 5 or later.
ActATCommandPasswordCancelRetry
Times
ActATCommandResponseWaitTime
ActCallbackCancelWaitTime
ActCallbackDelayTime
ActCallbackNumber
ActCallbackReceptionWaitingTimeOut
ActConnectionCDWaitTime
ActConnectionModemReportWaitTime
ActConnectWay
ActDialNumber
ActDisconnectionCDWaitTime
ActDisconnectionDelayTime
ActLineType
ActOutsideLineNumber
ActPasswordCancelResponseWaitTim
e
ActTransmissionDelayTime
9 PROPERTIES OF CONTROLS
9.2 Details of Control Properties 175
ActCpuType(LONG): When the ActMxUnitSeries property is set to '0' (programmable
controller/motion controller)
Property value (Property window input value) Target CPU
CPU type Dec. Hex.
CPU_R00CPU 4609 0x1201 R00CPU
CPU_R01CPU 4610 0x1202 R01CPU
CPU_R02CPU 4611 0x1203 R02CPU
CPU_R04CPU 4097 0x1001 R04CPU
CPU_R04ENCPU 4104 0x1008 R04ENCPU
CPU_R08CPU 4098 0x1002 R08CPU
CPU_R08ENCPU 4105 0x1009 R08ENCPU
CPU_R08PCPU 4354 0x1102 R08PCPU
CPU_R08PSFCPU 4369 0x1111 R08PSFCPU
CPU_R08SFCPU 4386 0x1122 R08SFCPU
CPU_R16CPU 4099 0x1003 R16CPU
CPU_R16ENCPU 4106 0x100A R16ENCPU
CPU_R16PCPU 4355 0x1103 R16PCPU
CPU_R16PSFCPU 4370 0x1112 R16PSFCPU
CPU_R16SFCPU 4387 0x1123 R16SFCPU
CPU_R32CPU 4100 0x1004 R32CPU
CPU_R32ENCPU 4107 0x100B R32ENCPU
CPU_R32PCPU 4356 0x1104 R32PCPU
CPU_R32PSFCPU 4371 0x1113 R32PSFCPU
CPU_R32SFCPU 4388 0x1124 R32SFCPU
CPU_R120CPU 4101 0x1005 R120CPU
CPU_R120ENCPU 4108 0x100C R120ENCPU
CPU_R120PCPU 4357 0x1105 R120PCPU
CPU_R120PSFCPU 4372 0x1114 R120PSFCPU
CPU_R120SFCPU 4389 0x1125 R120SFCPU
CPU_R16MTCPU 4113 0x1011 R16MTCPU
CPU_R32MTCPU 4114 0x1012 R32MTCPU
CPU_R64MTCPU 4115 0x1013 R64MTCPU
CPU_R12CCPU_V 4129 0x1021 R12CCPU-V
CPU_R102WCPU_W 4136 0x1028 R102WCPU_W
CPU_L04HCPU 4625 0x1211 L04HCPU
CPU_L08HCPU 4626 0x1212 L08HCPU
CPU_L16HCPU 4627 0x1213 L16HCPU
CPU_L32HCPU 4628 0x1214 L32HCPU
CPU_Q00UJCPU 128 0x80 Q00UJCPU
CPU_Q00UCPU 129 0x81 Q00UCPU
CPU_Q01UCPU 130 0x82 Q01UCPU
CPU_Q02UCPU 131 0x83 Q02UCPU
CPU_Q03UDCPU 112 0x70 Q03UDCPU
CPU_Q03UDECPU 144 0x90 Q03UDECPU
CPU_Q03UDVCPU 209 0xD1 Q03UDVCPU
CPU_Q04UDHCPU 113 0x71 Q04UDHCPU
CPU_Q04UDEHCPU 145 0x91 Q04UDEHCPU
CPU_Q04UDVCPU 210 0xD2 Q04UDVCPU
CPU_Q04UDPVCPU 71 0x47 Q04UDPVCPU
CPU_Q06UDHCPU 114 0x72 Q06UDHCPU
CPU_Q06UDEHCPU 146 0x92 Q06UDEHCPU
CPU_Q06UDVCPU 211 0xD3 Q06UDVCPU
CPU_Q06UDPVCPU 72 0x48 Q06UDPVCPU
9 PROPERTIES OF CONTROLS
176 9.2 Details of Control Properties
Property value (Property window input value) Target CPU
CPU type Dec. Hex.
CPU_Q10UDHCPU 117 0x75 Q10UDHCPU 9
CPU_Q10UDEHCPU 149 0x95 Q10UDEHCPU
CPU_Q12PRHCPU 67 0x43 Q12PRHCPU
CPU_Q13UDHCPU 115 0x73 Q13UDHCPU
CPU_Q13UDEHCPU 147 0x93 Q13UDEHCPU
CPU_Q13UDVCPU 212 0xD4 Q13UDVCPU
CPU_Q13UDPVCPU 73 0x49 Q13UDPVCPU
CPU_Q20UDHCPU 118 0x76 Q20UDHCPU
CPU_Q20UDEHCPU 150 0x96 Q20UDEHCPU
CPU_Q25PRHCPU 68 0x44 Q25PRHCPU
CPU_Q26UDHCPU 116 0x74 Q26UDHCPU
CPU_Q26UDEHCPU 148 0x94 Q26UDEHCPU
CPU_Q26UDVCPU 213 0xD5 Q26UDVCPU
CPU_Q26UDPVCPU 74 0x4A Q26UDPVCPU
CPU_Q50UDEHCPU 152 0x98 Q50UDEHCPU
CPU_Q100UDEHCPU 154 0x9A Q100UDEHCPU
CPU_L02SCPU 163 0xA3 L02SCPU
CPU_L02CPU 161 0xA1 L02CPU
CPU_L06CPU 165 0xA5 L06CPU
CPU_L26CPU 164 0xA4 L26CPU
CPU_L26CPUBT 162 0xA2 L26CPU-BT
CPU_Q12DC_V 88 0x58 Q12DCCPU-V
CPU_Q24DHC_V 89 0x59 Q24DHCCPU-V
CPU_Q24DHC_LS 91 0x5B Q24DHCCPU-LS
CPU_Q24DHC_VG 92 0x5C Q24DHCCPU-VG
CPU_Q26DHC_LS 93 0x5D Q26DHCCPU-LS
CPU_QS001CPU 96 0x60 QS001CPU
CPU_Q172DCPU 1573 0x625 Q172DCPU
CPU_Q173DCPU 1574 0x626 Q173DCPU
CPU_Q172DSCPU 1578 0x62A Q172DSCPU
CPU_Q173DSCPU 1579 0x62B Q173DSCPU
CPU_FX3SCPU 522 0x20A FX3SCPU
CPU_FX3GCPU 521 0x209 FX3G(C)CPU
CPU_FX3UCCPU 520 0x208 FX3U(C)CPU
CPU_FX5UCPU 528 0x0210 FX5UCPU
CPU_FX5UJCPU 529 0x0211 FX5UJCPU
CPU_FX5SCPU 530 0x0212 FX5SCPU
CPU_BOARD 1025 0x401 For own board access*1
9 PROPERTIES OF CONTROLS
9.2 Details of Control Properties 177
ActPortNumber(LONG)
Property value (Property window input value) Description
Port number Dec. Hex.
PORT_1 1 0x01 Communication port 1
PORT_2 2 0x02 Communication port 2
PORT_3 3 0x03 Communication port 3
PORT_4 4 0x04 Communication port 4
PORT_5 5 0x05 Communication port 5
PORT_6 6 0x06 Communication port 6
PORT_7 7 0x07 Communication port 7
PORT_8 8 0x08 Communication port 8
PORT_9 9 0x09 Communication port 9
PORT_10 10 0x0A Communication port 10
ActControl(LONG)
Property value (Property window input value) Description
Control setting Dec. Hex.
TRC_DTR 1 0x01 DTR control
TRC_RTS 2 0x02 RTS control
TRC_DRT_AND_RTS 7 0x07 DTR control and RTS control
TRC_DTR_OR_RTS 8 0x08 DTR control or RTS control
ActUnitType(LONG)
Module type Connection system Value
UNIT_RJ71C24 MELSEC iQ-R series-compatible C24 module direct connection 0x1000
MELSEC iQ-R series-compatible C24 connection via GOT2000 series
UNIT_QJ71C24 Q series-compatible C24 module direct connection 0x19
Q series-compatible C24 connection via GOT2000 series
UNIT_LJ71C24 L series-compatible C24 module direct connection 0x54
L series-compatible C24 connection via GOT2000 series
UNIT_FX485BD FX extended port (RS-485) connection 0x24
UNIT_RJ71EN71 Via MELSEC iQ-R series-compatible E71 connection (IP specification) 0x1001
UNIT_RJ71EN71_DIRECT Via MELSEC iQ-R series-compatible E71 connection (Direct 0x1005
connection)
UNIT_QJ71E71 Q series-compatible E71 Ethernet port connection/direct connection 0x1A
UNIT_LJ71E71 L series-compatible E71 module connection 0x5C
UNIT_RETHER RCPU Ethernet port connection (IP specification) 0x1002
UNIT_LHETHER LHCPU Ethernet port connection (IP specification)
UNIT_RETHER_DIRECT RCPU Ethernet port direct connection 0x1003
UNIT_LHETHER_DIRECT LHCPU Ethernet port direct connection
UNIT_FXVETHER FX5CPU Ethernet port connection 0x2001
UNIT_FXVETHER_DIRECT FX5CPU Ethernet port direct connection 0x2002
UNIT_LNETHER LCPU Ethernet port connection 0x52
UNIT_LNETHER_DIRECT LCPU Ethernet port direct connection 0x53
UNIT_QNETHER QCPU Ethernet port connection 0x2C
UNIT_QNETHER_DIRECT QCPU Ethernet port direct connection 0x2D
UNIT_RJ71GN11 RJ71GN11-T2 module for RCPU IP specified connection 0x1006
UNIT_RJ71GN11_DIRECT RJ71GN11-T2 module for RCPU direct connection 0x1007
UNIT_NZ2GF_ETB Ethernet adapter module (NZ2GF-ETB) connection 0x59
UNIT_NZ2GF_ETB_DIRECT Ethernet adapter module (NZ2GF-ETB) direct connection 0x5A
UNIT_FXETHER FXCPU Ethernet adapter (FX3U-ENET-ADP) via hub 0x4A
UNIT_FXETHER_DIRECT FXCPU Ethernet adapter (FX3U-ENET-ADP) direct connection 0x4B
UNIT_FXVENET FX5CPU Ethernet module (FX5-ENET, FX5-ENET/IP) IP specified 0x2004
connection
9 PROPERTIES OF CONTROLS
178 9.2 Details of Control Properties
Module type Connection system Value
UNIT_FXVENET_DIRECT FX5CPU Ethernet module (FX5-ENET, FX5-ENET/IP) direct connection 0x200E
UNIT_FXVCCLGN Via FX5-CCLGN-MS module connection 0x200D
9
UNIT_FXVCPU FX5CPU Serial port connection 0x2000
UNIT_QNCPU QCPU (Q mode) RS232C port direct connection 0x13
GOT2000 series QCPU (Q mode) direct connection
UNIT_LNCPU LCPU-RS232C port direct connection 0x50
GOT2000 series LCPU direct connection
UNIT_QNMOTION Q motion CPU-RS232C port direct connection 0x1C
UNIT_FXCPU FXCPU-RS422 port direct connection 0x0F
FXCPU USB direct connection
GOT2000 series FXCPU direct connection
UNIT_RUSB RCPU USB port direct connection 0x1004
UNIT_LHUSB LHCPU USB port direct connection
UNIT_FXVUSB FX5CPU USB port direct connection 0x200C
UNIT_QNUSB QCPU (Q mode) USB port direct connection 0x16
UNIT_LNUSB LCPU USB port direct connection 0x51
UNIT_QSUSB QSCPU (Safety programmable controller) USB port connection 0x29
UNIT_QNMOTIONUSB Q motion CPU USB port direct connection 0x1D
UNIT_MNETHBOARD MELSECNET/H board connection 0x1E
UNIT_MNETGBOARD CC-Link IE Controller Network board connection 0x2B
UNIT_CCIETSNBOARD CC-Link IE TSN board connection 0x73
UNIT_CCIEFBOARD CC-Link IE Field Network board connection 0x2F
UNIT_CCLINKBOARD CC-Link Ver.2 board connection 0x0C
UNIT_G4QNCPU Q series-compatible AJ65BT-G4-S3 module direct connection 0x1B
UNIT_SIMULATOR2*1 Simulator (GX Simulator2) connection 0x30
Simulator (MT Simulator2) connection
UNIT_SIMULATOR3 Simulator (GX Simulator3) connection 0x31
UNIT_A900GOT GOT2000 series connection 0x21
UNIT_GOT_RJ71EN71 MELSEC iQ-R series-compatible E71 connection via GOT2000 series 0x1051
UNIT_GOT_QJ71E71 Q series-compatible E71 connection via GOT2000 series 0x40
UNIT_GOT_LJ71E71 L series-compatible E71 connection via GOT2000 series 0x5D
UNIT_GOT_RETHER RCPU Ethernet port connection via GOT2000 series 0x1052
UNIT_GOT_QNETHER QCPU Ethernet port connection via GOT2000 series 0x41
UNIT_GOT_LNETHER LCPU Ethernet port connection via GOT2000 series 0x55
UNIT_GOT_NZ2GF_ETB Ethernet adapter module (NZ2GF-ETB) connection via GOT2000 series 0x5B
UNIT_GOT_FXETHER FXCPU Ethernet adapter (FX3U-ENET-ADP) connection via GOT2000 0x61
series
UNIT_GOT_FXENET FXCPU Ethernet module (FX3U-ENET) connection via GOT2000 series 0x62
UNIT_GOT_FXVENET FX5CPU Ethernet module (FX5-ENET, FX5-ENET/IP) connection via 0x2008
GOT2000 series
UNIT_GOT_FXVCPU FX5CPU Serial port connection via GOT2000/1000 series 0x2005
UNIT_GOTETHER_FXVCPU FX5CPU Ethernet port connection via GOT2000/1000 series 0x2006
UNIT_GOT_FXVETHER Built-in Ethernet port FX5CPU connection via GOT2000/1000 series 0x2007
UNIT_GOTETHER_RJ71C24 RCPU Ethernet port (RS422) connection via GOT2000 series 0x1061
UNIT_GOTETHER_QNCPU QCPU (Q mode) Ethernet port (RS422) connection via GOT2000 series 0x56
UNIT_GOTETHER_LNCPU LCPU Ethernet port (RS232C) connection via GOT2000 series 0x57
UNIT_GOTETHER_FXCPU FXCPU Ethernet port connection via GOT2000 series 0x60
UNIT_GOTETHER_QN_ETHER GOT Ethernet transparent (Ethernet-GOT-Ethernet-QnCPU) 0x6F
connection
*1 When the CPU type is Q motion CPU, connected to MT Simulator2. Other than that, connected to GX Simulator2.
9 PROPERTIES OF CONTROLS
9.2 Details of Control Properties 179
ActProtocolType(LONG)
Communication protocol type Connection system Value
PROTOCOL_SERIAL Via serial port 0x04(4)
PROTOCOL_USB Via USB port 0x0D(13)
PROTOCOL_TCPIP Via TCP/IP 0x05(5)
PROTOCOL_UDPIP Via UDP/IP 0x08(8)
PROTOCOL_MNETH Via MELSECNET/H board 0x0F(15)
PROTOCOL_MNETG Via CC-Link IE Controller Network board 0x14(20)
PROTOCOL_CCIETSN Via CC-Link IE TSN board 0x1C(28)
PROTOCOL_CCIEF Via CC-Link IE Field Network board 0x15(21)
PROTOCOL_CCLINK Via CC-Link 0x07(7)
PROTOCOL_USBGOT Via USB port and GOT 0x13(19)
PROTOCOL_SHAREDMEMORY Via shared memory server (Simulator) 0x06(6)
COMM_RS232C*1 Inverter RS-232C communication 0x00(0)
COMM_USB *1 Inverter USB communication 0x01(1)
RC_PROTOCOL_SERIAL Robot controller RS-232C communication 0x01(1)
RC_PROTOCOL_USB Robot controller USB communication 0x04(4)
RC_PROTOCOL_TCPIP Robot controller Ethernet (TCP/IP) communication 0x02(2)
9 PROPERTIES OF CONTROLS
180 9.2 Details of Control Properties
10 PROPERTY SETTINGS OF COMMUNICATION
ROUTES
This chapter explains the details of accessible communication routes and property settings.
10
10.1 Serial Communication
Serial communication when the connected station is MELSEC iQ-
R series-compatible C24 (1)
When a relayed module other than the connected station side MELSEC iQ-R series-compatible C24 exists
Configuration
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "Station No. IP information" in the parameter setting of MELSEC iQ-R series-compatible E71. When setting the parameter,
specify the setting other than the automatic response system (any of the IP address calculation system, table conversion system, and
combined system) for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Multi-drop link
Relayed network
Relayed station
Personal computer Relayed module
CPU
When the connected station side MELSEC iQ-R series-compatible C24 is set to the synchronous mode,
always validate (turn ON) "sum check (SW06)" for the transmission specification software switch setting of the
MELSEC iQ-R series-compatible C24 parameter.
If it is invalidated (OFF), a communication error occurs and the communication is disabled.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration 10
Relayed network
*1 Note the following considerations when accessing via Ethernet module (Q series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side Q series- 10
compatible E71.
Set "Station No. IP information" in the parameter setting of Q series-compatible E71. When setting the parameter, specify the setting
other than the automatic response system (any of the IP address calculation system, table conversion system, and combined system)
for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed network
*1 Indicates the CH2 side setting. (The CH1 side is fixed to the independent mode.)
*2 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*3 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
When the connected station side Q series-compatible C24 is set to the synchronous mode, always validate
(turn ON) "sum check (SW06)" for the transmission specification software switch setting of the Q series-
compatible C24 parameter.
If it is invalidated (OFF), a communication error occurs and the communication is disabled.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed network
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration 10
Relayed station
Personal computer Relayed module
CPU
When the connected station side L series-compatible C24 is set to the synchronous mode, always validate
(turn ON) "sum check (SW06)" for the transmission specification software switch setting of the L series-
compatible C24 parameter.
If it is invalidated (OFF), a communication error occurs and the communication is disabled.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station FX extended port
CPU
Relayed network
Relayed station
Personal computer FX extended port Relayed module
CPU
Relayed network
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "Station No. IP information" in the parameter setting of MELSEC iQ-R series-compatible E71. When setting the parameter,
specify the setting other than the automatic response system (any of the IP address calculation system, table conversion system, and
combined system) for "Station No. IP information system."
*2 When using the OPS connection function for Redundant CPU, specify any port number that was set to the network parameter of the
CPU. (The setting range is 1025 port number 4999 or 5003 port number 65534)
*3 For the I/O address, specify the value of the actual start I/O number divided by 16.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*6 Specify the personal computer side station number to avoid the same station number set for MELSEC iQ-R series-compatible E71
within the same Ethernet loop.
Configuration
Relayed network
*1 Relayed station CPUs cannot be accessed when directly connecting to an MELSEC iQ-R series-compatible E71.
*2 Relayed station CPUs cannot be accessed via R motion CPU.
*3 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "Station No. IP information" in the parameter setting of MELSEC iQ-R series-compatible E71. When setting the parameter,
specify the setting other than the automatic response system (any of the IP address calculation system, table conversion system, and
combined system) for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*5 Specify the personal computer side station number to avoid the same station number set for MELSEC iQ-R series-compatible E71
within the same Ethernet loop.
Configuration
10
Connected station Q series-compatible Relayed module
CPU E71
Relayed network
*1 When using the OPS connection function for Redundant CPU, specify any port number that was set to the network parameter of the 10
CPU. (The setting range is 1025 port number 4999 or 5003 port number 65534)
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*5 Specify the personal computer side station number to avoid the same station number set for Q series-compatible E71 within the same
Ethernet loop.
Configuration
Relayed network
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*4 Do not use 1 to 1024 of ActPortNumber.
*5 Specify the personal computer side station number to avoid the same station number set for Q series-compatible E71 within the same
Ethernet loop.
Configuration
10
Connected station L series-compatible
Relayed module
CPU E71
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 When using the OPS connection function for Redundant CPU, specify any port number that was set to the network parameter of the
CPU. (The setting range is 1025 port number 4999 or 5003 port number 65534)
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*5 Specify the personal computer side station number to avoid the same station number set for L series-compatible E71 within the same
Ethernet loop.
Configuration
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*4 Do not use 1 to 1024 of ActPortNumber.
*5 Specify the personal computer side station number to avoid the same station number set for L series-compatible E71 within the same
Ethernet loop.
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Note the following considerations when accessing via Ethernet module (Q series-compatible E71 or MELSEC iQ-R series-compatible
E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side Q series-
compatible E71 or MELSEC iQ-R series-compatible E71.
Set "Station No. IP information" in the parameter setting of Q series-compatible E71 or MELSEC iQ-R series-compatible E71. When
setting the parameter, specify the setting other than the automatic response system (any of the IP address calculation system, table
conversion system, and combined system) for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "Station No. IP information" in the parameter setting of MELSEC iQ-R series-compatible E71. When setting the parameter,
specify the setting other than the automatic response system (any of the IP address calculation system, table conversion system, and
combined system) for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Since CC-Link IE Field Network is not supported, R motion CPU, Q12DCCPU-V (Basic mode), QSCPU, and Q motion CPU relayed by
CC-Link IE Field Network cannot be accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*4 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
*5 Q24DHCCPU-V, Q24DHCCPU-LS, Q24DHCCPU-VG and Q26DHCCPU-LS cannot be accessed because the communication route is
not supported.
*6 Since QCCPU is not supported by MELSOFT direct connection, Ethernet port direct connection is not applicable.
*7 For Q172D, Q173D, Q172DS, and Q173DS, only CPU No.2 or later in a multiple CPU configuration can be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Since CC-Link IE Field Network is not supported, R motion CPU, Q12DCCPU-V (Basic mode), QSCPU, and Q motion CPU relayed by
CC-Link IE Field Network cannot be accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*4 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
*5 Q24DHCCPU-V, Q24DHCCPU-LS, Q24DHCCPU-VG and Q26DHCCPU-LS cannot be accessed because the communication route is
not supported.
*6 Since QCCPU is not supported by MELSOFT direct connection, Ethernet port direct connection is not applicable.
*7 For Q172D, Q173D, Q172DS, and Q173DS, only CPU No.2 or later in a multiple CPU configuration can be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
Relayed network
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
10
Connected station CC-Link IE Field
Relayed module
CPU Network module
Ethernet adapter
Relayed network
module
Relayed station
Personal computer Relayed module
CPU
*1 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
Configuration
10
Connected station CC-Link IE Field
Relayed module
CPU Network module
Ethernet adapter
Relayed network
module
Relayed station
Personal computer Relayed module
CPU
*1 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
Configuration 10
Connected station
Ethernet adapter Relayed module
CPU
Relayed network
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActHostAddress 1.1.1.1 Host name or IP address of the connected station side module
ActProtocolType 0x04 PROTOCOL_TCPIP
(PROTOCOL_SERIAL)
ActTimeOut 10000 Any value specified by user in ms units
ActUnitType 0x13 (UNIT_QNCPU) UNIT_FXETHER
Configuration
Connected station
Ethernet adapter Relayed module
CPU
Relayed network
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActConnectUnitNumber 0 (0x00) Fixed to 0 (0x00)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDestinationIONumber 0 (0x00) Fixed to 0 (0x00)
ActDestinationPortNumber 0 (0x00) Fixed to 5554
ActDidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActDsidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActHostAddress 1.1.1.1 Host name or IP address of the connected station side module
ActIONumber 1023 (0x3FF) Fixed to 1023 (0x3FF)
Configuration
Connected station
Ethernet adapter Relayed module
CPU
Relayed network
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActProtocolType 0x04 PROTOCOL_UDPIP
(PROTOCOL_SERIAL)
ActTimeOut 10000 Any value specified by user in ms units
ActUnitType 0x13 (UNIT_QNCPU) UNIT_FXETHER_DIRECT
Configuration 10
Connected station
Ethernet adapter Relayed module
CPU
Relayed network
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActConnectUnitNumber 0 (0x00) Fixed to 0 (0x00)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDestinationIONumber 0 (0x00) Fixed to 0 (0x00)
ActDestinationPortNumber 0 (0x00) Fixed to 5555
ActDidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActDsidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActHostAddress 1.1.1.1 Host name or IP address of the connected station side module
ActIONumber 1023 (0x3FF) Fixed to 1023 (0x3FF)
Configuration 10
Connected station
Ethernet adapter Relayed module
CPU
Relayed network
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActConnectUnitNumber 0 (0x00) Fixed to 0 (0x00)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDestinationIONumber 0 (0x00) Fixed to 0 (0x00)
ActDestinationPortNumber 0 (0x00) Fixed to 5552
ActDidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActDsidPropertyBit 1 (0x01) Fixed to 1 (0x01)
ActHostAddress 1.1.1.1 255.255.255.255
To select a PC side adapter, assign a tab character and the personal computer side IP
address after the connection target IP address.
Configuration
10
Robot controller
Personal computer
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActProtocolType 0x04 RC_PROTOCOL_TCPIP (0x02)
(PROTOCOL_SERIAL)
ActCpuType 34 (CPU_Q02CPU) Robot controller type (0x013001)
ActPortNumber 1 (PORT_1) Port number to be connected (specify 10001 normally)
ActHostAddress 1.1.1.1 Host name or IP address of the connected station side robot controller
ActTimeOut 10000 Any value specified by user in ms units
ActCpuTimeOut 0 (0x00) Any value specified by user in 10ms units
ActMultiDropChannelNumber 8 (TRC_DTR_OR_RTS) Retry count
ActMxUnitSeries 0 (0x00) 2 (0x02)
When robot controller communication, the program setting type control cannot be used.
Use the utility setting type control.
Configuration
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*2 Specify the following value.
0: An empty slot number in a personal computer is automatically assigned.
*3 Specify the personal computer side station number to avoid the same station number set for CC-Link IE TSN module within the same
Ethernet loop.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the target station is a motion controller or a robot controller, set the value for multiple CPUs.
Example: When a robot controller is set as the CPU No.2, specify '0x3E1'.
*6 Note the following considerations when accessing via CC-Link IE TSN module.
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side CC-Link IE TSN
module.
Set "Station No. IP information" in the parameter setting of CC-Link IE TSN module. When setting the parameter, specify the setting
other than the automatic response system (any of the IP address calculation system, table conversion system, and combined system)
for "Station No. IP information system."
Configuration
10
Connected station CC-Link IE TSN
Relayed module
CPU module
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*2 When other than the 'automatic response system' is set in the Ethernet parameter of the connected station side CC-Link IE TSN
module, fix the value to '5001'.
When the 'automatic response system' is set in the Ethernet parameter of the connected station side CC-Link IE TSN module, specify
the following value.
0: An empty slot number in a personal computer is automatically assigned.
Other than '0': a UDP socket is generated with the specified port number.
*3 Specify the personal computer side station number to avoid the same station number set for CC-Link IE TSN module within the same
Ethernet loop.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the target station is a motion controller or a robot controller, set the value for multiple CPUs.
Example: When a robot controller is set as the CPU No.2, specify '0x3E1'.
*6 Note the following considerations when accessing via CC-Link IE TSN module.
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side CC-Link IE TSN
module.
Set "Station No. IP information" in the parameter setting of CC-Link IE TSN module. When setting the parameter, specify the setting
other than the automatic response system (any of the IP address calculation system, table conversion system, and combined system)
for "Station No. IP information system."
Configuration
Relayed network
Configuration
Relayed network
*1 Since CC-Link IE Field Network is not supported, R motion CPU, Q12DCCPU-V (Basic mode), QSCPU, and Q motion CPU relayed by
CC-Link IE Field Network cannot be accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*3 Supported by FX3G(C)CPU and FX3U(C)CPU within the own network only.
*4 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
*5 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 Note the following considerations when accessing via Ethernet module (Q series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side Q series-
compatible E71.
Set "Station No. IP information" in the parameter setting of Q series-compatible E71. When setting the parameter, specify the setting
other than the automatic response system (any of the IP address calculation system, table conversion system, and combined system)
for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed network
Configuration
Relayed network
Configuration
Inverter
Personal computer
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActMxUnitSeries 0 (0x00) 1 (0x01)
ActProtocolType 0x04 COMM_RS232C (0x00)
(PROTOCOL_SERIAL)
ActStationNumber 255 (0xFF) Inverter station number (0 to 31)
ActCpuType 34 (CPU_Q02CPU) INV_A800 (0x1E60)
ActPortNumber 1 (PORT_1) Personal computer side COM port number
ActBaudRate 19200 (BAUDRATE_19200) BAUDRATE_4800, BAUDRATE_9600, BAUDRATE_19200, BAUDRATE_38400,
BAUDRATE_57600, BAUDRATE_115200
ActTimeOut 10000 Any value specified by user in ms units
ActCpuTimeOut 0 (0x00) Any value specified by user in 10ms units
ActPacketType 0x01 (PACKET_PLC1) • CRLF_NONE (0): Without CR/LF
• CRLF_CR (1): With CR
• CRLF_CRLF (2): With CR/LF
ActDataBits 8 (DATABIT_8) • DATABIT_7
• DATABIT_8
ActParity 1 (ODD_PARITY) • NO_PARRITY
• ODD_PARITY
• EVEN_PARITY
ActStopBits 0 (STOPBIT_ONE) • STOPBIT_ONE
• STOPBIT_TWO
When performing inverter communication, the program setting type control cannot be used.
Use the utility setting type control.
Configuration
10
Robot controller
Personal computer
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActProtocolType 0x04 RC_PROTOCOL_SERIAL (0x01)
(PROTOCOL_SERIAL)
ActCpuType 34 (CPU_Q02CPU) Robot controller type (0x013001)
ActPortNumber 1 (PORT_1) Personal computer side COM port number
ActBaudRate 19200 (BAUDRATE_19200) Transmission speed
ActTimeOut 10000 Receive timeout time (msec)
ActCpuTimeOut 0 (0x00) Send timeout time (msec)
ActDataBits 8 (DATABIT_8) • DATABIT_7
• DATABIT_8
ActParity 1 (ODD_PARITY) • NO_PARRITY
• ODD_PARITY
• EVEN_PARITY
ActStopBits 0 (STOPBIT_ONE) • ONESTOPBIT(0)
• ONE5STOPBITS(1)
• TWOSTOPBITS(2)
ActMultiDropChannelNumber 0 (0x00) Retry count
ActThroughNetworkType 0 (0x00) Procedural/Nonprocedural (0/1)
ActMxUnitSeries 0 (0x00) 2 (0x02)
When robot controller communication, the program setting type control cannot be used.
Use the utility setting type control.
Configuration
Relayed network
*1 Since CC-Link IE Controller Network is not supported, RCPU and LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Only CC-Link IE Field Network can be accessed.
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "Station No. IP information" in the parameter setting of MELSEC iQ-R series-compatible E71. When setting the parameter,
specify the setting other than the automatic response system (any of the IP address calculation system, table conversion system, and
combined system) for "Station No. IP information system."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
Configuration
10
Connected station Relayed module
CPU
Relayed network
*1 Since CC-Link IE Field Network is not supported, R motion CPU, Q12DCCPU-V (Basic mode), QSCPU, and Q motion CPU relayed by
CC-Link IE Field Network cannot be accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*4 Supported by FX3G(C)CPU and FX3U(C)CPU within the own network only.
Configuration
Relayed network
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*2 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*3 For redundant CPU, serial communication modules on the main base unit cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed network
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActProtocolType 0x04 PROTOCOL_USB (0x0D)
(PROTOCOL_SERIAL)
ActTimeOut 10000 Any value specified by user in ms units
ActUnitType 0x13 (UNIT_QNCPU) UNIT_QSUSB (0x29)
Configuration
10
Connected station Relayed module
CPU
Relayed network
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActIONumber 1023 (0x3FF) For multiple CPUs
• Control CPU: 1023 (0x3FF)
• No. 2: 993 (0x3E1)
• No. 3: 994 (0x3E2)
• No. 4: 995 (0x3E3)
ActProtocolType 0x04 PROTOCOL_USB (0x0D)
(PROTOCOL_SERIAL)
ActTimeOut 10000 Any value specified by user in ms units
Configuration
10
Connected station Relayed module
CPU
Relayed network
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1) (2)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDestinationIONumber 0 (0x00) Fixed to 0 (0x00) 1023 (0x3FF)
ActIONumber 1023 (0x3FF) Fixed to 0 (0x00) Module number of the connected station
ActProtocolType 0x04 (PROTOCOL_SERIAL) PROTOCOL_USB (0x0D)
ActTimeOut 10000 Any value specified by user in ms units
ActUnitNumber 0 (0x00) Fixed to 0 (0x00) Target station side module station number
ActUnitType 0x13 (UNIT_QNCPU) UNIT_FXCPU (0x0F)
Configuration
Inverter
Personal computer
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActMxUnitSeries 0 (0x00) 1 (0x01)
ActProtocolType 0x04 COMM_USB (0x01)
(PROTOCOL_SERIAL)
ActStationNumber 255 (0xFF) Inverter station number (0 to 31)
ActCpuType 34 (CPU_Q02CPU) Fixed to INV_A800 (0x1E60)
ActTimeOut 10000 Any value specified by user in ms units
ActCpuTimeOut 0 (0x00) Any value specified by user in 10ms units
When performing inverter communication, the program setting type control cannot be used.
Use the utility setting type control.
Configuration
10
Robot controller
Personal computer
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActProtocolType 0x04 RC_PROTOCOL_USB (0x04)
(PROTOCOL_SERIAL)
ActCpuType 34 (CPU_Q02CPU) Robot controller type (0x013001)
ActTimeOut 10000 Receive timeout time (msec)
ActCpuTimeOut 0 (0x00) Send timeout time (msec)
ActMultiDropChannelNumber 0 (0x00) Retry count
ActMxUnitSeries 0 (0x00) 2 (0x02)
When robot controller communication, the program setting type control cannot be used.
Use the utility setting type control.
Configuration
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
CC-Link IE Controller
Network Relayed network
*1 For redundant CPU, serial communication modules on the main base unit cannot be accessed because the multi-drop connection
cannot be performed.
*2 Only CPU No.2 or later in a multiple CPU configuration can be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station CC-Link IE Controller Relayed module
CPU Network module
CC-Link IE Controller
Network Relayed network
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For redundant CPU, serial communication modules on the main base unit cannot be accessed because the multi-drop connection
cannot be performed.
ActNetworkNumber 0 (0x00) Target station side module Connected station side module Connected station side module
network number network number network number
ActPortNumber 1 (PORT_1) Port number of personal computer side CC-Link IE Field Network board, PORT 1 to PORT 4 (first to
fourth boards)
ActProtocolType 0x04 PROTOCOL_CCIEF (0x15)
(PROTOCOL_SERI
AL)
ActStationNumber 255 (0xFF) Target station side module Connected station side module Connected station side module
station number station number station number
ActThroughNetworkType 0 (0x00) • MELSECNET/10 is not included.: 0 (0x00)
• MELSECNET/10 is included.: 1 (0x01)
ActUnitNumber 0 (0x00) Fixed to 0 (0x00) Target station side module Target station side module
station number station number
ActUnitType 0x13 UNIT_CCIEFBOARD (0x2F)
(UNIT_QNCPU)
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*2 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Relayed station
Personal computer Relayed module
CPU
ActNetworkNumber 0 (0x00) Fixed to 0 (0x00) Target station side module network number
ActPortNumber 1 (PORT_1) Port number of personal computer side CC-Link IE TSN board, PORT 1 to PORT 4 (first to fourth
boards)
ActProtocolType 0x04 PROTOCOL_CCIETSN
(PROTOCOL_SERI
AL)
ActStationNumber 255 (0xFF) Fixed to 255 (0xFF) Target station side module station number
ActThroughNetworkType 0 (0x00) • MELSECNET/10 is not included.: 0 (0x00)
• MELSECNET/10 is included.: 1 (0x01)
ActUnitNumber 0 (0x00) Fixed to 0 (0x00) Fixed to 0 (0x00)
ActUnitType 0x13 UNIT_CCIETSNBOARD
(UNIT_QNCPU)
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Relayed network
Relayed station
Personal computer Relayed module
CPU
*1 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
Configuration
Relayed network
Relayed station
Personal computer Relayed module
CPU
Configuration
10
Connected station CC-Link Relayed module
CPU module
Relayed network
Relayed station
Personal computer Relayed module
CPU
AJ65BT-R2N
Relayed network
module(Q mode)
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
Property list
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActTargetSimulator 0 (0x00) Refer to the property [ActTargetSimulator].
Page 172 Details of Control Properties
ActUnitType 0x13 (UNIT_QNCPU) UNIT_SIMULATOR2 (0x30)
Property list
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActBaudRate 19200 (BAUDRATE_19200) 0 (0x00)
ActControl 8 (TRC_DTR_OR_RTS) 0 (0x00)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDataBits 8 (DATABIT_8) 0 (0x00)
ActDestinationPortNumber 0 (0x00) Fixed to 0 (0x00)
ActDidPropertyBit 1 (0x01) 0 (0x00)
ActDsidPropertyBit 1 (0x01) 0 (0x00)
ActHostAddress 1.1.1.1 Loopback address(127.0.0.1)
ActIONumber 1023 (0x3FF) 0 (0x00)
ActNetworkNumber 0 (0x00) Fixed to 0 (0x00)
ActPacketType 0x01 (PACKET_PLC1) PACKET_PLC1
ActParity 1 (ODD_PARITY) 0 (0x00)
ActPassword Empty 0 (0x00)
ActPortNumber 1 (PORT_1) 0 (0x00)
Property list
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActTargetSimulator 0 (0x00) Refer to the property [ActTargetSimulator].
Page 172 Details of Control Properties
ActCpuType CPU_Q02CPU CPU type corresponding to the target station (Q motion CPU)
ActUnitType 0x13 (UNIT_QNCPU) UNIT_SIMULATOR2 (0x30)
GOT
Personal computer
Property list
The setting is not necessary for those properties without description.
Property Default value Property patterns
ActHostAddress 1.1.1.1 Host name or IP address of connected GOT
ActPortNumber 1 (PORT_1) Personal computer side COM port number
ActProtocolType 0x04 PROTOCOL_UDPIP (0x08)
(PROTOCOL_SERIAL)
ActTimeOut 10000 Any value specified by user in ms units
ActUnitType 0x13 (UNIT_QNCPU) UNIT_A900GOT (0x21)
Personal computer side port: USB, GOT2000 side port: USB, CPU
side port: Direct connection (1)
When the connected station is an FX5CPU
Configuration
Relayed station
Personal computer Relayed module
CPU
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*3 When a value from 0 to 5000 [ms] is specified, the value is rounded to 5000 ms. Note that the value is rounded to 255000 ms when a
value greater than 255000 ms is specified.
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "MNET/10 routing information" to MELSEC iQ-R series-compatible E71 parameter setting. When setting parameters, specify other
than Automatic Response System (any of IP address calculation system, table conversion system, or combined system) for "MNET/10
routing method."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station MELSEC iQ-R
series-compatible E71 Relayed module
CPU
Relayed station
Personal computer Relayed module
CPU
*1 When the property pattern is (2), specify the connected station side MELSEC iQ-R series-compatible E71 station number set to the
connected station side MELSEC iQ-R series-compatible E71 Ethernet parameter.
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 When using OPS connection function at redundant CPU connection, set the port No. specified to "Host Station Port No." in Network
parameter.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*6 Specify the same network No. as MELSECNET/10 network No. set to MELSEC iQ-R series-compatible E71 in the Ethernet parameter
settings of target station side MELSEC iQ-R series-compatible E71.
*7 Specify the station number on the GOT side to avoid setting the same station number as set to the MELSEC iQ-R series-compatible E71
on the same Ethernet loop.
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 When the property pattern is (2), specify the connected station side MELSEC iQ-R series-compatible E71 station number set to the
connected station side MELSEC iQ-R series-compatible E71 Ethernet parameter.
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 When using OPS connection function at redundant CPU connection, set the port No. specified to "Host Station Port No." in Network
parameter.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*6 Specify the same network No. as MELSECNET/10 network No. set to MELSEC iQ-R series-compatible E71 in the Ethernet parameter
settings of target station side MELSEC iQ-R series-compatible E71.
*7 Specify the station number on the GOT side to avoid setting the same station number as set to the MELSEC iQ-R series-compatible E71
on the same Ethernet loop.
Configuration
10
Connected station Q series-compatible
E71 Relayed module
CPU
Relayed station
Personal computer Relayed module
CPU
The communication cannot be established when a remote password is set to the connected station side Q series-compatible
E71.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module 10
1: Channel 1
2: Channel 2
*3 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*4 Specify the station number on the GOT side to avoid setting the same station number as set to the Q series-compatible E71 on the same
Ethernet loop.
Configuration
Relayed station
Personal computer Relayed module
CPU
The communication cannot be established when a remote password is set to the connected station side L series-compatible
E71.
*1 When the property pattern is (2), specify the connected station side L series-compatible E71 station number set to the connected
station side L series-compatible E71 Ethernet parameter.
*2 When using OPS connection function at redundant CPU connection, set the port No. specified to "Host Station Port No." in Network
parameter.
*3 For the I/O address, specify the value of the actual start I/O number divided by 16.
*4 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*5 When the property pattern is (1) or (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
*6 Specify the same network No. as MELSECNET/10 network No. set to L series-compatible E71 in the Ethernet parameter settings of
target station side L series-compatible E71.
*7 Specify the station number on the GOT side to avoid setting the same station number as set to the L series-compatible E71 on the same
Ethernet loop.
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 Note the following considerations when accessing via Ethernet module (MELSEC iQ-R series-compatible E71).
For ActNetworkNumber and ActStationNumber, specify the value set in the parameter setting of the target station side MELSEC iQ-R
series-compatible E71.
Set "MNET/10 routing information" to MELSEC iQ-R series-compatible E71 parameter setting. When setting parameters, specify other
than Automatic Response System (any of IP address calculation system, table conversion system, or combined system) for "MNET/10
routing method."
*2 For the I/O address, specify the value of the actual start I/O number divided by 16.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration
Relayed station
Personal computer Relayed module
CPU
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 The communication cannot be established when a remote password is set to the connected station CPU.
*2 Redundant CPU cannot be accessed.
*3 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*4 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 The communication cannot be established when a remote password is set to the connected station CPU.
*2 Redundant CPU cannot be accessed.
*3 Since CC-Link IE Controller Network is not supported, LCPU relayed by CC-Link IE Controller Network cannot be accessed.
*4 Since CC-Link IE Field Network is not supported, Q12DCCPU-V (Basic mode) relayed by CC-Link IE Field Network cannot be
accessed.
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected station CC-Link IE Field Relayed module
CPU Network module
Ethernet
USB Relayed station
Personal computer Relayed module
CPU
Configuration 10
Ethernet adapter: FX3U-ENET-ADP
Relayed station
Personal computer Relayed module
CPU
Relayed station
Personal computer Relayed module
CPU
Configuration 10
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActConnectUnitNumber 0 (0x00) Fixed to 0 (0x00)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
ActDestinationIONumber 0 (0x00) Fixed to 0 (0x00)
ActDestinationPortNumber 0 (0x00) Fixed to 5554
ActDidPropertyBit 1 (0x01) 1 (0x01) (invalid)
ActDsidPropertyBit 1 (0x01) 1 (0x01) (invalid)
ActHostAddress 1.1.1.1 Host name or IP address of a connection target CPU
ActIONumber 1023 (0x3FF) Fixed to 1023 (0x3FF)
Configuration 10
Relayed station
Personal computer Relayed module
CPU
Configuration 10
Relayed station
Personal computer Relayed module
CPU
10
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration 10
Relayed station
Personal computer Relayed module
CPU
Property list
The following table shows the property settings of communication routes.
The setting is not necessary for those properties without description.
Property Default value Property patterns
(1)
ActCpuType 34 (CPU_Q02CPU) CPU type corresponding to the target station
*1
ActDestinationPortNumber 0 (0x00) GOT port number
ActHostAddress 1.1.1.1 Host name or IP address of GOT
ActProtocolType 0x04 (PROTOCOL_SERIAL) PROTOCOL_TCPIP
ActTimeOut 10000 Any value specified by user in ms units
ActUnitType 0x13 (UNIT_QNCPU) UNIT_GOTETHER_FXCPU
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the value set to GOT side for ActDestinationPortNumber.
*3 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
*4 When the property pattern is (2), specify the value set in the target station side parameter for ActNetworkNumber and
ActStationNumber.
Configuration 10
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module 10
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
10
Connected Relayed module
station CPU
Relayed station
Personal computer Relayed module
CPU
*1 For the I/O address, specify the value of the actual start I/O number divided by 16.
*2 Specify the following value for the channel number to be multi-drop linked.
0: Default channel of module
1: Channel 1
2: Channel 2
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 Only operates for Qn(U)(J)(P)(D)(E)(V)(H). QnPRHCPU cannot be accessed because it is not supported.
Configuration
Relayed station
Personal computer Relayed module
CPU
*1 Only operates for Qn(U)(J)(P)(D)(E)(V)(H). QnPRHCPU cannot be accessed because it is not supported.
Start Start
Open the communication line. (Open) Open the communication line. (Open)
Access the CPU module or module Access the CPU module or module
using the function (such as GetDevice). using the function (such as GetDevice).
No
Yes Close the user program?
Yes
Complete Complete
Differences between LONG type functions and SHORT type/INT type functions
LONG type functions and SHORT type/INT type functions are the functions of MX Component to 'read devices in batch,' 'write
devices in batch,' 'read devices randomly,' 'write devices randomly,' 'set device data,' and 'acquire device data.'
The following describes the differences between the LONG type functions and SHORT type/INT type functions.
11 FUNCTIONS
416 11.1 Programming Considerations
Target function Reference
GetDevice Page 441 GetDevice (Acquiring device data)
Ex.
When reading device data with a negative value using the ReadDeviceBlock function
11
application.
Conversion
D0 = -1 (0xFFFF)
lpsData = (SHORT)lplData;
lpsData = -1 (0xFFFF)
Ex.
When reading device data with a negative value using the ReadDeviceBlock2 function
lpsData = -1 (0xFFFF)
• The ActiveX controls used on MX Component are those of the STA model.
• When passing the interface pointer to another apartment, the interface pointer needs to be marshaled.
Synchronize programs using CoMarshalInterThreadInterfaceInStream or
CoGetInterfaceAndReleaseStream of the COM function.
11 FUNCTIONS
11.1 Programming Considerations 417
Considerations for using RnSFCPU
In case of safety mode, the following functions cannot be used for the RnSFCPU safety device.
Function name Feature
WriteDeviceBlock To write devices in batch.
WriteDeviceRandom To write devices randomly.
SetDevice To set device data.
WriteDeviceBlock2 To write devices in batch.
WriteDeviceRandom2 To write devices randomly.
SetDevice2 To set device data.
WriteBuffer To write data to buffer memory.
If any of these functions is used, the error code "0x010A42A5" (Operation that can not be carried out in safety
mode)will be returned.
If any of these functions is used, the error code "0x010A42A0" (mismatched CPU access password) will be
returned.
If any of these functions is used, the error code "0xF0000007" (function non-support error) will be returned.
11 FUNCTIONS
418 11.1 Programming Considerations
Considerations for using Ethernet modules
• Provide an interval longer than the sequence scan time of the Ethernet module mounted station for a period from when the
Open method is executed until the Close method is executed.
• Provide an interval of at least 500 ms for a period from when the Close method is executed until the Open method is
executed again.
Control
CheckDeviceString 11
Do not use the CheckDeviceString method of Act control.
11 FUNCTIONS
11.1 Programming Considerations 419
11.2 Function List
The following table shows the features of the functions and the functions that can be used for the controls.
Function name Feature Refer*1
Open To open a communication line. Act: Page 422 Open (Opening communication line)
DataLogging: Page 494 Open (Opening communication line)
Dot: Page 504 Open (Opening communication line)
Close To close a communication line. Act: Page 424 Close (Closing communication line)
DataLogging: Page 496 Close (Closing communication line)
Dot: Page 505 Close (Closing communication line)
ReadDeviceBlock To read devices in batch (in 4-byte data unit). Act: Page 425 ReadDeviceBlock (Reading devices in batch)
Dot: Page 506 ReadDeviceBlock (Reading devices in batch)
WriteDeviceBlock To write devices in batch (in 4-byte data unit). Act: Page 428 WriteDeviceBlock (Writing devices in batch)
Dot: Page 512 WriteDeviceBlock (Writing devices in batch)
ReadDeviceRandom To read devices randomly (in 4-byte data unit). Act: Page 432 ReadDeviceRandom (Reading devices randomly)
Dot: Page 518 ReadDeviceRandom (Reading devices randomly)
WriteDeviceRandom To write devices randomly (in 4-byte data unit). Act: Page 436 WriteDeviceRandom (Writing devices randomly)
Dot: Page 529 WriteDeviceRandom (Writing devices randomly)
SetDevice To set one point of device (in 4-byte data unit). Act: Page 439 SetDevice (Setting device data)
Dot: Page 540 SetDevice (Setting device data)
GetDevice To acquire data of one point of device (in 4-byte data Act: Page 441 GetDevice (Acquiring device data)
unit). Dot: Page 544 GetDevice (Acquiring device data)
ReadBuffer To read data from buffer memory. Act: Page 444 ReadBuffer (Reading data from buffer memory)
Dot: Page 548 ReadBuffer (Reading data from buffer memory)
WriteBuffer To write data to buffer memory. Act: Page 448 WriteBuffer (Writing data to buffer memory)
Dot: Page 550 WriteBuffer (Writing data to buffer memory)
GetClockData To read clock data of a CPU module. Act: Page 452 GetClockData (Reading clock data)
Dot: Page 552 GetClockData (Reading clock data)
SetClockData To write clock data of a CPU module. Act: Page 456 SetClockData (Writing clock data)
Dot: Page 554 SetClockData (Writing clock data)
GetCpuType To read CPU module model. Act: Page 460 GetCpuType (Reading CPU module model)
Dot: Page 556 GetCpuType (Reading CPU module model)
SetCpuStatus To perform remote RUN/STOP/PAUSE/RESET of Act: Page 462 SetCpuStatus (Remote control)
CPU module. Dot: Page 557 SetCpuStatus (Remote control)
EntryDeviceStatus*2 To register devices for status monitoring. Act: Page 465 EntryDeviceStatus (Registering devices for status monitoring)
Dot: Page 558 EntryDeviceStatus (Registering devices for status monitoring)
FreeDeviceStatus*2 To deregister devices for status monitoring. Act: Page 470 FreeDeviceStatus (Deregistering devices for status monitoring)
Dot: Page 562 FreeDeviceStatus (Deregistering devices for status monitoring)
OnDeviceStatus*2 To notify event. Act: Page 471 OnDeviceStatus (Event notification)
Dot: Page 563 OnDeviceStatus (Event notification)
ReadDeviceBlock2 To read devices in batch (in 2-byte data unit). Act: Page 474 ReadDeviceBlock2 (Reading devices in batch)
Dot: Page 565 ReadDeviceBlock2 (Reading devices in batch)
WriteDeviceBlock2 To write devices in batch (in 2-byte data unit). Act: Page 477 WriteDeviceBlock2 (Writing devices in batch)
Dot: Page 570 WriteDeviceBlock2 (Writing devices in batch)
ReadDeviceRandom2 To read devices randomly (in 2-byte data unit). Act: Page 480 ReadDeviceRandom2 (Reading devices randomly)
Dot: Page 575 ReadDeviceRandom2 (Reading devices randomly)
WriteDeviceRandom2 To write devices randomly (in 2-byte data unit). Act: Page 483 WriteDeviceRandom2 (Writing devices randomly)
Dot: Page 584 WriteDeviceRandom2 (Writing devices randomly)
SetDevice2 To set one point of device (in 2-byte data unit). Act: Page 487 SetDevice2 (Setting device data)
Dot: Page 595 SetDevice2 (Setting device data)
GetDevice2 To acquire data of one point of device (in 2-byte data Act: Page 490 GetDevice2 (Acquiring device data)
unit). Dot: Page 599 GetDevice2 (Acquiring device data)
GetErrorMessage To acquire error description and corrective action. Msg: Page 492 GetErrorMessage(Acquiring error description and corrective
action)
ReadFirstFile To search for a directly name/file name. DataLogging: Page 497 ReadFirstFile (Searching for a file/directory)
ReadNextFile To search for a directly name/file name. DataLogging: Page 499 ReadNextFile (Searching for a file/directory)
ReadClose To end the search. DataLogging: Page 501 ReadClose (Ending the search)
GetFile To transfer a logging file. DataLogging: Page 502 GetFile (Transferring logging files)
Dispose To release memory. Dot: Page 602 Dispose (release memory)
11 FUNCTIONS
420 11.2 Function List
*1 Act: ActUtlType, ActUtlType64, ActProgType, ActProgType64,
DataLogging: ActDataLogging, ActDataLogging64, ActProgDataLogging, ActProgDataLogging64,
Dot: DotUtilType, DotUtilType64,
Msg: ActSupportMsg, ActSupportMsg64
*2 Can be used only by pasting a control to a form for VC++ and VBA. Cannot be used by creating an object.
Controls for 64-bit cannot be used in any development languages.
For the differences of each control, refer to the following:
Page 42 ADDING CONTROLS TO USER PROGRAM
11 FUNCTIONS
11.2 Function List 421
11.3 Details of Functions (For Act Control)
Open (Opening communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To open a communication line.
Format
VBA
lRet = object.Open()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C++
lRet = object.Open()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C#
iRet = object.Open()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
422 11.3 Details of Functions (For Act Control)
Description
The communication line is opened.
Lines are connected according to the set value of the Open function property.
• If the Open function property is changed after the completion of the Open function, the setting of
communication target is not changed.
To change the communication setting, close the communication line, set the setting of communication
target, and open the communication line again. 11
• Even when a CPU type which is different from the CPU used for the communication is set to the
ActCpuType property, the Open function may be completed normally.
In such a case, the connection range, usable method, or device range may be narrowed.
When executing the Open function, set the correct CPU type to the ActCpuType property.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 423
Close (Closing communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To close a communication line.
Format
VBA
lRet = object.Close()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C++
lRet = object.Close()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C#
iRet = object.Close()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The line connected using the Open function is closed.
11 FUNCTIONS
424 11.3 Details of Functions (For Act Control)
ReadDeviceBlock (Reading devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To read devices in batch.
Format
VBA
lRet = object.ReadDeviceBlock(szDevice, lSize, lData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Long lSize Number of read points Input
Long lData(n) Read device value Output
Visual C++
lRet = object.ReadDeviceBlock(szDevice, lSize, *lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Long lSize Number of read points Input
Long *lplData Read device value Output
Visual C#
iRet = object.ReadDeviceBlock(szDevice, iSize, out iData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of read points Input
int[n] iData Read device value Output
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 425
Format (when creating an object)
Visual C++
hResult = object.ReadDeviceBlock(szDevice, lSize, *lplData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name Input
LONG lSize Number of read points Input
LONG *lplData Read device value Output
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The device values of lSize (iSize) are read in batch starting from the device specified for szDevice.
• The read device values are stored in lData (lplData or iData).
• For lData (lplData or iData), reserve arrays for more than the amount specified for lSize (iSize).
• The maximum number of read points for lSize (iSize) should be the value which satisfies the following
condition:
Start read device number + Number of read points Last device number
• When specifying bit devices, a multiple of 16 can be specified as a device number.
• Not applicable to inverter communication/robot controller communication.
• For lData (lplData or iData), reserve a memory area for the number of points specified for lSize (iSize).
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be read. Use the ReadDeviceRandom or GetDevice function.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
426 11.3 Details of Functions (For Act Control)
When specifying CN200 and later devices of FXCPU
Example: Read 6 points of data from the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 words are read for each 2 points. Reading only 1 point of data will result in an error.
Upper 2-byte Lower 2-byte
Not used ('0' is stored.) L of CN200
H of CN200
L of CN201
H of CN201
L of CN202 11
H of CN202
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 427
WriteDeviceBlock (Writing devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To write devices in batch.
Format
VBA
lRet = object.WriteDeviceBlock(szDevice, lSize, lData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Long lSize Number of write points Input
Long lData(n) Device value to be written Input
Visual C++
lRet = object.WriteDeviceBlock(szDevice, lSize, *lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Long lSize Number of write points Input
Long *lplData Device value to be written Input
Visual C#
iRet = object.WriteDeviceBlock(szDevice, iSize, ref iData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of write points Input
int[n] iData Device value to be written Input
11 FUNCTIONS
428 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.WriteDeviceBlock(szDevice, lSize, *lplData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name Input
LONG lSize Number of write points Input
LONG *lplData Device value to be written Input
11
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The device values of lSize (iSize) are written in batch starting from the device specified for szDevice.
• The device values to be written are stored in lData (lplData or iData).
• For lData (lplData or iData), reserve arrays for more than the amount specified for lSize (iSize).
• The maximum number of write points for lSize (iSize) should be the value which satisfies the following
condition:
Start write device number + Number of write points Last device number
• When specifying bit devices, a multiple of 16 can be specified as a device number.
• For lData (lplData or iData), reserve a memory area for the number of points specified for lSize (iSize).
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be written. Use the WriteDeviceRandom or SetDevice function.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
• Not applicable to inverter communication/robot controller communication.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 429
How to specify devices
The following describes how to specify devices.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
430 11.3 Details of Functions (For Act Control)
When specifying FD devices (4-word devices)
Example: Write 6 points of data to the devices starting from FD0.
Upper 2-byte Lower 2-byte
Not used ('0' is stored.) LL of FD0
LH of FD0
HL of FD0
HH of FD0
LL of FD1
LH of FD1 11
8-bit devices assigned to gateway devices
Example: Write 4 points of data to the devices starting from EG0.
(When 8-bit devices (from E0000 to E0007 of SHARP programmable controller) are assigned from EG0 to EG3.)
Upper 2-byte Lower 2-byte
Not used ('0' is stored.) EG0
(E0001) (E0000)
EG1
(E0003) (E0002)
EG2
(E0005) (E0004)
EG3
(E0007) (E0006)
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 431
ReadDeviceRandom (Reading devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read devices randomly.
Read monitor types of inverters/robot controllers randomly.
Format
VBA
lRet = object.ReadDeviceRandom(szDeviceList, lSize, lData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDeviceList Device name/monitor type Input
Long lSize Number of read points Input
Long lData(n) Read device value Output
Visual C++
lRet = object.ReadDeviceRandom(szDeviceList, lSize,*lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDeviceList Device name/monitor type Input
Long lSize Number of read points Input
Long *lplData Read device value Output
Visual C#
iRet = object.ReadDeviceRandom(szDevice, iSize, out iData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name/monitor type Input
int iSize Number of read points Input
int[n] iData Read device value Output
11 FUNCTIONS
432 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.ReadDeviceRandom(szDevice, lSize, *lplData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name/monitor type Input
LONG lSize Number of read points Input
LONG *lplData Read device value Output
11
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of a device group/monitor type group specified for szDeviceList (szDevice) is written for the size of lSize (iSize).
• The read device values are stored in lData (lplData or iData).
• Use the line feed symbol to separate the character string specified for the device list. The line feed symbol is not necessary
to be suffixed to the last device.
Example:
When using Visual Basic .NET, VBA: "D0" & vbLf & "D1" & vbLf & "D2"
When using Visual C++: D0\nD1\nD2
When using Visual C#: D0\nD1\nD2
• For lData (lplData or iData), reserve arrays for more than the amount specified for lSize (iSize).
• For the items that can be monitored (monitor types), refer to the following:
Page 154 ACCESSIBLE DEVICES AND DEVICE TYPES
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 433
How to specify devices
The following describes how to specify devices.
*1 Devices are stored from the lower bit in the order of device number.
When devices including CN200 and later of FXCPU are specified (total number of points: 3
points)
For CN200 and later devices of FXCPU, 2 words are read for each point when reading devices randomly.
When using Visual Basic .NET, VBA: "D0" & vbLf & "CN200" & vbLf & "D1"
When using Visual C++: D0\nCN200\nD1
When using Visual C#: D0\nCN200\nD1
11 FUNCTIONS
434 11.3 Details of Functions (For Act Control)
When devices including EG are specified (total number of points: 3 points)
The following is the example when 8-bit devices (E0000 and E0001 of SHARP programmable controller) are assigned to
EG0.
When using Visual Basic .NET, VBA: "D0" & vbLf & "EG0" & vbLf & "D1"
When using Visual C++: D0\nEG0\nD1
When using Visual C#: D0\nEG0\nD1
When monitor types (1, 2, and 5) of inverter are specified (total number of points: 3 points)
When using Visual Basic .NET, VBA: "1" & vbLf &"2" & vbLf &"5"
When using Visual C++: 1\n2\n5
When using Visual C#: 1\n2\n5
When monitor types (223.102.A, and 223.103.B) of robot controller are specified (total number
of points: 2 points)
Format: (Request ID).(Data type).(Argument)
When using Visual Basic .NET, VBA: "223.102.A" & vbLf &"223.103.B"
When using Visual C++: 223.102.A\n223.103.B
When using Visual C#: 223.102.A\n223.103.B
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 435
WriteDeviceRandom (Writing devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To write devices randomly.
Format
VBA
lRet = object.WriteDeviceRandom(szDeviceList, lSize,lData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDeviceList Device name Input
Long lSize Number of write points Input
Long lData(n) Device value to be written Input
Visual C++
lRet = object.WriteDeviceRandom(szDeviceList, lSize,*lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDeviceList Device name Input
Long lSize Number of write points Input
Long *lplData Device value to be written Input
Visual C#
iRet = object.WriteDeviceRandom(szDevice, iSize, ref iData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of write points Input
int[n] iData Device value to be written Input
11 FUNCTIONS
436 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.WriteDeviceRandom(szDeviceList, lSize, *lplData,*lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDeviceList Device name Input
LONG lSize Number of write points Input
LONG *lplData Device value to be written Input
11
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of a device group specified for szDeviceList (szDevice) is written for the size of lSize (iSize).
• The device values to be written are stored in lData (lplData or iData).
• Use the line feed symbol to separate the character string specified for the device list. The line feed symbol is not necessary
to be suffixed to the last device.
Example:
When using Visual Basic .NET, VBA: "D0" & vbLf & "D1" & vbLf & "D2"
When using Visual C++: D0\nD1\nD2
When using Visual C#: D0\nD1\nD2
• For lData (lplData or iData), reserve arrays for more than the amount specified for lSize (iSize).
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 437
When devices including CN200 and later of FXCPU are specified (total number of points: 3
points)
For CN200 or later of FXCPU, 2 words are written for each point when writing devices randomly.
When using Visual Basic .NET, VBA: "D0" & vbLf & "CN200" & vbLf & "D1"
When using Visual C++: D0\nCN200\nD1
When using Visual C#: D0\nCN200\nD1
11 FUNCTIONS
438 11.3 Details of Functions (For Act Control)
SetDevice (Setting device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To set one point of device.
Format
VBA
lRet = object.SetDevice(szDevice, lData)
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Long lData Set data Input
Visual C++
lRet = object.SetDevice(szDevice, lData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Long lData Set data Input
Visual C#
iRet = object.SetDevice(szDevice, iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iData Set data Input
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 439
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• One point of device specified for szDevice is specified using lData (iData).
• When specifying bit devices, the least significant bit of the lData value (varData value or iData value) is valid.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
• Not applicable to inverter communication/robot controller communication.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
440 11.3 Details of Functions (For Act Control)
GetDevice (Acquiring device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To acquire one point of device.
Acquire one point monitor type data of inverter/robot controller.
Format
VBA
lRet = object.GetDevice(szDevice, lData)
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name/monitor type Input
Long lData Acquired data Output
Visual C++
lRet = object.GetDevice(szDevice, *lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name/monitor type Input
Long *lplData Acquired data Output
Visual C#
iRet = object.GetDevice(szDevice, out iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name/monitor type Input
int iData Acquired data Output
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 441
Format (when creating an object)
Visual C++
hResult = object.GetDevice(szDevice, *lplData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name/monitor type Input
LONG *lplData Acquired data Output
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
One point of device data specified for szDevice is stored in lData (lplData or iData).
For the items that can be monitored (monitor types), refer to the following:
Page 154 ACCESSIBLE DEVICES AND DEVICE TYPES
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
442 11.3 Details of Functions (For Act Control)
When specifying CN200 and later devices of FXCPU
Example: CN200
Upper 2-byte Lower 2-byte
H of CN200 L of CN200
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 443
ReadBuffer (Reading data from buffer memory)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read data from the buffer memory of an intelligent function module.
Format
VBA
lRet = object.ReadBuffer(lStartIO,lAddress,lReadSize, iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lStartIO Start I/O number of module from Input
which values are read
Long lAddress Buffer memory address Input
Long lReadSize Read size Input
Integer iData(n) Values read from buffer memory Output
Visual C++
lRet = object.ReadBuffer(lStartIO, lAddress, lReadSize, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lStartIO Start I/O number of module from Input
which values are read
Long lAddress Buffer memory address Input
Long lReadSize Read size Input
Short *lpsData Values read from buffer memory Output
Visual C#
iRet = object.ReadBuffer(iStartIO, iAddress, iReadSize, out sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
int iStartIO Start I/O number of module from Input
which values are read
int iAddress Buffer memory address Input
int iReadSize Read size Input
short[n] sData Values read from buffer memory Output
11 FUNCTIONS
444 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.ReadBuffer(lStartIO, lAddress, lReadSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
LONG lStartIO Start I/O number of module from Input
which values are read
LONG
LONG
lAddress
lReadSize
Buffer memory address
Read size
Input
Input
11
SHORT *lpsData Values read from buffer memory Output
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• For the start I/O number of the module specified for lStartIO (iStartIO), specify the value of the actual start I/O number
divided by 16.
For an FX5CPU, specify the module number on the target station side.
• Buffer values of buffer memory address specified for lAddress (iAddress) of an intelligent function module of the start I/O
number specified for lStartIO (iStartIO) are read for the size of lReadSize (iReadSize).
• When performing CPU COM communication with FXCPU as a connected station or GX Simulator2 communication, specify
the block number (0 to 7) of a special expansion device for the start I/O number of a module and 0 to 32767 for the buffer
memory address.
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lReadSize (iReadSize).
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 445
Applicable communication routes
The following table shows the applicable communication routes.
: Applicable, : Not applicable
Communication route Property setting Applic
ActUnitType ActProtocolType ability
11 FUNCTIONS
446 11.3 Details of Functions (For Act Control)
Communication route Property setting Applic
ActUnitType ActProtocolType ability
*1 An error is returned when the CPU is other than FX3U, FX3UC, FX3G and FX3GC.
*2 An error is returned when the own board is accessed.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 447
WriteBuffer (Writing data to buffer memory)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To write data to the buffer memory of an intelligent function module.
Format
VBA
lRet = object.WriteBuffer(lStartIO, lAddress, lWriteSize, iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lStartIO Start I/O number of module to which Input
values are written
Long lAddress Buffer memory address Input
Long lWriteSize Write size Input
Integer iData(n) Values written from buffer memory Input
Visual C++
lRet = object.WriteBuffer(lStartIO, lAddress, lWriteSize, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lStartIO Start I/O number of module to which Input
values are written
Long lAddress Buffer memory address Input
Long lWriteSize Write size Input
Short *lpsData Values written from buffer memory Input
Visual C#
iRet = object. WriteBuffer (iStartIO, iAddress, iWriteSize, ref sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
int iStartIO Start I/O number of module to which Input
values are written
int iAddress Buffer memory address Input
int iWriteSize Write size Input
short[n] sData Values written from buffer memory Input
11 FUNCTIONS
448 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.WriteBuffer(lStartIO, lAddress, lWriteSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
LONG lStartIO Start I/O number of module to which Input
values are written
LONG
LONG
lAddress
lWriteSize
Buffer memory address
Write size
Input
Input
11
SHORT *lpsData Values written from buffer memory Input
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• For the start I/O number of the module specified for lStartIO (iStartIO), specify the value of the actual start I/O number
divided by 16.
For an FX5CPU, specify the module number on the target station side.
• Buffer values of buffer memory address specified for lAddress (iAddress) of an intelligent function module of the start I/O
number specified for lStartIO (iStartIO) are written for the size of lWriteSize (iWriteSize).
• When performing CPU COM communication with FXCPU as a connected station or GX Simulator2 communication, specify
the block number (0 to 7) of a special expansion device for the start I/O number of a module and 0 to 32767 for the buffer
memory address.
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lWriteSize (iWriteSize).
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 449
Applicable communication routes
The following table shows the applicable communication routes.
: Applicable, : Not applicable
Communication route Property setting Applic
ActUnitType ActProtocolType ability
11 FUNCTIONS
450 11.3 Details of Functions (For Act Control)
Communication route Property setting Applic
ActUnitType ActProtocolType ability
*1 An error is returned when the CPU is other than FX3U, FX3UC, FX3G and FX3GC.
*2 The error code "0x010A42A0" (the access password mismatch) is returned when accessing QSCPU.
*3 An error is returned when the own board is accessed.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 451
GetClockData (Reading clock data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read time from the clock data of a CPU module.
Format
VBA
lRet = object.GetClockData(iYear, iMonth, iDay, iDayOfWeek, iHour, iMinute, iSecond)
Data type Argument Description Input/Output
Long lRet Returned value Output
Integer iYear Read year value Output
Integer iMonth Read month value Output
Integer iDay Read day value Output
Integer iDayOfWeek Read day-of-week value Output
Integer iHour Read hour value Output
Integer iMinute Read minute value Output
Integer iSecond Read second value Output
Visual C++
lRet = object.GetClockData(*lpsYear, *lpsMonth, *lpsDay, *lpsDayOfWeek, *lpsHour, *lpsMinute, *lpsSecond)
Data type Argument Description Input/Output
Long lRet Returned value Output
Short *lpsYear Read year value Output
Short *lpsMonth Read month value Output
Short *lpsDay Read day value Output
Short *lpsDayOfWeek Read day-of-week value Output
Short *lpsHour Read hour value Output
Short *lpsMinute Read minute value Output
Short *lpsSecond Read second value Output
Visual C#
hResult = object.GetClockData(out sYear, out sMonth, out sDay, out sDayOfWeek,out sHour, out sMinute, out sSecond)
Data type Argument Description Input/Output
int iRet Returned value Output
short sYear Read year value Output
11 FUNCTIONS
452 11.3 Details of Functions (For Act Control)
Data type Argument Description Input/Output
short sMonth Read month value Output
short sDay Read day value Output
short sDayOfWeek Read day-of-week value Output
short sHour Read hour value Output
short sMinute Read minute value Output
short sSecond Read second value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• An error is returned when the correct clock data is not set to the CPU module.
• The values stored in iYear (lpsYear or sYear) are: the four digits of year for RCPU and QCPU (Q mode) and the last two
digits of year for any other CPUs.
Note that the applicable years for RCPU and QCPU (Q mode) are from 1980 to 2079.
• The values to be stored in iDayOfWeek (lpsDayOfWeek or sDayOfWeek) are as follows:
Value Day of Week
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 453
Applicable communication routes
The following table shows the applicable communication routes.
: Applicable, : Not applicable
Communication route Property setting Applic
ActUnitType ActProtocolType ability
11 FUNCTIONS
454 11.3 Details of Functions (For Act Control)
Communication route Property setting Applic
ActUnitType ActProtocolType ability
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 455
SetClockData (Writing clock data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To write time to the clock data of a CPU module.
Format
VBA
object.SetClockData(iYear, iMonth, iDay, iDayOfWeek, iHour, iMinute, iSecond)
Data type Argument Description Input/Output
Long lRet Returned value Output
Integer iYear Year value to be written Input
Integer iMonth Month value to be written Input
Integer iDay Day value to be written Input
Integer iDayOfWeek Day-of-week value to be written Input
Integer iHour Hour value to be written Input
Integer iMinute Minute value to be written Input
Integer iSecond Second value to be written Input
Visual C++
lRet = object.SetClockData(sYear, sMonth, sDay, sDayOfWeek, sHour, sMinute, sSecond)
Data type Argument Description Input/Output
Long lRet Returned value Output
Short sYear Year value to be written Input
Short sMonth Month value to be written Input
Short sDay Day value to be written Input
Short sDayOfWeek Day-of-week value to be written Input
Short sHour Hour value to be written Input
Short sMinute Minute value to be written Input
Short sSecond Second value to be written Input
Visual C#
lRet = object.SetClockData(sYear, sMonth, sDay, sDayOfWeek, sHour, sMinute, sSecond)
Data type Argument Description Input/Output
int iRet Returned value Output
short sYear Year value to be written Input
11 FUNCTIONS
456 11.3 Details of Functions (For Act Control)
Data type Argument Description Input/Output
short sMonth Month value to be written Input
short sDay Day value to be written Input
short sDayOfWeek Day-of-week value to be written Input
short sHour Hour value to be written Input
short sMinute Minute value to be written Input
short sSecond Second value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• An error is returned when the clock data to be set is not the correct value.
• The applicable values to be specified for iYear (sYear) are: the four digits of year for RCPU and QCPU (Q mode) and the
last two digits of year for any other CPUs.
Note that the applicable years for RCPU and QCPU (Q mode) are from 1980 to 2079.
An error occurs when four digits are set to a CPU other than RCPU and QCPU (Q mode).
• The values to be specified in iDayOfWeek (sDayOfWeek) are as follows:
Value Day of Week
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 457
Applicable communication routes
The following table shows the applicable communication routes.
: Applicable, : Not applicable
Communication route Property setting Applic
ActUnitType ActProtocolType ability
11 FUNCTIONS
458 11.3 Details of Functions (For Act Control)
Communication route Property setting Applic
ActUnitType ActProtocolType ability
*1 The error code "0x010A42A0" (the access password mismatch) is returned when accessing QSCPU.
*2 An error is returned when the own board is accessed.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 459
GetCpuType (Reading CPU module model)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read the model character string and the model code (hexadecimal) of CPU module, network board, and GOT.
Format
VBA
lRet = object.GetCpuType(szCpuName, lCpuType)
Data type Argument Description Input/Output
Long lRet Returned value Output
String szCpuName Model character string Output
Long lCpuType Model code Output
Visual C++
lRet = object.GetCpuType(*szCpuName, *lplCpuType)
Data type Argument Description Input/Output
Long lRet Returned value Output
BSTR *szCpuName Model character string Output
Long *lplCpuType Model code Output
Visual C#
iRet = object.GetCpuType (out szCpuName, out iCpuType)
Data type Argument Description Input/Output
int iRet Returned value Output
String szCpuName Model character string Output
int iCpuType Model code Output
11 FUNCTIONS
460 11.3 Details of Functions (For Act Control)
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The model character and the model code (hexadecimal) of the communication target CPU module are stored in
szCpuName and lCpuType (lplCpuType or iCpuType) respectively.
• The model character string is returned in UNICODE. 11
• The model code is the value of a module (hexadecimal).
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 461
SetCpuStatus (Remote control)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To perform a remote operation of CPU module.
Format
VBA
lRet = object.SetCpuStatus(lOperation)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lOperation Remote RUN/STOP/PAUSE/RESET Input
Visual C++
lRet = object.SetCpuStatus(lOperation)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lOperation Remote RUN/STOP/PAUSE/RESET Input
Visual C#
iRet = object.SetCpuStatus (iOperation)
Data type Argument Description Input/Output
int iRet Returned value Output
int iOperation Remote RUN/STOP/PAUSE/RESET Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
462 11.3 Details of Functions (For Act Control)
Description
The operation specified for lOperation (iOperation) is performed.
An error occurs when a value other than the following values is specified.
Value Operation
0 Remote RUN
1 Remote STOP
2 Remote PAUSE
3 Remote RESET
11
• Since FXCPUs do not feature the PAUSE switch as CPU modules, an error is returned when remote pause
is specified in SetCpuStatus.
• An error is returned when a Q motion CPU is accessed and PAUSE is specified.
• An error is returned when an R motion CPU is accessed.
• Not applicable to inverter communication/robot controller communication.
• Remote RESET can be used only for supported models of QCPU, LCPU, RCPU, LHCPU, and FX5CPU.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 463
Communication route Property setting Appli
ActUnitType ActProtocolType cabilit
y
CPU COM Connection target CPU: FX5CPU UNIT_FXVCPU PROTOCOL_SERIAL *1
communication
Connection target CPU: QCPU (Q mode) UNIT_QNCPU
Connection target CPU: LCPU UNIT_LNCPU
Connection target CPU: Q motion CPU UNIT_QNMOTION
Connection target CPU: FXCPU UNIT_FXCPU *1
USB Connection target CPU: RCPU UNIT_RUSB PROTOCOL_USB
communication
Connection target CPU: LHCPU UNIT_LHUSB
Connection target CPU: FX5CPU UNIT_FXVUSB
Connection target CPU: QCPU (Q mode) UNIT_QNUSB
Connection target CPU: LCPU UNIT_LNUSB
Connection target CPU: QSCPU UNIT_QSUSB *3
Connection target CPU: Q motion CPU UNIT_QNMOTIONUSB
Connection target CPU: FXCPU UNIT_FXCPU *1
MELSECNET/H communication UNIT_MNETHBOARD PROTOCOL_MNETH *4
CC-Link IE Controller Network communication UNIT_MNETGBOARD PROTOCOL_MNETG
CC-Link IE Field Network communication UNIT_CCIEFBOARD PROTOCOL_CCIEF
CC-Link IE TSN communication UNIT_CCIETSNBOARD PROTOCOL_CCIETSN
CC-Link communication UNIT_CCLINKBOARD PROTOCOL_CCLINK
CC-Link system RS-232 interface communication UNIT_G4QCPU PROTOCOL_SERIAL
GX Simulator2 communication UNIT_SIMULATOR2
GX Simulator3 communication (RCPU) UNIT_SIMULATOR3
GX Simulator3 communication (FX5CPU) *1
MT Simulator2 communication UNIT_SIMULATOR2
GOT gateway device communication UNIT_A900GOT PROTOCOL_UDPIP
GOT transparent function communication UNIT_RJ71C24, UNIT_QNCPU, PROTOCOL_SERIAL,
UNIT_LNCPU PROTOCOL_USBGOT
UNIT_FXVCPU, UNIT_FXCPU *1
UNIT_QJ71C24, UNIT_LJ71C24,
UNIT_GOT_RJ71EN71,
UNIT_GOT_QJ71E71,
UNIT_GOT_LJ71E71,
UNIT_GOT_RETHER,
UNIT_GOT_QNETHER,
UNIT_GOT_LNETHER,
UNIT_A900GOT,
UNIT_GOT_NZ2GF_ETB
UNIT_GOT_FXETHER, *1
UNIT_GOT_FXENET
UNIT_GOTETHER_RJ71C24, PROTOCOL_TCPIP
UNIT_GOTETHER_QNCPU,
UNIT_GOTETHER_LNCPU
UNIT_GOTETHER_FXVCPU, *1
UNIT_GOTETHER_FXCPU
UNIT_GOTETHER_QBUS
UNIT_GOTETHER_QN_ETHER
Inverter communication COMM_RS232C, COMM_USB
11 FUNCTIONS
464 11.3 Details of Functions (For Act Control)
EntryDeviceStatus (Registering devices for status monitoring)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
Feature
To register devices whose status to be monitored. 11
Format
VBA
lRet = object.EntryDeviceStatus(szDeviceList, lSize, lMonitorCycle, lData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDeviceList Registered device name list Input
Long lSize Number of registered device points Input
Long lMonitorCycle Status monitoring time interval Input
Long lData(n) Registered device value list Input
Visual C++
lRet = object.EntryDeviceStatus (szDeviceList, lSize, lMonitorCycle, *lplData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDeviceList Registered device name list Input
Long lSize Number of registered device points Input
Long lMonitorCycle Status monitoring time interval Input
Long *lplData Registered device value list Input
Visual C#
iRet = object. EntryDeviceStatus(szDeviceList, iSize, iMonitorCycle, ref iData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDeviceList Registered device name list Input
int iSize Number of registered device points Input
int iMonitorCycle Status monitoring time interval Input
int[n] iData Registered device value list Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 465
Description
• A device group for the size of lSize (iSize) specified for szDeviceList is checked whether it is in the status specified for lData
(lplData or iData).
Specify the check time for lMonitorCycle (iMonitorCycle).
When the status is established, the OnDeviceStatus function of the user program is executed.
• Use the line feed symbol to separate the character string specified for the device list. The line feed symbol is not necessary
to be suffixed to the last device.
Example:
When using Visual Basic .NET, VBA: "D0" & vbLf & "D1" & vbLf & "D2"
When using Visual C++: D0\nD1\nD2
When using Visual C#: D0\nD1\nD2
11 FUNCTIONS
466 11.3 Details of Functions (For Act Control)
• Device status monitoring may not be performed at the specified status monitoring time intervals depending
on the conditions: personal computer performance, currently executed application load, time required for
communication with the programmable controller, or the like.
Simultaneous use of any other control functions would also be the cause of disabling device status
monitoring at the specified status monitoring time ntervals.
• For lData (lplData or iData), reserve a memory area for the number of points specified for lSize (iSize).
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• An error occurs when the EntryDeviceStatus function is executed during a status monitoring. 11
When changing any status monitor condition, execute the FreeDeviceStatus function and then execute the
EntryDeviceStatus function.
• When the status of multiple devices changes at the same time, the OnDeviceStatus event is executed every
time the status changes.
(Example: When M0 is monitored)
• This function is a function to check the status establishment under the constant execution of random device
read by the control.
This function is not a function for a CPU module to notify the device status establishment to MX Component.
Therefore, the control may not be able to check the device status establishment of CPU module depending
on the specified status monitoring time interval.
• Not applicable to inverter communication/robot controller communication.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 467
Considerations for checking word device status
When checking the word device status for negative values of -1 to -32768 (FFFFH to 8000H), set the monitor device value of
the EntryDeviceStatus function to any of 65535 to 32768 (0000FFFFH to 00008000H) where '0' is stored in the upper 2-byte.
Example: When checking the D0 status for "-10"
Set the value "65526 (0000FFF6H)" where '0' is stored in the upper 2-byte of "-10 (FFFFFFF6H)" for the monitor device value.
While the type of word devices of the CPU module is WORD type, the type of monitor device value of the EntryDeviceStatus
function is LONG type.
Therefore, when current values of CPU module are compared with monitor device values of the EntryDeviceStatus function,
the values do not match and the above setting is required. (When bit devices or double word devices are used, this
consideration does not apply.)
For the programming examples regarding this consideration, refer to the following:
Page 670 Programing Examples for Monitoring Word Device Status
*1 Devices are stored from the lower bit in the order of device number.
When devices including CN200 and later of FXCPU are specified (total number of points: 3
points)
For CN200 and later devices of FXCPU, 2 words are read for each point when reading devices randomly.
When using Visual Basic .NET, VBA: "D0" & vbLf & "CN200" & vbLf & "D1"
When using Visual C++: D0\nCN200\nD1
When using Visual C#: D0\nCN200\nD1
11 FUNCTIONS
468 11.3 Details of Functions (For Act Control)
When devices including EG are specified (total number of points: 3 points)
The following is the example when 8-bit devices (E0000 and E0001 of SHARP programmable controller) are assigned to
EG0.
When using Visual Basic .NET, VBA: "D0" & vbLf & "EG0" & vbLf & "D1"
When using Visual C++: D0\nEG0\nD1
When using Visual C#: D0\nEG0\nD1
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 469
FreeDeviceStatus (Deregistering devices for status monitoring)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
Feature
To deregister devices registered by using the EntryDeviceStatus function to monitor their status.
Format
VBA
lRet = object.FreeDeviceStatus()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C++
iRet = object. FreeDeviceStatus()
Data type Argument Description Input/Output
int iRet Returned value Output
Visual C#
iRet = object. FreeDeviceStatus()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The devices that are set using the EntryDeviceStatus function to monitor their status are deregistered.
11 FUNCTIONS
470 11.3 Details of Functions (For Act Control)
OnDeviceStatus (Event notification)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
Feature
To execute the event notification when the device condition registered by using the EntryDeviceStatus function is satisfied. 11
Format (when creating an object)
VBA
• Adding an event handler
Private WithEvents object As objectLib.object
• Event handler
Private Sub object_OnDeviceStatus(szDevice, lData, lReturnCode)
Data type Argument Description Input/Output
String szDevice Name of device whose condition is Input
satisfied
Long lData Value of device whose condition is Input
satisfied
Long lReturnCode Returned value of condition check Input
processing
Visual C#
• Adding an event handler
object.OnDeviceStatus += new objectLib._IobjectEvents_OnDeviceStatusEventHandler(object_OnDeviceStatus);
• Event handler
private void object_OnDeviceStatus(szDevice, iData, iReturnCode)
Data type Argument Description Input/Output
String szDevice Name of device whose condition is Input
satisfied
int iData Value of device whose condition is Input
satisfied
int iReturnCode Returned value of condition check Input
processing
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 471
Format (when pasting a control to a form)
VBA
Private Sub object.OnDeviceStatus(szDevice, lData, lReturnCode)
Data type Argument Description Input/Output
String szDevice Name of device whose condition is Input
satisfied
Long lData Value of device whose condition is Input
satisfied
Long lReturnCode Returned value of condition check Input
processing
Visual C++
• Adding an event handler
Add "OnDeviceStatus" event from "Properties" of a control pasted to a form [Control Events] tab.
OnDeviceStatus event name: object_OnDeviceStatus
• Event handler
void object.OnDeviceStatus(szDevice, lData, lReturnCode)
Data type Argument Description Input/Output
LPCTSTR szDevice Name of device whose condition is Input
satisfied
Long lData Value of device whose condition is Input
satisfied
Long lReturnCode Returned value of condition check Input
processing
Visual C#
private void object_OnDeviceStatus
(object sender,object._IActUtlTypeEvents_OnDeviceStatusEvent e)
Argument Description Input/Output
sender Event occurrence source Output
e Event data Output
Returned value
None
11 FUNCTIONS
472 11.3 Details of Functions (For Act Control)
Description
• The event is notified to the application when the device condition registered using the EntryDeviceStatus function is
satisfied.
Programming this function in the user program allows the application to receive the event when the registered device
condition is satisfied.
• Device values registered by using the EntryDeviceStatus function are input to lData.
Example: When the word device is monitored for the value of "-1"
Set 65535 (0000FFFFH) as a registered device value by using the EntryDeviceStatus function.
11
When the value of the target word device of the CPU module becomes
"-1" (FFFFH), the OnDeviceStatus function is executed and (0000FFFFH) is input to lData.
• When any of the following settings is set in the user program, the event of the OnDeviceStatus function
does not occur even if the condition of the device registered to the EntryDeviceStatus function is satisfied.
Note that when the event occurrence becomes in wait status, the control function is not returned to the
control and device management processing stops until the following setting is terminated:
(1) For user programs created by using Visual Basic .NET or VBA (Excel):
The message box is being displayed in the user program.
The InputBox/OutputBox is being displayed in the user program.
(2) For user programs created by using Visual Basic .NET, Visual C++, Visual C#, or VBA (Excel, Access):
The Sleep processing, WaitForSingleObject function, or similar standby function is being used in the user
program.
• For installing "References," refer to the sample programs.
• The method to paste a control to a form cannot be used for 64-bit.
• Not applicable to inverter communication/robot controller communication.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 473
ReadDeviceBlock2 (Reading devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read devices in 2-byte data unit in batch.
Format
VBA
lRet = object.ReadDeviceBlock2(szDevice, lSize, iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Long lSize Number of read points Input
Integer iData(n) Read device value Output
Visual C++
lRet = object.ReadDeviceBlock2(szDevice, lSize, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Long lSize Number of read points Input
Short *lpsData Read device value Output
Visual C#
iRet = object.ReadDeviceBlock2(szDevice, iSize, out sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of read points Input
short[n] sData Read device value Output
11 FUNCTIONS
474 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.ReadDeviceBlock2(szDevice, lSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name Input
LONG lSize Number of read points Input
SHORT *lpsData Read device value Output
11
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The device values of lSize (iSize) are read in batch starting from the device specified for szDevice as SHORT type data.
• The read device values are stored in iData (lpsData or sData).
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lSize (iSize).
• The maximum number of read points for lSize should be the value which satisfies the following condition:
Start read device number + Number of read points Last device number
• When specifying bit devices, a multiple of 16 can be specified as a device number.
• For iData (lpsData or sData), reserve a memory area for the number of points specified for lSize (iSize).
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be read. Use the ReadDeviceRandom2 or GetDevice2 function.
• Not applicable to inverter communication/robot controller communication.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 475
When specifying CN200 and later devices of FXCPU
Example: Read 6 points of data from the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 words are read for each 2 points. Reading only 1 point of data will result in an error.
2-byte
L of CN200
H of CN200
L of CN201
H of CN201
L of CN202
H of CN202
11 FUNCTIONS
476 11.3 Details of Functions (For Act Control)
WriteDeviceBlock2 (Writing devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To write devices in 2-byte data unit in batch.
Format
VBA
lRet = object.WriteDeviceBlock2(szDevice, lSize, iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Long lSize Number of write points Input
Integer iData(n) Device value to be written Input
Visual C++
lRet = object.WriteDeviceBlock2(szDevice, lSize, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Long lSize Number of write points Input
Short *lpsData Device value to be written Input
Visual C#
iRet = object.WriteDeviceBlock2(szDevice, iSize, ref sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of write points Input
short[n] sData Device value to be written Input
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 477
Format (when creating an object)
Visual C++
hResult = object.WriteDeviceBlock2(szDevice, lSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDevice Device name Input
LONG lSize Number of write points Input
SHORT *lpsData Device value to be written Input
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The device values of lSize (iSize) are written in batch starting from the device specified for szDevice.
• The device values to be written are stored in iData (lpsData or sData).
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lSize (iSize).
• The maximum number of write points for lSize (iSize) should be the value which satisfies the following
condition:
Start write device number + Number of write points Last device number
• When specifying bit devices, a multiple of 16 can be specified as a device number.
• For iData (lpsData or sData), reserve a memory area for the number of points specified for lSize (iSize).
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be written. Use the WriteDeviceRandom2 or SetDevice2 function.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
• Not applicable to inverter communication/robot controller communication.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
478 11.3 Details of Functions (For Act Control)
When specifying CN200 and later devices of FXCPU
Example: Write 6 points of data to the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 words are written for each 2 points. Writing only 1 point of data will result in an
error.
2-byte
L of CN200
H of CN200
L of CN201
H of CN201 11
L of CN202
H of CN202
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 479
ReadDeviceRandom2 (Reading devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To read devices in 2-byte data unit randomly.
Format
VBA
lRet = object.ReadDeviceRandom2(szDeviceList, lSize, iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDeviceList Device name Input
Long lSize Number of read points Input
Integer iData(n) Read device value Output
Visual C++
lRet = object.ReadDeviceRandom2(szDeviceList, lSize, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDeviceList Device name Input
Long lSize Number of read points Input
Short *lpsData Read device value Output
Visual C#
iRet = object.ReadDeviceRandom2(szDevice, iSize, out sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of read points Input
short[n] sData Read device value Output
11 FUNCTIONS
480 11.3 Details of Functions (For Act Control)
Format (when creating an object)
Visual C++
hResult = object.ReadDeviceRandom2(szDeviceList, lSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDeviceList Device name Input
LONG lSize Number of read points Input
SHORT *lpsData Read device value Output
11
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of a device group specified for szDeviceList (szDevice) is read for the size of lSize (iSize).
• The read device values are stored in iData (lpsData or sData).
• Use the line feed symbol to separate the character string specified for the device list. The line feed symbol is not necessary
to be suffixed to the last device.
Example:
When using Visual Basic .NET, VBA: "D0" & vbLf & "D1" & vbLf & "D2"
When using Visual C++: D0\nD1\nD2
When using Visual C#: D0\nD1\nD2
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lSize (iSize).
2-byte
M0*1
D0
M0 to M15*2
*1 The target device from which data is read is only one point of "M0," and '0' or '1' is stored as the device value.
*2 Devices are stored from the lower bit in the order of device number.
Data is not read from the upper 2-byte of M16 to M31.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 481
When devices including CN200 and later of FXCPU are specified (total number of points: 3
points)
When using Visual Basic .NET, VBA: "D0" & vbLf & "CN200" & vbLf & "D1"
When using Visual C++: D0\nCN200\nD1
When using Visual C#: D0\nCN200\nD1
2-byte
D0
L of CN200*1
D1
*1 For CN200 and later devices of FXCPU, the L (lower 2-byte) of specified devices is read for each point when the ReadDeviceRandom2
function is executed.
The H (upper 2-byte) of specified devices is not read.
2-byte
D0
LL of FD0
D1
2-byte
D0
EG0
(E0001) (E0000)
D1
2-byte
L of LTN0
L of LTN1
L of LTN2
11 FUNCTIONS
482 11.3 Details of Functions (For Act Control)
WriteDeviceRandom2 (Writing devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To write devices in 2-byte data unit randomly.
Format
VBA
lRet = object.WriteDeviceRandom2(szDeviceList, lSize,iData(0))
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDeviceList Device name Input
Long lSize Number of write points Input
Integer iData(n) Device value to be written Input
Visual C++
lRet = object.WriteDeviceRandom2(szDeviceList, lSize,*lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDeviceList Device name Input
Long lSize Number of write points Input
Short *lpsData Device value to be written Input
Visual C#
iRet = object.WriteDeviceRandom2(szDevice, iSize, ref sData[0])
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
int iSize Number of write points Input
short[n] sData Device value to be written Input
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 483
Format (when creating an object)
Visual C++
hResult = object.WriteDeviceRandom2(szDeviceList, lSize, *lpsData, *lplRetCode)
Data type Argument Description Input/Output
HRESULT hResult Returned value of COM Output
BSTR szDeviceList Device name Input
LONG lSize Number of write points Input
SHORT *lpsData Device value to be written Input
LONG *lplRetCode Returned value of communication Output
function
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of a device group specified for szDeviceList (szDevice) is written for the size of lSize (iSize).
• The device values to be written are stored in iData (lpsData or sData).
• Use the line feed symbol to separate the character string specified for the device list. The line feed symbol is not necessary
to be suffixed to the last device.
Example:
When using Visual Basic .NET, VBA: "D0" & vbLf & "D1" & vbLf & "D2"
When using Visual C++: D0\nD1\nD2
When using Visual C#: D0\nD1\nD2
• For iData (lpsData or sData), reserve arrays for more than the amount specified for lSize (iSize).
11 FUNCTIONS
484 11.3 Details of Functions (For Act Control)
How to specify devices
The following describes how to specify devices.
2-byte
M0*1
11
D0
M0 to M15*2
*1 The target device to which data is written is only one point of "M0," and the least significant bit of the set 2-byte data is written as the
device value.
*2 Devices are stored from the lower bit in the order of device number.
'0' is written to the upper 2-byte of M16 to M31.
When devices including CN200 and later of FXCPU are specified (total number of points: 3
points)
When using Visual Basic .NET, VBA: "D0" & vbLf & "CN200" & vbLf & "D1"
When using Visual C++: D0\nCN200\nD1
When using Visual C#: D0\nCN200\nD1
2-byte
D0
L of CN200*1
D1
*1 For CN200 or later device of FXCPU, data is written to the L (lower 2-byte) of specified devices for each point when the
WriteDeviceRandom2 function is executed.
'0' is written to the H (upper 2-byte) of specified devices.
2-byte
D0
LL of FD0
D1
2-byte
D0
EG0
(E0001) (E0000)
D1
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 485
When double word devices are specified
When using Visual Basic .NET, VBA: "LTN0" & vbLf & "LTN1" & vbLf & "LTN2"
When using Visual C++: LTN0\nLTN1\nLTN2
When using Visual C#: LTN0\nLTN1\nLTN2
2-byte
L of LTN0
L of LTN1
L of LTN2
11 FUNCTIONS
486 11.3 Details of Functions (For Act Control)
SetDevice2 (Setting device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature 11
To set one point of device in 2-byte data unit.
Format
VBA
lRet = object.SetDevice2(szDevice, iData)
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Integer iData Set data Input
Visual C++
lRet = object.SetDevice2(szDevice, sData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Short sData Set data Input
Visual C#
iRet = object.SetDevice2(szDevice, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
short sData Set data Input
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 487
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• One point of device specified for szDevice is specified using iData (sData).
• When specifying bit devices, the least significant bit of the iData value (sData value) is valid.
• When specifying a double word device, the SetDevice2data function writes to the data area of lower 1 word
(2-byte), and '0' is written to the data area of upper 1 word (2-byte).
Use the WriteDeviceRandom or SetDevice function to write a double word device.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
• Not applicable to inverter communication/robot controller communication.
*1 The target device to which data is written is only one point of "M0," and the least significant bit of the set 2-byte data is written as the
device value.
*1 Devices are stored from the lower bit in the order of device number.
'0' is written to the upper 2-byte of M16 to M31.
11 FUNCTIONS
488 11.3 Details of Functions (For Act Control)
When specifying CN200 and later devices of FXCPU
Example: CN200
2-byte
L of CN200*1
*1 For CN200 and later devices of FXCPU, data is written to the L (lower 2-byte) of specified devices for each point when the SetDevice2
function is executed.
'0' is written to the H (upper 2-byte) of specified devices.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 489
GetDevice2 (Acquiring device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgType, ActUtlType
• 64-bit: ActProgType64, ActUtlType64
Feature
To acquire one point of device in 2-byte data unit.
Format
VBA
lRet = object.GetDevice2(szDevice, iData)
Data type Argument Description Input/Output
Long lRet Returned value Output
String szDevice Device name Input
Integer iData Acquired data Output
Visual C++
lRet = object.GetDevice2(szDevice, *lpsData)
Data type Argument Description Input/Output
Long lRet Returned value Output
CString szDevice Device name Input
Short *lpsData Acquired data Output
Visual C#
iRet = object.GetDevice2(szDevice, out sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szDevice Device name Input
short sData Acquired data Output
11 FUNCTIONS
490 11.3 Details of Functions (For Act Control)
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
One point of device data specified for szDevice is stored in iData (lpsData or sData).
• When a double word device is specified, only the data of lower 1 word (2-byte) is stored using the 11
GetDevice2 function. (An error does not occur.)
• When reading data from a double word device, use the ReadDeviceRandom or GetDevice function.
• Not applicable to inverter communication/robot controller communication.
*1 The target device from which data is read is only one point of "M0," and '0' or '1' is stored as the device value.
*1 Devices are stored from the lower bit in the order of device number.
Data is not read from the upper 2-byte of M16 to M31.
*1 For CN200 and later devices of FXCPU, the L (lower 2-byte) of specified devices is read for each point when the GetDevice2 function is
executed.
The H (upper 2-byte) of specified devices is not read.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 491
GetErrorMessage(Acquiring error description and corrective
action)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActSupportMsg
• 64-bit: ActSupportMsg64
Feature
To acquire the error description and its corrective action corresponding to the error code.
Format
VBA
lRet = object.GetErrorMessage(lErrorCode, szErrorMessage)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lErrorCode Error code Input
String szErrorMessage Error message Output
Visual C++
lRet = object.GetErrorMessage(lErrorCode, *lpszErrorMessage)
Data type Argument Description Input/Output
Long lRet Returned value Output
Long lErrorCode Error code Input
BSTR *lpszErrorMessage Error message Output
Visual C#
iRet = object.GetErrorMessage(iErrorCode, out szErrorMessage)
Data type Argument Description Input/Output
int iRet Returned value Output
int iErrorCode Error code Input
String szErrorMessage Error message Output
11 FUNCTIONS
492 11.3 Details of Functions (For Act Control)
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The error description and its corrective action of the error code specified for lErrorCode (iErrorCode) are read.
• The read error description and corrective action are stored in szErrorMessage (lpszErrorMessage or lpvarErrorMessage).
11
Not applicable to inverter communication.
11 FUNCTIONS
11.3 Details of Functions (For Act Control) 493
11.4 Details of Functions (For Act Control (Logging File
Transfer))
Open (Opening communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature
To open a communication line.
Format
Visual C++
lRet = object.Open()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C#
iRet = object.Open()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
494 11.4 Details of Functions (For Act Control (Logging File Transfer))
Description
Lines are connected according to the set value of the Open function property.
• If the Open function property is changed after the completion of the Open function, the setting of
communication target is not changed.
To change the communication setting, close the communication line, set the setting of communication
target, and open the communication line again.
• Even when a CPU type which is different from the one used for the communication is set to the ActCpuType 11
property, the Open function may be completed normally.
When executing the Open function, set the correct CPU type to the ActCpuType property.
11 FUNCTIONS
11.4 Details of Functions (For Act Control (Logging File Transfer)) 495
Close (Closing communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature
To close a communication line.
Format
Visual C++
lRet = object.Close()
Data type Argument Description Input/Output
Long lRet Returned value Output
Visual C#
iRet = object.Close()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The line connected using the Open function is closed.
• Call this function when an error occurred after calling the Open function or when exit the program.
11 FUNCTIONS
496 11.4 Details of Functions (For Act Control (Logging File Transfer))
ReadFirstFile (Searching for a file/directory)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature 11
To search a file or directly in the specified directory.
Format
Visual C++
Ret = object.ReadFirstFile(srcDir, *srcFilename, *srcType)
Data type Argument Description Input/Output
Long Ret Returned value Output
CString srcDir Directory name Input
BSTR *srcFileName File name or directory name Output
Long *srcType Type Output
Visual C#
Ret = object.ReadFirstFile(srcDir, out srcFilename, out srcType)
Data type Argument Description Input/Output
int Ret Returned value Output
String srcDir Directory name Input
String srcFileName File name or directory name Output
int srcType Type Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
11.4 Details of Functions (For Act Control (Logging File Transfer)) 497
Description
Search a file or directly in the specified directory.
• A read file name or directory name is stored in srcFileName.
• A value that identifies if the name set for srcFileName indicates a directory or file is stored in srcType.
For a directory, '1' is stored in the 4th bit counted from the lowest-order position.
As for a file, '0' is stored.
Example: When srcType is 24 (0x18), it indicates that the target is a directory.
0 0 0 0 1 1 0 0 0
0 0 0 0 1 0 0 0 0
Do not use the bits which are not described in the figure above.
• Files or directories under a sub directory are not searched.
11 FUNCTIONS
498 11.4 Details of Functions (For Act Control (Logging File Transfer))
ReadNextFile (Searching for a file/directory)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature 11
To continue searching other files from the last search result of ReadFirstFile.
Format
Visual C++
Ret = object.ReadNextFile(*srcFilename, *srcType)
Data type Argument Description Input/Output
Long Ret Returned value Output
BSTR *srcFileName File name or directory name Output
Long *srcType Type Output
Visual C#
Ret = object.ReadNextFile(out srcFilename, out srcType)
Data type Argument Description Input/Output
int Ret Returned value Output
String srcFileName File name or directory name Output
int srcType Type Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
11.4 Details of Functions (For Act Control (Logging File Transfer)) 499
Description
After searching for a file or directory using ReadFirstFile, search for the next file or directory in the specified directory.
• A read file name or directory name is stored in srcFileName.
• A value that identifies if the name set for srcFileName indicates a directory or file is stored in srcType.
For a directory, '1' is stored in the 4th bit counted from the lowest-order position.
As for a file, '0' is stored.
Do not use the bits which are not described in the figure above.
0 0 0 0 1 1 0 0 0
0 0 0 0 1 0 0 0 0
11 FUNCTIONS
500 11.4 Details of Functions (For Act Control (Logging File Transfer))
ReadClose (Ending the search)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature 11
To end the search.
Format
Visual C++
Ret = object.ReadClose()
Data type Argument Description Input/Output
Long Ret Returned value Output
Visual C#
Ret = object.ReadClose()
Data type Argument Description Input/Output
int Ret Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
End the search.
• The result for searching for a directory or file name is deleted.
11 FUNCTIONS
11.4 Details of Functions (For Act Control (Logging File Transfer)) 501
GetFile (Transferring logging files)
Applicable controls
This function can be used for the following controls.
• 32-bit: ActProgDataLogging, ActUtlDataLogging
• 64-bit: ActProgDataLogging64, ActUtlDataLogging64
Feature
To transfer a logging file.
Format
Visual C++
Ret = object.GetFile(srcFileName , dstFileName)
Data type Argument Description Input/Output
Long Ret Returned value Output
CString srcFileName Transfer source file name Input
CString dstFileName Transfer destination file name Input
Visual C#
Ret = object.GetFile(srcFileName , dstFileName)
Data type Argument Description Input/Output
int Ret Returned value Output
String srcFileName Transfer source file name Input
String dstFileName Transfer destination file name Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
502 11.4 Details of Functions (For Act Control (Logging File Transfer))
Description
Transfer a logging file.
• The file specified for srcFileName is transferred to the file specified for dstFileName.
11 FUNCTIONS
11.4 Details of Functions (For Act Control (Logging File Transfer)) 503
11.5 Details of Functions (For .Net Control)
Open (Opening communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To open a communication line.
Format
Visual Basic .NET
IRet = object.Open()
Data type Argument Description Input/Output
Integer IRet Returned value Output
Visual C#
iRet = object.Open()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
Lines are connected according to the set value of the Open function property.
• If the Open function property is changed after the completion of the Open function, the setting of
communication target is not changed.
To change the communication setting, close the communication line, set the setting of communication
target, and open the communication line again.
• Even when a CPU type which is different from the CPU used for the communication is set to the
ActCpuType property, the Open function may be completed normally.
In such a case, the connection range, usable method, or device range may be narrowed.
When executing the Open function, set the correct CPU type to the ActCpuType property.
11 FUNCTIONS
504 11.5 Details of Functions (For .Net Control)
Close (Closing communication line)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To close a communication line.
Format
Visual Basic .NET
IRet = object.Close()
Data type Argument Description Input/Output
Integer IRet Returned value Output
Visual C#
iRet = object.Close()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The line connected using the Open function is closed.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 505
ReadDeviceBlock (Reading devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To read array labels in batch.
Format
Visual Basic .NET
IRet = object.ReadDeviceBlock(szLabel, iSize, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of read points Input
Integer iData(n) Read device value Output
Visual C#
iRet = object.ReadDeviceBlock(ref szLabel, iSize, ref iData)
Data type Argument Description Input/Output
Int iRet Returned value Output
String szLabel Label name Input
int iSize Number of read points Input
int[n] iData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of devices specified for iSize (number of read points) is read in batch starting from the device specified for szLabel
(label name).
• The read device values are stored in iData.
• For iData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
506 11.5 Details of Functions (For .Net Control)
• The maximum number of read points is 0x7FFFFFFF, which satisfies the following condition:
Start read device number + Number of read points Last device number
• When specifying bit type array labels, 0 or a multiple of 16 can be specified as a device number.
• For the number of read points, specify the number of words which applies to the data type specified for the
label name.
For the read device values, reserve a memory area for the number of points specified for the number of
read points.
If the memory area is not reserved, a critical error (an application error or the like) may occur. 11
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
read.
When any one of devices which correspond to multiple label names does not exist, an error occurs and data
cannot be read.
• Digit specified bit device and index setting cannot be used.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be read. Use the ReadDeviceRandom or GetDevice function.
• When using system label Ver.2, the data type defined in the Label Utility of MX Component and the data
type managed by MELSOFT Navigator is required to match.
If the data type does not match, the read data length may wrong, or when multiple labels are specified, the
correspondence of the array of the read device value and label name may not match.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 507
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name
Element (One Dimension) System label name*1 Integer/int
(32-bit value)
System label name [n1]
Element (Two Dimensions) System label name*1 Integer/int
(32-bit value)
System label name [n1] [n2]
*1
Element (Three Dimensions) System label name Integer/int
(32-bit value)
System label name [n1] [n2] [n3]
Structure None System label name
System label name.structure member name
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name
Data type
The following data type can be specified for a label.
Bit*3, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*3, Time, Timer, Timer (Unsigned), Long timer*3, Counter, Counter (Unsigned), Long counter*3, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*3
11 FUNCTIONS
508 11.5 Details of Functions (For .Net Control)
Number of read points
For the number of read points, specify the following values according to the label data type.
Label (array) data type Number of Number of read points to be
applicable words specified
Bit 1 Number of label array elements 16
(rounded up)
Word (Signed) 1 Number of label array elements
Double Word (Signed) 2*1 Number of label array elements 2*1
Word (Unsigned) 1 Number of label array elements
Double Word (Unsigned) 2*1 Number of label array elements 2*1
11
Float (Single Precision) 2*1 Number of label array elements 2*1
Float (Double Precision) 4 Number of label array elements 4
String 17 Number of label array elements 17
String (Unicode) 33 Number of label array elements 33
Time 2*1 Number of label array elements 2*1
Timer, Timer (Unsigned), Long timer, Counter, Counter (Unsigned), Long counter, 1 Number of label array elements
Retentive Timer, Retentive Timer (Unsigned),Long retentive timer
*1 When specifying a double word device for a label, the number of devices (elements) is 1.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 509
When specifying double word devices (CN200 and later devices of FXCPU)
Example: Read 6 points (6 words = 3 double words) of data from the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 points of data are read from each 1 point of device (upper (H) and lower (L) data).
Reading only 1 point of data will result in an error.
Label setting
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) CN200 to CN202
When specifying word devices for double word array type labels
Example: Read 6 points (6 words = 3 double words) of data from the devices starting from D100.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) D100 to D105
11 FUNCTIONS
510 11.5 Details of Functions (For .Net Control)
When specifying double word devices to be acquired for 1 point in Double Word type
Example: Read 2 points (2 words) of data from the devices starting from LZ0.
Label setting (Data type: Double Word, Number of array elements: 2)
szLabel Label name Data type Device
[0] to [1] LABEL Double Word (0..1) LZ0 to LZ1
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 511
WriteDeviceBlock (Writing devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To write array labels in batch.
Format
Visual Basic .NET
IRet = object.WriteDeviceBlock(szLabel, iSize, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of write points Input
Integer iData(n) Device value to be written Input
Visual C#
iRet = object.WriteDeviceBlock(ref szLabel, iSize, iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of write points Input
int[n] iData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of devices specified for iSize (number of write points) is written in batch starting from the device specified for szLabel
(label name).
• The device values to be written are stored in iData.
• For iData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
512 11.5 Details of Functions (For .Net Control)
• The maximum number of write points should be the value which satisfies the following condition:
Start write device number + Number of write points Last device number
• When specifying bit type array labels, 0 or a multiple of 16 can be specified as a device number.
• For the number of write points, specify the number of words which applies to the data type specified for the
label name.
For the device values to be written, reserve a memory area for the number of points specified for the
number of write points.
If the memory area is not reserved, a critical error (an application error or the like) may occur. 11
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
written.
When any one of devices which correspond to multiple label names does not exist, an error occurs and data
cannot be written.
• Digit specified bit device and index setting cannot be used.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be written. Use the WriteDeviceRandom or SetDevice function.
• When using system label Ver.2, the data type defined in the Label Utility of MX Component and the data
type managed by MELSOFT Navigator is required to match.
If the data type does not match, the read data length may wrong, or when multiple labels are specified, the
correspondence of the array of the read device value and label name may not match.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 513
Data type
The following data type can be specified for a label.
Bit*3, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*3, Time, Timer, Timer (Unsigned), Long timer*3, Counter, Counter (Unsigned), Long counter*3, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*3
*1 When specifying a double word device for a label, the number of devices (elements) is 1.
11 FUNCTIONS
514 11.5 Details of Functions (For .Net Control)
How to specify devices
Specify the device values to be written as follows:
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 515
When specifying double word devices (CN200 and later devices of FXCPU)
Example: Write 6 points (6 words = 3 double words) of data to the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 points of data are written to each 1 point of device (upper (H) and lower (L) data).
Writing only 1 point of data will result in an error.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) CN200 to CN202
When specifying word devices for double word array type labels
Example: Write 6 points (6 words = 3 double words) of data to the devices starting from D100.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) D100 to D105
11 FUNCTIONS
516 11.5 Details of Functions (For .Net Control)
When specifying double word devices to be acquired for 1 point in Double Word type
Example: Write 2 points (2 words) of data to the devices starting from LZ0.
Label setting (Data type: Double Word, Number of array elements: 2)
szLabel Label name Data type Device
[0] to [1] LABEL Double Word (0..1) LZ0 to LZ1
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 517
ReadDeviceRandom (Reading devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To read devices randomly.
Format
Visual Basic .NET
IRet = object.ReadDeviceRandom(szLabel, iSize, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of read points Input
Integer iData(n) Read device value Output
Visual C#
iRet = object.ReadDeviceRandom(ref szLabel, iSize, ref iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of read points Input
int[n] iData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
518 11.5 Details of Functions (For .Net Control)
Description
• Data of a device group specified for the label name szLabel (szLabelList) is read for the size of iSize.
• The read device values are stored in iData.
• For iData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 519
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Integer/int
(32-bit value)
Element (One Dimension) System label name *1 Integer/int
(32-bit value)
System label name [n1] Integer/int
(32-bit value)
Element (Two Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] Integer/int
(32-bit value)
Element (Three Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3] Integer/int
(32-bit value)
Structure None System label name *1 Integer/int
(32-bit value)
System label name.structure member name Integer/int
(32-bit value)
Element (One Dimension) System label name *1 Integer/int
(32-bit value)
System label name [n1] *1 Integer/int
(32-bit value)
System label name [n1].structure member name Integer/int
(32-bit value)
Element (Two Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] *1 Integer/int
(32-bit value)
System label name [n1] [n2].structure member name Integer/int
(32-bit value)
Element (Three Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3] *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3].structure member name Integer/int
(32-bit value)
11 FUNCTIONS
520 11.5 Details of Functions (For .Net Control)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*4, Time, Timer*3, Timer (Unsigned)*3, Long timer*3*4, Counter*3, Counter (Unsigned)*3, Long counter*3*4, Retentive Timer*3, Retentive Timer
(Unsigned)*3, Long retentive timer*3*4
*1 When accessing data by specifying the label name only (without element specification) for the array label, specify the number of read
points in this table multiplied by the number of array elements.
*2 When reading a single label of "Simple Types" to which a double word device is assigned, the number of read points is 1.
It is 2 when reading a label of "Structure" to which a double word device is assigned and when reading multiple labels to which double
word devices are assigned at the same time.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 521
How to specify devices
The read device values are stored as follows:
When specifying bit devices, word devices, and double word devices acquired for one point
Example: Read a total of 6 points of data from M0, D0, D4, CN200, and D10.
Label setting
Label name Data type Device
LABEL1 Bit M0
LABEL2 Word D0
LABEL3 Word D4
LABEL4 Double Word CN200
LABEL5 Word D10
*1 2 words are read for 1 point. For the Random function, 2 device data is read when CN200 is specified to Double Word type.
When specifying double word devices to be acquired for 1 point in Double Word type
Example: Read 2 points of data from the devices starting from LZ0.
Label setting (Data type: Double Word, Number of array elements: 2)
Label name Data type Device
LABEL Double Word (0..1) LZ0
11 FUNCTIONS
522 11.5 Details of Functions (For .Net Control)
When specifying character strings
Example: Read 17 points of data from the devices starting from D0.
Label setting
Label name Data type Device
LABEL String D0
D15
D16
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 523
When specifying Float (Double Precision) and word devices
Example: Read a total of 5 points of data by specifying labels of Float (Double Precision) and Word types.
Label setting
Label name Data type Device
LABEL1 Float (Double Precision) D0
LABEL3 Word D200
Example 2: Read 3 points of data from the word devices (D0 to D2) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) D0
11 FUNCTIONS
524 11.5 Details of Functions (For .Net Control)
Example 3: Read 3 points of data from the double word devices (CN200 to CN202) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) CN200
Example 4: Read 6 points (6 words = 3 double words) of data by specifying array type labels.
Label setting
Label name Data type Device
LABEL Double Word (0..2) D0
Example 5: Read 51 points (D0 to D50) of string type data by specifying array type labels.
Label setting
Label name Data type Device
LABEL String (0..2) D0
The characters need to be converted in a user program because the characters of String type are not converted.
Read device values
index Upper 2-byte Lower 2-byte Applicable label
[0] Not used ('0' is stored.) D0 LABEL[0]
[1] D1
[16] D16
[17] D17 LABEL[1]
[18] D18
[33] D33
[34] D34 LABEL[2]
[35] D35
[50] D50
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 525
When specifying structure type labels
Example 1: Read data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word
LABEL3 Word
Label setting
Label name Device
STRUCT.LABEL1 M0
STRUCT.LABEL2 D0
STRUCT.LABEL3 W0
11 FUNCTIONS
526 11.5 Details of Functions (For .Net Control)
Example 2: Read data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Double Word
LABEL3 Float (Double Precision)
LABEL4 Word
Label setting
Label name Device 11
STRUCT.LABEL1 D0.0
STRUCT.LABEL2 D1
STRUCT.LABEL3 D3
STRUCT.LABEL4 D7
Number of read points: 8 (because the total number of read points for each structure member is 8)
Reading method
int iData[8]
ReadDeviceRandom("STRUCT",8,iData)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 527
When specifying labels in combination with structure and array
Example: Read data by specifying structure type array and structure array type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word (0..1)
LABEL3 Double Word
LABEL4 String
LABEL5 Word
Label setting
Label name Device
STRUCT[0].LABEL1 M0
STRUCT[0].LABEL2[0] D0
STRUCT[0].LABEL2[1] D1
STRUCT[0].LABEL3 D2
STRUCT[0].LABEL4 D4
STRUCT[0].LABEL5 D21
STRUCT[1].LABEL1 M1
STRUCT[1].LABEL2[0] D22
STRUCT[1].LABEL2[1] D23
STRUCT[1].LABEL3 D24
STRUCT[1].LABEL4 D26
STRUCT[1].LABEL5 D43
Number of read points: 46 (because the total number of read points for each structure is 23, and the number of array
elements is 2)
Reading method
int iData[46]
ReadDeviceRandom("STRUCT",46,iData)
or
String stLabelList[2] = {"STRUCT[0]","STRUCT[1]"}
ReadDeviceRandom(stLabelList,46 ,iData)
[21] D20
[22] D21 STRUCT[0].LABEL5
[23] M1 STRUCT[1].LABEL1
[24] D22 STRUCT[1].LABEL2[0]
[25] D23 STRUCT[1].LABEL2[1]
[26] D24 STRUCT[1].LABEL3
[27] D25
[28] D26 STRUCT[1].LABEL4
[44] D42
[45] D43 STRUCT[1].LABEL5
11 FUNCTIONS
528 11.5 Details of Functions (For .Net Control)
WriteDeviceRandom (Writing devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To write devices randomly.
Format
Visual Basic .NET
IRet = object.WriteDeviceRandom(szLabel, iSize, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of write points Input
Integer iData(n) Device value to be written Input
Visual C#
iRet = object.WriteDeviceRandom(ref szLabel, iSize, ref iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of write points Input
int[n] iData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 529
Description
• Data of a device group specified for the label name szLabel (szLabelList) is written for the size of iSize.
• The device values to be written are stored in iData.
• For iData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
530 11.5 Details of Functions (For .Net Control)
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Integer/int
(32-bit value)
11
Element (One Dimension) System label name *1 Integer/int
(32-bit value)
System label name [n1] Integer/int
(32-bit value)
Element (Two Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] Integer/int
(32-bit value)
Element (Three Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3] Integer/int
(32-bit value)
Structure None System label name *1 Integer/int
(32-bit value)
System label name.structure member name Integer/int
(32-bit value)
Element (One Dimension) System label name *1 Integer/int
(32-bit value)
System label name [n1] *1 Integer/int
(32-bit value)
System label name [n1].structure member name Integer/int
(32-bit value)
Element (Two Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] *1 Integer/int
(32-bit value)
System label name [n1] [n2].structure member name Integer/int
(32-bit value)
Element (Three Dimensions) System label name *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3] *1 Integer/int
(32-bit value)
System label name [n1] [n2] [n3].structure member name Integer/int
(32-bit value)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 531
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*4, Time, Timer*3, Timer (Unsigned)*3, Long timer*3*4, Counter*3, Counter (Unsigned)*3, Long counter*3*4, Retentive Timer*3, Retentive Timer
(Unsigned)*3, Long retentive timer*3*4
*1 When accessing data by specifying the label name only (without element specification) for the array label, specify the number of write
points in this table multiplied by the number of array elements.
*2 When writing a single label of "Simple Types" to which a double word device is assigned, the number of write points is 1.
It is 2 when writing a label of "Structure" to which a double word device is assigned and when writing multiple labels to which double
word devices are assigned at the same time.
11 FUNCTIONS
532 11.5 Details of Functions (For .Net Control)
How to specify devices
Specify the device values to be written as follows:
When specifying bit devices, word devices, and double word devices acquired for one point
Example: Write 1 point of data to M0, D0, D4, CN200 and D10.
Label setting
Label name Data type Device
LABEL1 Bit M0
LABEL2 Word D0 11
LABEL3 Word D4
LABEL4 Double Word CN200
LABEL5 Word D10
*1 2 words are written for 1 point. For the Random function, 2 device data is written when CN200 is specified to Double Word type.
When specifying double word devices to be acquired for 1 point in Double Word type
Example: Write 2 points of data to the devices starting from LZ0.
Label setting (Data type: Double Word, Number of array elements: 2)
Label name Data type Device
LABEL Double Word (0..1) LZ0
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 533
When specifying character strings
Example: Write 17 points of data to the devices starting from D0.
Label setting
Label name Data type Device
LABEL String D0
D14
D15
D16
11 FUNCTIONS
534 11.5 Details of Functions (For .Net Control)
When specifying Float (Double Precision) and word devices
Example: Write a total of 5 points of data by specifying Float (Double Precision) and a word device.
Label setting
Label name Data type Device
LABEL1 Float (Double Precision) D0
LABEL3 Word D200
Example 2: Write 3 points of data to the word devices (D0 to D2) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) D0
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 535
Example 3: Write 3 points of data to the double word devices (CN200 to CN202) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) CN200
The characters need to be converted in a user program because the characters of String type are not converted.
Device values to be written
Upper 2-byte Lower 2-byte
H of CN200 L of CN200
H of CN201 L of CN201
H of CN202 L of CN202
Example 4: Write 6 points (6 words = 3 double words) of data by specifying array type labels.
Label setting
Label name Data type Device
LABEL Double Word (0..2) D0
Example 5: Read 51 points (D0 to D50) of string type data by specifying array type labels.
Label setting
Label name Data type Device
LABEL String (0..2) D0
The characters need to be converted in a user program because the characters of String type are not converted.
Device values to be written
index Upper 2-byte Lower 2-byte Applicable label
[0] Not used ('0' is stored.) D0 LABEL[0]
[1] D0
[16] D16
[17] D17 LABEL[1]
[18] D18
[33] D33
[34] D34 LABEL[2]
[35] D35
[50] D50
11 FUNCTIONS
536 11.5 Details of Functions (For .Net Control)
When specifying structure type labels
Example 1: Write data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word
LABEL3 Word
Label setting
Label name Device
11
STRUCT.LABEL1 M0
STRUCT.LABEL2 D0
STRUCT.LABEL3 W0
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 537
Example 2: Write data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Double Word
LABEL3 Float (Double Precision)
LABEL4 Word
Label setting
Label name Device
STRUCT.LABEL1 D0.0
STRUCT.LABEL2 D1
STRUCT.LABEL3 D3
STRUCT.LABEL4 D7
Number of write points: 8 (because the total number of write points for each structure member is 8)
Writing method
int iData[8]
WriteDeviceRandom("STRUCT",8,iData)
11 FUNCTIONS
538 11.5 Details of Functions (For .Net Control)
When specifying labels in combination with structure and array
Example: Write data by specifying structure type array and structure array type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word (0..1)
LABEL3 Double Word
LABEL4 String
LABEL5 Word 11
Label setting
Label name Device
STRUCT[0].LABEL1 M0
STRUCT[0].LABEL2[0] D0
STRUCT[0].LABEL2[1] D1
STRUCT[0].LABEL3 D2
STRUCT[0].LABEL4 D4
STRUCT[0].LABEL5 D21
STRUCT[1].LABEL1 M1
STRUCT[1].LABEL2[0] D22
STRUCT[1].LABEL2[1] D23
STRUCT[1].LABEL3 D24
STRUCT[1].LABEL4 D26
STRUCT[1].LABEL5 D43
Number of write points: 46 (because the total number of write points for each structure is 23, and the number of array
elements is 2)
Writing method
int iData[46]
WriteDeviceRandom("STRUCT",46,iData)
or
String stLabelList[2] = {"STRUCT[0]","STRUCT[1]"}
WriteDeviceRandom(stLabelList,46 ,iData)
[21] D20
[22] D21 STRUCT[0].LABEL5
[23] M1 STRUCT[1].LABEL1
[24] D22 STRUCT[1].LABEL2[0]
[25] D23 STRUCT[1].LABEL2[1]
[26] D24 STRUCT[1].LABEL3
[27] D25
[28] D26 STRUCT[1].LABEL4
[44] D42
[45] D43 STRUCT[1].LABEL5
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 539
SetDevice (Setting device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To set one point of device.
Format
Visual Basic .NET
IRet = object.SetDevice(szLabel, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iData Device value to be written Input
Visual C#
iRet = object.SetDevice(ref szLabel, iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The values of iData (device values to be written) are written to 1 point of device specified for szLabel (label name).
• When specifying bit devices, the least significant bit of the iData (device values to be written) is valid.
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
written.
• When specifying a double word device, 2-byte is written in Double Word type.
When specifying other than a double word device for a data type equivalent to 2 words or more, this
function writes to the data area of lower 1 word (2-byte). (The values of upper 2-byte is indefinite.)
Use the WriteDeviceRandom function to write devices equivalent to 2 words or more.
• When using a label memory without specifying a device in system label Ver.2, the data is handled as 2
points of word.
• Digit specified bit device and index setting cannot be used.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
11 FUNCTIONS
540 11.5 Details of Functions (For .Net Control)
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Integer/int
(32-bit value)
11
Element (One Dimension) System label name
System label name [n1] Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2] Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3] Integer/int
(32-bit value)
Structure None System label name
System label name.structure member name Integer/int
(32-bit value)
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name Integer/int
(32-bit value)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed)*1, Word (Unsigned), Double Word (Unsigned)*1, Float (Single Precision)*1, Float (Double Precision)*1, String*1, String
(Unicode)*1*2, Time*1, Timer, Timer (Unsigned), Long timer*2, Counter, Counter (Unsigned), Long counter*2, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*2
*1 Only the lower 2-byte of start device can be written. Use the WriteDeviceRandom function to write devices equivalent to 2 words or
more.
*2 Cannot be used for system label Ver.1.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 541
How to specify devices
Specify the device values to be written as follows:
When specifying double word devices (ones to which data of 2 words can be written for 1
point)
Example: Write data to CN200.
For CN200 and later devices of FXCPU, 4-byte is written.
Label setting
szLabel Label name Data type Device
[0] LABEL Double Word CN200
11 FUNCTIONS
542 11.5 Details of Functions (For .Net Control)
When specifying double word devices (ones to which data of 2 words cannot be written for 1
point)
Example: Write data by specifying D0.
Label setting
szLabel Label name Data type Device
[0] LABELW Double Word D0
*1 Data is written in order from the lower 2-byte. For system label Ver.2, an indefinite value is written to the upper 2-byte.
*1 Data is written in order from the lower 2-byte. For system label Ver.2, an indefinite value is written to the upper 2-byte.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 543
GetDevice (Acquiring device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To acquire one point of device.
Format
Visual Basic .NET
IRet = object.GetDevice(szLabel, lData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iData Read device value Output
Visual C#
iRet = object.GetDevice(ref szLabel, ref iData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• One point of device data specified for szLabel (label name) is stored in iData (read device values).
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
read.
• For the read device values, reserve 4 bytes of memory area.
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• Digit specified bit device and index setting cannot be used.
11 FUNCTIONS
544 11.5 Details of Functions (For .Net Control)
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Integer/int
(32-bit value)
11
Element (One Dimension) System label name
System label name [n1] Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2] Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3] Integer/int
(32-bit value)
Structure None System label name
System label name.structure member name Integer/int
(32-bit value)
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name Integer/int
(32-bit value)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed)*1, Word (Unsigned), Double Word (Unsigned)*1, Float (Single Precision)*1, Float (Double Precision)*1, String*1, String
(Unicode)*1*2, Time*1, Timer, Timer (Unsigned), Long timer*2, Counter, Counter (Unsigned), Long counter*2, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*2
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 545
How to specify devices
The read device values are stored as follows:
*1 The target device from which data is read is only one point of "M0," and '0' or '1' is stored as the device value.
When specifying double word devices (ones from which data of 2 words can be read for 1
point)
Example: Read data from CN200.
Label setting
szLabel Label name Data type Device
[0] LABEL Double Word CN200
When specifying double word devices (ones from which data of 2 words cannot be read for 1
point)
Example: Read data by specifying D0.
Label setting
szLabel Label name Data type Device
[0] LABELW Double Word D0
11 FUNCTIONS
546 11.5 Details of Functions (For .Net Control)
When specifying data types equivalent to 2 words or more for labels
Example: Read data by specifying a string type label.
Label setting
szLabel Label name Data type Device
[0] LABEL String D0
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 547
ReadBuffer (Reading data from buffer memory)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To read data from the buffer memory of an intelligent function module.
Format
Visual Basic .NET
IRet = object.ReadBuffer(iStartIO, iAddress, iReadSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
Integer iStartIO Start I/O number of module from Input
which values are read
Integer iAddress Buffer memory address Input
Integer iReadSize Read size Input
Short sData(n) Values read from buffer memory Output
Visual C#
iRet = object.ReadBuffer(iStartIO, iAddress, iReadSize, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
int iStartIO Start I/O number of module from Input
which values are read
int iAddress Buffer memory address Input
int iReadSize Read size Input
short[n] sData Values read from buffer memory Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
548 11.5 Details of Functions (For .Net Control)
Description
• For the start I/O number of the module specified for iStartIO, specify the value of the actual start I/O number divided by 16.
For an FX5CPU, specify the module number on the target station side.
• Buffer values of buffer memory address specified for iAddress of an intelligent function module of the start I/O number
specified for iStartIO are read for the size of iReadSize.
• When performing CPU COM communication with FXCPU as a connected station or GX Simulator2 communication, specify
the block number (0 to 7) of a special expansion device for the start I/O number of a module and 0 to 32767 for the buffer
memory address.
11
• For sData, reserve arrays for more than the amount specified for iReadSize.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 549
WriteBuffer (Writing data to buffer memory)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To write data to the buffer memory of an intelligent function module.
Format
Visual Basic .NET
IRet = object.WriteBuffer(iStartIO, iAddress, iWriteSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
Integer iStartIO Start I/O number of module to which Input
values are written
Integer iAddress Buffer memory address Input
Integer iWriteSize Write size Input
Short sData(n) Values written from buffer memory Input
Visual C#
iRet = object. WriteBuffer (iStartIO, iAddress, iWriteSize, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
int iStartIO Start I/O number of module to which Input
values are written
int iAddress Buffer memory address Input
int iWriteSize Write size Input
short[n] sData Values written from buffer memory Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
550 11.5 Details of Functions (For .Net Control)
Description
• For the start I/O number of the module specified for iStartIO, specify the value of the actual start I/O number divided by 16.
For an FX5CPU, specify the module number on the target station side.
• Buffer values of buffer memory address specified for iAddress of an intelligent function module of the start I/O number
specified for iStartIO are written for the size of iWriteSize.
• When performing CPU COM communication with FXCPU as a connected station or GX Simulator2 communication, specify
the block number (0 to 7) of a special expansion device for the start I/O number of a module and 0 to 32767 for the buffer
memory address.
11
• For sData, reserve arrays for more than the amount specified for iWriteSize.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 551
GetClockData (Reading clock data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To read time from the clock data of a CPU module.
Format
Visual Basic .NET
IRet = object.GetClockData(sYear, sMonth, sDay, sDayOfWeek, sHour, sMinute, sSecond)
Data type Argument Description Input/Output
Integer IRet Returned value Output
Short sYear Read year value Output
Short sMonth Read month value Output
Short sDay Read day value Output
Short sDayOfWeek Read day-of-week value Output
Short sHour Read hour value Output
Short sMinute Read minute value Output
Short sSecond Read second value Output
Visual C#
hResult = object.GetClockData
(ref sYear, ref sMonth, ref sDay, ref sDayOfWeek,ref sHour, ref sMinute, ref sSecond)
Data type Argument Description Input/Output
int iRet Returned value Output
short sYear Read year value Output
short sMonth Read month value Output
short sDay Read day value Output
short sDayOfWeek Read day-of-week value Output
short sHour Read hour value Output
short sMinute Read minute value Output
short sSecond Read second value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
552 11.5 Details of Functions (For .Net Control)
Description
• An error is returned when the correct clock data is not set to the CPU module.
• The values stored in sYear are: the four digits of year for RCPU and QCPU (Q mode) and the last two digits of year for any
other CPUs.
Note that the applicable years for RCPU and QCPU (Q mode) are from 1980 to 2079.
• The values to be stored in sDayOfWeek are as follows:
Value Day of Week
0 Sunday
11
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 553
SetClockData (Writing clock data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To write time to the clock data of a CPU module.
Format
Visual Basic .NET
IRet = object.SetClockData(sYear, sMonth, sDay, sDayOfWeek, sHour, sMinute, sSecond)
Data type Argument Description Input/Output
Integer IRet Returned value Output
Short sYear Year value to be written Input
Short sMonth Month value to be written Input
Short sDay Day value to be written Input
Short sDayOfWeek Day-of-week value to be written Input
Short sHour Hour value to be written Input
Short sMinute Minute value to be written Input
Short sSecond Second value to be written Input
Visual C#
lRet = object.SetClockData(sYear, sMonth, sDay, sDayOfWeek, sHour, sMinute, sSecond)
Data type Argument Description Input/Output
int iRet Returned value Output
short sYear Year value to be written Input
short sMonth Month value to be written Input
short sDay Day value to be written Input
short sDayOfWeek Day-of-week value to be written Input
short sHour Hour value to be written Input
short sMinute Minute value to be written Input
short sSecond Second value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
554 11.5 Details of Functions (For .Net Control)
Description
• An error is returned when the clock data to be set is not the correct value.
• The applicable values to be specified for sYear are: the four digits of year for RCPU and QCPU (Q mode) and the last two
digits of year for any other CPUs.
Note that the applicable years for RCPU and QCPU (Q mode) are from 1980 to 2079.
An error occurs when four digits are set to a CPU other than RCPU and QCPU (Q mode).
• The values to be specified for sDayOfWeek are as follows:
Value Day of Week 11
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 555
GetCpuType (Reading CPU module model)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To read the model character string and the model code (hexadecimal) of CPU module, network board, and GOT.
Format
Visual Basic .NET
IRet = object.GetCpuType(szCpuName, ICpuType)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szCpuName Model character string Output
Integer ICpuType Model code Output
Visual C#
iRet = object.GetCpuType (ref szCpuName, ref iCpuType)
Data type Argument Description Input/Output
int iRet Returned value Output
String szCpuName Model character string Output
int iCpuType Model code Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The model character and the model code (hexadecimal) of the communication target CPU module are stored in
szCpuName and iCpuType respectively.
• The model character string is returned in UNICODE.
• The model code is the value of a module (hexadecimal).
11 FUNCTIONS
556 11.5 Details of Functions (For .Net Control)
SetCpuStatus (Remote control)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To perform a remote operation of CPU module.
Format
Visual Basic .NET
IRet = object.SetCpuStatus(IOperation)
Data type Argument Description Input/Output
Integer IRet Returned value Output
Integer IOperation Remote RUN/STOP/PAUSE/RESET Input
Visual C#
iRet = object.SetCpuStatus (iOperation)
Data type Argument Description Input/Output
int iRet Returned value Output
int iOperation Remote RUN/STOP/PAUSE/RESET Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The operation specified for iOperation is performed.
An error occurs when a value other than the following values is specified.
Value Operation
0 Remote RUN
1 Remote STOP
2 Remote PAUSE
3 Remote RESET
• Since FXCPUs do not feature the PAUSE switch as CPU modules, an error is returned when remote pause
is specified in SetCpuStatus.
• An error is returned when a Q motion CPU is accessed and PAUSE is specified.
• An error is returned when an R motion CPU is accessed.
• For the availability of communication routes, refer to the table in Page 462 SetCpuStatus (Remote
control).
• Remote RESET can be used only for supported models of QCPU, LCPU, RCPU, LHCPU, and FX5CPU.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 557
EntryDeviceStatus (Registering devices for status monitoring)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
Feature
To register devices whose status to be monitored.
Format
Visual Basic .NET
IRet = object.EntryDeviceStatus(szLabelList, iSize, iMonitorCycle, iData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabelList(n) Registered label name list Input
Integer iSize Number of registered device points Input
Integer iMonitorCycle Status monitoring time interval Input
Integer iData(n) Registered device value list Input
Visual C#
iRet = object. EntryDeviceStatus(szLabelList, iSize, iMonitorCycle, iData)
Data type Argument Description Input/Output
int iRet Returned value Output
System.String[n] szLabelList Registered label name list Input
int iSize Number of registered device points Input
int iMonitorCycle Status monitoring time interval Input
int[n] iData Registered device value list Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• A device group for the size of iSize specified for szLabelList is checked whether it is in the status specified for iData.
Specify the check time for iMonitorCycle.
When the status is established, the OnDeviceStatus function of the user program is executed.
• The maximum number of device points for iSize is 20.
• Specify a value within the range from 1 second to 1 hour (set between 1 and 3600 in seconds) for iMonitorCycle.
An error occurs when any other value outside the above range is specified.
• The registered device value list is stored in iData.
11 FUNCTIONS
558 11.5 Details of Functions (For .Net Control)
• Device status monitoring may not be performed at the specified status monitoring time intervals depending
on the conditions: personal computer performance, currently executed application load, time required for
communication with the programmable controller, or the like.
Simultaneous use of any other control functions would also be the cause of disabling device status
monitoring at the specified status monitoring time intervals.
• For iData, reserve a memory area for the number of points specified for iSize.
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• An error occurs when the EntryDeviceStatus function is executed during a status monitoring. 11
When changing any status monitor condition, execute the FreeDeviceStatus function and then execute the
EntryDeviceStatus function.
• When the status of multiple devices changes at the same time, the OnDeviceStatus event is executed every
time the status changes.
(Example: When M0 is monitored)
• This function is a function to check the status establishment under the constant execution of random device
read by the control.
This function is not a function for a CPU module to notify the device status establishment to MX Component.
Therefore, the control may not be able to check the device status establishment of CPU module depending
on the specified status monitoring time interval.
• Digit specified bit device and index setting cannot be used.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 559
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Integer/int
(32-bit value)
Element (One Dimension) System label name
System label name [n1] Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2] Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3] Integer/int
(32-bit value)
Structure None System label name
System label name.structure member name Integer/int
(32-bit value)
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name Integer/int
(32-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name Integer/int
(32-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name Integer/int
(32-bit value)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Word (Unsigned)
11 FUNCTIONS
560 11.5 Details of Functions (For .Net Control)
When specifying CN200 and later devices of FXCPU
Example: Register 3 points of devices including CN200.
Label setting
szLabelList Label name Data type Device
[0] LABEL1 Word D0
[1] LABEL2 Word CN200
[2] LABEL3 Word D1
*1 Only the lower 2-byte can be registered. The HH, HL, and LH (upper 6-byte) of specified devices cannot be registered.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 561
FreeDeviceStatus (Deregistering devices for status monitoring)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
Feature
To deregister devices registered by using the EntryDeviceStatus function to monitor their status.
Format
Visual Basic .NET
IRet = object.FreeDeviceStatus()
Data type Argument Description Input/Output
Integer IRet Returned value Output
Visual C#
iRet = object. FreeDeviceStatus()
Data type Argument Description Input/Output
int iRet Returned value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
The devices that are set using the EntryDeviceStatus function to monitor their status are deregistered.
11 FUNCTIONS
562 11.5 Details of Functions (For .Net Control)
OnDeviceStatus (Event notification)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
Feature
To execute the event notification when the device condition registered by using the EntryDeviceStatus function is satisfied. 11
Format
Visual Basic .NET
• Adding an event handler
AddHandler object.OnDeviceStatus, AddressOf object_OnDeviceStatus
• Event handler
Private Sub object_OnDeviceStatus(ByVal sender As System.Object,
ByVal e As MITSUBISHI.Component.DeviceStatusEventArgs)
Argument Description Input/Output
sender Event occurrence source Output
e Event data Output
Visual C#
• Adding an event handler
object.OnDeviceStatus += new MITSUBISHI.Component.DotUtlType.DeviceStatusEventHandler (object_OnDeviceStatus);
• Event handler
private void object_OnDeviceStatus(object sender, MITSUBISHI.Component.DeviceStatusEventArgs e)
Argument Description Input/Output
sender Event occurrence source Output
e Event data Output
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 563
Returned value
None
Description
• The event is notified to the application when the device condition registered using the EntryDeviceStatus function is
satisfied.
Programming this function in the user program allows the application to receive the event when the registered device
condition is satisfied.
• Device values registered by using the EntryDeviceStatus function are input to lData.
Example: When the word device is monitored for the value of "-1"
Set 65535 (0000FFFFH) as a registered device value by using the EntryDeviceStatus function.
When the value of the target word device of the CPU module becomes
"-1" (FFFFH), the OnDeviceStatus function is executed and (0000FFFFH) is input to lData.
When any of the following settings is set in the user program, the event of the OnDeviceStatus function does
not occur even if the condition of the device registered to the EntryDeviceStatus function is satisfied.
Note that when the event occurrence becomes in wait status, the control function is not returned to the .Net
control and device management processing stops until the following setting is terminated.
• For user applications created by using Visual Basic .NET:
The message box is being displayed in the user program.
The InputBox/OutputBox is being displayed in the user program.
• For user programs created by using Visual Basic .NET or Visual C#:
The Sleep processing, WaitForSingleObject function, or similar standby function is being used in the user
program.
11 FUNCTIONS
564 11.5 Details of Functions (For .Net Control)
ReadDeviceBlock2 (Reading devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To read array labels in 2-byte data unit in batch.
Format
Visual Basic .NET
IRet = object.ReadDeviceBlock2(szLabel, iSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of read points Input
Short sData(n) Read device value Output
Visual C#
iRet = object.ReadDeviceBlock2(ref szLabel, iSize, ref sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of read points Input
short[n] sData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of devices specified for iSize (number of read points) is read in batch starting from the device specified for szLabel
(label name).
• The read device values are stored in sData.
• For sData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 565
• The maximum number of read points should be the value which satisfies the following condition:
Start read device number + Number of read points Last device number
• When specifying bit type array labels, 0 or a multiple of 16 can be specified as a device number.
• For the number of read points, specify the number of words which applies to the data type specified for the
label name.
For the read device values, reserve a memory area for the number of points specified for the number of
read points.
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
read.
When any one of devices which correspond to multiple label names does not exist, an error occurs and data
cannot be read.
• Digit specified bit device and index setting cannot be used.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be read. Use the ReadDeviceRandom2 or GetDevice2 function.
11 FUNCTIONS
566 11.5 Details of Functions (For .Net Control)
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name 11
Element (One Dimension) System label name*1 Short/short
(16-bit value)
System label name [n1]
Element (Two Dimensions) System label name*1 Short/short
(16-bit value)
System label name [n1] [n2]
*1
Element (Three Dimensions) System label name Short/short
(16-bit value)
System label name [n1] [n2] [n3]
Structure None System label name
System label name.structure member name
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name
Data type
The following data type can be specified for a label.
Bit*3, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*3, Time, Timer, Timer (Unsigned), Long timer*3, Counter, Counter (Unsigned), Long counter*3, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*3
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 567
Number of read points
For the number of read points, specify the following values according to the label data type.
Label (array) data type Number of Number of read points to be
applicable words specified
Bit 1 Number of label array elements 16
(rounded up)
Word (Signed) 1 Number of label array elements
Double Word (Signed) 2*1 Number of label array elements 2*1
Word (Unsigned) 1 Number of label array elements
Double Word (Unsigned) 2*1 Number of label array elements 2*1
Float (Single Precision) 2*1 Number of label array elements 2*1
Float (Double Precision) 4 Number of label array elements 4
String 17 Number of label array elements 17
String (Unicode) 33 Number of label array elements 33
Time 2*1 Number of label array elements 2*1
Timer, Timer (Unsigned), Long timer, Counter, Counter (Unsigned), Long counter, 1 Number of label array elements
Retentive Timer, Retentive Timer (Unsigned),Long retentive timer
*1 When specifying a double word device for a label, the number of devices (elements) is 1.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
568 11.5 Details of Functions (For .Net Control)
When specifying CN200 and later devices of FXCPU
Example: Read 6 points (6 words = 3 double words) of data from the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 points of data are read from each 1 point of device (upper (H) and lower (L) data).
Reading only 1 point of data will result in an error.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) CN200 to CN202
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 569
WriteDeviceBlock2 (Writing devices in batch)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To write array labels in 2-byte data unit in batch.
Format
Visual Basic .NET
IRet = object.WriteDeviceBlock2(szLabel, iSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of write points Input
Short sData(n) Device value to be written Input
Visual C#
iRet = object.WriteDeviceBlock2(ref szLabel, iSize, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of write points Input
short[n] sData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• Data of devices specified for iSize (number of write points) is written in batch starting from the device specified for szLabel
(label name).
• Store the device values to be written in sData.
• For sData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
570 11.5 Details of Functions (For .Net Control)
• The maximum number of write points should be the value which satisfies the following condition:
Start write device number + Number of write points Last device number
• When specifying bit type array labels, 0 or a multiple of 16 can be specified as a device number.
• For the number of write points, specify the number of words which applies to the data type specified for the
label name.
For the device values to be written, reserve a memory area for the number of points specified for the
number of write points.
If the memory area is not reserved, a critical error (an application error or the like) may occur. 11
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
written.
When any one of devices which correspond to multiple label names does not exist, an error occurs and data
cannot be written.
• Digit specified bit device and index setting cannot be used.
• Devices of long timer contact (LTS), long timer coil (LTC), long retentive timer contact (LSTS), long retentive
timer coil (LSTC) cannot be read. Use the WriteDeviceRandom2 or SetDevice2 function.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 571
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name
Element (One Dimension) System label name*1 Short/short
(16-bit value)
System label name [n1]
Element (Two Dimensions) System label name*1 Short/short
(16-bit value)
System label name [n1] [n2]
*1
Element (Three Dimensions) System label name Short/short
(16-bit value)
System label name [n1] [n2] [n3]
Structure None System label name
System label name.structure member name
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name
Data type
The following data type can be specified for a label.
Bit*3, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*3, Time, Timer, Timer (Unsigned), Long timer*3, Counter, Counter (Unsigned), Long counter*3, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*3
11 FUNCTIONS
572 11.5 Details of Functions (For .Net Control)
Number of write points
For the number of write points, specify the following values according to the label data type.
Label (array) data type Number of Number of write points to be
applicable words specified
Bit 1 Number of label array elements 16
(rounded up)
Word (Signed) 1 Number of label array elements
Double Word (Signed) 2*1 Number of label array elements 2*1
Word (Unsigned) 1 Number of label array elements
Double Word (Unsigned) 2*1 Number of label array elements 2*1
11
Float (Single Precision) 2*1 Number of label array elements 2*1
Float (Double Precision) 4 Number of label array elements 4
String 17 Number of label array elements 17
String (Unicode) 33 Number of label array elements 33
Time 2*1 Number of label array elements 2*1
Timer, Timer (Unsigned), Long timer, Counter, Counter (Unsigned), Long counter, 1 Number of label array elements
Retentive Timer, Retentive Timer (Unsigned),Long retentive timer
*1 When specifying a double word device for a label, the number of devices (elements) is 1.
*1 Devices are stored from the lower bit in the order of device number.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 573
When specifying CN200 and later devices of FXCPU
Example: Write 6 points (6 words = 3 double words) of data to the devices starting from CN200.
For CN200 and later devices of FXCPU, 2 points of data are written to each 1 point of device (upper (H) and lower (L) data).
Writing only 1 point of data will result in an error.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) CN200 to CN202
When specifying word devices for double word array type labels
Example: Write 6 points (6 words = 3 double words) of data to the devices starting from D0.
Label setting (Data type: Double Word, Number of array elements: 3)
szLabel Label name Data type Device
[0] to [5] LABEL Double Word (0..2) D0 to D5
11 FUNCTIONS
574 11.5 Details of Functions (For .Net Control)
ReadDeviceRandom2 (Reading devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To read devices in 2-byte data unit randomly.
Format
Visual Basic .NET
IRet = object.ReadDeviceRandom2(szLabel, iSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of read points Input
Short sData(n) Read device value Output
Visual C#
iRet = object.ReadDeviceRandom2(ref szLabel, iSize, ref sData)
Data type Argument Description Input/Output
Int iRet Returned value Output
String szLabel Label name Input
int iSize Number of read points Input
short[n] sData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 575
Description
• Data of a device group specified for the label name szLabel (szLabelList) is read for the size of iSize.
• The read device values are stored in sData.
• For sData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
576 11.5 Details of Functions (For .Net Control)
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Short/short
(16-bit value)
11
Element (One Dimension) System label name *1 Short/short
(16-bit value)
System label name [n1] Short/short
(16-bit value)
Element (Two Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] Short/short
(16-bit value)
Element (Three Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3] Short/short
(16-bit value)
Structure None System label name *1 Short/short
(16-bit value)
System label name.structure member name Short/short
(16-bit value)
Element (One Dimension) System label name *1 Short/short
(16-bit value)
System label name [n1] *1 Short/short
(16-bit value)
System label name [n1].structure member name Short/short
(16-bit value)
Element (Two Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] *1 Short/short
(16-bit value)
System label name [n1] [n2].structure member name Short/short
(16-bit value)
Element (Three Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3] *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3].structure member name Short/short
(16-bit value)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 577
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*4, Time, Timer*3, Timer (Unsigned)*3, Long timer*3*4, Counter*3, Counter (Unsigned)*3, Long counter*3*4, Retentive Timer*3, Retentive Timer
(Unsigned)*3, Long retentive timer*3*4
*1 When accessing data by specifying the label name only (without element specification) for the array label, specify the number of read
points in this table multiplied by the number of array elements.
*2 When reading a single label of "Simple Types" to which a double word device is assigned, the number of read points is 1.
It is 2 when reading a label of "Structure" to which a double word device is assigned and when reading multiple labels to which double
word devices are assigned at the same time.
11 FUNCTIONS
578 11.5 Details of Functions (For .Net Control)
How to specify devices
The read device values are stored as follows:
When specifying CN200 and later devices of FXCPU or double word devices
Example: Read 4 points of data from the devices including CN200.
Label setting
Label name Data type Device
LABEL1 Word D0
LABEL2 Double Word CN200 11
LABEL3 Word D1
Example 2: Read 3 points of data from the word devices (D0 to D2) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) D0
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 579
Example 3: Read 3 points of data from the double word devices (CN200 to CN202) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) CN200
Example 4: Read 6 points (6 words = 3 double words) of data by specifying array type labels.
Label setting
Label name Data type Device
LABEL Double Word (0..2) D0
Example 5: Read 51 points (D0 to D50) of string type data by specifying array type labels.
Label setting
Label name Data type Device
LABEL String (0..2) D0
The characters need to be converted in a user program because the characters of String type are not converted.
Read device values
index 2-byte Applicable label
[0] D0 LABEL[0]
[1] D1
[16] D16
[17] D17 LABEL[1]
[18] D18
[33] D33
[34] D34 LABEL[2]
[35] D35
[50] D50
11 FUNCTIONS
580 11.5 Details of Functions (For .Net Control)
When specifying structure type labels
Example 1: Read data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word
LABEL3 Word
Label setting
Label name Device
11
STRUCT.LABEL1 M0
STRUCT.LABEL2 D0
STRUCT.LABEL3 W0
Label setting
Label name Device
STRUCT.LABEL1 D0.0
STRUCT.LABEL2 D1
STRUCT.LABEL3 D3
STRUCT.LABEL4 D7
Number of read points: 8 (because the total number of read points for each structure member is 8)
Reading method
short sData[8]
ReadDeviceRandom2("STRUCT",8,sData)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 581
Read device values
2-byte Applicable label
D0.0 STRUCT.LABEL1
D1 STRUCT.LABEL2
D2
D3 STRUCT.LABEL3
D4
D5
D6
D7 STRUCT.LABEL4
Label setting
Label name Device
STRUCT[0].LABEL1 M0
STRUCT[0].LABEL2[0] D0
STRUCT[0].LABEL2[1] D1
STRUCT[0].LABEL3 D2
STRUCT[0].LABEL4 D4
STRUCT[0].LABEL5 D21
STRUCT[1].LABEL1 M1
STRUCT[1].LABEL2[0] D22
STRUCT[1].LABEL2[1] D23
STRUCT[1].LABEL3 D24
STRUCT[1].LABEL4 D26
STRUCT[1].LABEL5 D43
Number of read points: 46 (because the total number of read points for each structure is 23, and the number of array
elements is 2)
Reading method
short iData[46]
ReadDeviceRandom2("STRUCT",46,iData)
or
String stLabelList[2] = {"STRUCT[0]","STRUCT[1]"}
ReadDeviceRandom2(stLabelList,46 ,iData)
11 FUNCTIONS
582 11.5 Details of Functions (For .Net Control)
Read device values
index 2-byte Applicable label
[0] M0 STRUCT[0].LABEL1
[1] D0 STRUCT[0].LABEL2[0]
[2] D1 STRUCT[0].LABEL2[1]
[3] D2 STRUCT[0].LABEL3
[4] D3
[5] D4 STRUCT[0].LABEL4
[21] D20 11
[22] D21 STRUCT[0].LABEL5
[23] M1 STRUCT[1].LABEL1
[24] D22 STRUCT[1].LABEL2[0]
[25] D23 STRUCT[1].LABEL2[0]
[26] D24 STRUCT[1].LABEL3
[27] D25
[28] D26 STRUCT[1].LABEL4
[44] D42
[45] D43 STRUCT[1].LABEL5
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 583
WriteDeviceRandom2 (Writing devices randomly)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature
To write devices in 2-byte data unit randomly.
Format
Visual Basic .NET
Ret = object.WriteDeviceRandom2(szLabel, iSize, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Integer iSize Number of write points Input
Short sData(n) Device value to be written Input
Visual C#
iRet = object.WriteDeviceRandom2(szLabel, iSize, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
int iSize Number of write points Input
short[n] sData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
11 FUNCTIONS
584 11.5 Details of Functions (For .Net Control)
Description
• Data of a device group specified for the label name szLabel is written for the size of iSize.
• The device values to be written are stored in sData.
• For sData, reserve arrays for more than the amount specified for iSize.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 585
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Short/short
(16-bit value)
Element (One Dimension) System label name *1 Short/short
(16-bit value)
System label name [n1] Short/short
(16-bit value)
Element (Two Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] Short/short
(16-bit value)
Element (Three Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3] Short/short
(16-bit value)
Structure None System label name *1 Short/short
(16-bit value)
System label name.structure member name Short/short
(16-bit value)
Element (One Dimension) System label name *1 Short/short
(16-bit value)
System label name [n1] *1 Short/short
(16-bit value)
System label name [n1].structure member name Short/short
(16-bit value)
Element (Two Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] *1 Short/short
(16-bit value)
System label name [n1] [n2].structure member name Short/short
(16-bit value)
Element (Three Dimensions) System label name *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3] *1 Short/short
(16-bit value)
System label name [n1] [n2] [n3].structure member name Short/short
(16-bit value)
11 FUNCTIONS
586 11.5 Details of Functions (For .Net Control)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed), Word (Unsigned), Double Word (Unsigned), Float (Single Precision), Float (Double Precision), String*1, String
(Unicode)*2*4, Time, Timer*3, Timer (Unsigned)*3, Long timer*3*4, Counter*3, Counter (Unsigned)*3, Long counter*3*4, Retentive Timer*3, Retentive Timer
(Unsigned)*3, Long retentive timer*3*4
*1 When accessing data by specifying the label name only (without element specification) for the array label, specify the number of write
points in this table multiplied by the number of array elements.
*2 When writing a single label of "Simple Types" to which a double word device is assigned, the number of write points is 1.
It is 2 when writing a label of "Structure" to which a double word device is assigned and when writing multiple labels to which double
word devices are assigned at the same time.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 587
How to specify devices
Specify the device values to be written as follows:
When specifying CN200 and later devices of FXCPU or double word devices
Example: Write 4 points of data to the devices including CN200.
Label setting
Label name Data type Device
LABEL1 Word D0
LABEL2 Double Word CN200
LABEL3 Word D1
*1 For CN200 and later devices of FXCPU and double word devices, only the lower 2-byte of a specified device is written for 1 point when
the SetDevice2 function is executed.
*2 Only the lower 2-byte is written. Data is not written to the H (upper 2-byte) of specified devices.
D14
D15
D16
11 FUNCTIONS
588 11.5 Details of Functions (For .Net Control)
When specifying data types equivalent to 2 words or more for labels
Example: Write a total of 6 points of data by specifying labels of Double Word, Float (Single Precision), and Time types.
Label setting
Label name Data type Device
LABEL1 Double Word D0
LABEL2 Float (Single Precision) D100
LABEL3 Time D200
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 589
When specifying array type labels
Example 1: Write 3 points of data to the bit devices (M0 to M2) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Bit (0..2) M0
Example 2: Write 3 points of data to the word devices (D0 to D2) by specifying array type labels.
Label setting
Label name Data type Device
LABEL Word (0..2) D0
11 FUNCTIONS
590 11.5 Details of Functions (For .Net Control)
Example 3: Write 6 points (6 words = 3 double words) of data by specifying array type labels.
Label setting
Label name Data type Device
LABEL Double Word (0..2) D0
Example 4: Write 34 points (D0 to D33) of string type data by specifying array type labels.
Label setting
Label name Data type Device
LABEL String (0..1) D0
The characters need to be converted in a user program because the characters of String type are not converted.
Device values to be written
index 2-byte Applicable label
[0] D0 LABEL[0]
[1] D1
[16] D16
[17] D17 LABEL[1]
[18] D18
[33] D33
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 591
When specifying structure type labels
Example 1: Write data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word
LABEL3 Word
Label setting
Label name Device
STRUCT.LABEL1 M0
STRUCT.LABEL2 D0
STRUCT.LABEL3 W0
11 FUNCTIONS
592 11.5 Details of Functions (For .Net Control)
Example 2: Write data by specifying structure type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Double Word
LABEL3 Float (Double Precision)
LABEL4 Word
Label setting
Label name Device 11
STRUCT.LABEL1 D0.0
STRUCT.LABEL2 D1
STRUCT.LABEL3 D3
STRUCT.LABEL4 D7
Number of write points: 8 (because the total number of write points for each structure member is 8)
Writing method
short sData[8]
WriteDeviceRandom2("STRUCT",8,sData)
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 593
When specifying labels in combination with structure and array
Example: Write data by specifying structure type array and structure array type labels.
Structure setting
Structure name Member name Data type
STRUCT LABEL1 Bit
LABEL2 Word (0..1)
LABEL3 Double Word
LABEL4 String
LABEL5 Word
Label setting
Label name Device
STRUCT[0].LABEL1 M0
STRUCT[0].LABEL2[0] D0
STRUCT[0].LABEL2[1] D1
STRUCT[0].LABEL3 D2
STRUCT[0].LABEL4 D4
STRUCT[0].LABEL5 D21
STRUCT[1].LABEL1 M1
STRUCT[1].LABEL2[0] D22
STRUCT[1].LABEL2[1] D23
STRUCT[1].LABEL3 D24
STRUCT[1].LABEL4 D26
STRUCT[1].LABEL5 D43
Number of write points: 46 (because the total number of write points for each structure is 23, and the number of array
elements is 2)
Writing method
short sData[46]
WriteDeviceRandom2("STRUCT",46,sData)
or
String stLabelList[2] = {"STRUCT[0]","STRUCT[1]"}
WriteDeviceRandom2(stLabelList,46 ,sData)
[21] D20
[22] D21 STRUCT[0].LABEL5
[23] M1 STRUCT[1].LABEL1
[24] D22 STRUCT[1].LABEL2[0]
[25] D23 STRUCT[1].LABEL2[1]
[26] D24 STRUCT[1].LABEL3
[27] D25
[28] D26 STRUCT[1].LABEL4
[44] D42
[45] D43 STRUCT[1].LABEL5
11 FUNCTIONS
594 11.5 Details of Functions (For .Net Control)
SetDevice2 (Setting device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To set one point of device in 2-byte data unit.
Format
Visual Basic .NET
IRet = object.SetDevice2(szLabel, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Short sData Device value to be written Input
Visual C#
iRet = object.SetDevice2(ref szLabel, sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
short sData Device value to be written Input
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• The values of sData (device values to be written) are written to 1 point of device specified for szLabel (label name).
• When specifying bit devices, the least significant bit of the sData (device values to be written) is valid.
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
written.
• When specifying a double word device at the time other than specifying a double word device which can be
written for 1 point (such as CN200 and later devices of FXCPU), this function writes to the data area of
lower 1 word (2-byte). Use the WriteDeviceRandom or WriteDeviceBlock function to write double word
devices.
• Digit specified bit device and index setting cannot be used.
• If the function is run against the safety device in the RnSFCPU safety mode, an error code 0x010A42A5"
(an operation that can not be carried out in safety mode was performed) is returned.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 595
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Short/short
(16-bit value)
Element (One Dimension) System label name
System label name [n1] Short/short
(16-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2] Short/short
(16-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3] Short/short
(16-bit value)
Structure None System label name
System label name.structure member name Short/short
(16-bit value)
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name Short/short
(16-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name Short/short
(16-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name Short/short
(16-bit value)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed)*1, Word (Unsigned), Double Word (Unsigned)*1, Float (Single Precision)*1, Float (Double Precision)*1, String, String
(Unicode)*1*2, Time*1, Timer, Timer (Unsigned), Long timer*2, Counter, Counter (Unsigned), Long counter*2, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*2
11 FUNCTIONS
596 11.5 Details of Functions (For .Net Control)
How to specify devices
Specify the device values to be written as follows:
*1 The target device to which data is written is only one point of "M0," and the least significant bit of the set 2-byte data is written as the
device value.
When specifying CN200 and later devices of FXCPU (double word devices to which data of 2
words can be written for 1 point)
Example: Write data to CN200.
For CN200 and later devices of FXCPU, 4-byte is written.
Only the value of lower 2-byte can be set.
'0' is written to the H (upper 2-byte) of specified devices.
Label setting
szLabel Label name Data type Device
[0] LABEL Double Word CN200
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 597
When specifying double word devices (ones to which data of 2 words cannot be written for 1
point)
Example: Write data by specifying D0.
Label setting
szLabel Label name Data type Device
[0] LABELW Double Word D0
11 FUNCTIONS
598 11.5 Details of Functions (For .Net Control)
GetDevice2 (Acquiring device data)
Applicable controls
This function can be used for the following controls.
• 32-bit: DotUtlType
• 64-bit: DotUtlType64
Feature 11
To acquire one point of device in 2-byte data unit.
Format
Visual Basic .NET
IRet = object.GetDevice2(szLabel, sData)
Data type Argument Description Input/Output
Integer IRet Returned value Output
String szLabel Label name Input
Short sData Read device value Output
Visual C#
iRet = object.GetDevice2(ref szLabel, ref sData)
Data type Argument Description Input/Output
int iRet Returned value Output
String szLabel Label name Input
short sData Read device value Output
Returned value
Normal termination: '0' is returned.
Abnormal termination: Any value other than '0' is returned. (Page 616 ERROR CODES)
Description
• One point of device data specified for szLabel (label name) is stored in sData (read device values).
• When a device which corresponds to the label name does not exist, an error occurs and data cannot be
read.
• For the read device values, reserve 2 bytes of memory area.
If the memory area is not reserved, a critical error (an application error or the like) may occur.
• When specifying a label equivalent to 2 words or more, this function stores only the data of lower 1 word (2-
byte). (An error does not occur.) Use the ReadDeviceRandom or ReadDeviceBlock function to read labels
equivalent to 2 words or more.
• Digit specified bit device and index setting cannot be used.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 599
How to specify labels
The following describes how to specify labels.
For the system label name, the following type class, array element, and label data type can be specified.
When specifying a system label name in a program, use the following formats.
: Available, : Not available, : Not applicable
Label definition in Label Utility Label specification method in a program
Type class Array element Label name format Availability Data type
Simple Types None System label name Short/short
(16-bit value)
Element (One Dimension) System label name
System label name [n1] Short/short
(16-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2] Short/short
(16-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3] Short/short
(16-bit value)
Structure None System label name
System label name.structure member name Short/short
(16-bit value)
Element (One Dimension) System label name
System label name [n1]
System label name [n1].structure member name Short/short
(16-bit value)
Element (Two Dimensions) System label name
System label name [n1] [n2]
System label name [n1] [n2].structure member name Short/short
(16-bit value)
Element (Three Dimensions) System label name
System label name [n1] [n2] [n3]
System label name [n1] [n2] [n3].structure member name Short/short
(16-bit value)
Data type
The following data type can be specified for a label.
Bit, Word (Signed), Double Word (Signed)*1, Word (Unsigned), Double Word (Unsigned)*1, Float (Single Precision)*1, Float (Double Precision)*1, String*1, String
(Unicode)*1*2, Time*1, Timer, Timer (Unsigned), Long timer*2, Counter, Counter (Unsigned), Long counter*2, Retentive Timer, Retentive Timer (Unsigned), Long
retentive timer*2
11 FUNCTIONS
600 11.5 Details of Functions (For .Net Control)
How to specify devices
The read device values are stored as follows:
*1 The target device from which data is read is only one point of "M0," and '0' or '1' is stored as the device value.
11 FUNCTIONS
11.5 Details of Functions (For .Net Control) 601
Dispose (release memory)
Applicable controls
This function can be used for the following controls.
• 64-bit: DotUtlType64
Feature
To end the control for 64-bit (DotUtlType64_Server.exe).
Format
Visual Basic .NET
object.Dispose()
Visual C#
object.Dispose()
Returned value
None
Description
• The control used for 64-bit access (DotUtlType64_Server.exe) ends.
This function must be executed before discarding DotUtlType instances. Otherwise, DotUtlType64_Server.exe
cannot be ended.
11 FUNCTIONS
602 11.5 Details of Functions (For .Net Control)
12 SAMPLE PROGRAMS
This chapter explains the sample programs registered at the installation of MX Component.
Precautions
• The sample programs are stored in (installation folder)\Samples at the installation. When executing the sample files, copy
them to any folder. When using the sample programs of VC++, also copy the include file.
• Sample programs are provided as a reference for creating user application programs. Use the programs with your
responsibility.
12 SAMPLE PROGRAMS
603
Supported language: Visual C++
Folder name Sample program name Target Control Reference
Vc\Act Visual Studio 2019: Act_2019.sln ActUtlType Page 605 Act_2019.sln,
Visual Studio 2022: Act_2022.sln ActProgType Dot_2019.sln
ActSupportMsg
ActUtlType64
ActProgType64
ActSupportMsg64
Vc\ActDatalogging Visual Studio 2019: ActDatalogging_2019.sln ActUtlDataLogging Page 608
Visual Studio 2022: ActDatalogging_2022.sln ActProgDataLoging ActDatalogging_2019.sln
ActUtlDataLogging64
ActProgDataLoging64
12 SAMPLE PROGRAMS
604
12.1 Visual Basic.NET, Visual C#, Visual C++
Act_2019.sln, Dot_2019.sln
Window
12
Displayed items
Frame Select/Input item Description
Control ActUtlType, ActProgType*1 Select the control to be used.
LogicalStationNumber Enter the logical station number which was specified for the communication
setting in Communication Settings Utility.
Password Enter a password when using a CPU which requires a password.
[Open] button Click this to open a communication line.
[Close] button Click this to close a communication line.
Get/Set DeviceName/LabelName*2 Enter a device/label name for acquiring/setting devices or labels.
DeviceData Enter a device value for setting devices.
[GetDevice2] button Click this to acquire device data from a CPU module by executing the
GetDevice2 with the data entered in the "DeviceName"("LabelName")
column in the same frame.*3
[SetDevice2] button Click this to set device data to a CPU module by executing the SetDevice2
with the data entered in the "DeviceName"("LabelName") column and
"DeviceData" column in the same frame.
[GetDevice] button Click this to acquire device data from a CPU module by executing the
GetDevice with the data entered in the "DeviceName"("LabelName")
column in the same frame.*3
[SetDevice] button Click this to set device data to a CPU module by executing SetDevice with
the data the entered in the "DeviceName"("LabelName") column and
"DeviceData" column in the same frame.
12 SAMPLE PROGRAMS
12.1 Visual Basic.NET, Visual C#, Visual C++ 605
Frame Select/Input item Description
Random Read/Write DeviceName/LabelName*2 Enter a device/label name for reading/writing devices or labels randomly.
DeviceSize Enter the number of device points for reading/writing devices randomly.
DeviceData Enter the device value for writing devices randomly.
[ReadDeviceRandom2] button Click this to acquire device data from a CPU module by executing the
ReadDeviceRandom2 with the data entered in the
"DeviceName"("LabelName") column and "DeviceSize" column in the same
frame.*3
[WriteDeviceRandom2] button Click this to set device data to a CPU module by executing the
WriteDeviceRandom2 with the data entered in the
"DeviceName"("LabelName") column, "DeviceSize" column, and
"DeviceData" column in the same frame.
[ReadDeviceRandom] button Click this to acquire device data from a CPU module by executing the
ReadDeviceRandom with the data entered in the
"DeviceName"("LabelName") column and "DeviceSize" column in the same
frame.*3
[WriteDeviceRandom] button Click this to set device data to a CPU module by executing
WriteDeviceRandom with the data entered in the
"DeviceName"("LabelName") column and "DeviceSize" column, and
"DeviceData" column in the same frame.
Block Read/Write DeviceName/LabelName*2 Enter a device/label name for reading/writing devices or labels in batch.
DeviceSize Enter the number of device points for reading/writing devices in batch.
DeviceData Enter a device value for writing devices in batch.
[ReadDeviceBlock2] button Click this to acquire device data from a CPU module by executing the
ReadDeviceBlock2 with the data entered in the
"DeviceName"("LabelName") column and "DeviceSize" column in the same
frame.*3
[WriteDeviceBlock2] button Click this to set device data to a CPU module by executing the
WriteDeviceBlock2 with the data entered in the
"DeviceName"("LabelName") column, "DeviceSize" column, and
"DeviceData" column in the same frame.
[ReadDeviceBlock] button Click this to acquire device data from a CPU module by executing the
ReadDeviceBlock with the data entered in the "DeviceName"("LabelName")
column and "DeviceSize" column in the same frame.*3
[WriteDeviceBlock] button Click this to set device data to a CPU module by executing the
WriteDeviceBlock with the data entered in the "DeviceName"("LabelName")
column and "DeviceSize" column, and "DeviceData" column in the same
frame.
Status Entry/Free*4 DeviceName/LabelName*2 Enter a device/label name for monitoring device status.
DeviceSize Enter the number of devices for monitoring device status.
MonitorCycle Enter the device status monitoring interval.
DeviceData Enter a registered device value for monitoring devices.
[EntryDeviceStatus] button Click this to register device monitoring by executing the EntryDeviceStatus
with the data entered in the "DeviceName"("LabelName") column and
"DeviceSize" column, "MonitorCycle" column and "DeviceData" column in
the same frame.
[FreeDeviceStatus] button Click this to deregister a device that is registered using the
EntryDeviceStatus function to monitor its status.
Output ReturnCode Displays the execution result of each method (function).
Data Display the read device values.
Message Code Enter a message code.
[GetErrorMessage] button Click this to acquire a message by executing the GetErrorMessage with the
data entered in "the Code" column in the same frame.*3
CpuType [GetCpuType] button Click this to acquire the model character and the model code (hexadecimal)
from a CPU module by executing the GetCpuType.*3
Status Status Enter a remote control to be set.
[SetCpuStatus] button Click this to set a remote control to a CPU module by executing the
SetCpuStatus with the data entered in the "Status" column in the same
frame.
12 SAMPLE PROGRAMS
606 12.1 Visual Basic.NET, Visual C#, Visual C++
Frame Select/Input item Description
Clock Year Enter a year to be set for a CPU module.
Month Enter a month to be set for a CPU module.
Day Enter a day to be set for a CPU module.
Week Enter a day of the week to be set for a CPU module.
Hour Enter an hour to be set for a CPU module.
Minute Enter a minute to be set for a CPU module.
Second Enter a second to be set for a CPU module.
[GetClockData] button Click this to acquire the clock data from a CPU module.*3
[SetClockData] button Click this to set the clock data to a CPU module with the data entered in the
"Year" column, "Month" column, "Day" column, "Week" column, "Hour"
column, "Minute" column, and "Second" column in the same frame.
Buffer Read/Write I/OAdress Enter an I/O address for reading/writing buffer memories. 12
BufferAddress Enter an address for reading/writing buffer memories.
BufferSize Enter a size for reading/writing buffer memories.
BufferData Enter a data for reading/writing buffer memories.
[ReadBuffer] button Click this to acquire device data from a CPU module by executing the
ReadBuffer with the data entered in the "I/OAdress" column,
"BufferAddress" column, and "BufferSize" column in the same frame.*3
[WriteBuffer] button Click this to set device data to a CPU module by executing the WriteBuffer
with the data entered in "I/OAdress" column, "BufferAddress" column,
"BufferSize" column, and "BufferData" column in the same frame.
Sample Using Timer DeviceName/LabelName*2 Enter a device/label name for reading devices or labels.
[Start] button Click this to acquire device data from a CPU module by executing the
ReadDeviceRandom with the data entered in the
"DeviceName"("LabelName") column in the same frame.*3
ReadDeviceRandom is executed every five seconds until the [Stop] button
is clicked.
[Stop] button Click this to stop the processing started by clicking the [Start] button in the
same frame.
Operating procedure
1. Select a control to be used (ActUtlType or ActProgType) in "Control."
4. Click the button of a method (function) to execute the function after entering the data which is an argument of method
(function) in each item.
The read device value is displayed in the "Data" on "Output," and the execution result of each method (function) is
displayed in the "ReturnCode" column.
12 SAMPLE PROGRAMS
12.1 Visual Basic.NET, Visual C#, Visual C++ 607
ActDatalogging_2019.sln
Window
Displayed items
Item Description
ActUtlDataLogging /ActProgDataLogging Select the control to be used.
ReturnCode Displays the execution result of each method.
FolderName Enter a name of a folder to be accessed.
[Display] button Click this to update the content displayed in "File list" column.
[Select] button Click this to apply a folder name selected in the "File list" column to "FolderName." When a file name
has already selected, a logging file is saved in a personal computer.
[Save] button Click this to display "Save As" screen. Only a text file (*.txt) can be selected in "Save as type."
[Close] button Click this to exit the sample program.
File list Displays files or folders in the path specified for "Folder" in a list. For a folder name, a slash '/' is
prefixed.
12 SAMPLE PROGRAMS
608 12.1 Visual Basic.NET, Visual C#, Visual C++
12.2 VBA
This section explains the VBA sample programs for Access and Excel.
Menu window
Window
12
Displayed items
Item name Description
*1
[ActUtlType] button Click this to open the Method screen for the ActUtlType control (for ActUtlType64 control).
[ActUtlType64] button*2
[ActProgType] button*1 Click this to open the Method screen for the ActProgType control (for (ActProgType64 control).
[ActProgType64] button*2
[ActSupportMsg] button*1 Click this to open the Method screen for the ActSupportMsg control (for ActSupportMsg64control).
*2
[ActSupportMsg64] button
12 SAMPLE PROGRAMS
12.2 VBA 609
Method window
Window
Displayed items
Tab name Item Description
[Property] button Click this to set the properties.
Result Displays the execution result of each method (function).
[Execute] button Click this to execute a method (function) in the selected tab.
Interval(S) Displays a time interval for monitoring.
[Monitor Start] button Click this to start the monitoring of the ReadDeviceBlock/
ReadDeviceBlock2. A method (function) is executed in the time interval
displayed in the "Interval(S)," and data is acquired.
[Monitor End] button Click this to stop the monitoring of the ReadDeviceBlock/
ReadDeviceBlock2.
[Close] button Click this to return to the menu window.
Open
Close
GetDevice, GetDevice2 Device Name Enter a device name for acquiring devices.
Device Data Displays an acquired device value.
SetDevice, SetDevice2 Device Name Enter a device name for setting devices.
Device Data Enter a device value for setting devices.
ReadDeviceRandom, Device Name Enter a device name for reading devices randomly.
ReadDeviceRandom2
Device Points Enter the number of device points for reading devices randomly.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
WriteDeviceRandom, Device Name Enter a device name for writing devices randomly.
WriteDeviceRandom2
Device Points Enter the number of device points for writing devices randomly.
Written device value Enter the device value for writing devices randomly. Data can be entered
automatically by selecting a data not specified.
ReadDeviceBlock, Device Name Enter a device name for reading devices in batch.
ReadDeviceBlock2
Device Points Enter the number of device points for reading devices in batch.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
12 SAMPLE PROGRAMS
610 12.2 VBA
Tab name Item Description
WriteDeviceBlock, Device Name Enter a device name for writing devices in batch.
WriteDeviceBlock2
Device Points Enter the number of device points for writing devices in batch.
Written device value Enter the device value for writing devices randomly. Data can be entered
automatically by selecting a data not specified.
EntryDeviceStatus*1 Device Name Enter a device name for monitoring device status.
Points Enter the number of devices for monitoring device status.
Interval Enter the device status monitoring interval.
Device value Enter a registered device value for monitoring devices.
FreeDeviceStatus*1
GetCpuType PLC CPU type Displays an acquired CPU type name.
PLC CPU type code Displays an acquired CPU type code.
SetCpuStatus Operation Enter a remote control to be set. 12
GetClockData, SetClockData Year Enter/displays a year to be set for a CPU module.
Month Enter/displays a month to be set for a CPU module.
Day Enter/displays a day to be set for a CPU module.
WeekDay Enter/displays a day of the week to be set for a CPU module.
Hour Enter/displays an hour to be set for a CPU module.
Minute Enter/displays a minute to be set for a CPU module.
Second Enter/displays a second to be set for a CPU module.
ReadBuffer First I/O address Enter an I/O address for reading buffer memories.
Buffer memory address Enter an address for reading buffer memories.
Read size Enter a size for reading buffer memories.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
WriteBuffer First I/O address Enter an I/O address for writing buffer memories.
Buffer memory address Enter an address for writing buffer memories.
Write size Enter a size for writing buffer memories.
Values written to buffer memory Enter a device value for writing buffer memories. Data can be entered
automatically by selecting a data not specified.
Operating procedure
1. Click the [Property] button to set the properties.
2. Select [Open] tab, and click the [Execute] button to open a communication line.
3. Select the tab of a method (function) to be executed, and click the [Execute] button after entering the data which is an
argument.
When the checkbox of "Dump" is selected, the read device value is displayed at the bottom in the screen.
The execution result of each method (function) is displayed in the "Result" column.
4. Select [Close] tab, and click the [Execute] button to close the communication line.
12 SAMPLE PROGRAMS
12.2 VBA 611
GetErrorMessage screen
Window
Displayed items
Item name Description
Error code Enter a message code.
Trouble shooting Displays an acquired message.
Result Displays an execution result of the GetErrorMessage.
[Execute] button Click this to execute the GetErrorMessage with the data entered in "Error code" column.
[Close] button Click this to return to the menu window.
12 SAMPLE PROGRAMS
612 12.2 VBA
For Excel (ActUtlType.xlsm, ActUtlType64.xlsm,
ActProgType.xlsm, and ActProgType64.xlsm)
Window
12
Displayed items
Method (function) Item Description
Open [Open] button Click this to open a communication line.
Close [Close] button Click this to close a communication line.
RESULT Displays the execution result of each method (function).
Other method Select a method (function) to which the cell moves from the combo box.
[Execute] button Click this to execute a method (function) selected in the combo box based
on the input data.
[Property] button Click this to set a property value of the ActUtlType/ActProgType.
Result Displays the execution result of each method (function).
GetDevice, GetDevice2 Device name Enter a device name for acquiring devices.
Device value Displays an acquired device value.
SetDevice, SetDevice2 Device name Enter a device name for setting devices.
Device value Enter a device value for setting devices.
ReadDeviceRandom, Device name Enter a device name for reading devices randomly.
ReadDeviceRandom2
Points Enter the number of device points for reading devices randomly.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
WriteDeviceRandom, Device name Enter a device name for writing devices randomly.
WriteDeviceRandom2
Points Enter the number of device points for writing devices randomly.
Device value Enter the device value for writing devices randomly. Data can be entered
automatically by selecting a data not specified.
ReadDeviceBlock, Device name Enter a device name for reading devices in batch.
ReadDeviceBlock2
Points Enter the number of device points for reading devices in batch.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
Interval(sec) Enter a time interval for monitoring (second).
Start monitor Click this to start monitoring of a method (function). The method (function) is
executed in the time interval displayed in "Interval(sec)," and the data is
acquired.
12 SAMPLE PROGRAMS
12.2 VBA 613
Method (function) Item Description
WriteDeviceBlock, Device name Enter a device name for writing devices in batch.
WriteDeviceBlock2
Points Enter the number of device points for writing devices in batch.
Device value Enter the device value for writing devices randomly. Data can be entered
automatically by selecting a data not specified.
EntryDeviceStatus*1 Device name Enter a device name for monitoring device status.
Points Enter the number of devices for monitoring device status.
Interval(sec) Enter the device status monitoring interval (second).
Device value Enter a registered device value for monitoring devices.
OnDeviceStatus*1 Device and value to which condition Displays a result of the OnDeviceStatus event.
consists.
FreeDeviceStatus*1
GetCpuType CPU type Displays an acquired CPU type name.
CPU type code Displays an acquired CPU type code.
SetCpuStatus Operation Enter a remote control to be set.
GetClockData, SetClockData Year Enter/displays a year to be set for a CPU module.
Month Enter/displays a month to be set for a CPU module.
Day Enter/displays a day to be set for a CPU module.
Day-of-week Enter/displays a day of the week to be set for a CPU module.
Hour Enter/displays an hour to be set for a CPU module.
Minute Enter/displays a minute to be set for a CPU module.
Second Enter/displays a second to be set for a CPU module.
ReadBuffer First I/O address Enter an I/O address for reading buffer memories.
Buffer memory address Enter an address for reading buffer memories.
Read size Enter a size for reading buffer memories.
Data file name Specify a save destination binary file name when saving the read data.
Dump When this checkbox is selected, displays the read data.
WriteBuffer First I/O address Enter an I/O address for writing buffer memories.
Buffer memory address Enter an address for writing buffer memories.
Write size Enter a size for writing buffer memories.
Device value Enter a device value for writing buffer memories. Data can be entered
automatically by selecting a data not specified.
GetErrorMessage [GetErrorMessage] button Click this to execute the GetErrorMessage based on the data input in
"ErrorCode(Hex)." An acquired message is output to the text right to the
button.
ErrorCode(Hex) Enter a message code.
RESULT Displays an execution result of the GetErrorMessage.
When using a control by pasting it to a form (EarlyBind) and creating an object (LateBind), switch between
[Early binding] and [Late binding] of [Select the binding] in the [Add-Ins] tab of Excel.
Operating procedure
1. Click the [Property] button to set the properties.
3. Select a method (function) to be executed in "Other method" and click the [Execute] button after entering the data which
is an argument of method (function).
When the checkbox of "Dump" is selected, the read device value is displayed.
The execution result of each method (function) is displayed in the "RESULT" column.
12 SAMPLE PROGRAMS
614 12.2 VBA
MEMO
12
12 SAMPLE PROGRAMS
12.2 VBA 615
13 ERROR CODES
This chapter explains the error codes returned by controls and the error codes returned by CPUs, modules, and network
boards.
13 ERROR CODES
616 13.1 Error Code List
Error code Error description Corrective action
0x01801001 Resource Timeout error • Execute again after the other object completes the communication.
The resource could not be retrieved within the specified • Execute again after increasing the timeout value.
time. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01801002 Multi-line open error • Exit the program and restart the personal computer.
0x01801003 Open not yet executed
0x01801004 Open Type error • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01801005 Specified port error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01801006 Specified module error • Check that the actual system configuration matches to the settings in the
communication settings utility or the values of the properties.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01801007 Specified CPU error •
•
Check the CPU type set to ActCpuType.
Check that the system configuration is not an unsupported configuration.
13
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Check the packet type set to ActPacketType.
0x01801008 Target station access error • Review the target station.
0x01801009 Registry open failure • Exit the program and restart the personal computer.
Failed while opening data key of the registry. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180100A Packet Type error • Recheck the ActPacketType.
The packet type specified is incorrect. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180100B Protocol Type error • Exit the program and restart the personal computer.
The protocol specified is incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180100C Registry search failure • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180100D GetProcAddress failure
0x0180100E DLL non-load error
0x0180100F Another Object in execution • Execute again after some time
Method cannot be executed because of exclusive control in
progress.
0x01802001 Device error • Review the device name.
The device character string specified in the method is an
unauthorized device character string.
0x01802002 Device number error • Review the device number.
The device character string number specified in the method
is an unauthorized device number.
0x01802003 Program Type error • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01802004 Sumcheck error • Check the module side sumcheck setting.
The sumcheck value of the received data is abnormal. • Check the sumcheck property of the control.
• Check the cable.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01802005 Size error • Check the number of points specified in the method.
The number of points specified in the method is • Review the system, e.g. CPU module, module setting and cable status.
unauthorized. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01802006 Block number error • Review the block specifying number in the device character string
The block specifying number in the device character string specified in the method.
specified in the method is unauthorized.
0x01802007 Receive data error • Review the system, e.g. CPU module, module setting and cable status.
The data received is abnormal. • Check the cable.
• Exit the program and restart the personal computer.
13 ERROR CODES
13.1 Error Code List 617
Error code Error description Corrective action
0x01802008 Write Protect error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01802009 Reading Parameters error
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180200A Writing Parameters error
0x0180200B Programmable controller type mismatch • Set the correct CPU type as the CPU type of the property.
The CPU type set to the property and the CPU type set on • Set the correct CPU type on the communication settings utility.
the communication settings utility do not match the CPU • Review the system, e.g. CPU module, module setting and cable status.
type on the other end of communication.
0x0180200C Request Cancel error • Exit the program and restart the personal computer.
The request was cancelled while being processed. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180200D Drive Name error
The specified drive name is incorrect.
0x0180200E Beginning Step error
The beginning step specified is incorrect.
0x0180200F Parameter Type error
The parameter type is incorrect.
0x01802010 File Name error
The file name is incorrect.
0x01802011 Status error
The status of Registration/Cancellation/Setting is incorrect.
0x01802012 Detailed Condition Field error
0x01802013 Step Condition error
0x01802014 Bit Device Condition error
0x01802015 Parameter Settings error
0x01802016 Error in specifying station number • Check the station number.
Method does not support the operations corresponding to • Check if the method being executed is supported or not.
the specified station number. • Check the system configuration such as programmable controller, unit,
etc.
0x01802017 Keyword error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01802018 Read/Write Flag error
• Please contact your local Mitsubishi Electric sales office or representative.
0x01802019 Refresh Method error
0x0180201A Buffer Access Method error
0x0180201B Start Mode/Stop Mode error
0x0180201C Written clock data error • Review the clock data to be written.
Clock data specified for write cannot be written properly
since that data is in error.
0x0180201D Online clock data write error • Place the CPU module in the STOP status
Write of clock data failed.
Clock data cannot be written since the CPU module is
during RUN.
0x0180201E ROM drive error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180201F While Tracing error
• Please contact your local Mitsubishi Electric sales office or representative.
Invalid operation was carried out during trace.
0x01802020 First I/O number error • Check the value of the first I/O number specified in the method.
The first I/O number specified in the method is an • Using the GPP function, check the CPU module parameters (I/O
unauthorized value. assignment).
• Exit the program and restart the personal computer.
0x01802021 First address error • Check the value of the buffer address specified in the method.
The buffer address specified in the method is an • Exit the program and restart the personal computer.
unauthorized value.
0x01802022 Pattern error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01802023 SFC Block No. error
• Please contact your local Mitsubishi Electric sales office or representative.
0x01802024 SFC Step No. error
0x01802025 Step No. error
0x01802026 Data error
0x01802027 System Data error
0x01802028 Error in number of TC settings Value
0x01802029 Clear Mode error
0x0180202A Signal Flow error
13 ERROR CODES
618 13.1 Error Code List
Error code Error description Corrective action
0x0180202B Version Control error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180202C Monitor Not Registered error
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180202D PI Type error
0x0180202E PI No error
0x0180202F Error in Number of PIs
0x01802030 Shift error
0x01802031 File Type error
0x01802032 Specified module error
0x01802033 Error check flag error
0x01802034 Step RUN operation error
0x01802035 Step RUN data error
0x01802036 During Step RUN error
0x01802037 Write error while running program corresponding to E2ROM
0x01802038 Clock data read/write error • Do not execute clock data read/write.
The clock data read/write method was executed for the 13
CPU module which does not have the clock devices.
0x01802039 Trace not completed error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180203A Registration Clear Flag error
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180203B Operation error
0x0180203C Error in the number of exchanges
0x0180203D Error in number of loops specified
0x0180203E Retrieve data selection
0x0180203F Error in number of SFC cycles
0x01802040 Motion PLC Error
0x01802041 Motion PLC Communication error
0x01802042 Fixed execution time setting error
0x01802043 Error in number of functions
0x01802044 System information specification error
0x01802045 Registration Condition Not Formed error
0x01802046 Function No. error
0x01802047 RAM drive error
0x01802048 ROM drive error at the booting side
0x01802049 Transfer mode specification error at the booting side
0x0180204A Insufficient memory error
0x0180204B Back up drive ROM error
0x0180204C Block size error
0x0180204D Detached during RUN state error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x0180204E Unit Already Registered error
• Please contact your local Mitsubishi Electric sales office or representative.
0x0180204F Password Registration Data Full error
0x01802050 Password Not Registered error
0x01802051 Remote Password error
0x01802052 IP Address error
0x01802053 Timeout value out of range error
0x01802054 Command not detected error
0x01802055 Trace execution type error
0x01802056 Version error
0x01802057 Tracking cable error • Reexamine the system such as the CPU module, module setting and
The tracking cable is faulty. cable status.
The CPU module status is error.
0x0180205C Keyword protection error • Disable the keyword and execute again.
CPU module is protected by the key word.
0x0180205D Keyword disable error • Input a correct keyword.
The inputted keyword is wrong.
0x0180205E Keyword protecting error • Execute again or re-switch the power of the CPU module.
CPU module did not accept the protecting command.
13 ERROR CODES
13.1 Error Code List 619
Error code Error description Corrective action
0x0180205F Keyword entry error • Input a correct keyword.
An illegal character is included in the inputted keyword.
0x01802060 Keyword deletion error
The inputted keyword is wrong.
0x01802062 Received packet CRC check error • Execute the communication process again.
An error occurred in CRC check for receive packet data.
0x01802063 Received packet CRC check error
An error occurred in CRC check for whole data file of
receive packet.
0x01802064 FX Series programmable controller connection error • Execute the communication process again.
0x01802070 Online change program error • Execute the online change after turning the CPU module to STOP.
No target program for online change exists in the CPU
module.
0x01802071 Ether direct communication multiple response receive error • Check that the personal computer and the CPU module are in a one-to-on
Multiple responses were received during Ether direct connection.
communication.
0x01802072 Ether direct communication error
Cannot communicate because the CPU module is being
accessed by another personal computer during Ether direct
communication.
0x01802073 CPU module search response error • Reduce the number of CPU modules on the network to 1024 or less.
The number of responses in the CPU module search
exceeded the maximum number to be searched.
0x01802074 Redundant system other system connection diagnostics • Disconnect the cable and connect it to the currently disconnected CPU
error module.
• Or, change the redundant CPU specification to the self system.
0x01808001 Multiple Open error • Exit the program and restart the personal computer.
Open method was executed while it was open. • Execute any method other than Open.
0x01808002 Channel number specifying error • Set the correct value to the port number of the property.
The port number set to the property and the port number • Make communication settings again on the communication settings utility.
set on the communication settings utility are unauthorized
values.
0x01808003 Driver not yet started • Start the driver.
The network board driver is not started.
0x01808004 Error in overlap event generation • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808005 MUTEX generation error • Exit the program and restart the personal computer.
Creation of MUTEX to exercise exclusive control failed. • Reinstall MX Component.
0x01808006 Error in socket object generation • Exit the program and restart the personal computer.
Socket object could not be created • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808007 Socket object generation error • Check for a running application which uses the same port number.
Creation of the Socket object failed. • Retry after changing the port number value of the property.
• Retry after changing the port number value on the communication settings
utility.
• Check whether the first character of IP address is not zero.
• Make Ethernet board and protocol settings on the control panel of the OS.
• Right-click and select "Run as administrator" when starting the
application.
• Exit the program and restart the personal computer.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808008 Port connection error • Review the IP address and port number values of the properties.
Establishment of connection failed. • Review the port number value on the communication settings utility.
The other end does not respond. • Review the system, e.g. CPU module, module setting and cable status
• Exit the program and restart the personal computer.
0x01808009 COM port handle error • Check for an application which uses the COM port.
The handle of the COM port cannot be acquired. • Exit the program and restart the personal computer.
The COM port object cannot be copied.
The SOCKET object cannot be copied.
13 ERROR CODES
620 13.1 Error Code List
Error code Error description Corrective action
0x0180800A Buffer size setting error • Check for an application which uses the COM port.
Setting of the COM port buffer size failed. • Make COM port setting on the control panel of the OS.
• Exit the program and restart the personal computer.
0x0180800B DCB value acquisition error
Acquisition of the COM port DCB value failed.
0x0180800C DCB setting error
Setting of the COM port DCB value failed.
0x0180800D Time-out value setting error • Check the property timeout value.
Setting of the COM port time-out value failed. • Review the time-out value on the communication settings utility.
• Check for an application which uses the COM port.
• Make COM port setting on the control panel of the OS.
• Exit the program and restart the personal computer.
0x0180800E Shared memory open error • Check whether the GX Simulator has started.
Open processing of shared memory failed. • Exit the program and restart the personal computer.
0x01808101 Duplex close error • Exit the program and restart the personal computer.
0x01808102 Handle close error
Closing of the COM port handle failed.
0x01808103 Driver close error
Closing of the driver handle failed.
13
0x01808104 Overlap Event Close error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01808105 Mutex Handle Close error
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808106 COM Port Handle Close error
0x01808201 Send error • Review the system, e.g. CPU module, module setting and cable status.
Data send failed. • Make COM port setting on the control panel of the OS.
• Make Ethernet board and protocol settings on the control panel.
• Retry the method.
• Exit the program and restart the personal computer.
0x01808202 Send data size error • Exit the program and restart the personal computer.
Data send failed.
0x01808203 Queue clear error • Exit the program and restart the personal computer.
Clearing of the COM port queue failed. • Close and Open again.
0x01808301 Receive error • Review the system, e.g. CPU module, module setting and cable status.
Data receive failed. • Check the property timeout value.
• Review the time-out value on the communication settings utility.
• Retry the method.
• Exit the program and restart the personal computer.
0x01808302 Not Sent error • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808303 Error in retrieving Overlap Event • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808304 Receive buffer size shortage • Exit the program and restart the personal computer.
Receive data was larger than the receive buffer size
prepared for the system.
0x01808401 Control error
Changing of the COM port communication control failed.
0x01808402 Signal Line Control error • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808403 Signal line specifying error • Exit the program and restart the personal computer.
Changing of the COM port communication control failed.
0x01808404 Open not yet executed • Execute Open.
• Exit the program and restart the personal computer.
0x01808405 Communication parameter error • Review the data bit and stop bit values of the properties.
The data bit and stop bit combination of the properties is • Set it again on the communication settings utility.
unauthorized.
0x01808406 Transmission speed value specifying error • Review the transmission speed value of the property.
The transmission speed of the property is unauthorized. • Set it again on the communication settings utility.
0x01808407 Data length error • Review the data bit value of the property.
The data bit value of the property is unauthorized. • Set it again on the communication settings utility.
0x01808408 Parity specifying error • Review the parity value of the property.
The parity value of the property is unauthorized. • Set it again on the communication settings utility.
13 ERROR CODES
13.1 Error Code List 621
Error code Error description Corrective action
0x01808409 Stop bit specifying error • Review the stop bit value of the property.
The stop bit value of the property is unauthorized. • Set it again on the communication settings utility.
0x0180840A Communication control setting error • Review the control value of the property.
The control value of the property is unauthorized. • Set it again on the communication settings utility.
0x0180840B Time-out error • Check the property timeout value.
Though the time-out period had elapsed, data could not be • Set it again on the communication settings utility.
received. • Review the system, e.g. CPU module, module setting and cable status.
• Check if communication can be established with the Ping command.
• Retry the method.
• Close and Open again.
• Exit the program and restart the personal computer.
0x0180840C Connect error • Exit the program and restart the personal computer.
0x0180840D Duplex connect error
0x0180840E Attach failure
Attaching of the socket object failed.
0x0180840F Signal line status acquisition failure
Acquisition of the COM port signal line status failed.
0x01808410 CD signal line OFF • Review the system, e.g. CPU module, module setting and cable status.
The CD signal on the other end of communication is in the • Exit the program and restart the personal computer.
OFF status.
0x01808411 Password mismatch error • Check the remote password of the property.
0x01808412 TEL Communication error • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808501 USB driver load error • Exit the program and restart the personal computer.
Loading of the USB driver failed. • Reinstall MX Component.
• Check USB driver installation.
0x01808502 USB driver connect error
Connection of the USB driver failed.
0x01808503 USB driver send error • Review the system, e.g. CPU module, module setting and cable status.
Data send failed. • Make USB setting on the control panel (device manger) of the OS.
• Retry the method.
0x01808504 USB driver receive error
• Exit the program and restart the personal computer.
Data receive failed.
0x01808505 USB Driver Timeout error • Recheck the timeout value.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x01808506 USB driver initialization error • Make USB setting on the control panel (device manger) of the OS.
Initialization of the USB driver failed. • Exit the program and restart the personal computer.
0x01808507 Other USB error • Disconnect the cable once, then reconnect.
Error related to data send/receive occurred. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01809000 GX Works2 uninstallation error • Install GX Works2.
The error occurred by retrieving the installation passing of
GX Simulator2.
0x01809001 GX Simulator2 unstart error • Start GX Simulator2.
GX Simulator2 did not start.
0x01809002 GX Simulator2 start error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x01809003 GX Simulator2 start time-out error
• Please contact your local Mitsubishi Electric sales office or representative.
0x01809004 GX Simulator2 stop error
0x01809005 GX Simulator2 start error
0x01809007 GX Simulator2 stop error
0x01809008 GX Simulator2 start error
Because it had reached upper bounds of the number of
simulations that was able to be started at the same time, it
was not possible to start.
0x01809009 GX Simulator2 start error
The simulation of only one project that can be started has
started.
13 ERROR CODES
622 13.1 Error Code List
Error code Error description Corrective action
0x01809010 GX Simulator2 start information illegal error • Exit the program and restart the personal computer.
The error occurred because it was not able to secure the • Reinstall MX Component.
memory area to allocate GX Simulator2 start information. • Please contact your local Mitsubishi Electric sales office or representative.
0x01809021 GX Simulator2 start error
Because it had reached upper bounds of the number of
simulations that was able to be started at the same time, it
was not possible to start.
0x01809022 GX Simulator2 start error • Exit the program and restart the personal computer.
The simulation of other CPU was not able to begin because • Reinstall MX Component.
the simulation of the project of FXCPU had already been • Please contact your local Mitsubishi Electric sales office or representative.
begun.
0x02000001 Points Exceeded error • Reduce the no. of points registered by the monitor.
The number of points registered in the monitoring server is • Exit the program and restart the personal computer.
very high. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x02000002 Shared memory creation error • Exit the program and restart the personal computer.
Failed in creating shared memory. • Reinstall MX Component.
0x02000003 Shared memory access error
• Please contact your local Mitsubishi Electric sales office or representative. 13
0x02000004 Memory securing error • Close the other applications.
Failed in securing memory for the monitoring server. • Increase the system memory.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x02000005 Device Not Registered error • Register the monitor in the monitoring server.
Monitor has not been registered. • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x02000006 Monitoring Server Startup error • Start the Monitoring Server.
Monitoring Server is not started. • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x02000010 Yet to retrieve Device Value error • Try to retrieve the value again after waiting for a fixed amount of time.
Monitoring is not yet completed. • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03000001 Command not Supported. • Exit the program and restart the personal computer.
Command is not supported. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03000002 Memory lock error
Failed while locking memory.
0x03000003 Memory securing error
Failed in securing the memory.
0x03000004 DLL read error
Failed in reading DLL.
0x03000005 Resource securing error
Failed in securing the resources.
0x03010001 File Creation error • Check if there is enough space on the hard disk.
Failed in creating the file. • Exit the program and restart the personal computer.
• Reinstall MX Component
• Please contact your local Mitsubishi Electric sales office or representative.
0x03010002 File Open error • Exit the program and restart the personal computer.
Failed to open the file. • Reinstall MX Component.
0x03010003 Buffer Size error • Please contact your local Mitsubishi Electric sales office or representative.
The buffer size specified is either incorrect or not enough.
0x03010004 SIL Sentence formation error
SIL sentence formation is incorrect.
0x03010005 File Name error • Specify a shorter filename.
The specified filename is too long. • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03010006 File does not exist error • Check the file name.
The specified file does not exist. • Check if the file exists or not.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
13 ERROR CODES
13.1 Error Code List 623
Error code Error description Corrective action
0x03010007 File Structure error • Exit the program and restart the personal computer.
The data structure in the specified file is incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03010008 File already exists error • Check the file name.
The specified file already exists. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x03010009 File does not exist error
• Please contact your local Mitsubishi Electric sales office or representative.
The specified file does not exist.
0x0301000A File Deletion error • Exit the program and restart the personal computer.
The specified file could not be deleted. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0301000B Multiple Open error
The specified project has been opened twice.
0x0301000C File Name error • Check the file name.
The specified filename is incorrect. • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0301000D File Read error • Exit the program and restart the personal computer.
Failed in reading the file. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0301000E File Write error
Failed in writing the file.
0x0301000F File Seek error
File seek failed.
0x03010010 File Close error
Failed while closing the file.
0x03010011 Folder Creation error
Failed while creating the folder.
0x03010012 File Copy error • Exit the program and restart the personal computer.
Failed while copying the file. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03010013 Project Path error
The length of the project path is incorrect.
0x03010014 Project Type error
The project type is incorrect.
0x03010015 File Type error
The file type is incorrect.
0x03010016 Sub-File Type error
The sub-file type is incorrect.
0x03010017 Insufficient Disk space error
The disk space is insufficient.
0x03020002 Multiple Open error
Tried to open DBProduct more than once.
0x03020003 Not yet open error
DBProduct is not opened.
0x03020004 Extract error
DBProduct is not extracted.
13 ERROR CODES
624 13.1 Error Code List
Error code Error description Corrective action
0x03020010 Parameter error • Exit the program and restart the personal computer.
The parameters of DBProduct are incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03020011 Language error
The language parameter is incorrect.
0x03020012 Error in specifying Maker
The maker parameter is incorrect.
0x03020013 Error in specifying Unit
The unit parameter is incorrect.
0x03020014 SQL Parameter error
SIL, SQL Parameter of DBProduct is incorrect.
0x03020015 SIL Sentence formation error
SIL sentence formation is incorrect.
0x03020016 Field Key Input Error
The entered field key is incorrect.
0x03020050 Record Data Construction error.
Failed in reconstructing the record data of DBProduct.
0x03020060 Error Retrieving Record Data 13
Failed while retrieving DBProduct record data.
0x03020061 Last Record error
Cannot retrieve the next record since the current record is
the last record.
0x03FF0000 Initialization error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x03FF0001 Not Initialized error
• Please contact your local Mitsubishi Electric sales office or representative.
0x03FF0002 Multiple Initialization error
0x03FF0003 Workspace Initialization error
0x03FF0004 Database Initialization error
0x03FF0005 Recordset Initialization error
0x03FF0006 Error Closing Database
0x03FF0007 Error Closing Recordset
0x03FF0008 Database Not Opened error
Database is not opened.
0x03FF0009 Recordset Not Opened error
Recordset is not opened.
0x03FF000A Table Initialization error • Exit the program and restart the personal computer.
Failed in initializing TtableInformation table. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x03FF000B Table Initialization error
Failed in initializing TfieldInformation table.
0x03FF000C Table Initialization error
Failed in initializing TrelationInformation table.
0x03FF000D Table Initialization error
Failed in initializing Tlanguage table.
0x03FF000E Table Initialization error
Failed in initializing Tmaker table.
0x03FF000F Table Initialization error
Failed in initializing TOpenDatabase table.
0x03FF0010 Field Value error
0x03FF0011 Field Value error
0x03FF0012 Exit error
Failed to exit the database.
0x03FF0100 Moving Record error
Failed while moving the record.
0x03FF0101 Retrieving Record Count error
Failed to retrieve the record count.
0x03FF0110 Retrieving Field Value error
Failed in retrieving the field value.
0x03FF0111 Setting Field Value error
Failed in setting the field value.
0x03FFFFFF Other errors
13 ERROR CODES
13.1 Error Code List 625
Error code Error description Corrective action
0x04000001 No command error • Check the CPU type set to ActCpuType.
The specified CPU type cannot be used to perform • Check that the system configuration is not an unsupported configuration.
processing. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x04000002 Memory lock error • Exit the program and restart the personal computer.
Failed while locking memory. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04000003 Memory securing error
Failed in securing the memory.
0x04000004 Internal server DLL load error • Check for the deleted or moved installation file of MX Component.
Start of the internal server failed. • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x04000005 Resource securing error • Exit the program and restart the personal computer.
Failed in securing the resources. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04000006 Error Loading Main Object
Failed in reading the file.
0x04000007 Error Loading Conversion Table
Failed in reading table data.
0x04000100 Incorrect Intermediate Code Size error
0x04010001 Intermediate Code Not Converted error
The converted machine code for one command is more
than 256 bytes.
0x04010002 Intermediate Code Completion error
Intermediate code area of the code to be converted ended
abruptly.
0x04010003 Insufficient Intermediate Code error
The intermediate code of the code to be converted was
insufficient.
0x04010004 Intermediate Code Data error
The intermediate code to be converted is incorrect.
13 ERROR CODES
626 13.1 Error Code List
Error code Error description Corrective action
0x04010005 Intermediate Code Structure error • Exit the program and restart the personal computer.
The number of steps in the intermediate code is incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04010006 Error in Number of Steps
The number of steps in comment intermediate code is
incorrect.
0x04010007 Insufficient Storage Space for Machine Code error
The storage space for machine code is insufficient.
0x04010008 Other errors (Other errors generated during the conversion
of Intermediate code to machine code.)
0x04011001 Machine Code Not Converted error
The converted intermediate code for one command is more
than 256 bytes.
0x04011002 Machine Code Completion error
The machine code area to be converted ended abruptly.
0x04011003 Could not convert since the machine code to be converted
was abnormal.
0x04011004 Insufficient Storage Space for Intermediate Code error
The storage area for intermediate code is insufficient.
13
0x04011005 Other errors (Other errors generated while converting
machine code to Intermediate code.)
0x04020001 Text Code Not Converted error
The converted intermediate code for one command is more
than 256 bytes.
0x04020002 No Input error
The input list code is insufficient.
0x04020003 Command error
The command name of list code to be converted is
incorrect.
0x04020004 Device error
The device name of list code to be converted is incorrect.
0x04020005 Device No. error
The device number of the list code to be converted is out of
range.
0x04020006 Conversion error
The list code to be converted conversion could not be
identified.
0x04020007 Text Data error • Exit the program and restart the personal computer.
The list code to be converted is incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04020008 Error in SFC Operation Output
The output command of SFC operation is incorrect.
0x04020009 SFC Shift Condition error
SFC shift condition command is incorrect.
0x0402000A Error in Statements between lines
The statements entered between lines are incorrect.
0x0402000B P.I Statement error
The P.I statement entered is incorrect.
0x0402000C Note error
The Note entered is incorrect.
0x0402000D Comment error
The comment entered is incorrect.
0x0402000E Other errors (Other errors generated during the conversion
of list to Intermediate code)
0x04021001 Intermediate Code Not Converted error
The converted list code for one command has exceeded
256 bytes.
0x04021002 Intermediate Code Area Full error
Intermediate code area to be converted is full.
0x04021003 Command error
The command specified by the intermediate code to be
converted is incorrect.
13 ERROR CODES
13.1 Error Code List 627
Error code Error description Corrective action
0x04021004 Device error • Exit the program and restart the personal computer.
The device specified in the intermediate code to be • Reinstall MX Component.
converted is incorrect. • Please contact your local Mitsubishi Electric sales office or representative.
0x04021005 Intermediate Code error
The structure of intermediate code to be converted is
incorrect.
0x04021006 Insufficient List Storage Space error
The space for storing the converted list code is insufficient.
0x04021007 Other errors (Other errors generated during the conversion
of intermediate code to list)
0x04030001 Not Converted error
The storage space for converted intermediate code is
insufficient.
0x04030002 Bad Circuit Creation error
The character memory circuit is not completed in a
sequence.
0x04030003 Specified Circuit Size Exceeded
Specified circuit size is too big.
0x04030004 Incorrect Return Circuit error
There is no consistency before and after the return circuit.
The setting for the return circuit is too high.
0x04030005 Other errors (Other errors generated while converting from
Character Memory to Intermediate Code)
0x04031001 Not Converted error
The size (vertical/horizontal) of the character memory
specified is incorrect.
0x04031002 Abnormal Command Code error
The command intermediate code to be converted is
incorrect.
0x04031003 Bad Circuit Creation error
Could not be converted to Sequence Circuit. There is no
END command.
0x04031004 Specified Circuit Size exceeded error • Exit the program and restart the personal computer.
Specified circuit size is too big. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04031005 Fatal error
Fatal error has occurred.
0x04031006 Insufficient number of storage blocks error
The space to store the converted character memory circuit
blocks is not sufficient.
0x04031007 Circuit Block Search error
Data is broken off in the circuit block.
0x04031008 Other errors (Other errors generated during the conversion
of intermediate code to character memory)
0x04040001 CAD Data error
The CAD data format is incorrect.
0x04040002 Output Data error
The input CAD data type and the output CAD data type are
not matching.
0x04040003 Library Load error
Failed to load the library.
0x04040004 Storage Space Secure error
The space secured to store the converted data is not
sufficient.
0x04040005 No END Command error
There is no END command in the data to be converted.
0x04040006 Abnormal Command Code
There is abnormal command code in the CAD data to be
converted.
0x04040007 Device No. error
The device number is out of range.
13 ERROR CODES
628 13.1 Error Code List
Error code Error description Corrective action
0x04040008 Step No. error • Exit the program and restart the personal computer.
The step number is out of range. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04040009 Specified Circuit Size exceeded error
1 circuit block is too big.
0x0404000A Return Circuit Error
The return circuit is incorrect.
0x0404000B Bad Circuit Creation error
The circuit data is incorrect.
0x0404000C SFC Data error
The SFC data to be converted is incorrect.
0x0404000D List Data error
The list data to be converted is incorrect.
0x0404000E Comment Data error
The comment data to be converted is incorrect.
0x0404000F Statement error
The statement data to be converted is incorrect.
0x04040010 Other errors (Other errors generated during the conversion 13
of CAD code to Intermediate code.)
0x04041001 Intermediate Code Data error
There is no intermediate code to be converted. The format
of the intermediate code is incorrect.
0x04041002 CAD Data Type error
The input CAD data type and the output CAD data type are
not matching.
0x04041003 Library error • Exit the program and restart the personal computer.
Failed to load the library. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04041004 Insufficient Input Data error
Data to be converted is insufficient.
0x04041005 Insufficient Storage Space error
There is not enough space to store the CAD data to be
converted.
0x04041006 No END Command error
There is no END command in the data to be converted.
0x04041007 Abnormal Command Code error
There is abnormal command code in the CAD data to be
converted.
0x04041008 Device No. error
The device number is out of range.
0x04041009 Step No. error
The step number is out of range.
0x0404100A Specified Circuit Size exceeded error
1 circuit block is too big.
0x0404100B Return Circuit Error
The return circuit is incorrect.
0x0404100C Bad Circuit Creation error
The circuit data is incorrect.
0x0404100D SFC Data error
The SFC data to be converted is incorrect.
0x0404100E List Data error
The list data to be converted is incorrect.
0x0404100F Comment Data error
The comment data to be converted is incorrect.
13 ERROR CODES
13.1 Error Code List 629
Error code Error description Corrective action
0x04041010 Statement error • Exit the program and restart the personal computer.
The statement data to be converted is incorrect. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04041011 Other errors (Other errors generated during the conversion
of Intermediate code to CAD code.)
0x04050001 Abnormal Character String Specified error
Device character string specified is incorrect.
0x04050002 Device Points error
Device points are out of range.
0x04050003 Other errors (The errors generated during the conversion of
the Device Character String to Device Intermediate Code)
0x04051001 Device Name error
The classification specified for the device intermediate code
is incorrect.
0x04051002 Device Name error
The classification specified for the extended specification
device intermediate code is incorrect.
0x04051003 Other errors (The errors generated during the conversion of
the Device Intermediate Code to Device Character String)
0x04052001 Abnormal Character String Specified error
Device character string specified is incorrect.
0x04052002 Device Points error
Device points are out of range.
0x04052003 Other errors (The errors generated during the conversion of
the Device Character String to Device Representation
Code)
0x04053001 Device Representation error
The classification specified for the device intermediate code
is incorrect.
0x04053002 Device Representation error • Exit the program and restart the personal computer.
The classification specified for the extended specification • Reinstall MX Component.
device intermediate code is incorrect. • Please contact your local Mitsubishi Electric sales office or representative.
0x04053003 Device Representation error
The rectification part specified for the device is incorrect.
0x04053004 Device Representation error
The rectification part specified for the extended device is
incorrect.
0x04053005 Other errors (The errors generated during the conversion of
the Device Representation Code to Device Character
String)
0x04064001 Abnormal Device Intermediate Code error
The intermediate code for the device is incorrect.
0x04064002 Other errors (Other errors generated during the conversion
of the Intermediate code for the Device to Device Name)
0x04065001 Abnormal Device Name error
The classification specified for the device intermediate code
is incorrect.
0x04065002 Abnormal Device Name error
The classification for the intermediate code of the extended
specification device is incorrect.
0x04065003 Other errors (Other errors generated during the conversion
of the device name to Intermediate code)
0x04066001 Device Intermediate Code error
The intermediate code for the device is incorrect.
0x04066002 Other errors (Other errors generated during the conversion
of the device intermediate code to device representation
code.)
13 ERROR CODES
630 13.1 Error Code List
Error code Error description Corrective action
0x04067001 Device Representation error • Exit the program and restart the personal computer.
The classification specified for the device intermediate code • Reinstall MX Component.
is incorrect. • Please contact your local Mitsubishi Electric sales office or representative.
0x04067002 Device Representation error
The classification specified for the extended specification
device intermediate code is incorrect.
0x04067003 Device Representation error
The rectification part specified for the device is incorrect.
0x04067004 Device Representation error
The rectification part specified for the extended device is
incorrect.
0x04067005 Other errors
(Other errors generated during the conversion of device
representation code to the device intermediate code)
0x04070001 Common Data Conversion error
The input data of the device comment conversion is
incorrect.
0x04070002 Insufficient Common Data
13
The data to be converted is insufficient.
0x04070003 Insufficient Storage Area
The area where the conversion data is stored is insufficient.
0x04071001 Error in CPU Data Conversion
The input data of the device comment conversion is
incorrect.
0x04071002 Insufficient CPU Data error
The data to be converted is insufficient.
0x04071003 Insufficient Storage Area
The area where the conversion data is stored is insufficient.
0x04072001 Open error
Failed in creating conversion object.
0x04072002 CPU Type error
The specified CPU type does not exist.
0x04072003 Not Converted error • Exit the program and restart the personal computer.
Converted object does not exist. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04072004 Input Data error
The input data is incorrect.
0x04073001 Program Common Data Conversion error
0x04073002 Program Common Data Conversion error
0x04073101 Program CPU Data Conversion error
0x04074001 Common Data Parameter error
0x04074002 Network Parameter Common Data error
The parameter block exists, but the data inside is not set.
0x04074101 Parameter CPU Data error
0x04074102 Network Parameter CPU Data error
The parameter block exists, but the data inside is not set.
0x04074103 Offset error
13 ERROR CODES
13.1 Error Code List 631
Error code Error description Corrective action
0x04074201 Error in Specifying Network Type • Exit the program and restart the personal computer.
The CPU specified does not support the network type. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x04074202 Parameter Block Number error
The Block corresponding to the parameter block number
specified does not exist.
0x04074203 Parameter Block Content error
It is different from the content supported by the specified.
0x04074204 Parameter Block Information error
The specified block number does not exist.
0x04074205 Default Parameter Block is Abnormal
The specified block number does not exist.
0x04074301 Error in Conversion of the Common Parameter Block
0x04074302 Error in Common Parameter Block No. 1001
The value of the RUN-PAUSE settings existence flag is
incorrect.
0x04074303 Error in Common Parameter Block No. 1003
0x04074304 Error in Common Parameter Block No. 1008
0x04074305 Error in Common Parameter Block No. 1100
0x04074306 Error in Common Parameter Block No. 2001
The device intermediate code specified does not exist.
0x04074307 Error in Common Parameter Block No. 3000
0x04074308 Error in Common Parameter Block No. 3002
0x04074309 Error in Common Parameter Block No. 3004
The settings for the annunciator display mode is incorrect.
0x0407430A Error in Common Parameter Block No. 4000
I/O Allotment Data is not created.
0x0407430B Error in Common Parameter Block No. 5000
The specified network is not supported.
0x0407430C Error in Common Parameter Block No. 5001
Valid unit No is not set while accessing other exchange.
0x0407430D Error in Common Parameter Block No. 5002
0x0407430E Error in Common Parameter Block No. 5003
0x0407430F Error in Common Parameter Block No. 5NM0
0x04074310 Error in Common Parameter Block No. 5NM1 • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x04074311 Error in Common Parameter Block No. 5NM2
• Please contact your local Mitsubishi Electric sales office or representative.
0x04074312 Error in Common Parameter Block No. 5NM3
0x04074313 Error in Common Parameter Block No. 6000
0x04074314 Error in Common Parameter Block No. FF18
Link parameter Capacity is not set.
0x04074315 Error in Common Parameter Block No. FF25
Calculation circuit check is not set.
0x04074316 Error in Common Parameter Block No. FF30
Sampling Trace Data is not created.
0x04074317 Error in Common Parameter Block No. FF31
Status latch data is not created.
0x04074318 Error in Common Parameter Block No. F42
Timer processing points are not set.
0x04074319 Error in Common Parameter Block No. FF30
Setting value device for specified extended timer does not
exist.
0x0407431A Error in Common Parameter Block No. FF44
0x0407431B Error in Common Parameter Block No. FF45
0x0407431C Error in Common Parameter Block No. FF60
Terminal Settings are not set.
0x0407431D Error in Common Parameter Block No. FF70
User Release area is not set.
13 ERROR CODES
632 13.1 Error Code List
Error code Error description Corrective action
0x04074401 Error in Conversion of CPU Parameter Block • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x04074402 Error in CPU Parameter Block No.1001
• Please contact your local Mitsubishi Electric sales office or representative.
0x04074403 Error in CPU Parameter Block No.1003
0x04074404 Error in CPU Parameter Block No.1008
0x04074405 Error in CPU Parameter Block No.1100
0x04074406 Error in CPU Parameter Block No. 2001
0x04074407 Error in CPU Parameter Block No. 3000
0x04074408 Error in CPU Parameter Block No. 3002
0x04074409 Error in CPU Parameter Block No. 3004
0x0407440A Error in CPU Parameter Block No. 4000
0x0407440B Error in CPU Parameter Block No. 5000
The specified network type is not supported.
0x0407440C Error in CPU Parameter Block No. 5001
0x0407440D Error in CPU Parameter Block No. 5002
0x0407440E Error in CPU Parameter Block No. 5003 13
0x0407440F Error in CPU Parameter Block No. 5NM0
The specified network type is not supported.
0x04074410 Error in CPU Parameter Block No. 5NM1 • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x04074411 Error in CPU Parameter Block No. 5NM2
• Please contact your local Mitsubishi Electric sales office or representative.
The specified network type is not supported.
0x04074412 Error in CPU Parameter Block No. 5NM3
0x04074413 Error in CPU Parameter Block No. 6000
0x04074414 Error in CPU Parameter Block No. FF18
0x04074415 Error in CPU Parameter Block No. FF25
0x04074416 Error in CPU Parameter Block No. FF30
0x04074417 Error in CPU Parameter Block No. FF31
0x04074418 Error in CPU Parameter Block No. FF42
0x04074419 Error in CPU Parameter Block No. FF43
0x0407441A Error in CPU Parameter Block No. FF44
0x0407441B Error in CPU Parameter Block No. FF45
0x0407441C Error in CPU Parameter Block No. FF60
0x0407441D Error in CPU Parameter Block No. FF70
0x04075001 Common Data Conversion error • Exit the program and restart the personal computer.
Failed while converting the device memory settings portion. • Reinstall MX Component.
0x04075002 Common Data Conversion error • Please contact your local Mitsubishi Electric sales office or representative.
Failed while converting the device memory settings portion.
0x04075003 Common Data Conversion error
Device memory data portion did not exist.
0x04075101 Error in CPU Data Conversion
Failed while converting the device memory settings portion.
0x04075102 Error in CPU Data Conversion
Failed while converting the device memory settings portion.
0x04076001 Common Data Conversion error
Failed while converting the settings portion of the device
comments.
0x04076002 Common Data Conversion error
Failed while converting the data portion of the device
comments.
0x04076101 Error in CPU Data Conversion
Failed while converting the settings portion of the device
comments.
0x04076102 Error in CPU Data Conversion
Failed while converting the data portion of the device
comments.
13 ERROR CODES
13.1 Error Code List 633
Error code Error description Corrective action
0x04077001 Common Data Conversion error • Exit the program and restart the personal computer.
Failed during the conversion of sampling trace settings • Reinstall MX Component.
portion. • Please contact your local Mitsubishi Electric sales office or representative.
0x04077002 Common Data Conversion error
Failed during the conversion of sampling trace data portion.
0x04077101 Error in CPU Data Conversion
Failed during the conversion of sampling trace settings
portion.
0x04077102 Error in CPU Data Conversion
Failed during the conversion of sampling trace data portion.
0x04078001 Common Data Conversion error
Failed in the conversion of the status latch settings portion.
0x04078002 Common Data Conversion error
Failed in the conversion of the status latch data portion.
0x04078101 Error in CPU Data Conversion
Failed in the conversion of the status latch settings portion.
0x04078102 Error in CPU Data Conversion
Failed in the conversion of the status latch data portion.
0x04079101 PLC Data Conversion Error • Exit the program and restart the personal computer.
Failed in the conversion of the Error History. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0407A101 PLC Data Conversion Error
Failed in the conversion of the File List.
0x0407B101 PLC Data Conversion Error
Failed in the conversion of the Error Information.
0x0407C001 Error in Conversion of Indirect Address to Device Name
The device name storage area is not secured.
0x0407C002 Error in Conversion of Device Name to Indirect Address
Indirect Address storage area is not secured.
0x0407C003 Error in Conversion of Indirect Address to Device
Representation
The device representation storage area is not secured.
0x0407C004 Error in Conversion of Device Representation to Indirect
Address
Indirect Address storage area is not secured.
0x0407C005 Error in Conversion of Indirect Address to Device Character
String
Device Character String storage area is not secured.
0x0407C006 Error in Conversion of Device Character String to Indirect • Exit the program and restart the personal computer.
Address • Reinstall MX Component.
Indirect Address storage area is not secured. • Please contact your local Mitsubishi Electric sales office or representative.
0x0407C007 Error in Conversion of Intermediate Code to Device Name
The device name storage area is not secured.
0x0407C008 Error in Conversion of Device Name to Intermediate Code
Intermediate Code storage area is not secured.
0x0407C009 Error in Conversion of Intermediate Code to Device
representation
Device Representation storage area is not secured.
0x0407C00A Error in Conversion of Device Representation to
Intermediate Code
Intermediate Code storage area is not secured.
0x0407C00B Error in Conversion of Intermediate Code to Indirect
Address
Indirect Address storage area is not secured.
0x0407C00C Error in Conversion of Indirect Address to Intermediate
Code
Intermediate Code storage area is not secured.
0x0407C00D CPU Type error
The specified CPU type is not supported.
13 ERROR CODES
634 13.1 Error Code List
Error code Error description Corrective action
0x0407C00E Device Character String error • Exit the program and restart the personal computer.
The specified device is not supported. • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0x0407C00F Device Character String error
The specified device character string, type is incorrect.
0x0407C010 Device error
The specified device is not supported by the specified CPU.
0x0407C011 CPU Type error
The specified CPU is not supported.
0x0407C012 Device out of Range error
0x0407D001 Common Data Conversion error
Error in Conversion of SFC trace condition settings portion.
0x0407D002 Common Data Conversion error
Error in Conversion of SFC trace condition data portion.
0x0407D101 Error in CPU Data Conversion
Error in Conversion of SFC trace condition settings portion.
0x0407D102 Error in CPU Data Conversion
Error in Conversion of SFC trace condition data portion. 13
0x04080001 Intermediate Code classification out of range error • Exit the program and restart the personal computer.
The intermediate code classification specified is out of • Reinstall MX Component.
range. • Please contact your local Mitsubishi Electric sales office or representative.
0x04080002 Extended specification Intermediate Code classification out
of range error
The extended specification intermediate code specified is
out of range.
0x04080003 Device Points check absent error
The device does not check the device points.
0x04090001 GPP Project error
The specified CPU type and GPP project type are not
matching.
0x04090002 File Type error
The specified GPP project type and file type are not
matching.
0x04090010 Insufficient GPP Data to be converted
There is no data to be converted.
The data size specified is incorrect.
0x04090011 Insufficient Storage Space for Converted Data
The space for storing converted data is insufficient.
0x04090012 Error in GPP Data to be converted
The GPP data to be converted is incorrect.
0x04090110 Insufficient Data to be converted error • Exit the program and restart the personal computer.
There is no data to be converted. • Reinstall MX Component.
The data size specified is insufficient. • Please contact your local Mitsubishi Electric sales office or representative.
0x04090111 Insufficient Storage Space for Converted Data error.
The storage space for converted data is insufficient.
0x04090112 Error in data to be converted
The data to be converted is incorrect.
0x040A0001 Insufficient Intermediate Code Storage Space
The space secured to store the converted data is not
sufficient.
0x040A0002 The space to store addition SFC information is not
sufficient.
0x040A0003 Conversion error
0x040A0004 Non-SFC Program error
0x040A1001 Step Not Used / No Output error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x040A1002 Step No. out of range error
• Please contact your local Mitsubishi Electric sales office or representative.
0x040A1003 Step Not Used / No Output error
0x040A1004 Transition No. out of range
0x040A1005 Maximum Number Exceeded error
0x040A1006 Microcontroller Program space error
0x040A1007 Non-SFC Program error
13 ERROR CODES
13.1 Error Code List 635
Error code Error description Corrective action
0x040B0001 Insufficient Intermediate Code Storage Space • Exit the program and restart the personal computer.
The space secured to store the converted data is not • Reinstall MX Component.
sufficient. • Please contact your local Mitsubishi Electric sales office or representative.
0x040B0002 Conversion error
0x040B1001 Failed in creating Step Start position table
0x040B1002 Error Reading Step Information
0x040B1003 Step No. Error
0x040B1004 Failed in reading the output of operation/Transition
condition intermediate code error
0x040B1005 Securing Internal Work Area Failed error
0x040B1006 Error in setting the maximum value of X direction for
character memory
0x040B1007 Insufficient Internal Work Area error
0x040B1008 Stack Overflow, Abnormal Character Memory
0x040B1009 Insufficient number of storage blocks error
0x040B100A Non-SFC Program error
0x04FFFFFF Other errors
0x10000001 No command error
0x10000002 Start of communication DLL of MX Component failed. • Exit the program and restart the personal computer.
0x10000003 Open failed. (DiskDrive) • Reinstall MX Component.
0x10000004 Duplex open error • Exit the program and restart the personal computer.
0x10000005 File Access error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000006 Incorrect Folder Name error
• Please contact your local Mitsubishi Electric sales office or representative.
0x10000007 File Access Denied error
0x10000008 Disk Full error
0x10000009 File Deletion error
0x1000000A Incorrect File Name error
0x1000000C Execution failed since another application or thread is • Execute again after some time
making a request. • Perform programming according to the multithread rules of COM and
ActiveX.
• Exit the program and restart the personal computer.
0x1000000D Folder Creation error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x1000000E Folder/ File Type error
• Please contact your local Mitsubishi Electric sales office or representative.
0x1000000F Offset Address error
0x10000010 Request Cancel
Cancel Process has occurred.
0x10000011 Memory securing error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000012 Open not yet executed • Exit the program and restart the personal computer.
0x10000013 Attach Not Executed error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000014 Object Invalid error
• Please contact your local Mitsubishi Electric sales office or representative.
0x10000015 Request Cancel Failed error
0x10000016 Failed in Reading Status error
0x10000017 The specified size (number of devices) is unauthorized. • Check the number of points specified in the method.
• Exit the program and restart the personal computer.
0x10000018 There is no registered device. • Exit the program and restart the personal computer.
0x10000019 Data set Not Executed • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x1000001A Read Not Executed error
• Please contact your local Mitsubishi Electric sales office or representative.
0x1000001B Incorrect Create Flag error
0x1000001C Operation Over Access
0x1000001D Redundant Device error
0x1000001E Registry search failed. • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
• Reinstall MX Component.
13 ERROR CODES
636 13.1 Error Code List
Error code Error description Corrective action
0x1000001F File Type error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000020 Device Memory Type error
• Please contact your local Mitsubishi Electric sales office or representative.
0x10000021 Program Range error
0x10000022 TEL Type error
0x10000023 TEL Access error
0x10000024 Cancel Flag Type error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000030 Multiple Device Registration error
• Please contact your local Mitsubishi Electric sales office or representative.
0x10000031 Device Not Registered error
0x10000032 Specified device error • Review the specified device data.
• Exit the program and restart the personal computer.
0x10000033 Specified device range error
• Exit other programs and secure free memory area.
0x10000034 File Write error • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x10000040 Server start failed.
• Please contact your local Mitsubishi Electric sales office or representative.
0x10000041 Server Stop error
Failed while stopping the server.
0x10000042 Server Started Twice error
13
0x10000043 Server Not Started error
0x10000044 Resource Timeout error
0x10000045 Server Type error
0x10000046 Failed to Access Server error
0x10000047 Server Already Accessed error
0x10000048 Failed in Simulator Startup
0x10000049 Failed in exiting Simulator
0x1000004A Simulator Not Started error
0x1000004B Simulator Type error
0x1000004C Simulator Not Supported error
0x1000004D Simulator Started Twice error
0x1000004E Shared Memory Not Started error
0x10000055 GX Simulator3 did not start error • Start GX Simulator3.
0x10000059 Time-out error • Check the property timeout value.
• Check the settings in the communication settings utility.
• Check the CPU module, unit settings, state of the cable, etc.
• Close and Open again.
• Exit the program and restart the personal computer.
0x1000005A System number error • Check the system number set on the communication settings utility.
0x1000007E Failed to Access MELSOFT Mirror error • Close and Open again.
• Check the personal computer on which MELSOFT Mirror is running, state
of the Network.
0x8001000C Data out of the allowable setting range is specified. • Review the value of the property.
• Set it again on the communication settings utility.
0x80010016
0x80010101 Time-out error • Check the property timeout value.
• Check the settings in the communication settings utility.
• Check the unit settings, state of the cable, etc.
• Close and Open again.
• Exit the program and restart the personal computer.
0x80020001 Type of data is invalid. • Review the value of the property.
• Set it again on the communication settings utility.
0x80020002 Range of the data is incorrect.
0x80030001 The specification of the communication port is incorrect. • Review the communication port value of the property.
• Set it again on the communication settings utility.
0x80030002 The specification of the Transmission speed is incorrect. • Review the transmission speed value of the property.
• Set it again on the communication settings utility.
0x80030003 The specification of the Data bit length is incorrect. • Review the data bit value of the property.
• Set it again on the communication settings utility.
0x80030004 The specification of the parity is incorrect. • Review the parity value of the property.
• Set it again on the communication settings utility.
0x80030005 The specification of the stop bit length is incorrect. • Review the stop bit value of the property.
• Set it again on the communication settings utility.
13 ERROR CODES
13.1 Error Code List 637
Error code Error description Corrective action
0x80030006 The specification of the wait time is incorrect. • Review the wait time of the property.
• Set it again on the communication settings utility.
0x80030007 The specification of the CR/LF is incorrect. • Review the CR/LF of the property.
• Set it again on the communication settings utility.
0x80030008 The specification of the timeout is incorrect. • Check the property timeout value.
• Set it again on the communication settings utility.
0x80030009 The specification of the station number is incorrect. • Review the station number of the property.
• Set it again on the communication settings utility.
0x8003000A USB communication setting is invalid. • Review the value of the property.
• Set it again on the communication settings utility.
0x8003000B USB model code is invalid.
0x8003000C Duplication was detected in station number of the USB • Review the station number of the property.
communication. • Set it again on the communication settings utility.
0x80200107 Communication error • Try the same method again.
• Exit the program and restart the personal computer.
0x80200203 Memory securing error • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
0x80201001 Specified CPU error • Check the CPU type set to ActCpuType.
• Check that the system configuration is not an unsupported configuration.
0x80201101 Already open error • When changing the communication target CPU, execute the Open
The Open method was executed in the open status. method after performing Close.
0x80201104 DLL load error • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
• Reinstall MX Component.
0x80201106 Error in Communication object generation • Exit the program and restart the personal computer.
• Reinstall MX Component.
0x80201201 Not yet open error • After executing the Open method, execute the corresponding method.
The Open method is not yet executed.
0x80201203 Memory securing error • Exit the program and restart the personal computer.
0x80204203 Memory securing error • Exit other programs and secure free memory area.
13 ERROR CODES
638 13.1 Error Code List
Error code Error description Corrective action
0x8020A104 DLL load error • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
• Reinstall MX Component.
0x8020A203 Memory securing error • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
0x80A00101 Not yet open error • After executing the Open method, execute the corresponding method.
The Open method is not yet executed.
0x80A00104 Already open error • When changing the communication target CPU, execute the Open
The Open method was executed in the open status. method after performing Close.
0x80A00105 Incorrect data type of the argument • Check the data type being used for the argument.
0x80A00106 Data range of the argument is invalid • Check the value being used for the argument.
0x80A00107 No command error • Not supported by the method.
0x80A00109 Data source cannot be opened. • Check the cable connection.
0x80A0010C The response format from the robot controller was • Take measures against noise
incorrect.
0xF0000001 No-license error
The license is not given to the personal computer.
• Using the license FD, give the license to the personal computer.
13
0xF0000002 Set data read error • Specify the correct logical station number.
Reading of the set data of the logical station number failed. • Set the logical station number on the communication settings utility.
0xF0000003 Already open error • When changing the communication target CPU, execute the Open
The Open method was executed in the open status. method after performing Close.
0xF0000004 Not yet open error • After executing the Open method, execute the corresponding method.
The Open method is not yet executed.
0xF0000005 Initialization error • Exit the program and restart the personal computer.
Initialization of the object possessed internally in MX • Reinstall MX Component.
Component failed.
0xF0000006 Memory securing error • Exit the program and restart the personal computer.
Securing of MX Component internal memory failed. • Exit other programs and secure free memory area.
0xF0000007 Function non-support error • Can not use because the corresponding method is not supported.
The method does not support.
0xF1000001 Character code conversion error • Check the character string specified in the method.
Character code conversion (UNICODE to ASCII code or • The ASCII character string acquired from the CPU module is abnormal.
ASCII code to UNICODE) failed. • Review the system, e.g. CPU module, module setting and cable status.
• Exit the program and restart the personal computer.
• Retry the GetCpuType method.
0xF1000002 First I/O number error • Check the value of the first I/O number specified in the method.
The first I/O number specified is an unauthorized value. • Using the GPP function, check the CPU module parameters (I/O
A matching first I/O number does not exist. assignment).
0xF1000003 Buffer address error • Check the value of the buffer address specified in the method.
The buffer address specified is an unauthorized value.
The buffer address is outside the range.
0xF1000004 Buffer read size error • Perform reopen processing.
As a result of buffer read, the specified size could not be • Review the system, e.g. CPU module, module setting and cable status.
acquired. • Retry.
• Exit the program.
0xF1000005 Size error • Check the size specified in the method.
The size specified in the read/write method is abnormal.
The read/write first number plus size exceeds the device or
buffer area.
0xF1000006 Operation error • Check the operation specifying value specified in the method.
The operation specified for remote operation is an
abnormal value.
0xF1000007 Clock data error • Check the clock data specified in the method.
The clock data is abnormal. • Set the correct clock data to the clock data of the CPU module.
0xF1000008 Monitored device registration count excess • Register the device points between 1 and 20 in the EntryDeviceStatus
The number of device points registered in the method.
EntryDeviceStatus method was 0 or less.
The number of device points registered in the
EntryDeviceStatus method was more than 20.
0xF1000009 Monitored device data registration error • After making deregistration in the FreeDeviceStatus method, execute the
EntryDeviceStatus method again.
13 ERROR CODES
13.1 Error Code List 639
Error code Error description Corrective action
0xF1000010 Device status monitor processing failed to start. • Start/end the device status monitor processing again in the
Device status monitor processing failed to end. EntryDeviceStatus method.
0xF1000011 The VARIANT argument data type is wrong. • Reexamine the data type specified for the VARIANT argument.
• Check whether the array variable size is large enough.
• Check whether the data type specified in the corresponding method has
been set.
0xF1000012 The device status monitoring time interval is a value outside • Specify the device status monitoring time between 1 and 3600.
the range 1 second to 1 hour (1 to 3600).
0xF1000013 Already Connected error. • Execute the Connect method after executing the Disconnect method.
Connect was executed again after it was executed for the
same object.
0xF1000014 Invalid Telephone Number error. • Rectify the Telephone number and try to Connect again.
Characters other than "0123456789-*#" that are allowed for
telephone numbers are included.
0xF1000015 Exclusive Control Failure error. • In case if Connect/Disconnect method is being executed for any other
There was failure in the exclusive control process while object, execute the failed method (Connect/ Disconnect) again after the
executing the Connect and Disconnect method. completion of the Connect/ Disconnect method of that object.
• If the Connect/Disconnect process is in progress only for the self object,
perform the following.
Exit the program.
Restart the personal computer.
Reinstall MX Component.
0xF1000016 While connecting to the telephone line error. • Try Connecting again after disconnecting the application that is using the
The telephone line is connected to some other application, telephone line.
other than the one using MX Component.
0xF1000017 Telephone line not connected error. • (When Connect method has failed)
Telephone line is not connected. Execute Connect again after executing Disconnect method.
Connect was executed and the telephone line was • (When method other than Connect has failed)
connected, but it got disconnected due to some reason. Execute Disconnect method, Execute Connect and connect to the
telephone line. After connecting, execute the method that failed once
again.
0xF1000018 No Telephone number error. • In case of program settings type, set the telephone No. to the property
The telephone No. is not set. ActDialNumber. (Set the telephone No. to the properties ActDialNumber
The telephone No. or call back No. is not set, if the and ActCallbackNumber, if the connection method is automatic (when
connection method is Automatic (when specifying the call specifying the call back No.), call back connection (when specifying the
back No.), call back connection (when specifying the telephone No.), or call back request (when specifying the number).)
number), or call back Request(when specifying the • In case of utility settings type, set the telephone No. using the wizard.
number). (Set the telephone No. and call back No. , if the connection method is
automatic (when specifying the call back No.), call back connection (when
specifying the telephone No.), or call back request (when specifying the
number).)
0xF1000019 Not Closed error. • Try Disconnect again after executing Close.
Disconnect was executed while in Open state.
0xF100001A Target telephone line connection mismatch error. • If you want to connect to a different telephone number, Execute
Connect was tried for a different telephone number using Disconnect with respect to the telephone line that is already connected
the port which is already connected to a telephone line. and executes Connect after it gets disconnected.
(When the method of connection is a callback reception, it • In case of connecting the telephone line with callback reception, use the
is considered that the telephone number is different from Connect of the connection method that is executed at the earliest in the
methods of connection in other than the callback reception.) same port as callback reception.
0xF100001B Control Type Mismatch error. • Execute Disconnect for the object currently connected to the telephone
An object, whose control type is different from that of the line and execute Connect once again after the telephone line gets
object already connected to the telephone line, tried to disconnected.
Connect.
0xF100001C Not Disconnected error. • Execute Disconnect for all the Connected objects. Try Disconnect again
When Disconnect method is executed for the object for the object that actually performed the telephone line connection.
connected to the telephone line, it is found that other
objects are in connected state.
0xF100001D Not Connected error. • Execute Open again after executing Connect.
Open was executed before Connect. Or, Disconnect was • Or execute Disconnect again after executing Connect.
executed.
0xF100001E Fatal error • Exit the program.
• Restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
13 ERROR CODES
640 13.1 Error Code List
Error code Error description Corrective action
0xF100001F Open time setting error • Check the telephone number and the port number.
There are some differences in telephone number and the • Check the Connect way.
port number settings used during Connect and Open.
There are some errors in Connect way.
0xF1000020 GX Simulator3 did not start error • Start GX Simulator3.
0xF1000021 No data error • Check the file.
The size of the specified file is '0'.
0xF1000022 File size error • Check the file.
The specified file size is too large.
0xF1000023 File input/output error • Check the file name.
An error occurred while saving a file.
0xF1000024 No file found error • End the search.
No more files not found.
0xF1000025 File name error • Check the file name.
The file name is too long.
Set a transfer source directory name within 188 bytes.
Set a transfer source file name within 318 bytes.
Set a transfer destination file name within 259 bytes.
13
0xF2000002 There is an error response from the target telephone. • Check the value of the properties set in case of program settings type.
Causes can be the following. • Check the contents of the detailed settings that were set using the wizard
Communication error has occurred. in case of utility settings type.
0xF2000003 Invalid data was received. • Retry.
Causes can be the following. • Check the communication device used at the other end.
Incorrect data packet is received due to noise.
0xF2000004 There is no response from the modem. • Check the status of the modem.
Causes can be the following. • Check the telephone number.
Abnormality in the modem • If the problem persists even after checking the above points, change the
Telephone number setting mistake value of the properties set (Properties such as
ActConnectionCDWaitTime etc. , which set the timing) in case of program
settings type and change the contents of the detailed settings that were
set using the wizard in case of utility settings type.
0xF2000005 There are chances that the line is not disconnected. • Check the telephone line.
0xF2000006 The PC modem did not receive the AT command. • Check the contents of the AT command.
Causes can be the following. • Check the status of the modem.
Invalid AT command was specified.
Abnormality in the modem.
0xF2000007 Modem did not respond properly to the standard escape • Check the modem.
command. • Confirm whether the value of the time-out is too small. ( 5000ms or more
is recommended. )
0xF2000009 Modem does not respond properly to the line Disconnect • Check the modem.
command.
0xF200000A Target did not receive the signal. • Check the Receive settings of the modem at the other end.
The Receive settings of the modem at the other end may be • Check if the other end is busy.
incorrect. • Check the telephone number.
The other end may be busy.
The telephone number may be incorrect.
0xF200000B Timeout reached for the call back receive waiting time. • Increase the call back receive waiting time
ActCallbackReceptionWaitingTimeOut and execute connect again.
0xF200000C Password of QJ71C24 units could not be resolved. • Set the password to ActPassword property and execute the failed method
again.
0xF2010001 The callback line disconnect wait time is other than 0 -180 • Check whether the callback line disconnect wait time is with in 0 - 180
Seconds. Seconds.
The callback execution delay time is other than 0 -1800 • Check whether the callback execution delay time is within 0 - 1800
Seconds. Seconds.
The telephone number is more than 62 characters. • Check whether the telephone number is less than or equal to 62
characters.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0xF2010002 QJ71C24 did not receive the specified connection method. • Check whether the settings of QJ71C24 and the MX Component are
Causes can be the following. matching.
Incorrect Connection method
Incorrect telephone number for Call back
13 ERROR CODES
13.1 Error Code List 641
Error code Error description Corrective action
0xF2010003 QJ71C24 does not permit the automatic connection (during • Check the settings of QJ71C24.
fixed Call back or when the number is specified.)
0xF2100005 There are chances that the line is not disconnected. • If there is no problem with the modem or the telephone line, change the
value of the properties set (Properties like ActConnectionCDWaitTime etc.
, which set the timing) in case of program settings type and change the
contents of the detailed settings that were set using the wizard in case of
utility settings type.
0xF2100006 Modem did not receive the startup command AT. • Change the settings of the property ActATCommand in case of program
settings type.
• Change the command AT that were set using the wizard in case of utility
settings type.
0xF2100007 The PC modem does not respond to the Escape command. • If there is no problem with the modem, change the value of the properties
set (Properties like ActConnectionCDWaitTime etc. , which set the timing)
in case of program settings type and change the contents of the detailed
settings that were set using the wizard in case of utility settings type.
0xF2100008 There was no response from the modem for the data sent • Change the value of the properties set (Properties such as
from the PC. ActConnectionCDWaitTime etc. , which set the timing) in case of program
settings type and change the contents of the detailed settings that were
set using the wizard in case of utility settings type.
0xF21000** There is no response from the modem. • Check the status of the modem.
Causes can be the following. • Check the telephone number.
Abnormality in the modem • If the problem persists even after checking the above points, change the
Telephone number setting mistake value of the properties set (Properties such as
ActConnectionCDWaitTime etc. , which set the timing) in case of program
settings type and change the contents of the detailed settings that were
set using the wizard in case of utility settings type.
0xF202**** There was a communication failure. • Check whether the cable is broken.
Following causes can be considered depending on the • Check whether the specified port is not supported.
status. • Check whether correct COM port is set.
Communication time over (Break in cable, the specified port • Check if the modem power is switched OFF.
not supported, mistake in specifying the COM port) • For detailed troubleshooting, please refer to the details of the error code
Modem's power is switched OFF. got after replacing the first four digits with "0x0180".
e.g. In case of "0xF202480B", please refer to the code "0x0180480B".
0xF3000001 Label error • Review the label name.
The label character string specified in the method is an • Start Label Utility, please check System label information.
unauthorized label character string. • Refer to the label name format of each function, and check if the correct
format is used.
0xF3000002 Label Service not started • Exit the program and restart the personal computer.
• Reinstall MX Component.
• Start Label Utility, please check System label information.
0xF3000003 MMS Service not started • Exit the program and restart the personal computer.
• Reinstall MX Component.
0xF3000004 The specified LabelSpace is currently being used and • Retry.
cannot be opened.
0xF3000005 Label data access timeout error • Retry.
• Reduce system label definition.
0xF3000006 MUTEX acquisition error • Exit the program and restart the personal computer.
Acquisition of MUTEX to exercise exclusive control failed.
0xF4000001 to 64-bit control error • Exit the program and restart the personal computer.
0xF400000F • Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0xF4000010 to 64-bit control access error • Execute the Open method again after executing the Close method.
0xF4000012 • Check if 10 minutes or longer have passed since the DotUtlType64 control
was last accessed.
• Reduce the amount of data handled in a single process.
• Exit the program and restart the personal computer.
• Reinstall MX Component.
• Please contact your local Mitsubishi Electric sales office or representative.
0xF4001001 Not yet open error After executing the Open method, execute the corresponding method.
The Open method is not yet executed.
0xF4001002 Already open error When changing the communication target CPU, execute the Open method
The Open method was executed in the open status. after performing Close.
0xF4001003 Registry search failed. • Exit the program and restart the personal computer.
• Exit other programs and secure free memory area.
• Reinstall MX Component.
13 ERROR CODES
642 13.1 Error Code List
Error code Error description Corrective action
0xFF000001 MX Component trial version error • Uninstall the trial version and install the commercial version, or reinstall
Expired MX Component trial version the trial version.
*1 For the method for increasing the minimum working set size of the personal computer, refer to the following:
MELSEC Data Link Library Reference Manual
• Error code for the robot controller
Error code Error description Corrective action
100 Number of ENQ retries is exceeded. • Take measures against noise
101
102 Number of NACK retries is exceeded.
103 The message is too long.
104 Reception time-out • Check the cable connection.
105 DSR signal was not detected.
106 The line was disconnected. • Check the cable connection.
• Open again.
107
108
Transmission time-out
Sequence number is incorrect.
• Check the cable connection.
• Take measures against noise
13
200 Included DLL was not found. • Reinstall MX Component.
13 ERROR CODES
13.1 Error Code List 643
13.2 Error Codes Returned by CPUs, Modules, and
Network Boards
This section explains the error codes returned by CPUs, modules, and network boards.
Error codes may not be returned as described in Page 644 Error code list.
Check Page 644 Considerations for confirming error codes firstly.
*1 Refer to "Point."
*2 The error codes are also described in the following section:
Page 616 Error Code List.
13 ERROR CODES
644 13.2 Error Codes Returned by CPUs, Modules, and Network Boards
Label specification error
The following error code will be returned if an error related to labels in the CPU occurred such as; system label Ver.2 does not
exist, the information of system label Ver.2 is modified while reading/writing devices that are corresponding to the system label
Ver.2.
Error code Error description Corrective action
0x01802001 Label information error • When a system label is specified as a label, review the global label name assigned
to the system label name in Label Utility.
• Check if the global labels exist in the CPU.
0x010A4000 to 0x010A4FFF For the errors and their corrective actions, refer to the following manual.
MELSEC iQ-R CPU Module User's Manual (Application)
If the exception processing to acquire the HRESULT type returned value is not performed, the dispatch
interface displays the error dialog box on the operating system level when E_POINTER (E_XXXXX defined
returned value) or the like is returned from the Act control.
13 ERROR CODES
13.3 HRESULT Type Error Codes 645
APPENDIX
Appendix 1 Changes from Previous Version
This section shows the additions and changes with upgrade.
Version Item Description Reference
Version 5.000A Control • Controls for 64-bit are supported.
• The DotSupportMsg control is integrated into the
ActSupportMsg control.
Function Functions for 64-bit are supported. Page 416 FUNCTIONS
Operating environment Only Windows 10 is supported. • MX Component Version 5
Installation Instructions
Development software Only the following software is supported:
• Page 24 Operating Environment
• Visual Studio 2019
• Microsoft Excel 2019
• Microsoft Access 2019
Product to be Products to be discontinued are no longer supported.
discontinued
Communication type The following Communication types are no longer supported. Page 26 Supported Communication
• Q series bus communication Routes
• GX Simulator communication
• Modem communication
Installation folder The default installation folder is changed from "C:\MELSEC" to
"C:\Program Files\MELSOFT."
Manual Available for e-Manual Viewer
Version 5.002C Module FX5-ENET and FX5-ENET/IP are supported. Page 31 Module list
Communication route The following communication routes are supported: • Page 199 Ethernet Communication
• Ethernet communication when a connection target CPU is an • Page 333 GOT Transparent
FX5CPU (using an Ethernet adapter) Communication
• GOT Transparent Communication when a connection target
CPU is an FX5CPU (using an Ethernet adapter)
Development software The following software is supported: • MX Component Version 5
• Microsoft Excel for Microsoft 365 Installation Instructions
• Microsoft Access for Microsoft 365 • Page 24 Operating Environment
Version 5.003D Module FX5S and FX5-CCLGN-MS are supported. Page 31 Module list
Operating environment Windows11 is supported. • MX Component Version 5
Development software The following software is supported: Installation Instructions
• Page 24 Operating Environment
• Visual Studio 2022
• Microsoft Excel 2021
• Microsoft Access 2021
Version 5.004E Module R64MTCPU, MELSECWinCPU, and L32HCPU are supported. Page 31 Module list
Operating environment Windows 10 IoT Enterprise 2019 LTSC is supported. • MX Component Version 5
Installation Instructions
• Page 24 Operating Environment
Network For CC-Link IE Controller Network communication and CC-Link IE • Page 309 CC-Link IE Controller
Field Network communication the connected stations of which are Network Communication
RCPUs, the access via MELSEC iQ-R series CC-Link IE TSN, • Page 314 CC-Link IE Field Network
CC-Link IE Controller Network, CC-Link IE Field Network, and Communication
Ethernet is supported.
Version 5.006G Module RJ71GN11-SX, NZ81GN11-T2, and NZ81GN11-SX are Page 31 Module list
supported.
Network The communication using a CC-Link IE TSN board (NZ81GN11- Page 319 CC-Link IE TSN
T2, NZ81GN11-SX) is supported. Communication
Version 5.007H Network For a MELSEC iQ-R series redundant CPU, the access to the • Page 199 Ethernet communication
control system is supported. when the connected station is
MELSEC iQ-R series-compatible
E71 (TCP)
• Page 309 CC-Link IE Controller
Network communication when the
connected station is an RCPU
• Page 652 For RnPCPU (redundant
mode) and RnPSFCPU
APPX
646 Appendix 1 Changes from Previous Version
Appendix 2 Concept of Routing Parameters
The routing function is used by a station of a CPU module in a multi-level system to perform the transient transmission to a
station of another network number.
To perform the routing function, the "Routing parameters" must be set to associate the network numbers and stations acting
as bridges.
Request
source
1Mp1 1N2 1Ns3 3Mp1 3Ns2
2Ns2 2N3
APPX
Appendix 2 Concept of Routing Parameters 647
Routing parameter setting areas and data
For transient transmission, the routing parameter setting areas differ according to the system.
Two-level system
The routing parameters are not required to be set because transient transmission is performed to within the same network.
Request
source
Network No.1
Request
target
Request
source
Relay station
Network No.1 Network No.2
Request
target
Request
source
Relay station 1 Relay station 2
Network No.1 Network No.2 Network No.3
Request
target
APPX
648 Appendix 2 Concept of Routing Parameters
Multi-level 3 (four or more networks)
Set the routing parameters to the request source and relayed stations. *1
To the request source, set the data to access the request target (network No.4).
To the relayed station 1 (the nearest relayed station to the request source), set the data to access the request target (network
No.4).
To the relayed station 2 (the nearest relayed station to the request target), set the data to access the request source (network
No.1).
To the relayed station 3 (relayed station other than 1 and 2), set the data to access the request target (network number No.4)
and request source (network No.1).
Request
source
Relay station 1 Relay station 3 Relay station 2
Network No.1 Network No.2 Network No.3 Network No.4
Request
target
*1 The following explains the case when the request source is a personal computer connected to Ethernet.
The routing parameter settings are not necessary for the request source.
The routing parameter settings (routing settings for for MELSEC iQ-R series) are necessary for relay stations so that they can access
the request source.
Set the routing parameter by referring the following manual:
MELSEC-Q/L Ethernet Interface Module User's Manual (Application)
MELSEC iQ-R CPU Module User's Manual (Application)
APPX
Appendix 2 Concept of Routing Parameters 649
Appendix 3 Multi-CPU System
The valid CPU number specified for a multi-CPU system is that of the last accessed station only.
When accessing the non-controlled CPU of the relayed module on the accessed station, use the modules of function version
B as the relayed modules and QCPUs (Q mode) on the host station, all relayed stations and accessed station.
Ò Ó Ô Õ
Ò Ó Ô Õ 1 2 Ò’ Ó’ Ô’ Õ’ 2’
MELSECNET/H
APPX
650 Appendix 3 Multi-CPU System
Appendix 4 The Number of Mountable Network
Modules for Q00UJCPU, Q00UCPU, and
Q01UCPU
The following shows the number of mountable network modules when using Q00UJCPU, Q00UCPU, and Q01UCPU.
Network Module Number of Mountable Modules
MELSECNET/H module 1 module
Ethernet module 1 module
CC-Link module (Function version B or later) 2 modules
CC-Link IE Controller Network module 1 module
Ex.
Since the number of applicable Ethernet modules is 1, the part of the system indicated by the dotted line cannot be
configured.
MX Component
Ethernet
Ethernet
A
QCPU QJ71 QCPU QJ71
Q QCPU QJ71
(Q mode) E71 (Q mode) E71
1 (Q mode) E71
Ex.
Since the number of applicable MELSECNET/H modules is one, the part of the system indicated by the dotted line cannot be
configured.
MX Component
MELSECNET/H
QCPU QJ71
QJ
(Q mode) LP2
P2
APPX
Appendix 4 The Number of Mountable Network Modules for Q00UJCPU, Q00UCPU, and Q01UCPU 651
Appendix 5 Compatibility with Redundant CPU
This section explains the compatibility of MX Component with a redundant CPU.
APPX
652 Appendix 5 Compatibility with Redundant CPU
Operation at occurrence of system switching
Access to the control system after system switching is continued even if a communication error occurs.
The following shows an example of Ethernet connection.
Ex.
When communication error occurs
MX Component
Ethernet
Communication
error
Control system Standby system
Tracking cable
MX Component
Tracking cable
A
It may take time to connect to the control system and start communication after a communication error occurs.
APPX
Appendix 5 Compatibility with Redundant CPU 653
Automatic switching of communication route
If a communication error occurs during access to the redundant CPU connected to Ethernet and CC-Link IE Controller
Network, the communication route is automatically switched to continue access to the control system.
Hereinafter, this automatic switching of the communication route is referred to as route switch.
For details on special registers related to route switch, refer to the following:
MELSEC iQ-R CPU Module User's Manual (Application)
APPX
654 Appendix 5 Compatibility with Redundant CPU
For QnPRH
APPX
Appendix 5 Compatibility with Redundant CPU 655
Operation at occurrence of system switching
When system switching occurs during access to the redundant CPU after selection of "Control system," access is continued
as described below.
MX Component
Tracking cable
MX Component
Tracking cable
APPX
656 Appendix 5 Compatibility with Redundant CPU
Connection to MELSECNET/H, Ethernet or CC-Link IE Controller Network
Access to the control system after system switching is continued even if a communication error occurs.
The following shows an example of Ethernet connection.
Ex.
When communication is normal
MX Component
Ethernet
Tracking cable
MX Component
Tracking cable
APPX
Appendix 5 Compatibility with Redundant CPU 657
Ex.
When communication error occurs
MX Component
Ethernet
Communication
error
Control system Standby system
Tracking cable
MX Component
Tracking cable
In the case of Ethernet connection, it may take time to connect to the control system and start communication
after a communication error occurs.
APPX
658 Appendix 5 Compatibility with Redundant CPU
Automatic switching of communication route
If a communication error occurs during access to the redundant CPU connected to MELSECNET/H, Ethernet or CC-Link IE
Controller Network in Control system specification, the communication route is automatically switched to continue access to
the control system.
Hereinafter, this automatic switching of the communication route is referred to as route switch.
The following describes the route switch conditions, how to check for route switch occurrence, and examples of access by
route switch.
*1 In the separate mode, a system switching by the system does not occur at power OFF/RESET of the control system.
However, if a tracking error occurred at a start of communication, access to the control system is not continued by route
switch even if tracking is recovered after that.
Includes the status in which either redundant CPU is shut OFF or reset.
*1 Even if SM1600 is ON, route switch does not occur when the CPU is not accessed via the tracking cable.
*2 When using SM1600, SD1590 and SD1690 to estimate whether route switch has occurred or not for the redundant CPU connected to
Ethernet, select the following items in the redundant setting of the network parameter of GX Works2.
Issue a system switching request at disconnection detection.
Issue a system switching request at communication error.
Check the following based on the status of the above special relay and special registers, and remove the error cause.
• Check the redundant CPU for an error.
• Check the tracking cable status and whether the tracking cable is correctly connected.
• Check the relevant network module for an error and the network where the relevant network module is connected for an
error.
APPX
Appendix 5 Compatibility with Redundant CPU 659
Examples of access by route switch
The following shows examples of route switch during access to the control system by Ethernet connection.
Ex.
When system switching occurs at communication error
MX Component
Ethernet
Communication
error
Control system Standby system
Tracking cable
MX Component
Tracking cable
Ex.
When standby system error occurs
MX Component
Ethernet
Standby
system fault
Tracking cable
MX Component
Ethernet
Tracking cable
APPX
660 Appendix 5 Compatibility with Redundant CPU
• Route switch is not executed if a communication error occurs at a communication start for the redundant
CPU specified as the target. (A communication error occurs.)
• In the case of Ethernet connection, it may take time to connect to the control system and start
communication after a communication error occurs.
• If a communication error occurs, refer to the following and remove the communication disturbance.
Page 659 How to check whether route switch occurred or not
Page 660 Examples of access by route switch
Special relays and special registers for estimating route switch occurrence
The following indicates details of the special relay and special registers to be monitored when estimating whether route switch
occurred or not.
Number Name Description Explanation
SM1600 Other system error flag OFF : No error • Turn ON when an error occurs during redundant system error check. (Turn on when
ON : Error either of bits for SD1600 is ON.)
• Turn OFF after recovery from error.
SD1590 Module number for Module number for • Any of the following bits turns ON corresponding to module number for network module
network module network module requesting path switch in host system.
requesting path switch in requesting path switch in • Turn OFF by the system after recovery from error of the relevant module by user.
host system host system Bit status
b15 to b11 to b1 b0 0: OFF
SD1590 0 0/1 0/1 0 1: ON
• Refer to SD1690 for module number for network module requesting path switch in other
system.
A
SD1690 Module number for Module number for • Any of the following bits turns ON corresponding to module number for network module
network module network module requesting path switch in other systems.
requesting path switch in requesting path switch in • Turn OFF by the system after recovery from error of the relevant module by user.
other system other system Bit status
b15 to b11 to b1 b0 0: OFF
SD1690 0 0/1 0/1 0 1: ON
• Refer to SD1590 for module number for network module requesting path switch in host
system.
APPX
Appendix 5 Compatibility with Redundant CPU 661
Combination table
Communications via Q series redundant type extension base unit (Q65WRB) are supported.
The following table shows the supported/unsupported combinations.
: Applicable, : Not applicable
Product name Module model Function Combination
version When mounted to the When mounted to the
main base extension base
MELSECNET/H module QJ71LP21-25 D or later
QJ71LP21S-25 D or later
QJ71LP21G D or later
QJ71BR11 D or later
QJ72LP25-25
QJ72LP25G
QJ72BR15
QJ71LP21
Ethernet module QJ71E71
QJ71E71(N1)-B2 D or later
QJ71E71(N1)-B5 D or later
QJ71E71-100 D or later
Serial communication module QJ71C24N
QJ71C24N-R2
QJ71C24N-R4
*1
CC-Link module QJ61BT11N
CC-Link IE Controller Network module QJ71GP21-SX D or later
QJ71GP21S-SX D or later
*1 Cannot be used when the first five digits of the serial number is 06051 or lower.
APPX
662 Appendix 5 Compatibility with Redundant CPU
Appendix 6 Character Strings that cannot be Used
for Label Names
Reserved word
The reserved words cannot be used for label names.
The following tables shows character strings that cannot be used for label names.
Category Character string
Class identifier VAR, VAR_RETAIN, VAR_ACCESS, VAR_CONSTANT, VAR_CONSTANT_RETAIN, VAR_INPUT, VAR_INPUT_RETAIN,
VAR_OUTPUT, VAR_OUTPUT_RETAIN, VAR_IN_OUT, VAR_IN_EXT, VAR_EXTERNAL, VAR_EXTERNAL_CONSTANT,
VAR_EXTERNAL_CONSTANT_RETAIN, VAR_EXTERNAL_RETAIN, VAR_GLOBAL, VAR_GLOBAL_CONSTANT,
VAR_GLOBAL_CONSTANT_RETAIN, VAR_GLOBAL_RETAIN
Data Type BOOL, BYTE, INT, SINT, DINT, LINT, UINT, USINT, UDINT, ULINT, WORD, DWORD, LWORD, ARRAY, REAL, LREAL, TIME,
STRING, TIMER, COUNTER, RETENTIVETIMER, POINTER, Bit, Word [Unsigned]/Bit String [16-bit], Double Word [Unsigned]/Bit
String [32-bit], Word [Signed], Double Word [Signed], FLOAT (Single Precision), FLOAT (Double Precision), String, Time, Timer,
Counter, Retentive Timer, Pointer
Data type hierarchy ANY, ANY_NUM, ANY_BIT, ANY_REAL, ANY_INT, ANY_DATE
ANY_SIMPLE, ANY16, ANY32
Device name X, Y, D, M, T, B, C, F, L, P, V, Z, W, I, N, U, J, K, H, E, A, SD, SM, SW, SB, FX, FY, DX, DY, FD, TR, BL, SG, VD, ZR, ZZ
Character string X0 or the like
recognized as device
(Device name +
numeral)
ST operator NOT, MOD
(, ), -
IL operator LD, LDN, ST, STN, S, S1, R, R1, AND, ANDN, OR, ORN, XOR, XORN, ADD, SUB, MUL, DIV, GT, GE, EQ, NE, LE, LT, JMP, JMPC,
JMPCN, CAL, CALC, CALCN, RET, RETC, RETCN
LDI, LDP, LDF, ANI, ANDP, ANDF, ANB, ORI, ORP, ORF, ORB, MPS, MRD, MPP, INV, MEP, MEF, EGP, EGF, OUT(H), SET, RST,
PLS, PLF, FF, DELTA(P), SFT(P), MC, MCR, STOP, PAGE, NOP, NOPLF
SFC instruction SFCP, SFCPEND, BLOCK, BEND, TRANL, TRANO, TRANA, TRANC, TRANCA, TRANOA, SEND, TRANOC, TRANOCA,
TRANCO, TRANCOC, STEPN, STEPD, STEPSC, STEPSE, STEPST, STEPR, STEPC, STEPG, STEPI, STEPID, STEPISC,
A
STEPISE, STEPIST, STEPIR, TRANJ, TRANOJ, TRANOCJ, TRANCJ, TRANCOJ, TRANCOCJ
ST code body RETURN, IF, THEN, ELSE, ELSIF, END_IF, CASE, OF, END_CASE, FOR, TO, BY, DO, END_FOR, WHILE, END_WHILE,
REPEAT, UNTIL, END_REPEAT, EXIT, TYPE, END_TYPE, STRUCT, END_STRUCT, RETAIN, VAR_ACCESS, END_VAR,
FUNCTION, END_FUNCTION, FUNCTION_BLOCK, END_FUNCTION_BLOCK, STEP, INITIAL_STEP, END_STEP, TRANSITION,
END_TRANSITION, FROM, UNTILWHILE
Function name in Function names in application functions AND_E, NOT_E or the like
application function
Function block name in Function block names in application functions CTD, CTU or the like
application function
Symbol /, \, *, ?, <, >, |, ", :, [, ], ,, =, +, %, ', ~, @, {, }, &, ^, ., tab character
;
!, #, $, `
Date and time literal DATE, DATE_AND_TIME, DT, TIME, TIME_OF_DAY, TOD
Others ACTION, END_ACTION, CONFIGURATION, END_CONFIGURATION, CONSTANT, F_EDGE, R_EDGE, AT, PROGRAM, WITH,
END_PROGRAM, TRUE, FALSE, READ_ONLY, READ_WRITE, RESOURCE, END_RESOURCE, ON, TASK, EN, ENO,
BODY_CCE, BODY_FBD, BODY_IL, BODY_LD, BODY_SFC, BODY_ST, END_BODY, END_PARAMETER_SECTION,
PARAM_FILE_PATH, PARAMETER_SECTION, SINGLE, RETAIN, INTERVAL
String that starts with K1AAA or the like
K1 to K8
Statement in ladder ;FB BLK START, ;FB START, ;FB END, ;FB BLK END, ;FB IN, ;FB OUT, ;FB_NAME, ;INSTANCE_NAME, ;FB, ;INSTANCE
language
Common instruction MOV or the like
Windows reserved word COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9,
AUX, CON, PRN, NUL
Surrogate pair 0xD800 to 0xDBFF, 0xDC00 to 0xDFFF
Control code U+0000 to U+001F, U+0080 to U+009F, U+00A0 to U+00BF, U+FFFE, U+FFFF
Environment dependent character
APPX
Appendix 6 Character Strings that cannot be Used for Label Names 663
Considerations on using labels
• More than 32 characters cannot be used for system label Ver.1.
• More than 256 characters cannot be used for system label Ver.2.
(More than 32 characters cannot be used for a system label list name, and more than 246 characters cannot be used for a
structure name.)
• A space cannot be used.
• A numeral cannot be used at the beginning of label name.
• A label name is not case-sensitive.
• An underscore (_) cannot be used at the beginning or end of label name.
Consecutive underscores (_) cannot be used for a data name or a label name.
• The digit-specified bit devices cannot be used.
• The indexing cannot be used.
• The buffer memory cannot be specified.
• The device check cannot be executed when registering labels.
APPX
664 Appendix 6 Character Strings that cannot be Used for Label Names
Appendix 7 Performance
This section explains the performances in the following system configuration.
Image diagram Item Description
Personal OS Windows 10 Enterprise (64-bit version)
computer
CPU Intel Core i5-4590 (3.30GHz)
Memory 16 GB
R08CPU
Target CPU R08CPU (Connecting personal computer and target CPU on 1:1 basis)
Network TCP/IP
Ethernet
Number of system label registration 1000
Time performance
This explains read/write performance of the device and label.
Processing/Number of label registration Processing time (ms)
Device system label Ver.1 system label Ver.2
first time second time first time second time
Batch read 1 word (1 label) 5.9 230.5 10.7 174.4 12.5
960 words (1 label) 12.3 227.3 17.3 182.0 19.8
12288 words (1 label) 157.9 353.5 164.5 330.3 166.9
Batch write 1 word (1 label) 5.6 218.1 11.0 177.5 12.0
960 words (1 label) 17.6 232.0 22.6 189.9 24.6
12288 words (1 label) 161.4 367.7 170.1 327.3 171.6
Random read 1 word (1 label) 5.6 31.0 4.5 40.8 5.0
128 words (128 labels) 24.1 1802.7 38.2 2381.9 45.3
256 words (256 labels) 42.3 3550.2 136.3 4866.6 169.8 A
Random write 1 word (1 label) 5.0 26.2 4.3 38.5 5.0
128 words (128 labels) 30.5 1817.0 41.8 2334.5 47.0
256 words (256 labels) 52.6 3550.1 140.2 4799.8 166.1
Memory performance
The following shows the amount of cache memory used for DotUtlType control.
Processing Memory usage amount [KB]
system label Ver.1 system label Ver.2
Batch read 1000 labels (160)*1 (160)*1
Batch write
Random read
Random write
APPX
Appendix 7 Performance 665
Performance of the Label Service
Time performance
This explains time performance of the Label Service.
Processing Type of system label Processing time (ms)
Memory load processing at startup of personal computer by System label of structure type 4101
Label service
System label other than structure type 6161
Update of system label data System label of structure type 5064
System label other than structure type 7081
Memory performance
The following shows the amount of memory usage (working set) of the Label Service.
• Measurement condition: A number of registered system labels: 1000
Type of system label Memory usage amount [KB]
system label Ver.1 system label Ver.2
System label of structure type 30256 30268
System label other than structure type 31604 32156
A number of registered system labels written above as measurement condition differ depending on whether
the data type is structure type or other than structure type.
• Other than structure type: Number of registered system labels = Number of system labels registered in
Label Utility
• Structure type: Number of registered system labels = (1+ Number of structure elements) Number of
system labels registered in Label Utility
As for "A number of registered system labels: 1000" in the table above, 100 system labels of which data types
are structure, and which have nine structure elements are defined. The formula is as follows: (1 + 9) 100 =
1000.
APPX
666 Appendix 7 Performance
Performance of the Label Utility
Time performance
This explains time performance of the Label Utility.
Processing Type of system label Processing time (s)
system label Ver.1 system label Ver.2
Change of label space System label of structure type 7.2 6.2
System label other than structure type 7.7 8.0
Save of label space System label of structure type 8.7 6.8
System label other than structure type 9.2 9.1
Import System label of structure type 0.9 0.6
System label other than structure type 0.8 0.9
Export System label of structure type 0.8 0.9
System label other than structure type 0.8 0.9
The processing time of "Save of label space" in the table above will be increased as the number of registered system labels is
increased because the check processing before the save takes longer time for its processing.
Therefore, the processing time is increased more than the increase rate of a number of registered system labels.
Memory performance
The following shows the amount of memory usage (working set) of the Label Utility.
• Measurement condition: A number of registered system labels: 1000
Type of system label Memory usage amount [KB]
system label Ver.1 system label Ver.2
System label undefined 4108 4316
System label of structure type 8608 7500
System label other than structure type 12872 12256
A
APPX
Appendix 7 Performance 667
DISK occupied size
The following table shows the DISK occupied size of the system label database.
Type of system label DISK occupied size (KB)
system label Ver.1 system label Ver.2
System label undefined (A number of registered system labels: 0) 1756 24
System label of structure type (A number of registered system labels: 2310 89
1000)
System label other than structure type (A number of registered system 2370 246
labels: 1000)
A number of registered system labels written above as measurement condition differ depending on whether
the data type is structure type or other than structure type.
• Other than structure type: Number of registered system labels = Number of system labels registered in
Label Utility
• Structure type: Number of registered system labels = (1+ Number of structure elements) Number of
system labels registered in Label Utility
As for "A number of registered system labels: 1000" in the table above, 100 system labels of which data types
are structure, and which have nine structure elements are defined. The formula is as follows: (1 + 9) 100 =
1000.
APPX
668 Appendix 7 Performance
Appendix 8 Installing a USB Driver
To communicate with a CPU module via USB, installing a USB driver is required.
Operating procedure
1. Connect a personal computer and a CPU module with a USB cable, and turn the power of the CPU module ON.
2. Right-click "Unknown Device" and click "Update driver" in Windows Device Manager.
3. Select "Browse my computer for drivers" on the "Update Drivers" screen, and specify 'Easysocket\USBDrivers' in the
folder where MX Component Version 5 is installed on the next screen.
When an installation folder is not changed at the installation, the installation folder is as follows:
• 64-bit version operating system: C:\Program Files (x86)\MELSOFT\Easysocket\USBDrivers
• 32-bit version operating system: C:\Program Files\MELSOFT\Easysocket\USBDrivers
If multiple MELSOFT products are already installed, specify 'Easysocket\USBDrivers' which is in the folder of the first product
installed.
If 'Easysocket\USBDrivers' does not exist, search for 'USBDrivers' in the Windows explorer.
The installation succeeded if "MITSUBISHI Easysocket Driver" is displayed on "Universal Serial Bus controllers."
APPX
Appendix 8 Installing a USB Driver 669
Appendix 9 Programing Examples for Monitoring
Word Device Status
This section explains the programming examples to monitor word devices for negative values using the EntryDeviceStatus
function.
When lData = -1
Private Sub AxActUtlType1_OnDeviceStatus(ByVal szDevice As String, ByVal lData As Long, ByVal lReturnCode As Long)
Dim lCheckData As Long 'Value set to EntryDeviceStatus (value before "0"s are stored into the upper 2 bytes)
'If the device value whose condition was established is a WORD type negative value (greater than 32767 (7FFF[Hex])
If lData > 32767 Then
'Since "0"s are stored in the upper 2 bytes,
'calculates OR with FFFF0000[Hex] to convert the device value into a LONG type negative value.
lCheckData = lData Or &HFFFF0000
Else
'If the device value whose condition was established is positive, assigns the value as-is to lCheckData.
lCheckData = lData
End If
End Sub
APPX
670 Appendix 9 Programing Examples for Monitoring Word Device Status
When using Visual C++
The following is a programming example to monitor D0 for -10, D1 for 0, and D2 for 10 using Visual C++.
// If the set value is negative, stores "0"s into the upper 2 bytes
// for conversion into the value to be set to EntryDeviceStatus.
// Loops through the number of device points.
for(lCount = 0;lCount<=2; lCount++) {
// If the set value is negative
if (lInputData[lCount] < 0 ){
// Masks with 0x0000FFFF to store "0"s into upper 2 bytes.
lEntryData[lCount] = lInputData[lCount] & 0x0000FFFF;
// If the set value is positive
}else{
// Assigns the value as-is to lEntryData.
lEntryData[lCount] = lInputData[lCount];
}
}
A
// Executes EntryDeviceStatus.
lReturnCode = m_Actutltype.EntryDeviceStatus(szDevice,3,5,lEntryData);
When lData = -1
APPX
Appendix 9 Programing Examples for Monitoring Word Device Status 671
When using Visual C#
The following is a programming example to monitor D0 for -10, D1 for 0, and D2 for 10 using Visual C#.
// If the set value is negative, stores "0"s into the upper 2 bytes
// for conversion into the value to be set to EntryDeviceStatus.
// Loops through the number of device points.
for(iCount = 0;iCount<=2; iCount++) {
// If the set value is negative
if (iInputData[iCount] < 0 ){
// Masks with 0x0000FFFF to store "0"s into upper 2 bytes.
iEntryData[iCount] = iInputData[iCount] & 0x0000FFFF;
// If the set value is positive
}else{
// Assigns the value as-is to lEntryData.
iEntryData[iCount] = iInputData[iCount];
}
}
axActUtlType1.ActLogicalStationNumber = 0;
iReturnCode = axActUtlType1.Open();
// Executes EntryDeviceStatus.
iReturnCode = axActUtlType1.EntryDeviceStatus(szDevice, 3, 5, ref iEntryData[0]);
APPX
672 Appendix 9 Programing Examples for Monitoring Word Device Status
Appendix 10 Time-Out Periods
In MX Component, a time-out may occur at the period different from the value set to the ActTimeOut property in the Act
control.
This section explains the time-out periods in various status.
APPX
Appendix 10 Time-Out Periods 673
Appendix 11 Troubleshooting
This section explains the errors which may occur when using MX Component and the troubleshooting.
APPX
674 Appendix 11 Troubleshooting
Replacement of Ethernet modules
If the Ethernet modules are changed during Ethernet communication due to debugging, failure or the like, the other node
(personal computer) must be restarted.
(Because the Ethernet addresses (MAC addresses) differ between devices.)
Enter password to
Starting
unlock.
source
AAAA
Ethernet : Accessible
QCPU Ô QCPU Õ QCPU Ö
(Q QJ71 (Q QJ71 (Q QJ71 : Inaccessible
mode) E71 mode) E71 mode) E71
APPX
Appendix 11 Troubleshooting 675
Ethernet communication
• The communication line is disconnected if a CPU becomes faulty or an Ethernet module is reset during Ethernet
communication (when the protocol is TCP/IP).
In this case, perform the line close processing (Close) and then perform the reopen processing (Open).
• When two different communication systems (protocols) are used to access from one personal computer to one Q series-
compatible E71, two station numbers TCP/IP and for UDP/IP must be set.
However, it is not required to set different station numbers for TCP/IP and for UDP/IP when using MX Component Version 3
or later and Q series-compatible E71 with serial number "05051" or higher.
Ex.
When MX Component uses TCP/IP and GX Works2 uses UDP/IP
Personal computer
(TCP/IP) station number for MX Component: 2 Q series-compatible E71
(Station number: 1)
(UDP/IP) station number for GX Works2: 3
GX Works2(UDP/IP)
MX Component(TCP/IP)
APPX
676 Appendix 11 Troubleshooting
For communication
When the socket object generation error (0x01808007) occurs during communication
No. Condition Corrective action
1 When using GT SoftGOT Right-click and select [Run as administrator] when starting an application.
2 When the error cannot be solved by the above • Set a port number different from one used for another application to a personal computer side.
No.1 • Check whether the first character of the specified IP address is not '0.'
When setting the first character to '0,' the value of the target octet is processed as octal number.
3 When the error cannot be solved by the above Check the following items, and contact your local Mitsubishi Electric representative.
No.1 and No. 2 • System configuration (model name of the target programmable controller, model name of the
module, and used network)
• Name of personal computer (Manufacturer), CPU, memory size
• OS, Edition, 32-bit/64-bit
• MX Component version
• A function and argument of MX Component in which the symptom occurs
• Settings within "Communication Settings Utility"
• Occurrence frequency and procedure for a symptom
APPX
Appendix 11 Troubleshooting 677
When an error occurs in the setting for using controls in Visual
Studio .NET
An error may occur in the setting for using controls.
For the corrective actions, refer to the following 'Point'.
When creating an application using .NET Framework 4, .NET Framework 4.5, or .NET Framework 4.6 (The
following is an example for .NET Framework 4.) Add an application configuration file with the following
elements (app.config) to the folder which contains the .exe file of the application.
For details, refer to Visual Studio Help.
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
APPX
678 Appendix 11 Troubleshooting
When a link error occurs in creating a user program in Visual C++
A link error occurs if both '.NET control' (DotUtlType) and 'Act control' (ActUtlType) are used at the same time by pasting them
in a single program.
The corrective actions are shown below.
When using both .NET control (DotUtlType) and Act control (ActUtlType) by pasting them into a program,
A
perform the following operations by selecting [Project] [Properties] from Solution Explorer.
Select [Common Properties] [Framework and references].
Select "ActUtlTypeLib" from "Name" in "References," and change the setting of "Reference Assembly
Output" under "Build Properties" to "False."
Select "Interop.ActUtlTypeLib.1.0" from "Name" in "References," and change the setting of "Reference
Assembly Output" under "Build Properties" to "False."
Click the [OK] button to reflect the change of the setting.
APPX
Appendix 11 Troubleshooting 679
When an unstart error occurs during communication with GX
Simulator3
If GX Simulator3 communication is performed by importing the setting of MX Component Version 4.15R or earlier, GX
Simulator3 unstart error (0xF1000020) occurs.
The corrective actions are shown below.
APPX
680 Appendix 11 Troubleshooting
Appendix 12 Differences with previous version of MX
Component
This section explains the differences between MX Component Version 4 and Version 5.
For the functions added or changed in version 5.000A and later, refer to the following:
Page 646 Changes from Previous Version
Development environment
The following table shows the differences of the development environment between MX Component Version 4 and Version 5.
Item MX Component Version 4 MX Component Version 5
OS Windows Microsoft Windows XP Microsoft Windows 10
Microsoft Windows Vista Microsoft Windows 10 IoT Enterprise 2016 LTSB
Microsoft Windows 7 Microsoft Windows 10 IoT Enterprise 2019 LTSC
Microsoft Windows 8 Microsoft Windows 11
Microsoft Windows 8.1
Microsoft Windows 10
Programming language Visual Basic.Net Microsoft Visual Studio 2005 Visual Basic Microsoft Visual Studio 2019 Visual Basic
Microsoft Visual Studio 2008 Visual Basic Microsoft Visual Studio 2022 Visual Basic
Microsoft Visual Studio 2010 Visual Basic
Microsoft Visual Studio 2012 Visual Basic
Microsoft Visual Studio 2013 Visual Basic
Microsoft Visual Studio 2015 Visual Basic
Microsoft Visual Studio 2017 Visual Basic
Visual C++ Microsoft Visual Studio 2005 Visual C++ Microsoft Visual Studio 2019 Visual C++
Microsoft Visual Studio 2008 Visual C++ Microsoft Visual Studio 2022 Visual C++
Microsoft Visual Studio 2010 Visual C++
Microsoft Visual Studio 2012 Visual C++
Microsoft Visual Studio 2013 Visual C++
Microsoft Visual Studio 2015 Visual C++ A
Microsoft Visual Studio 2017 Visual C++
Visual C# Microsoft Visual Studio 2005 Visual C# Microsoft Visual Studio 2019 Visual C#
Microsoft Visual Studio 2008 Visual C# Microsoft Visual Studio 2022 Visual C#
Microsoft Visual Studio 2010Visual C#
Microsoft Visual Studio 2012 Visual C#
Microsoft Visual Studio 2013 Visual C#
Microsoft Visual Studio 2015 Visual C#
Microsoft Visual Studio 2017 Visual C#
VBA Microsoft Excel 2003 Microsoft Excel 2019 (32-bit version/64-bit version)
Microsoft Excel 2007 Microsoft Excel 2021 (32-bit version/64-bit version)
Microsoft Excel 2010 (32-bit version) Microsoft Excel for Microsoft 365 (64-bit version)
Microsoft Excel 2013 (32-bit version)
Microsoft Excel 2016 (32-bit version)
Microsoft Excel 2019 (32-bit version)
Microsoft Access 2003 Microsoft Access 2019 (32-bit version/64-bit
Microsoft Access 2007 version)
Microsoft Access 2010 (32-bit version) Microsoft Access 2021 (32-bit version/64-bit
Microsoft Access 2013 (32-bit version) version)
Microsoft Access 2016 (32-bit version) Microsoft Access for Microsoft 365 (64-bit version)
Microsoft Access 2019 (32-bit version)
VBScript Text editor and commercially available HTML tool Not supported
APPX
Appendix 12 Differences with previous version of MX Component 681
Communication route
The following table shows the differences of the communication routes between MX Component Version 4 and Version 5.
Whether the communication can be established or not differs depending on the operating system to be used.
In addition, restrictions on versions may apply even for the applicable boards and drivers.
For details, refer to the following:
• Page 26 Supported Communication Routes
• Page 31 Module list
*1 Whether the communication can be established or not differs depending on the operating system to be used. (MX Component
Version 4 Operating Manual)
*2 Not supported when using Windows 10 Education.
*3 64-bit version is not supported when using Windows 10 IoT Enterprise 2016 LTSB.
APPX
682 Appendix 12 Differences with previous version of MX Component
Applicable models
The following table shows the differences of the applicable models between MX Component Version 4 and Version 5.
: Applicable, : Not applicable
*1 Basic model QCPUs, high performance model QCPUs, and process CPUs are not supported.
*2 Q172CPU, Q173CPU, Q172HCPU, and Q173HCPU are not supported. A
*3 FX3SCPU, FX3GCPU, FX3GCCPU, FX3UCPU, FX3UCCPU
*4 FX0CPU, FX0SCPU, FX0NCPU, FX1CPU, FX1NCPU, FX1NCCPU, FX1SCPU, FXUCPU, FX2CCPU, FX2NCPU, FX2NCCPU
Controls
The following table shows differences of controls.
MX Component Version 4 MX Component Version 5
32-bit 64-bit*2
ActUtlType ActUtlType ActUtlType64
ActProgType ActProgType ActProgType64
ActSupportMsg ActSupportMsg ActSupportMsg64
ActUtlDataLogging ActUtlDataLogging ActUtlDataLogging64
ActProgDataLogging ActProgDataLogging ActProgDataLogging64
DotUtlType DotUtlType DotUtlType64
DotSupportMsg*1 ActSupportMsg ActSupportMsg64
ActMLUtlType Not supported because VBScript is not supported.
ActMLProgType
ActMLSupportMsg
*1 Controls of the DotSupportMsg are integrated into the ActSupportMsg in Version 5.000A.
*2 The method to paste this control to a form cannot be used.
APPX
Appendix 12 Differences with previous version of MX Component 683
Compatibility
The programs and communication settings of MX Component Version 4 can be utilized in MX Component Version 5.
For the programs and communication settings which are not supported in MX Component Version 5, use MX
Component Version 4.
Note that MX Component Version 4 and MX Component Version 5 cannot be installed on the same personal
computer.
Install MX Component Version 4 after uninstalling MX Component Version 5.
Utilizing programs
Controls of MX Component Version 4 are included in MX Component Version 5.
Therefore, programs created with the controls of MX Component Version 4 can be used in MX Component Version 5.
Exporting/importing
The communication settings and system labels of MX Component Version 4 can be utilized in MX Component Version 5 by
using exporting/importing of communication settings.
The following is a correspondence table for the communication setting and system label.
Exporting Importing
MX Component Version 4 MX Component Version 5
MX Component Version 4
MX Component Version 5
Using a control
When using control in 32-bit
When using the DotSupportMsg control of MX Component Version 4 in MX Component Version 5, replace it with the
ActSupportMsg control.
Controls of MX Component Version 4 other than the above can be used as it is in MX Component Version 5.
Ex.
DotSupportMsg ActSupportMsg64
• When using a control of MX Component Version 4 by pasting it to a form
When using a control in VBA, the control can be used in MX Component Version 5 by replacing it with a control for 64-bit
version.
When using the control in a language other than VBA, the control cannot be used by pasting to a form in MX Component
Version 5.
Use the control by creating an object. (Page 46 When using a control by creating an object, Page 49 When using a
control by creating an object)
APPX
684 Appendix 12 Differences with previous version of MX Component
MEMO
APPX
Appendix 12 Differences with previous version of MX Component 685
FUNCTION INDEX
D
Dispose(release memory) . . . . . . . . . . . . . . . . 602
E
EntryDeviceStatus(Registering devices for status
monitoring) . . . . . . . . . . . . . . . . . . . . . . . . 465,558
F
FreeDeviceStatus(Deregistering devices for status
monitoring) . . . . . . . . . . . . . . . . . . . . . . . . 470,562
G
GetClockData(Reading clock data) . . . . . . . 452,552
GetCpuType(Reading CPU module model) . 460,556
GetDevice(Acquiring device data) . . . . . . . . 441,544
GetDevice2(Acquiring device data) . . . . . . . 490,599
GetErrorMessage(Acquiring error description and
corrective action) . . . . . . . . . . . . . . . . . . . . . . 492
GetFile(Transferring logging files) . . . . . . . . . . . 502
O
OnDeviceStatus(Event notification) . . . . . . . 471,563
Open(Opening communication line) . . 422,494,504
R
ReadBuffer(Reading data from buffer memory) . . . .
444,548
ReadClose(Ending the search) . . . . . . . . . . . . . 501
ReadDeviceBlock(Reading devices in batch) 425,506
ReadDeviceBlock2(Reading devices in batch) . . . . .
474,565
ReadDeviceRandom(Reading devices randomly) . . .
432,518
ReadDeviceRandom2(Reading devices randomly) . .
480,575
ReadFirstFile(Searching for a file/directory) . . . . 497
ReadNextFile(Searching for a file/directory) . . . . 499
S
SetClockData(Writing clock data) . . . . . . . . 456,554
SetCpuStatus(Remote control) . . . . . . . . . . 462,557
SetDevice(Set device data) . . . . . . . . . . . . 439,540
SetDevice2(Set device data) . . . . . . . . . . . 487,595
W
WriteBuffer(Writing data to buffer memory) . 448,550
WriteDeviceBlock(Writing devices in batch) . 428,512
WriteDeviceBlock2(Writing devices in batch) 477,570
WriteDeviceRandom(Writing devices randomly) . . . .
436,529
686
MEMO
687
REVISIONS
*The manual number is given on the bottom left of the back cover.
Revision date *Manual number Description
April 2021 SH(NA)-082395ENG-A First edition
November 2021 SH(NA)-082395ENG-B Added or modified parts
GENERIC TERMS AND ABBREVIATIONS, Section 2.1, Section 2.4, Section 5.1, Section 9.1,
Section 9.2, Section 10.2, Section 10.14, Section 11.2, Chapter 12, Section 13.1, Appendix 1,
Appendix 12, Appendix 13, TRADEMARKS
March 2022 SH(NA)-082395ENG-C Added or modified parts
Section 2.1, Appendix 1, Appendix 13
October 2022 SH(NA)-082395ENG-D Added or modified parts
TERMS, GENERIC TERMS AND ABBREVIATIONS, Section 2.1, Section 2.4, Section 9.1, Section
9.2, Section 10.2, Section 10.3, Section 10.4, Section 10.14, Section 11.2, Section 11.5, Chapter 12,
Chapter 13, Appendix 1, Appendix 13
May 2023 SH(NA)-082395ENG-E Added or modified parts
Section 2.1, Section 2.4, Section 6.1, Section 8.1, Section 9.2, Appendix 1, Appendix 13
October 2023 SH(NA)-082395ENG-F Added or modified parts
GENERIC TERMS AND ABBREVIATIONS, Section 2.2, Section 2.3, Section 2.4, Section 2.5,
Chapter 4, Section 5.1, Section 6.16, Section 8.1, Section 8.2, Section 9.2, Section 10.8, Section
11.2, Section 11.3, Section 11.5, Section 13.1, Appendix 1, Appendix 12
April 2024 SH(NA)-082395ENG-G Added or modified parts
Section 10.2, Section 10.6, Section 13.1, Section 13.4, Appendix 1, Appendix 5
688
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.
689
INFORMATION AND SERVICES
For further information and services, please contact your local Mitsubishi Electric sales office or representative.
Visit our website to find our locations worldwide.
TRADEMARKS
Intel is either a registered trademark or a trademark of Intel Corporation in the United States and/or other countries.
Java is a registered trademark of Oracle and/or its affiliates.
Microsoft, Microsoft Access, Excel, Visual Basic .NET, Visual C++, Visual C#, Visual Studio, Windows, Windows Vista, and
Windows XP are trademarks of the Microsoft group of companies.
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.
COPYRIGHTS
SPREAD
Copyright 2004 FarPoint Technologies, Inc.
VSFlexGrid8 Pro
Copyright 2008 ComponentOne LLC.
690
SH(NA)-082395ENG-G(2404)
MODEL: MXCV5-R-E
HEAD OFFICE: TOKYO BLDG., 2-7-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS: 1-14, YADA-MINAMI 5-CHOME, HIGASHI-KU, NAGOYA 461-8670, JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.