Mitsubishi Electric Programmable Controllers Owner's Manual

Add to my manuals
156 Pages

advertisement

Mitsubishi Electric Programmable Controllers Owner's Manual | Manualzz

Mitsubishi Programmable Controllers

Training Manual

MES Interface Basic Course

SAFETY PRECAUTIONS

(Always read these instructions before using the products.)

When designing the system, always read the relevant manuals and give sufficient consideration to safety.

During the exercise, pay full attention to the following points and handle the product correctly.

[EXERCISE PRECAUTIONS]

WARNING

Do not touch the terminals while the power is on to prevent electric shock.

Before opening the safety cover, turn off the power or ensure the safety.

CAUTION

Follow the instructor's direction during the exercise.

Do not remove the module of the demonstration machine or change wirings without permission.

Doing so may cause failures, malfunctions, personal injuries and/or a fire.

Turn off the power before mounting or removing the module.

Failure to do so may result in malfunctions of the module or electric shock.

When the demonstration machine (such as X/Y table) emits abnormal odor/sound, press the "Power switch" or "Emergency switch" to turn off.

When a problem occurs, notify the instructor as soon as possible.

1

2

REVISIONS

*The manual number is given on the bottom left of the back cover.

Revision date

April 2020

*Manual number

SH(NA)-082342ENG-A

Description

First edition

This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.

 2020 MITSUBISHI ELECTRIC CORPORATION

TRADEMARKS

Ethernet is a registered trademark of Fuji Xerox Co., Ltd. in Japan.

Microsoft, Microsoft Access, Excel, SQL Server, Windows, and Windows Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

MySQL is either a registered trademark or a trademark of MySQL AB.

Oracle and Java are registered trademarks of Oracle and/or its affiliates.

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.

3

4

CONTENTS

SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2

TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

CHAPTER 1 OVERVIEW

1.1

1.2

9

MES Interface Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

CHAPTER 2 STARTUP of DEMONSTRATION MACHINE

2.1

2.2

2.3

2.4

2.5

14

System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Operation of GOT Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Procedures before Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Starting up servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Starting up the MES interface module and configuration personal computer . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

CHAPTER 3 ENVIRONMENT CONFIGURATION

3.1

23

MX MESInterface-R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

CHAPTER 4 SETUP

4.1

4.2

4.3

25

Parameter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Checking parameter settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Connection destination specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Writing parameters to CPU module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Database Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Database table creation procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

ODBC (Open Database Connectivity) Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

ODBC setting procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

CHAPTER 5 INFORMATION LINKAGE FUNCTION

5.1

5.2

40

Functions of MES Interface Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Data input/output function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Information linkage function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

MES Interface Function Configuration Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Network settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Target device settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Device tag settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Target server settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Access table/procedure settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Job settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Action settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

5.3

Verification settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

DB Connection Service and Setting Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

DB Connection Service functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

Setting items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

CHAPTER 6 LINKING WITH DATABASE

6.1

6.2

6.3

88

Parameter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

Parameter setting procedure of MES Interface Function Configuration Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Writing parameters to the MES interface module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

Setting DB Connection Service Setting Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

Operation Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Starting MC Works64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

CHAPTER 7 TROUBLESHOOTING

7.1

7.2

114

Troubleshooting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Communication test function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

One-shot execution function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

Access log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Troubleshooting Operation Check. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Troubleshooting 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Troubleshooting 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

APPENDICES 138

Appendix 1 MC Works64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

MC Works64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

SCADA software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

What to learn in this training course . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Appendix 2 Database Management System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Appendix 3 TCP/IP Setting on Personal Computer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

5

6

INTRODUCTION

To help users acquire the knowledge required for configuring the data collection system using the MES interface module, this manual describes the functions and specifications of hardware and software used in the system, database, and troubleshooting.

RELEVANT MANUALS

Manual name [manual number] Description

Specifications, procedures before operation, wiring, and operation examples of the MES interface module

Available form e-Manual

PDF

MELSEC iQ-R MES Interface Module User's Manual

(Startup)

[SH-081422ENG]

MELSEC iQ-R MES Interface Module User's Manual

(Application)

[SH-081423ENG]

GX Works3 Operating Manual

[SH-081215ENG]

Functions, MES Interface Function Configuration Tool, DB Connection

Service, parameter settings, troubleshooting, input/output, and buffer memory of the MES interface module

System configuration, parameter settings, and online operations of GX

Works3 e-Manual

PDF e-Manual

PDF e-Manual refers to the Mitsubishi FA electronic book manuals that can be browsed using a dedicated tool.

e-Manual has the following features:

• Required information can be cross-searched in multiple manuals.

• Other manuals can be accessed from the links in the manual.

• The 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

Account

Action

Configuration personal computer

Data source

Database (DB) or relational database (RDB)

DB buffering

DB procedure

Device memory or device

Device tag (Tag)

Device tag component

(Component)

Engineering tool

Handshake

High-speed access

Item

Job

MES

Description

A right to use the MES interface module or a server, or an ID necessary for their use

A unit for processing defined in a job.

There are three kinds of actions: DB communication action for communicating with a database, operation action for calculating values of device tag component, and external communication action for executing programs in an application server.

The DB communication action is a processing unit for sending one SQL statement (Select, Update, Insert, Multiple

Select, or Delete) or one DB procedure execution request.

The operation action is a processing unit for performing a maximum of 20 binary operations.

A personal computer to set various settings required for operating the MES interface module.

This computer can be shared with a server.

Connection information which is necessary for accessing data using ODBC.

With Windows, a data source name is assigned to connection information for management. The database is accessed via ODBC by specifying the data source name with the information linkage function.

Data management method that follows relational data model logic.

A piece of data is expressed as a collection of multiple items (fields) and a data collection is expressed as a table.

Data can be easily merged and selected using key data.

A function that temporarily stores SQL statements, that failed to be sent due to a communication error, to an SD memory card, and resends them when the communications have been recovered

A program that combines sequential processing procedures into one program against the database, and saves it to the database management system.

This performs processing based on arguments received from the MES interface module, and returns the results to the

MES interface module.

Various memory data in a CPU module.

There are devices handled in each bit and in each word.

Data table that contains a set of information (component) required to access device data in each CPU module on a network.

The MES interface module collects device data for each tag at an interval defined in the tag.

A generic term for components (device data) which configures a device tag.

Data that contains communication routes, data types, devices, etc. required to access device data in each CPU module.

A tool for setting, programming, debugging, and maintaining programmable controllers.

For the supported tools, refer to the following.

 MELSEC iQ-R Module Configuration Manual

For highly reliable processing, devices in a CPU module are used for managing processing between the CPU module and the MES interface module

A generic term for the following access types:

• High-speed access (interval specification)

• High-speed access (each scan)

A setting group unit that each setting type in the edit items has

A unit of process for linking information by the MES interface module

An acronym for Manufacturing Execution Systems.

A system for controlling and monitoring the plant status in real time to optimize production activities.

The system enables to speed up responses to changes of a production plan and situation that lead to efficient production processes and optimization of production activities.

An abbreviation for MELSEC iQ-R series MES Interface Function Configuration Tool MES Interface Function

Configuration Tool

MES interface module

MX MESInterface-R

Network module

QCPU (Q mode)

RCPU

Server

An abbreviation for the RD81MES96 MES interface module

The product name of SW1DND-RMESIF-E

A generic term for the following modules:

• CC-Link IE Controller Network module

• CC-Link IE Field Network module

• MELSECNET/H network module

• Ethernet interface module

• CC-Link module

A generic term for MELSEC-Q series CPU modules and MELSEC-Q series C Controller modules

A generic term for MELSEC iQ-R series CPU modules and MELSEC iQ-R series C Controller modules

A generic term for a database server and application server.

Database server is a computer with a relational database which links information with the MES interface module.

Application server is a computer with a program which operates upon request from the MES interface module.

7

8

Term

SQL

Transaction

Trigger buffering

Trigger condition

Update settings

Variable (temporary variable)

Description

An abbreviation for Structured Query Language.

A database manipulation language that is used for operating a relational database.

A collection of different interrelated processes that work in synchronization.

When trigger conditions (conditions for data transmission) of multiple jobs are satisfied at the same time, their data and times are buffered in an internal memory of a module so that actions (data operation/transmission) can be executed later using the buffered data.

Even if the frequency of data transmission triggers is high, jobs are executed without missing any trigger.

Start conditions for job operation

Processing that updates the settings in the MES interface module using MES Interface Function Configuration Tool

A variable that can be used for saving values selected from a database temporarily, and for writing operation values to a database or device tag components.

There are two types of variables: local variable which has variable area for each job and global variable which can be used for other jobs since it has a common variable area for all jobs.

1

OVERVIEW

The MES Interface module enables improved yield and product quality through its direct connectivity between programmable controller systems of production equipment and information system databases. Conventionally, gateway personal computers have performed the polling processing in which programmable controller devices and programs are constantly checked to enable the connectivity. With the MES interface module, the transmission of data can be event-driven by specifying an event as a trigger and it allows the data to be inserted into database records directly. Compared to the conventional connectivity implemented using the gateway computers, the direct database connectivity implemented using the MES interface module will decrease system complexity, improve reliability, and eliminate data loss, resulting in better agility, less maintenance and reduces total cost of ownership (TCO).

DB

Existing information linkage via a gateway personal computer

<Manufacturing execution system>

Information system

(Database)

Information linkage using the MES interface module

<Manufacturing execution system>

Information system

(Database)

1

<Communication gateway>

Host information system communication processing

Data processing

(Operation processing, logging, and another processing)

Controller communication

<Production equipment>

Polling processing

Communication module

CPU module

(Device data)

Event transmission

Computerization via communication gateways is unnecessary.

<Production equipment>

SQL

MES interface module

CPU module

(Device data)

The following describes the overall system configuration when using the MES interface module.

DB

(b)

(3)

Ethernet

(2)

(1)

(a)

Name Description

(1) MES interface module

(2) Configuration personal computer

(a) MES Interface Function

Configuration Tool

Project File Conversion Tool *1

(3) Server

A module to link information between production equipment and host information systems

A tool to set various settings required for operating the MES interface module

A tool to convert a MELSEC-Q series MES Interface module project file to a MELSEC iQ-R series MES Interface module project file

(b) DB Connection Service Software to link information between the MES interface module and a database

DB Connection Service Setting Tool A tool to set DB Connection Service

*1 Not used in this manual.

1 OVERVIEW 9

1.1

MES Interface Module

The MES interface module provides a highly reliable and easy method for exchanging data between programmable controller

CPUs and common industrial quality databases. Most production execution software applications use a database to source data and store results. The product is named "MES interface module" because it greatly improves MES implementation and operation by providing a high quality, high function link to the factory equipment.

One MES interface module can handle data with up to 32 database connections. Communications between the MES interface module and the host computer system occur in a secure, encrypted format and the messages exist in SQL

*1

format, which is well suited to passage through common IT infrastructure devices such as firewalls, routers and switches.

The MES interface module is set up using the dedicated configuration software. For most applications, no computer language programming or control logic programming is required. The knowledge of SQL language is not required because the setup processing is executed in a menu driven format and SQL statements are automatically created based on the settings. The idea is that standard engineering staff can easily handle initial setup and subsequent modification of the MES interface module configuration.

*1 An abbreviation for Structured Query Language.

A database manipulation language that is used for operating a relational database.

Feature

The MES interface module provides enhanced functions with significant benefits beyond simple data transfer.

Connection with the information system using simple settings without program

SQL statements can be automatically created only by specifying necessary settings with the setting tool. Additionally, since the stored procedures can be called from databases, a CPU module, the MES interface module, and databases can be communicated easily. There is no need to write programs for data communications, so the engineering costs for system construction can be reduced and the work period can be shortened.

Reduction in the information system load

The MES interface module monitors conditions for event data generation using the trigger condition monitoring function and when the conditions are satisfied, data, such as production status, is sent to IT system databases using the data Input/output function. Another feature is that data, such as work instructions, can be buffered in and read from databases.

When performing the above processing, data is operated and processed using the data operation and processing function and results can be sent to the information system.

This can reduce the information system loads compared to the conventional system which uses a gateway personal computer to constantly acquire and monitor data.

10 1 OVERVIEW

1.1 MES Interface Module

Buffering function for reliable data acquisition/transmission

Trigger buffering function

The trigger buffering function buffers trigger information when a trigger condition for a later job is satisfied. After the former job is completed, the later job is executed according to the trigger information.

Even if the frequency of data transmission triggers is high, jobs are executed without missing any trigger.

When conditions for data transmission of multiple jobs are satisfied at the same time, their data and times are buffered in an internal memory of a module.

After the loads are reduced, data operations and transmission are executed using the buffered data.

For details on the trigger buffering function, refer to the following.

Page 47 Trigger buffering function

DB buffering function

This function protects send data to a database even if a communication error occurs.

This function buffers SQL statement or stored procedure call information to the DB buffer on an SD memory card when they cannot be sent due to network disconnection or failure of the server on which the database is installed.

The buffered SQL statement or stored procedure call information is automatically resent to the database after recovery. (They can be also resent manually.)

For details on the DB buffering function, refer to the following.

Page 44 DB buffering function

Acquisition of log data when access errors occur

After connection with a database, when a communication error occurs, a log of the error definition can be recorded on the database.

Analyzing the log can analyze the error definition.

Support of various databases

When designing a new system, a suitable database can be selected from the different database types.

Even when connecting to the existing system, the system can be transferred without changing the existing database.

Access independent of the database table configuration

Flexibly designed database tables can be used for accessing to databases.

When designing a new system, its design is highly flexible. Moreover, when connecting to the existing system, the system can be configured without changing the database tables.

Time synchronization with a CPU module

The MES interface module can synchronize time with a CPU module. Synchronizing the time of the CPU module with an

SNTP server enables to synchronize time of the entire system.

1

1 OVERVIEW

1.1 MES Interface Module

11

1.2

Database

This section describes databases which the MES interface module uses as a source or destination for information exchanged with programmable controller CPU modules.

For this example, a database is defined as software which provides a virtual filing system for storing groups of related data. It also provides a set of commands that enable access, editing and manipulation of the stored data.

The following are some example cases that may occur in a database.

• During processing of a set of data, an error occurs.

 In response, a user can apply a rollback command that restores the data to its original state.

• While certain stored data is being retrieved in one process, new data that needs to be stored in a second process arrives.

 The database should handle completion of both actions without conflict or user intervention.

• A researcher desires to retrieve a specific set of 15 data items that was originally stored in the database on July 15th at

2:30 AM 5 years ago.

 The user will create a "query" or command structure that the database understands as a request for data retrieval. The database will return the specified information when the query is executed.

Database types

There are different database types including relational, hierarchical, and XML. The MES interface module operates with relational databases provided by Microsoft

and Oracle

.

Relational databases organize data into tables consisting of fields (columns) and records (rows). The contents in one database can range from one table to many thousands.

Field

Record

Part number

M7000

J581-583

EH10

DHC8

Production plan Production result

300

500

30

10

120

500

30

0

Table

12 1 OVERVIEW

1.2 Database

Database commands

All common databases implement a standardized command format called SQL (Structured Query Language). SQL defines each command action that a user can apply to operate the various database functions and the syntax for the command and response messages paragraph change.

The MES interface module executes the basic commands such as SELECT, INSERT, UPDATE, and DELETE. All other commands or complicated processing must be executed outside the MES interface module or by using a stored procedure.

Addition of new records and update of table information

Database server Initial table structure

Part number

M7000

J581-583

Production plan

300

500

Production result

120

500

DB

UPDATE INSERT

1

Production equipment

(MES interface module))

Production scheduling software

1.

Add a new record to the table that has fields for part number, production plan, and production result.

(INSERT command is executed via the production scheduling software.)

Part number

M7000

J581-583

Production plan

300

500

Production result

120

500

Insert

Part number

M7000

J581-583

EH10

Production plan

300

500

30

Production result

120

500

0 INSERT

2.

After execution, add the production result to the record. (UPDATE command is executed by the MES interface module and the production result is moved from the programmable controller CPU module to the database.)

Part number

M7000

J581-583

EH10

Production plan

300

500

30

Production result

120

500

0

Update

Part number

M7000

J581-583

EH10

Final table structure

Production plan

300

500

30

Production result

120

500

12 UPDATE

1 OVERVIEW

1.2 Database

13

2

STARTUP of DEMONSTRATION MACHINE

2.1

System Configuration

This section describes the system configuration of the demonstration machine.

(2) (1)

Ethernet cable

Ethernet network No.1

Ethernet CH1

(192.168.3.3)

Ethernet

(192.168.3.100)

DB

(4) (3)

Device/software

(1) Programmable controller system

Main base unit

Power supply module

CPU module

MES interface module

*1

Simple Motion module

SD memory card

Product name/description

R35B

R61P

R04CPU

RD81MES96

RD77GF4 (CC-Link IE Field)

NZ1MEM-2GBSD

Reference

 MELSEC iQ-R Module Configuration

Manual

 MELSEC iQ-R MES Interface Module

User's Manual (Startup)

 MELSEC iQ-R MES Interface Module

User's Manual (Startup)

 (2) MELSERVO AC

Servo

MELSERVO-J4

(3) Personal computer (shared in a server and

configuration personal computer)

*2

Operating system

Relational database

MX MESInterface-R configuration software

MES Interface Function

Configuration Tool *3

DB Connection Service

DB Connection Service

Setting Tool

GX Works3

MR-J4-10GF1-RJ

A personal computer on which Windows operates

Microsoft Windows 10 Professional Operating

System (64-bit version)

Microsoft SQL Server 2016 (64-bit version)

SW1DND-RMESIF-J

 MELSEC iQ-R MES Interface Module

User's Manual (Startup)

Page 23 Software configuration of MX

MESInterface-R

Engineering tool SWnDND-GXW3 ('n' indicates the version.)  GX Works3 Installation Instructions

 GX Works3 Operating Manual

Page 138 MC Works64

SCADA software MC Works64 SWnDND-MCWDV-ET ('n' indicates the version.)

GT2708-STBA (4) GOT2000 

*1 The IP address of the MES interface module is '192.168.3.3'.

*2 The IP address of the personal computer is '192.168.3.100'.

*3 The software version of MES Interface Function Configuration Tool used for the training is '1.07H'.

14 2 STARTUP of DEMONSTRATION MACHINE

2.1 System Configuration

2.2

Wiring

This section describes the wring of the demonstration machine.

1.

Connect the following devices to a hub using Ethernet cables.

• CPU module

• MES interface module (Connect to the Ethernet port (CH1).)

• GOT2000

• Personal computer

CPU module

Ethernet cable

CH1

MES interface module

DB

Personal computer

GOT2000

2.

Connect the AC servo to the Simple Motion module with an Ethernet cable.

AC servo

Simple Motion module

Ethernet cable

DB

2 STARTUP of DEMONSTRATION MACHINE

2.2 Wiring

15

2

2.3

Operation

This section describes an operation example of simple data collection in the system including the MES interface module.

Overview

The following describes an example of an automated production process of pouring water into containers using the programmable controller system.

200 160

(1)

Process

(1)

(2)

(3)

Production control

Production process

Quality determination

(2) (3)

Description

Inputs production patterns and starts/stops the production process.

Pours water into large, medium, or small containers based on an selected operation pattern.

Checks the amount of the water poured into each container and determines whether results are acceptable or unacceptable.

Operation

The following is the operation between the control system and the production control database.

Control system (CPU module,

MES interface module)

Ô Ó

Size (S/M/L), Production plan (100/150/200),

Specified weight (100/150/200)

Ò

Production control database

Production information acquisition

Production result distribution

DB

×

Õ Ö n1 2018-10-01 10:00:00.000 2 n2 2018-10-01 10:00:01.000 1

16 nxx 2018-10-01 10:01:00.000 1

1.

Select a production pattern from 1 to 3 on GOT.

• Pattern 1: Supplying water into small containers (size: S, production plan volume: 40, specified weight: 100)

• Pattern 2: Supplying water into medium containers (size: M, production plan volume: 60, specified weight: 150)

• Pattern 3: Supplying water into large containers (size: L, production plan volume: 80, specified weight: 200)

2.

Touch the [Production information acquisition] button on GOT.

3.

Acquire the production information.

 Database   MES interface module   CPU module

• The MES interface module acquires the production information on size, production plan voulme, and specified weight from the table of the production control database before starting the production.

• Containers are produced according to the production plan volume.

Finished products are inspected. If poured water weight of a finished product is less than the specified weight, the product is unaccepted.

A container size is add to the front of a container ID of each product.

4.

Touch the [Production start] button on GOT.

5.

Distribute production results.

 CPU module   MES interface module   Database

• The MES interface module collects data, such as container IDs, production time, and inspection results, and transfers the data to the production control database.

2 STARTUP of DEMONSTRATION MACHINE

2.3 Operation

Integration with MC Works64

For IT systems, different types of software are available to meet purposes such as operation monitoring, preventive maintenance, and traceability. The demonstration machine uses one of these softwares, MC Works64, and performs traceability management.

MC Works64 is an SCADA software package that offers the plant-wide monitoring functions. It provides solutions for a wide variety of needs by the high-functionality monitoring control system with variety of FA devices.

Production results, collected by the MES interface module, can be easily viewed by storing them on the database server and communicating them between the database server and MC Works64. For details on MC Works64, refer to the following.

Page 138 MC Works64

2

Visualization of data

DB

Data storage

MES interface module

2 STARTUP of DEMONSTRATION MACHINE

2.3 Operation

17

2.4

Operation of GOT Screen

This section describes how to operate the GOT screen used in this exercise.

GOT2000 is connected to the demonstration machine

(1)

(2)

(3)

(4)

No.

(1)

Name

Production pattern selection

Device

D0

(2)

(3)

(4)

Production information acquisition X100

Production start X200

Production stop/reset X300

Description

Selects a production pattern.

1: Small container

2: Medium container

3: Large container

Acquires the production information of the selected production pattern.

Starts the production based on the acquired production information.

Stops the production.

18 2 STARTUP of DEMONSTRATION MACHINE

2.4 Operation of GOT Screen

2.5

Procedures before Operation

This section describes the procedure before operation of the MES interface module.

Operating procedure

1.

Start a server.

Start a server used as a database server.

(

 Page 19 Starting up servers)

2.

Start the MES interface module and a configuration personal computer.

Start the MES interface module and a configuration personal computer on which MES Interface Function Configuration Tool has been installed.

(

 Page 21 Procedures before Operation)

Starting up servers

DB

Database server

*1

Sever

Create a table in a relational database.

*2

2

Set ODBC for a database.

*3

MX MESInterface-R

Install DB Connection Service and DB Connection Service Setting Tool.

*4

Change the settings of DB Connection Service.

Operation starts.

*1

 Page 142 Database Management System

*2 Install a relational database, restart the server, and create a table.

 Page 34 Database Setting

*3

 Page 37 ODBC (Open Database Connectivity) Setting

*4 For details on MX MESInterface-R, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Startup)

The MES interface module accesses a database server via DB Connection Service.

 Page 81 DB Connection Service and Setting Tool

2 STARTUP of DEMONSTRATION MACHINE

2.5 Procedures before Operation

19

DB Connection Service/DB Connection Service Setting Tool

The information linkage function of the MES interface module can be used by installing DB Connection Service on the server.

For details on DB Connection Service/DB Connection Service Setting Tool, refer to the following.

Page 81 DB Connection Service and Setting Tool

• DB Connection Service needs to be installed on all the database servers and application servers accessed from the MES interface module.

• When using DB Connection Service on an application server, an account for the application program execution needs to be created in advance.

• The settings of DB Connection Service are changed with DB Connection Service Setting Tool.

ODBC setting for database

When using DB Connection Service on a database server, ODBC for a database to be used needs to be set in advance.

For the ODBC setting method, refer to the following.

Page 37 ODBC (Open Database Connectivity) Setting

Only the ODBC driver installed at the same time as the installation of the database can be used except for the cases below. 'Microsoft Access Driver(*.mdb)', 'Microsoft ODBC for Oracle', and 'SQL Server' which are supplied with the operating system cannot be used.

• When connecting the database of Oracle using any of the following DB Connection Services, the 32-bit version of Oracle Client for the ODBC setting and the ODBC driver of Oracle need to be installed.

DB Connection Service which is stored to MX MESInterface-R whose software version is '1.03D' or earlier

DB Connection Service (32-bit) which is stored to MX MESInterface-R whose software version is '1.04E' or later

• When using PostgreSQL for a database, install an ODBC driver.

20 2 STARTUP of DEMONSTRATION MACHINE

2.5 Procedures before Operation

Starting up the MES interface module and configuration personal computer

Start a server before starting MES interface module and a configuration personal computer.

2

MES interface module

*1

Mount it on the base unit.

*2

Configuration personal computer

MX MESInterface-R

Install MES Interface Function Configuration Tool.

*3

Switch the dot matrix LED display mode switch to the right (SHOW).

Connect the MES interface module and the configuration personal computer on a 1:1 basis.

*4

Power on the system.

The ERR LED flashes because an SD memory card has not been inserted.

Start MES Interface Function Configuration Tool.

Insert an SD memory card.

*5

Set the network of the MES interface module.

Specify IP address, user name, and password as default values on the "Specify Connection Destination" window of MES Interface

Function Configuration Tool.

*6

Format the SD memory card with MES Interface Function

Configuration Tool as necessary.

Write the settings to the MES interface module.

Power off the system.

Connect the MES interface module and the configuration personal computer to the network according to the network settings.

Power on the system.

MES Interface Function

Configuration Tool

Change the settings for the MES interface module.

Change the connection destination specification according to the network settings of the MES interface module.

Write the settings to the MES interface module and reflect the settings.

Review required

Check the operation and review the settings.

Review not required

Operation starts.

*7

2 STARTUP of DEMONSTRATION MACHINE

2.5 Procedures before Operation

21

*1 Perform the self-diagnostic test as necessary. (  MELSEC iQ-R MES Interface Module User's Manual (Application))

*2 Do not use an electric screwdriver to tighten and remove module fixing screws.

*3 Install MX MESInterface-R. (  MELSEC iQ-R MES Interface Module User's Manual (Startup))

*4 Use the Ethernet port (CH1) on the MES interface module.

*5 Insert an SD memory card. (  MELSEC iQ-R MES Interface Module User's Manual (Startup))

*6 Specify the following (default network setting and security setting) for connection on the "Specify Connection Destination" window of

MES Interface Function Configuration Tool.

 Connection destination setting

IP address: 192.168.3.3

 User authentication setting (optional)

Use the user authentication: Select the checkbox.

User name: RD81MES96

Password: MITSUBISHI

*7 Perform these steps to change the setting of the MES interface module.

MES Interface Function Configuration Tool

MES Interface Function Configuration Tool is a tool to set various settings required for operating the MES interface module.

Various operations such as checking each status and the working history, and stopping or restarting the MES interface module can be performed.

For details on MES Interface Function Configuration Tool, refer to the following.

Page 51 MES Interface Function Configuration Tool

22 2 STARTUP of DEMONSTRATION MACHINE

2.5 Procedures before Operation

3

ENVIRONMENT CONFIGURATION

This chapter describes how to install each piece of execution software.

3.1

MX MESInterface-R

Software configuration of MX MESInterface-R

The following table shows the software stored in MX MESInterface-R.

Item

MX MESInterface-R MES Interface Function

Configuration Tool

Project File Conversion Tool

DB Connection Service

DB Connection Service Setting

Tool

Description

Software that runs in a configuration personal computer and is used to set various settings required for operating the MES interface module.

In addition to the configuration, the following operations are performed.

• Checking the operating status and working history of the MES interface function

• Stopping/restarting the operation of the MES interface function

• Creating settings of the MES interface function without modules

Software that runs in a configuration personal computer and converts a

MELSEC-Q series MES Interface module project file to a MELSEC iQ-R series

MES Interface module project file.

This tool is automatically installed when MES Interface Function Configuration

Tool is installed.

Software that runs in a server and links a database with the MES interface module.

(Required when linking with a database via ODBC of a Windows personal computer.)

Software that runs in a server and is used to change the operation of DB

Connection Service.

3

3 ENVIRONMENT CONFIGURATION

3.1 MX MESInterface-R

23

System configuration when installing

The following shows the system configuration when installing each piece of software stored in MX MESInterface-R.

For the installation method, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Startup)

When installing MES Interface Function Configuration Tool

Install MES Interface Function Configuration Tool in a configuration personal computer.

(1) (2)

(1) MX MESInterface-R: MES Interface Function Configuration Tool

(2) Configuration personal computer: Commercially available product

When installing DB Connection Service and DB Connection Service Setting Tool

Install DB Connection Service and DB Connection Service Setting Tool in the server.

(1) (2)

(1) MX MESInterface-R: DB Connection Service/DB Connection Service Setting Tool

(2) Server: Commercially available product

Precautions

• When using Access for a database, select "32-bit" for DB Connection Service and DB Connection Service Setting Tool.

• When selecting "64-bit", configure the ODBC setting which is supported by a 64-bit version DB Connection Service.

(

 Page 37 ODBC (Open Database Connectivity) Setting)

24 3 ENVIRONMENT CONFIGURATION

3.1 MX MESInterface-R

4

SETUP

4.1

Parameter Settings

This section describes the procedures for checking the parameter settings with the engineering tool and writing the data to a

CPU module.

Checking parameter settings

In the project "school_MES.gx3", the parameter settings and programing have been already completed to meet this exercise.

Check the parameter settings of the project "school_MES.gx3" to be used for this exercise.

Operating procedure

1.

Open the project "school_MES.gx3" and double-click [Module Configuration] in the

Navigation window.

If a dialog box regarding the parameter information appears, click the [OK] button.

1.

Double-click!

4

2.

On the "Module Configuration" window, a power supply module "R61P", a CPU module

"R04CPU", "RD81MES96" in slot 0, and

"RD77GF4" in slot 1 are placed in the same manner as the demonstration machine.

4 SETUP

4.1 Parameter Settings

25

5.

Select!

3.

Check!

3.

Check that the following are set in "Start XY" on the "Input the Configuration Detailed

Information" window.

[Setting details]

RD81MES96

Start XY: 0000

RD77GF4

Start XY: 0020

4.

Double-click "RD77GF4" in slot 1

4.

Double-click!

6.

Check!

5.

Select "Required Settings" in the "Setting Item

List" window.

6.

Check that the following are set in the "Setting

Item" window.

[Setting details]

Station Type: Master Station

Network Number: 1

26 4 SETUP

4.1 Parameter Settings

7.

Select!

8.

Double-click!

9.

Check!

7.

Select "Basic Settings" in the "Setting Item

List" window.

8.

Double-click "Network Configuration

Settings".

9.

"MR-J4-GF" is added to the station list on the

"CC-Link IE Field Configuration" window.

Check that the following are set on the "CC IE

Field Configuration" window.

[Setting details]

RWw/RWr Setting Start: 0000

RWw/RWr Setting End: 0023

4

4 SETUP

4.1 Parameter Settings

27

Sequence program

List of devices to be used

Device name

X20

X21

X200

X300

Y20

Y21

SM400

SM403

SM415

Description

Ready

Synchronization flag

Device name

M4

C0

Production start

Production information reset

Programmable controller ready

All axis servo ON

Always ON

OFF for one scan after RUN

Repeating on/off at regular intervals (ms) specified on

SD415

Number of conversion digits selection

D0

D100

D110

D120

D129

D130

D140

D150

Description

Production end trigger

The contact is turned on when a count value reaches the setting value (D100).

Production pattern

Production plan volumes are stored.

Specified weight is stored.

Production volume is stored.

Random numbers are stored.

Random numbers (container weight) are stored.

Quality determination results are stored.

SM705

SD415

M1

M2

M3

Storing n of 2n ms clock

Production start trigger

Quality Determination start trigger

Quality determination result storing trigger

D160

D200

D210

D211

Total number of accepted products according to the quality determination is stored.

Total number of rejected products according to the quality determination is stored.

Total number of production is stored.

Container IDs (sizes) are stored.

Container IDs (numerical values) are stored.

Precautions

• This manual does not cover the devices used for the Simple Motion modules and servo amplifiers. For details, refer to the user's manual for the module used.

• Program creation is not included in this training. When writing a program to a CPU module, write the pre-programmed project "school_MES.gx3".

28 4 SETUP

4.1 Parameter Settings

19

20

17

18

21

Sequence program

For details on each instruction, refer to the following.

 MELSEC iQ-R Programming Manual (Instructions, Standard Functions/Function Blocks)

2 3 4 5 6 7 8 9 10

1

2

1

Initial settings for servo

SM400

(0)

X20

3 (11)

SM403

4 (15)

X21

=

Y20

D0 K3

11 12

Y20

Y21

DMOVP K360000 U2\G4318

D0 K2 5

6

7

8

Production processing

X200

(46)

M1

9 (55)

=

= D0 K1

DMOVP K240000 U2\G4318

DMOVP K121000 U2\G4318

SET

RND

10

11 (59)

SM400

12

13 (63)

SM415

14

15

16

Quality determination

M2

(68)

M4 M1

>

=

>=

D130

D130

K0

K0

D130 K26214

<=

M1

<=

MOV

MOVP

D130 K26213 MOV

D130 K32767 MOV

SET

K500

D129

K1

M1

D129

X201

SD415

SM705

D130

M2

D140

(106)

M3

= D140 K1

K2

INC

D140

D200

M3

22

23

X201

24 (123)

C0

25 (129)

26

27

Container ID creation

M3

(131)

=

M4

D140

SM412

K2

OUT

INC D150

D100 C0

INC D160

U2\G30101.0

M4

28

BINDA D200

MOV D120

D211

D210

4

4 SETUP

4.1 Parameter Settings

29

46

47

48

44

45

42

43

49

50

40

41

38

39

36

37

34

35

29

30

1

Production information reset

M4

(145)

X300

31 (160)

T0

32

33

2

(198)

3 4 5 6 7 8 9 10

OUT

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

RST

11

T0

RST

D130

D140

D150

D160

D200

D210

D211

X201

X300

X200

D100

D110

D120

D129

D212

END

12

K20

C0

D0

M1

M4

30 4 SETUP

4.1 Parameter Settings

Connection destination specification

This section describes how to specify the connection destination.

Operating procedure

1.

On the engineering tool, select [Online] 

[Current Connection Destination] from the menu.

1.

Select!

4

2.

Click the [CPU Module Direct Coupled Setting] button on the "Specify Connection Destination

Connection" window.

The "CPU Module Direct Coupled Setting" window appears.

2.

Click!

3.

Select a direct communication method with a

CPU module, and click the [Yes] button.

3.

Click!

4 SETUP

4.1 Parameter Settings

31

5.

Click!

4.

Select!

4.

Select "No Specification" for "Other Station

Setting" on the "Specify Connection

Destination Connection" window.

5.

Click the [Connection Test] button.

6.

Check that the connection to the CPU module has been successfully established.

7.

Click the [OK] button.

7.

Click!

32 4 SETUP

4.1 Parameter Settings

Writing parameters to CPU module

This section describes how to write the parameters set on GX Works3 to the CPU module.

1.

Open the project "school_MES.gx3" whose the parameter settings and programming have been completed. On the engineering tool, select [Online]  [Write to PLC] from the menu.

1.

Select!

4

2.

The "Online Data Operation" window appears.

Select the parameters to be written.

When "Module Extended Parameter" is selected, select the "Intelligent Function

Module" checkbox.

3.

Click the [Execute] button.

2.

Select!

3.

Click!

4.

The "Write to PLC" window appears.

When writing the parameters is completed,

"Writing Completed" is displayed. Click the

[Close] button.

4.

Click!

4 SETUP

4.1 Parameter Settings

33

4.2

Database Setting

This section describes how to create two types of database table in Microsoft SQL Server Management Studio. This procedure must be completed before setting the ODBC setting and MES interface function setting.

Database table creation procedure

Creating [Project] table

Operating procedure

2.

Select!

1.

On Windows

, select [Microsoft SQL Server Sever

Tools  ]  [Microsoft SQL Server Management Studio

 ] from the start menu.

2.

Select [SQL Sever Authentication] and enter the following login ID and password.

[Setting details]

Login ID: sa

Password: Fatec_MES

2.

Enter!

3.

Click!

When SQL Server is installed, a user name

"sa" is automatically assigned.

3.

Click the [Connect] button.

4.

Select!

4.

A system database "master" has been already existed in the database. Right-click "Databases"  "System

Databases"  "master"  "Tables", and select "Table" in the "Object Explorer" window.

5.

Set the items for the table as shown on the window.

Select [File] and [Save Table_1] from the menu.

34 4 SETUP

4.2 Database Setting

6.

Enter "Project" on the "Choose Name" window, and click the [OK] button.

6.

Click!

7.

Right-click "Databases" in the "Object Explorer" window.

8.

Select [View]  [Refresh] from the menu.

4

7.

Right-click!

8.

Select!

9.

Select!

9.

Right-click the created project "dbo.Project", and select

"Edit Top 200 Rows" in the "Object Explorer" window.

The number of rows differs depending on the option settings.

10.

Set the items for the table as shown on the window.

(Set sizes (S, M, and L) in two-byte characters.)

4 SETUP

4.2 Database Setting

35

Creating [Judgement] table

Operating procedure

1.

Select!

1.

Right-click "Tables", and select "Table" in the "Object

Explorer" window.

2.

Set the items for the table as shown on the window.

Select [File]  [Save Table_1] from the menu.

3.

Enter "Judgement" on the "Choose Name" window, and click the [OK] button.

3.

Click!

36 4 SETUP

4.2 Database Setting

4.3

ODBC (Open Database Connectivity) Setting

When using DB Connection Service on the database server, the ODBC setting for the database used is needed to be set in advance. Set the ODBC setting before setting parameters with MES Interface Function Configuration Tool.

This section describes the setting method for the following operating system (OS) and relational database.

• Operating system (OS): Microsoft Windows 10 Professional Operating System (64-bit)

• Relational database: Microsoft SQL Server 2016

ODBC setting procedure

Operating procedure

1.

Start the ODBC Data Source Administrator.

Enter the following in the command prompt.

 "%SystemRoot%\system32\odbcad32.exe"

1.

Enter!

4

Enter the following commands in the command prompt in accordance with the software version of MX

MESInterface-R and the bit version of DB Connection Service to be used.

• Software version '1.03D' or earlier or '1.04E' or later and 32-bit DB Connection Service:

"%SystemRoot%\SysWOW64\odbcad32.exe"

• Software version '1.04E' or later and 64-bit DB Connection Service:

"%SystemRoot%\system32\odbcad32.exe"

2.

Click!

2.

Select the [System DSN] tab, and click the [Add] button.

3.

Select "OBDC Driver 13 for SQL Server", and click the

[Finish] button.

3.

Click!

4 SETUP

4.3 ODBC (Open Database Connectivity) Setting

37

4.

Set the following.

 Data source name: SAMPLE

 Sever name: (Name of a personal computer for the database)\SQLEXPRESS

*1

*1 The server name can be checked by starting SQL Server

Management Studio.

4.

Set!

5.

Click!

5.

Click the [Next] button.

• Any data source name can be set.

The name set above is used for the data source name in the "Target Server Individual Settings" in the

"Target Server Settings".

• The sever name is for accessing to the Microsoft SQL Server 2016 database.

The server name was entered when the Microsoft SQL Server 2016 was installed.

6.

Enter!

6.

Select "With SQL Sever authentication using a login ID and password entered by the user" and enter the login

ID and password.

[Setting details]

Login ID: sa

Password: Fatec_MES

7.

Click the [Next] button.

7.

Click!

38 4 SETUP

4.3 ODBC (Open Database Connectivity) Setting

8.

Click the [Next] button.

8.

Click!

9.

Click the [Finish] button.

9.

Click!

10.

Click!

10.

Click the [Test Data Source] button, and check whether the connection is successful.

11.

Click the [OK] button on the "Test Data Source" window.

12.

Click the [OK] button on the "ODBC Microsoft Server

Setup" window.

13.

Click the [OK] button on the "ODBC Data Source

Administrator" window.

4 SETUP

4.3 ODBC (Open Database Connectivity) Setting

39

4

5

INFORMATION LINKAGE FUNCTION

This chapter describes the functions of the MES interface module, MES Interface Function Configuration Tool and DB

Connection Service.

5.1

Functions of MES Interface Module

This section describes the functions of the MES interface module.

For the details of each function, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Function

Data input/output function

Description

Device memory input/output function

DB input/output function

Device memory input function

Device memory output function

DB record input/output function

DB buffering function

A function to read data in the device memory.

Data used for trigger judgment is read, and then data used for job is read.

A function to write data written in the device tag in the job to the device memory

A function to read/write data in the database of the host information system

A function to buffer data sent to the database, and resend it after recovery, when the data cannot be linked due to the disconnection of the network between the MES interface module and the database or failure of the database etc

Variable input/output function

System variable input/ output function

User variable input/ output function

A function to read/write data of the system variable storing operating status of the module such as the status of the MES interface module

A function to read/write data to a user variable (local variable/global variable) which can be registered arbitrarily.

• Local variable: Can be used in the same job.

• Global variable: Can be used between jobs.

Program execution function A function to execute programs on the application server via DB Connection Service External communication client function

Information linkage function

External communication server function

Security function

Other functions

Trigger condition monitoring function

Job execution control function

A function to control the job execution such as the availability of the job execution depending on the number of executable jobs at the same time

Trigger buffering function A function to buffer information required for the job execution to trigger information as the trigger buffer

One-shot execution function A function to execute arbitrary jobs at arbitrary timing

Data operation and processing function

A function to perform the basic arithmetic operations, remainder, and character string operation of device tag component values

Data linkage function

A function to monitor values of the time or device tag components etc., and start jobs when trigger conditions are changed from false to true (the condition is satisfied)

Communication test function

REST server function

Data assignment function

A function to assign and link the device tag, DB data, and variable which are read by using the data input/output function

A function to check the communication settings between the MES interface module and access target device or access target server

A function that allows to perform job-related operations and acquire job information from an REST client.

This function supports the XML process function for the MELSEC-Q series MES interface module.

User authentication function A function to prevent illegal access to the MES interface module by setting a user name and password

SD memory card management function

A function to format an SD memory card

Self-diagnostic function

Online module change function

A function to diagnose whether the MES interface module operates normally

A function to replace a module to another without stopping a running system. For the procedure, refer to the following.

 MELSEC iQ-R Online Module Change Manual

40 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

The MES interface module provides data linkage between a CPU module and a database by monitoring a trigger condition set to the job settings ( 

Page 63 Job settings) and executing an action set to the job settings in order when the condition is

satisfied.

The information linkage function reads/writes data as a device tag component in order to input/output the device data in the

CPU module by using the data input/output function. The data input/output function identifies the target CPU module set in the target device settings.

Additionally, the information linkage function accesses the database as an access table/procedure by using the data input/ output function. The data input/output function identifies the target server set in the target server settings.

<CPU1>

Device memory

Target device

Device tag

Target device 1

Device tag 1

Job

Trigger

Action

<MES interface module>

Job 3 trigger

Job 2 trigger

Job 1 trigger

<CPU2>

Device memory Target device 2

Job 3 action

Job 2 action

Job 1 action

Device tag 2

<CPU3>

Device memory

Target device 3

Access table

Target server

Access table 1

Target server 1

Access table 2

Access table 3

Target server 2

<Server 1>

DB

<Server 2>

DB

5

5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

41

Data input/output function

Device memory input/output function

The device memory input/output function reads or writes data from the device memory of the target device, and inputs or outputs data between the device memory in the target device and the MES interface module. This function is used for the information linkage function at required timing (at trigger judgment, when trigger condition is satisfied, or before/after executing the action).

Not only to the control CPU of the MES interface module itself but also to other CPU of the host station and a CPU module of other station can be accessed.

For the data types which can be input/output, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Startup)

42 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

DB input/output function

The DB input/output function has the following two functions.

Function name

DB record input/output function

DB buffering function

Description

A function to acquire, update, and delete data from the database at the required timing (at execution of DB communication action) for the information linkage function

A function to buffer an SQL statement or stored procedure call information to an

SD memory card, and resend it after recovery when communication cannot be established with a database due to the disconnection of the network or failure

Setting method

Page 43 DB record input/output function

Page 44 DB buffering function

DB record input/output function

The DB record input/output function inputs/outputs information (record) stored in the DB table (accessible to a table and view) to/from a programmable controller system.

The operations that can be input/output are as follows:

Operation

Select

(Single record)

Insert

(Single record)

Update

Input/output data

Maximum: 1024 fields

Maximum: 1024 fields

Maximum: 1024 fields

Description

Selects (acquires) one record from the database.

Inserts (adds) one record to the database.

Delete

Multiple Select

(Multiple records)

Stored Procedure

Maximum: Number of records  Number of fields  40960

Maximum: 256 arguments and 1 return value

Updates records in the database.

(A function to insert a record at update failure is available.)

Deletes records in the database.

Selects (acquires) multiple records from the database.

Executes processing registered to the database.

5

Select/Multiple Select

Device tag component

Temporary variable

*1

Insert

Device tag component

Temporary variable

Constant

Update

*2

Device tag component

Temporary variable

Constant

Delete

*2

*3

SELECT/Multi-SELECT

Data

INSERT

Data

UPDATE

Data

DELETE

Database

Stored procedure execution

Device tag component

Temporary variable

Constant

Stored procedure execution

Data

Data

*1 It cannot be used for Multiple Select.

*2 When accessing the same data while the data is locked in the database, the processing may be waited until the lock is unlocked.

Do not access the data which has the potential to be locked over a prolonged period of time.

*3 This indicates there is no data communication.

5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

43

DB buffering function

The DB buffering function buffers SQL statement or stored procedure call information to the DB buffer on an SD memory card when they cannot be sent due to network disconnection or failure of the server on which the database is installed.

After the network or server is recovered, the buffered SQL statement or stored procedure call information is resent.

Disconnected

Õ

DELETE...

SD memory card

Ò INSERT...

Ó

INSERT...

Ô UPDATE...

SQL statements that cannot be sent are buffered in chronological order.

Recovered

The buffered SQL statements are sent in chronological order.

SD memory card

Ò

INSERT...

Ó INSERT...

Ô

UPDATE...

Õ DELETE...

Variable input/output function

The variable input/output function inputs/outputs data to/from the variable area in which data in the MES interface module can be saved temporarily.

For the setting method of variables, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Variables can be used for the following purposes.

• Storing data which is in calculation temporarily.

• Sharing data with other jobs.

• Referring current time and operating status in the MES interface module from a job.

For data types of variables, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Startup)

44 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

Information linkage function

The information linkage function starts and controls jobs which link information between the target device such as a CPU module and target server such as a database server.

The following lists the functions of the information linkage function.

Function

Trigger condition monitoring function

Job execution control function

Trigger buffering function

One-shot execution function

Description

Performs job start judgment and job start notification to job execution control.

Performs operations from starting a job up to writing the execution result of the job.

Performs buffering when multiple job start notifications are issued at the same time.

Executes job once after receiving a request from MES Interface Function

Configuration Tool.

Performs data operations and processing which is used for job.

Setting method

Page 66 Trigger conditions

Page 64 Job settings

Page 123 One-shot execution function

Page 78 Operation action settings

Data operation and processing function

Data linkage function

Communication test function

Performs data linkage among target device, target server, and the MES interface module.

Performs communication test for a target device or target server after receiving a request from MES Interface Function Configuration Tool.

Page 56 Device tag settings

Page 60 Access table/procedure settings

Page 114 Communication test function

Trigger condition monitoring function

The trigger condition monitoring function reads data to be used for a trigger condition, evaluates the trigger condition, and notifies the satisfaction of the trigger condition to the job execution control function.

Processing

Data read to be used for trigger condition

Trigger judgment

Description

Reads data to be used for the trigger condition in job units using the Device memory input/output function.

The data to be used for jobs can also be read at this time.

For details on data read, refer to the following.

Page 42 Device memory input/output function

Evaluates trigger condition which is to be a start condition of a job.

When the trigger condition is satisfied, this function notifies the satisfaction of the trigger condition to the job execution control function.

Trigger judgment

A trigger condition is configured by combining an event and a condition. ( 

Page 46 Combination of conditions)

A trigger condition is evaluated according to a judgment result of the configuration of the trigger condition.

• Event: Shows that an event occurs, and the trigger condition is satisfied when an event occurs.

• Condition: Shows the status at a certain point, and a precondition for trigger condition satisfaction.

The overview of the trigger condition and outline specifications of event/condition type are as follows.

Event/condition type

Condition (Value monitoring)

Attribute

Condition

Event

Condition (Period of time)

Event (Value changed)

Event (Fixed time)

Event (Fixed cycle)

Event (Module monitoring)

Handshake

Timer interval

Time interval

MES Interface

Module

Control CPU

Description

The condition is satisfied (status = true) while the value of device tag component or variable satisfies the specified condition.

The generates an event when the condition turns into the satisfied state from the notsatisfied state (from false to true) for using as an event.

The condition is satisfied (status = true) from the specified start time to the specified end time.

Generates an event when the value of device tag component or variable is changed from the previous value.

Generates an event at the specified time.

Generates an event at the asynchronous time interval with the time in MES interface module.

Generates an event with the time interval based on the time in MES interface module.

Generates an event at start of the MES interface module or at restart/update the settings of the MES interface function.

Generates an event at the status change of the control CPU.

Starts a job according to the value of the device tag component in the target device, and notifies the job completion to the device tag component in the target device.

Condition

Event

Event

Event

Event

5

5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

45

Combination of conditions

Configuration type

Single Event

(SINGLE EVENT)

Number of available events/ conditions

1

Available event/condition

Other than below

• Condition (Period of time)

Multiple Events

(MULTIPLE EVENT)

2

Condition

Combination Event

AND Combination

(CONDITIONS(AND))

OR Combination

(CONDITIONS(OR))

2

2

Precondition  Event Precondition: 1

Event: 1

Other than below

• Condition (Period of time)

• Handshake

• Condition (Value monitoring)

• Condition (Value monitoring)

• Condition (Period of time)

• Condition (Value monitoring)

• Event (Value changed)

• Event (Fixed time)

• Event (Fixed cycle)

Condition for trigger condition satisfaction

At the time when the specified event occurred is regarded that the trigger condition is satisfied.

When using the condition, at the time when the condition is satisfied is regarded as an event occurrence.

At the time when any of the specified multiple events occurred is regarded that the trigger condition is satisfied.

When using the condition, at the time when the condition is satisfied is regarded as an event occurrence.

The specified multiple conditions are combined.

When the logical product (AND) or logical sum

(OR) of the combined conditions is satisfied is regarded as an event occurrence, and the trigger condition is satisfied.

Specify a precondition and event.

When the event occurs while the precondition is satisfied, it is regarded that the trigger condition is satisfied.

Job execution control function

The job execution control function determines the availability of the job start based on the number of executable jobs and their execution status.

This function also reads data which is required for the execution of a job and writes the job execution result.

Processing

Job start

Data read to be used for job

Exclusive control of database server used for job

Execution of action

Writing of job execution result

Job verification function

Description

Upon the reception of the notification when the trigger condition is satisfied, the availability of the job execution is determined by the number of executable jobs and the execution status.

Reads data required for executing job in job units using the data input/output function.

The data which is included in the data to be used for trigger condition is not read.

Performs exclusive control of the database to be used for jobs to prevent that the multiple jobs which use the same database server are dead-locked.

Executes functions of the MES interface module.

Writes the execution result of the job to data using the data input/output function.

Controls writing operation of the start of job, execution of action, and execution result of job when executing job which is in verification before starting operation or in development.

46 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

Trigger buffering function

The trigger buffering function buffers the following information required for job execution as trigger information to execute later when the job execution operation function receives the trigger condition satisfaction notification of the same job which is in execution without discarding the notification.

• Read data of a device tag component

• Time at trigger monitoring

• Time at trigger ON

• Date and time character string

However, this function cannot be enabled for the job (including a job of which trigger type is handshake) which writes data to the CPU module, except for the specific function.

*1

*1 The notification when a job execution is not performed normally (job cancellation notification/notification of exception) is available.

Behavior when the trigger buffering function is disabled (normal)

When a trigger condition for a job is satisfied again during execution of the job, the next job is not executed.

Ex.

When value monitoring is regarded as a condition

Device tag component value

Condition

5

Monitoring interval

Job start

Job execution

Job start

Job execution

Job start

Job execution

Job is not executed.

Behavior when the trigger buffering function is enabled

The trigger information is buffered when the latter trigger condition is satisfied. After the former trigger condition is satisfied, a job is executed according to the trigger information.

Ex.

When value monitoring is regarded as a condition

Condition

Device tag component value

Monitoring interval

Trigger information Ó

Ô Trigger buffer

Job start

Job execution

Ò

Job start

Ó

Õ

Job start

Ô

Job start

Õ

Job start

Ö

When the trigger buffering function is enabled, the data required for a job operation is always stored to the trigger buffer temporarily, then the job is executed depending on the load state.

5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

47

Data operation and processing function

The data operation and processing function calculates value in the first item and second item with the operation specified to the operator, and substitutes it for the substitution item.

This function is used for one of the actions which are to be defined for pre-processing/main-processing/post-processing

Operation example

Substitution item Operator First item Second item

The data categories that can be set for the data operation and processing function are as follows.

 : Available,  : Not available

Data category

Device tag component

Variable

Constant

Macro

Substitution item

(Data write prohibited tags and array tags cannot be set.)

(System variables which are writeprotected cannot be set.)

First item

(Array tags cannot be set.)

Second item

(Only "Date and Time Character String" can be set.)

48 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

Specifications of operations

The list of operations is as follows.

Classification

Substitution operation

Arithmetic operation

Operator

ASSIGN

Description

Substitutes data in the first item for the substitution item.

Character string operation

Bit operation

Type conversion

-

+

%

CONCAT

LENGTH

RIGHT

LEFT

UPPER

LOWER

RTRIM

LTRIM

AND

OR

XOR

RSHIFT

LSHIFT

STR2INT

STR2REAL

INT2STR

REAL2STR

Performs addition of numerical value data.

Performs subtraction of numerical value data.

Performs multiplication of numerical value data.

Performs division of numerical value data.

Calculates remainder of numerical value data.

Combines character string data.

Acquires the number of characters of the character string data.

Reads out character string data from the end/rightmost of the character string data for the specified number of characters.

Reads out character string data from the first/leftmost of the character string data for the specified number of characters.

Converts lower-case characters included in character string data to upper-case characters.

Converts upper-case characters included in character string data to lower-case characters.

Deletes blank characters at the end/rightmost of the character string data.

Deletes blank characters at the first/leftmost of the character string data.

Performs AND operation of integer data for each bit.

Performs OR operation of integer data for each bit.

Performs XOR operation of integer data for each bit.

Shifts integer data to right for the number of specified bits.

Shifts integer data to left for the number of specified bits.

Converts character string data to integer data.

Converts character string data to real number data.

Converts integer data to character string data.

Converts real number data to character string data.

5

5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

49

Data linkage function

Data assignment function

The data assignment function concatenates data to be input/output in the data input/output function and assigns the data to the specified direction.

This function also reports device data to be used for the operations in the CPU module by writing them to the database, and saves the data in the server or operation result to variables temporarily, then reflects data to the device data in the CPU module simultaneously.

Additionally, the constants specified by user can be used as an assignment data.

The availability of data assignment for each data which inputs/outputs in the data input/output function is as follows.

 Available,  : Not available

Target Source

Access field

(SQL statement)

Access procedure argument (Output argument)

Other DB communication data

External communication data

Device tag

component

*1

Variable

Constant

Macro

Access field

(SQL statement)

Access procedure argument

(Input argument)

Other DB communication data

External communication data

Device tag component

Variable

*2

*1,*2,*3,*4

Constant

Macro

 : DB communication action (Select,

Multiple Select)

 : DB communication action (Stored

Procedure)

 : DB communication action (Insert,

Update)

 : DB communication action (Stored

Procedure)

 : DB communication action

 : DB communication action

 : External communication action

 : Operation action

: Notifications

*5

*1 Array tags cannot be used as an assignment source.

*2 The assignment for the device tag components and variables which are write-prohibited cannot be performed.

*3 Only multiple selection processing can be performed for the assignment for array tags.

*4 Only the same array tags can be assigned for array tags.

*5 The assignment processing of each notification is performed in accordance with the specifications of the data assignment function.

50 5 INFORMATION LINKAGE FUNCTION

5.1 Functions of MES Interface Module

5.2

MES Interface Function Configuration Tool

The MES interface module provides information linkage by operating based on the following settings. The settings are specified with MES Interface Function Configuration Tool.

Setting name

Job settings

Target device settings

Device tag settings

Target server settings

Access table/procedure settings

Description

Sets a timing to start linking information and processing (contents to be linked) with a trigger condition and an action.

Sets a CPU module to be accessed from a device tag as a target device.

Sets each piece of data, which is inputted to or outputted from a device such as CPU module by a job, as a device tag component.

Sets a table of data, in which multiple device tag components are grouped, as a device tag.

Sets a server, in which a table specified in a access table is included, as a target server.

The database server which has a database to be linked and the application server which has an application to be linked can be set.

Sets a table/procedure of a database to be accessed from a job as an access table/procedure.

Network settings

This section describes the settings required for network connections.

Window

Click the "Network Settings" in the edit items tree.

5

Displayed items

Item

Ethernet Port (CH1)

Ethernet Port (CH2)

Default Gateway

Host Name

[OK] button

Use the Ethernet port (CH1)

IP Address

Subnet Mask

Use the Ethernet port (CH2)

IP Address

Subnet Mask

Description

Selects this to use the Ethernet port (CH1).

*1

Sets the IP address (CH1) of the MES interface module in decimal.

*2

Sets the subnet mask in decimal when using the subnet mask.

Selects this to use the Ethernet port (CH2).

*1

Sets the IP address (CH2) of the MES interface module in decimal.

*2

Sets the subnet mask in decimal when using the subnet mask.

Selects the necessity of default gateway, and set the IP address.

*3

Sets the host name.

Reflects the specified settings.

*1 CH1 or CH2 must be set to be used.

*2 The same IP address or an IP address of the same network cannot be set to both CH1 and CH2.

*3 Only one of CH1 or CH2 can be registered.

Communications with the same network as each CH is performed from each corresponding CH only.

(Even if a default gateway is set in other CH, communications are not performed from the other CH.)

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

51

Target device settings

This section describes the setting of the target device accessed by the MES interface module.

Target device setting list

This sets the connection route to access a device existing in the own station or other stations from the MES interface module.

The control CPU module is set for the target device name "ControlCPU" in the first item in the default setting.

The first item cannot be deleted or changed the settings. Only the target device name and comment can be changed.

Window

Click the "Target Device Settings" in the edit items tree.

Displayed items

Item

Target Device Setting List Target Device Name

Comment

Device Type

Multiple CPU Setting

Communication Route

Network Communication Route

Co-Existence Network Route

[Edit] button

[Delete] button

Description

Displays the target device name.

Displays the comment set arbitrarily.

Displays the target device type.

Displays the CPU number when the target device is a multiple CPU.

Displays whether the communication route is set or not.

Displays the settings of the network communication route.

Displays the settings of the co-existence network route.

Opens the "Target Device Settings" window of the selected row.

Deletes the settings of selected rows.

52 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Target device settings

This sets the connection route to a device accessed from the MES interface module.

Window

Click the [Edit] button on the "Target Device Setting List" window.

Displayed items

Item

Target Device Name *1

Comment

Target Device Settings

[Communication Test] button

Global Label/Common Device

Comment Settings (optional)

[OK] button

Device Type

Multiple CPU Setting

Use the global label/ common device comment

Global Label/Common

Device Comment Import

Source Setting

Description

Sets the target device name.

Sets an arbitrary comment.

Sets the target device type.

Selects a multiple CPU number.

Performs a communication test with the set access target device.

Selects this to import global labels/common device comments to MES Interface Function

Configuration Tool.

Displays the project path of the engineering tool specified as an import source.

An import source project can be specified in the "Select the Global Label/Common Device

Comment Import Source Project" window displayed by clicking the [...] button.

Reflects the specified settings.

*1 The same name cannot be used for the target device name.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

53

[Network Communication Route] tab

Item

Set the network communication route to a device existing over a single network

Source System Settings

Module Type *1

Route

Station No.

Settings of System to be Routed

Target (Relay Station) System

Settings

Start I/O No.

IP Address

Network No.

Station No.

Module Type

Module Type

IP Address

Network No.

Station No.

Description

Selects this to set the route for accessing a device existing over a single network.

Sets the module type for the source system.

Sets the routed system when selecting "MES Interface Module (Ethernet Port) for the module type.

Sets the station number for the source system.

Setting range: 1 to 120

Sets the start I/O No. when selecting "CC-Link System Master/Local Module" for the module type.

Setting range: 0 to FE0H

Sets the IP address of the Ethernet port (Ethernet Interface Module/CPU) on the system to be routed.

Sets the network No. of the Ethernet interface module to be routed.

Setting range: 1 to 239

Sets the station No. of Ethernet Interface Module to be routed.

Setting range: 1 to 120

Sets the module type of the system to be routed.

Displays module types which can be used in the target (routed) system depending on the module type selected in the source system.

Sets the IP address of the target (relay station) system.

Sets the network No. of the target system.

Setting range: 1 to 239

Sets the station No. of the target system.

Setting range: 0 to 63 (for CC-Link System Master/Local Module), 0 to 120 (for other modules)

*1 When selecting "MES Interface Module (Ethernet Port), switching to the [Co-existence Network Route] tab is not possible.

[Co-Existence Network Route] tab

Item

Set the co-existence network route to a device existing over a different network

Relay Station System Settings Module Type

Description

Selects this to set the route for accessing a device existing over a different network.

Co-Existence Target System

Settings

Start I/O No.

Module Type

Network No.

Station No.

Sets the module type that can be used in a co-existence network route depending on the module type set in the source system.

Sets the start I/O No. of CC-Link System Master/Local Module in the relay station system.

Setting range: 0 to FE0H

Displays module types which can be used in the target system depending on the module type selected in the relay station system.

Sets the network No. of CC-Link IE Controller Network module, CC-Link IE Field Network module,

MELSECNET/H network module, and Ethernet interface module for the access target.

Setting range: 1 to 239

Sets the station number of CC-Link IE Controller Network module, CC-Link IE Field Network module,

MELSECNET/H network module, CC-Link System Master/Local Module, and Ethernet interface module for the target.

Setting range: 0 to 63 (for CC-Link System Master/Local Module), 0 to 120 (for other modules)

When accessing a QCPU (Q mode) for which the MELSOFT connection extended setting was set, specify

"Ethernet Interface Module".

54 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Device tag settings

This section describes the setting of the device tag accessed by the MES interface module.

Device tag setting list

This sets a group of device memory accessed from the MES interface module as a tag.

Up to 64 device tags can be set.

Window

Click the "Device Tag Settings" in the edit items tree.

5

Displayed items

Item

Device Tag Setting List Device Tag Name

Comment

Data Writing

Array Size

Array Type

[Edit] button

[Delete] button

Description

Displays the name of device tag setting.

Displays the comment set arbitrarily.

Displays whether the writing to the device tag is protected or not.

Displays the array size of the array tag setting.

Displays the array type of the array tag setting.

Opens the "Device Tag Settings" window of the selected row.

Deletes the settings of selected rows.

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

55

Device tag settings

This sets the settings for the device memory accessed from the MES interface module.

Window

Click the [Edit] button on the "Device Tag Setting List" window.

Displayed items

Item

Device Tag Name

*1

Comment

Device Tag Settings Component Name

Target Device

[...] button

Device Memory (Start)

Device Memory (End)

Data Type

Length

Data Write-Protect Setting (optional)

Array Tag Settings (optional)

[Delete] button

Protect data writing

Set the array tag to be used for the assignment destination of Multiple

Select

Array Tag Setting

[Change] button

[OK] button

*1 A same name cannot be used for the device tag name.

Description

Sets the device tag name.

Sets an arbitrary comment.

Sets the component name to be accessed.

Selects the device having the component to be accessed.

Opens the "Target Device Settings" window of the corresponding target device.

Page 53 Target device settings

Specifies the start of the device memory to be accessed.

Displays the end device obtained by calculating the set start device and the data type and number of characters.

Selects a data type of the device memory to be accessed.

Set the number of characters when specifying the character string to the data type.

Deletes the settings of selected rows.

Selects this to protect data writing to the device tag being set.

Selects this to use a device tag as an array tag.

Displays the array size and array type.

Opens the "Array Tag Setting" window for the device tag being set.

Reflects the specified settings.

56 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Target server settings

This section describes the setting of the target server connected with the MES interface module.

Target server setting list

Servers accessed from the MES interface module are set.

Up to 16 servers can be set for target server.

Window

Click the "Target Server Settings" in the edit items tree.

5

Displayed items

Item

Target Server Setting List Target Server Name

Comment

Server Type

IP Address

[Edit] button

[Delete] button

Description

Displays the target server setting name.

Displays the comment set arbitrarily.

Displays the server type.

Displays the IP address of the server.

Opens the "Target Server Settings" window of the selected row.

Deletes the settings of selected rows.

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

57

Target server settings

This sets the settings for the server accessed the from MES interface module.

Window

Click the [Edit] button on the "Target Server Setting List" window.

Displayed items

Item

Target Server Name *1

Comment

Target Server Common

Settings

Server Type

IP Address

Port No.

Communication Timeout

Time

*2,*3

Target Server Individual

Settings

Access Error Notification

Settings (optional)

Data Source Name

User Name

*4

Password

Database Type *5

Access Error Notification

Setting

[Change] button

[Communication Test] button

[OK] button

Description

Sets the target server name.

Sets an arbitrary comment.

Sets the target server type.

Sets the IP address of the server in which DB Connection Service is installed in decimal.

Sets a port number of the server.

Setting range: 1024 to 65535

Sets the timeout time until the MES interface module detects a communication error when a communication error occurs on the network between the MES interface module and the server.

Setting range: 1 to 180 seconds

Sets the name of the ODBC data source to be accessed.

Sets the user name to access the database/application server.

Sets the password to access the database/application server.

Selects the database server type.

Displays whether or not to notify the current setting status for the access error status.

Opens the "Access Error Notification Setting" window.

Performs a communication test with the set access target server.

Reflects the specified settings.

*1 A same name cannot be used for the target server name.

*2 The communication timeout time is treated as timeout value when server is down or network is disconnected. In cases where abnormality can be detected before such occurrence, an error is detected without waiting for timeout time.

*3 If the communication time out time is set longer, the MES interface function such as setting update, module stop, and SD memory card format may require time to stop.

*4 When the database type is Oracle 11g, Oracle 12c, the user name is case-sensitive.

*5 In the communication test function, even if a database which is different than the actual connected database is set, the communication test may succeed.

58 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Access table/procedure settings

This section describes the setting of the access table/procedure connected by the MES interface module.

Access table/procedure setting list

This sets the settings for the access table/procedure accessed from the MES interface module.

Up to 1024 access tables/procedures can be registered.

Window

Click the "Access Table/Proc. Settings" in the edit items tree.

5

Displayed items

Item

Access Table/Procedure

Setting List

[Edit] button

[Delete] button

Access Table/Procedure

Name

Comment

Target Server Name

Table/Procedure Type

DB Table/Procedure Name

Description

Displays the setting name of the access table/procedure.

Displays the comment set arbitrarily.

Displays the setting name of the target server.

Displays the set table/procedure type.

Displays the set DB table/procedure name.

Opens the "Access Table/Procedure Settings" window of the selected row.

Deletes the settings of selected rows.

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

59

Access table/procedure settings

This sets a group of database field accessed from the MES interface module as access table/procedure.

Window

Click the [Edit] button on the "Access Table/Procedure Setting List" window.

Displayed items

Item

Access Table/Procedure Name *1

Comment

Access Table/Procedure Settings Target Server

[...] button

Table/Procedure Type

[OK] button

*1 A same name cannot be used for the access table/procedure name.

Description

Sets the access table/procedure name.

Sets an arbitrary comment.

Selects a target server.

Opens the "Target Server Settings" window for the corresponding target server.

Opens a new "Target Server Settings" window when the target server is

"(Add)".

Page 58 Target server settings

Selects a table or a stored procedure to be set.

Reflects the specified settings.

60 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

• When selecting "Access Table"

Item

Access Table Detailed Settings

Access field list

[Browse DB Table Information] button

[Browse DB Field Information] button

DB Table Name

Access Field Name

DB Field Name

Data Type

Precision Hold

Description

Opens the "Browse DB Table Information" window.

Opens the "Browse DB Field Information" window.

Sets the DB table name to be accessed.

Set the access field name used when assigning data on the "DB

Communication Action" window.

Sets the field name of the data base.

Sets the data type acquired by selecting manually or browsing DB field arbitrarily.

Sets whether or not to set the precision hold when the data is real number and date and time.

When enabled at the time of converting to SQL numeric character string, it converts such that there is no occurrence of real number rounding error. In addition, fractional seconds are added in the date and time.

This setting is applied when used for the following access fields.

• Narrowing-down condition for Select

• Data assignment for Insert

• Data assignment and narrowing-down condition for Update

• Narrowing-down condition for Delete

• Narrowing-down condition for Multiple Select

Sets the default value setting.

Sets the default value of the access field.

Deletes the settings of selected rows.

Default Value Setting

Default Value

[Delete] button

• When selecting "Access Procedure"

Item

Access Procedure Detailed Settings

Access procedure list

[Browse DB Procedure Information] button

DB Procedure Name

Access Proc. Argument Name

Description

Opens the "Browse DB Procedure Information" window.

Argument No.

Data Type

Assignment Direction

*2

Sets the DB procedure name to be used as access procedure.

Sets the access procedure argument by selecting manually or selecting the

DB procedure name acquired by browsing DB procedure information.

Displays the DB procedure argument number.

Sets the data type acquired by selecting manually or browsing DB procedure information.

Sets the assignment direction for the argument acquired by selecting manually or browsing DB procedure information.

Deletes the settings of selected rows.

[Delete] button

*2 In case of SQL Server, because there is no distinction between "OUT" and "INOUT", acquire as "INOUT".

However, when there is no input usage in the DB communication action (Stored Procedure), the assignment direction is recommended to set to "OUT" manually.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

61

DB table information browse

This selects the DB table name that can be used in the specified target server from the list.

Operating procedure

1.

Click the [Browse DB Table Information] button on the "Access Table/Procedure Settings" window.

2.

Select the DB table name to be used from the list.

The DB table name is not displayed on the list in the following cases. If the target DB table name is not displayed, enter it manually.

• When the DB table name exceeds the maximum number of characters (32 characters (Unicode))

• When the number of DB tables exceeds the maximum number of items displayed (1024 tables)

• When the characters that cannot be used for the DB table name are included

Contents of the list can be updated with the [Refresh] button.

3.

Click the [OK] button.

DB field information browse

This selects the field name of the specified DB table from the list.

Operating procedure

1.

Click the [Browse DB Field Information] button on the "Access Table/Procedure Settings" window.

2.

Select the DB field name to be used from the list.

The DB field name is not displayed on the list in the following cases. If the target DB field name is not displayed, enter it manually.

• When the DB field name exceeds the maximum number of characters (32 characters (Unicode))

• When the number of DB fields exceeds the maximum number of items displayed (1024 fields)

• When the characters that cannot be used for the DB field name are included

• When the data type is not supported by the DB field

Contents of the list can be updated with the [Refresh] button.

3.

Click the [OK] button.

DB procedure information browse

This selects the DB procedure name that can be used in the specified target server from the list.

Operating procedure

1.

Click the [Browse DB Procedure Information] button on the "Access Table/Procedure Settings" window.

2.

Select the DB procedure name to be used from the list.

The DB procedure name is not displayed on the list in the following cases. If the target DB procedure name is not displayed, enter it manually.

• When the DB procedure name exceeds the maximum number of characters (32 characters (Unicode))

• When the number of DB procedures exceeds the maximum number of items displayed (1024 procedures)

• When the number of DB procedure arguments exceeds 256

• When the characters that cannot be used for the DB procedure name are included

Contents of the list can be updated with the [Refresh] button.

3.

Click the [OK] button.

62 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Job settings

This section describes the job settings for the MES interface module.

Job setting list

The job settings in the project are listed.

Window

Click the "Job Settings" in the edit items tree.

Displayed items

Item

Job Setting List Job Name

Comment

Job Configuration

Event/Condition Type No.1

Event/Condition Type No.2

Trigger Buffering Setting

Access Type

Access Interval

Reading Target Data

DB Buffering Setting

DB Buffer Use Size

Verification Settings

[Edit] button

[Delete] button

Description

Displays the job setting name.

Displays the comment set arbitrarily.

Displays the job type.

Displays the event/condition type No.1 of the trigger condition.

Displays the event/condition type No.2 of the trigger condition.

Displays whether the trigger buffering setting is enabled or disabled.

Displays the job access type.

Displays the access interval to read the data used at trigger judgment.

Displays the target data for reading.

Displays the settings of the DB buffering.

Displays the size to be a criterion for one DB buffering for the target job.

Displays the settings of the verification setting.

Opens the "Job Settings" window of the selected row.

Deletes the settings of selected rows.

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

63

5

Job settings

This displays a wizard for editing job settings.

Window

Click the [Edit] button on the "Job Setting List" window.

Displayed items

Item

Job Name *1

Comment

[Job Configuration] tab

[Trigger Conditions] tab

[Read Data at Trigger Judgment] tab

[Pre-Processing] tab

[Main-Processing] tab

[Post-Processing] tab

[Verification Settings] tab

[Back] button

[Next] button

[OK] button

*1 A same name cannot be used for the job name.

Description

Enters a job name.

Sets an arbitrary comment.

Sets the settings for job configuration.

Sets the settings for trigger condition.

Selects the data reading method to be used at trigger judgment.

Sets the settings for pre-processing.

Sets the settings for main-processing.

Sets the settings for post-processing.

Sets the settings for verification control for a job in verification.

Moves to the previous setting window.

Moves to the next setting window.

Reflects the specified settings.

Reference

Page 65 Job configuration

Page 66 Trigger conditions

Page 68 Read data at trigger judgment

Page 69 Pre-processing

Page 70 Main-processing

Page 72 Post-processing

Page 80 Verification settings

The setting window can be switched by clicking the set tab directly.

A set tab has a check mark ( ).

64 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Job configuration

This selects a job configuration to be set by following the wizard.

Window

Displayed items

Item

Job Configuration Selection

Settings for No. of Pre-Processing and Post-Processing Actions

*1

Job Configuration

Pre-Processing

No. of Pre-Processing Actions

Post-Processing

No. of Post-Processing Actions

Description

Selects the configuration of the job being set.

Selects this to use the pre-processing.

Specifies the maximum number of settings for actions that are set in the preprocessing.

Selects this to use the post-processing.

Specifies the maximum number of settings for actions that are set in the postprocessing.

*1 The setting can be set when "Extended Configuration" is selected for the "Job Configuration".

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

65

Trigger conditions

This sets the settings related to job start of the MES interface module.

Window

Displayed items

Item

Trigger Condition Configuration

Settings

Event/Condition Settings

Configuration Type

Condition Combination Type

Event/Condition Type

Detail Type

Content

[Edit] button

[Delete] button

Trigger Buffering Setting (optional) Trigger Buffering

Condition settings

This sets the conditions to start a job.

Description

Selects the configuration type for the trigger condition.

Selects the combination type when combining multiple conditions.

Displays the event/condition type.

Displays the detail type.

Displays the details according to the event/condition type and detail type.

Opens the "Condition Settings" window of the selected row.

Deletes the settings of selected rows.

Selects whether the trigger buffering is enabled or disabled.

Operating procedure

1.

Click the [Edit] button on the [Trigger Conditions] tab on the "Job Settings" window to set the following items.

Item

Event/Condition Type Common

Settings

Event/Condition Type

Detail Type

Description

Selects the event/condition type.

Selects the detail type of event/condition.

2.

Set the following depending on the event/condition type and detail type.

• Condition (Value Monitoring)

Item

Event/Condition Type Individual

Settings

Monitoring Target

(Data Type)

Condition

Comparison Target

(Data Type)

Description

Sets the monitoring target data for the value monitoring.

Displays the data type of the monitoring target.

Sets the condition for the value monitoring.

Sets the comparison target data for the value monitoring.

Displays the data type of the comparison target.

66 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

• Condition (Period of Time)

Item

Event/Condition Type Individual

Settings

Month and Day

Day of the Week

Start Time

End Time

• Event (Value Changed)

Item

Event/Condition Type Individual

Settings

Monitoring Target

(Data Type)

• Event (Fixed Time)

Item

Event/Condition Type Individual

Settings

Month and Day

Day of the Week

Occurrence Time

• Event (Fixed Cycle) (Timer Interval)

Item

Event/Condition Type Individual

Settings

Timer Interval

• Event (Fixed Cycle) (Time Interval)

Item

Event/Condition Type Individual

Settings

Time Interval

Reference Time

• Event (Module Monitoring) (MES Interface Module)

Item

Event/Condition Type Individual

Settings

At Start of MES Interface Module

At Restart/Update of Settings of the

MES Interface Function

• Event (Module Monitoring) (Control CPU)

Item

Event/Condition Type Individual

Settings

Control CPU Status Change

• Handshake

Item

Event/Condition Type Individual

Settings

Requirement Source/Notification

Destination

(Data Type)

Description

Sets the month and day.

Sets the day of the week.

Sets the time.

Description

Sets the monitoring target data for the value changed.

Displays the data type of the monitoring target.

Description

Sets the month and day.

Sets the day of the week.

Sets the time.

Description

Sets the timer interval.

Setting range: 1 to 3600

Description

Sets the time interval in an interval and a unit.

Sets the reference time for the time interval in hours, minutes, and seconds.

Description

Sets whether to generate an event at start of the MES interface module.

Sets whether to generate an event when restarting or updating the settings of the MES interface function.

Description

Selects an event for the control CPU status change.

Description

Sets the data for the job start request and the job completion notification.

Displays the data type of the job start request and the job completion notification.

3.

Click the [OK] button.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

67

Read data at trigger judgment

This sets a method, interval, and target to read data used for the trigger condition at trigger judgment.

It can be set when setting "Event/Condition Type" using a device tag in "Event/Condition Settings" on the [Trigger Conditions] tab.

Window

Displayed items

Item

Access Type Selection

Access Interval Settings *1

Reading Target Data Setting

(optional)

Access Type

Seconds Specification

Milliseconds Specification

Reading Target Data

[Change] button

Description

Selects the access type.

Selects this to monitor in seconds and specify the monitoring interval in seconds.

Selects this to monitor in milliseconds and specifies the monitoring interval in milliseconds.

Displays the reading target data at trigger judgment.

Opens the "Reading Target Data Setting" window.

*1 It is not displayed when selecting "High-Speed Access (Each Scan)" for the "Access Type".

68 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Pre-processing

This sets the action to be executed as the pre-processing of a job.

Pre-processing can be set when selecting "Extended Configuration" for the "Job Configuration" on the [Job Configuration] tab, and selecting "Use".

Window

Displayed items

Item

Pre-Processing Settings Action Type

Content

[Edit] button

Operation Settings at Pre-Processing

Failure (optional)

[Delete] button

No. of Pre-Processing

Actions

At Processing Failure

[Change] button

Description

Displays the action type.

Displays the outline details of each action according to the action type.

Sets an action of the selected row.

 Page 73 Action settings

Deletes the settings of selected rows.

Specifies the maximum number of settings for the pre-processing action.

Displays the settings of operation at pre-processing failure.

Opens the "Operation Setting at Pre-Processing Failure" window.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

69

Main-processing

This sets the action to be executed as the main-processing of a job.

Window

Displayed items

Item

Main-Processing Settings

Operation Settings at Main-

Processing Failure/Interruption

(optional)

DB Buffering Settings (optional)

Action Type

Content

[Edit] button

[Delete] button

At Processing Failure

At Processing Interruption

[Change] button

DB Buffering

DB Buffer Use Size [Byte]

[Change] button

Description

Displays the action type.

Displays the outline details of each action according to the action type.

Sets an action of the selected row.

Page 73 Action settings

Deletes the settings of selected rows.

Displays the settings when the main-processing is failed (job cancellation).

Displays the settings when the main-processing is interrupted.

Opens the "Operation Settings at Main-Processing Failure/Interruption" window.

Displays the settings (following operations) of the "DB Buffering Setting" window.

Displays the size to be a criterion for one DB buffering for the job being set.

Opens the "DB Buffering Setting" window.

Operation Setting at Main-Processing Failure/Interruption

This sets the job operation when the main-processing is failed or interrupted.

Operating procedure

1.

Click the [Change] button for "Operation Settings at Main-Processing Failure/Interruption (optional)" on the [Main-

Processing] tab on the "Job Settings" window to set the following items.

Item

Operation Settings at Main-

Processing Failure

Operation

Notification

Notification Destination

(Data Type)

Notification Data

(Data Type)

Operation

Description

Selects an operation when the main-processing is failed (job cancellation).

Selects this to notify the main-processing failure (job cancellation).

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Specifies the data to be used as the notification data.

Displays the data type to be used as the notification data.

Selects an operation when the main-processing is interrupted.

Operation Setting at Main-Processing

Interruption

2.

Click the [OK] button.

70 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

DB buffering settings

This sets the DB buffering of the job being set.

Operating procedure

1.

Click the [Change] button for "DB Buffering Settings (optional)" on the [Main-Processing] tab on the "Job Settings" window to set the following items.

Item

DB Buffering Setting

Job Operation Settings at DB

Buffering

DB Buffering

[...] button

Operation

Notification

Notification Destination

(Data Type)

Notification Data

(Data Type)

Description

Selects whether the DB buffering is enabled or disabled, and a buffering area.

Opens the "DB Buffer Settings" window.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Selects an operation when the DB buffering is performed in the main-processing.

Selects this to notify that the DB buffering is performed in the main-processing.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Specifies the data to be used as the notification data.

Displays the data type to be used as the notification data.

2.

Click the [OK] button.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

71

Post-processing

This sets the action to be executed as the post-processing of a job.

Post-processing can be set when selecting "Extended Configuration" for the "Job Configuration" on the [Job Configuration] tab, and selecting "Use".

Window

Displayed items

Item

Post-Processing Settings Action Type

Content

[Edit] button

Description

Displays the action type.

Displays the outline details of each action according to the action type.

Sets an action of the selected row.

 Page 73 Action settings

Deletes the settings of selected rows.

Specifies the maximum number of settings for the post-processing action.

Operation Settings at Post-

Processing Failure

[Delete] button

No. of Post-Processing

Actions

At Processing Failure

[Change] button

Displays the settings of operation at post-processing failure.

Opens the "Operation Setting at Post-Processing Failure" window.

Operation settings at post-processing failure

This sets the job operation when the post-processing is failed.

Operating procedure

1.

Click the [Change] button on the [Post-Processing] tab on the "Job Settings" window to set the following items.

Item

Operation Settings at Post-

Processing Failure

Notification

Notification Destination

(Data Type)

Notification Data

(Data Type)

Description

Selects this to notify the post-processing failure.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Specifies the data to be used as the notification data.

Displays the data type to be used as the notification data.

2.

Click the [OK] button.

72 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Action settings

This section describes the settings for processing performed in a job.

Operating procedure

1.

Click the [Edit] button on the [Pre-Processing] tab/[Main-Processing] tab/[Post-Processing] tab on the "Job Settings" window.

2.

Select an action type to be added.

Action type

DB Communication Action *1

External Communication Action *2

Operation Action

Copy of Action

Description

Sets the action to input/output data in the target server.

Sets the action to execute the program in the application server.

Reference

Page 74 DB communication action setting

Page 77 External communication action settings

Page 78 Operation action settings

Sets the action to perform four/remainder arithmetic operations based on the factors such as device tag or variable and constant.

Copies and adds the set action to utilize.

Page 79 Copy of action

*1 It cannot be selected for the pre-processing and post-processing.

*2 It cannot be selected for the main-processing.

3.

Set the settings on the setting window of each action.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

73

DB communication action setting

This sets the action to input/output data in the target server.

Window

Click the [DB Communication Action] button on the "Action Type Selection" window.

Displayed items

Item

DB Communication Action

Settings

DB Communication Type

Access Table

(Access Procedure)

[...] button

Description

Selects a DB communication type.

Selects the target access table (access procedure) for the DB communication.

[Data Assignment] tab

[Narrowing-Down Conditions] tab

[Sorting Order] tab

[Option] tab

[Exception] tab

Execution SQL Statements (Execution Procedure)

[OK] button

Opens the "Access Table/Procedure Settings" window of the corresponding access table

(access procedure).

Page 60 Access table/procedure settings

Sets the data assignment of the MES interface module in the DB communication.

Sets the narrowing-down of the target record in the DB communication.

Sets the priority order of the corresponding record in select.

Sets the optional function such as the number of target records notification in each DB communication type.

Sets the operation when an exception occurs in the DB communication.

Displays the SQL statements

*1

and procedure executed in the current DB communication action and procedures.

Reflects the settings.

*1 The execution SQL statements may not be displayed properly when using the following combination of modules and software. In that case, update MX MESInterface-R.

MES interface module: "06" or later

MX MESInterface-R: "1.03D" or earlier

[Data Assignment] tab

Item

Data Assignment Settings

[Batch Insertion] button

[Delete] button

Access Field

(Access Procedure Argument)

(Data Type)

Assignment Data

(Data Type)

Description

Displays the access field (access procedure argument) in the selected access table (access procedure).

Displays the data type of the access field (access parameter).

Displays the data assignment direction.

Sets data to be assigned.

Displays the data type to be assigned.

Opens the "Batch Insertion" window.

Deletes the settings of selected rows.

74 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

[Narrowing-Down Conditions] tab

Item

Narrowing-down condition setting list

Combination

Access Field

(Data Type)

Condition

Comparison Target

(Data Type)

[Batch Insertion] button

[Delete] button

[Sorting Order] tab

Item

Sorting order setting list Access Field

Order

[Delete] button

[Option] tab

• DB Communication Type: Select

Item

Notification Settings of the No. of Applicable Records

Operation Setting at Data Null

Field Selection

Notify the No. of applicable records

Notification Destination

(Data Type)

Substitute the default value

• DB Communication Type: Insert

Item

Notification Settings of the No. of Inserted Records

Notify the No. of inserted records

Notification Destination

(Data Type)

• DB Communication Type: Update

Item

Notification Settings of the No. of Updated Records

Notify the No. of updated records

Notification Destination

(Data Type)

• DB Communication Type: Delete

Item

Notification Settings of the No. of Deleted Records

Notify the No. of deleted records

Notification Destination

(Data Type)

Description

Sets the combination method for each narrowing-down condition.

Sets the access field to be used for the narrowing-down condition.

Displays the data type of the access field.

Sets the condition type of the narrowing-down condition.

Sets the data for the comparison target.

Displays the data type of the comparison target.

Opens the "Batch Insertion" window.

Deletes the settings of selected rows.

Description

Sets the access field to be used for the sorting order.

Selects a sorting order for applicable records.

Deletes the settings of selected rows.

Description

Selects this to notify the number of records applied to the narrowing-down condition.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Selects this to store the default value of the access field, if a value (NULL) is selected from a null field.

Description

Selects this to notify the number of inserted records.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Description

Selects this to notify the number of updated records.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Description

Selects this to notify the number of deleted records.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

75

• DB Communication Type: Multiple Select

Item

Notification Settings of the No. of Multiple Selected Records

Notify the record count

Maximum No. of Records

Settings

Operation Setting at the No. of

Selected Records Insufficient

Notification Destination

(Data Type)

Set the Maximum No. of

Records

Setting Value

(Data Type)

Clear the unsubstituted assignment data to 0

Operation Setting at Data Null

Field Selection

Substitute the default value

• DB Communication Type: Stored Procedure

Item

Return Value Notification

Settings

Notify the return value

Notification Destination

(Data Type)

[Exception] tab

Item

No Applicable Record -

Exception Settings (optional)

Multiple Applicable Records -

Exception Settings (optional)

Applicable Record Overflow -

Exception Settings (optional)

Exception Setting

[Change] button

Exception Setting

[Change] button

Exception Setting

[Change] button

Description

Selects this to notify the number of records applied to the narrowing-down condition and the number of selected records.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Selects this to set the maximum number of records to be selected in Multiple Select.

Specifies the data to be used for the setting value.

Displays the data type to be used for the setting value.

Selects this to clear the unsubstituted assignment data (up to the maximum number of records) to 0, if the number of selected records is less than the number of array tag components of the assignment data or the specified maximum number of records.

Selects this to store the default value of the access field, if a value (NULL) is selected from a null field.

Description

Selects this to notify the return value of Stored Procedure.

Specifies the data to be used for the notification destination.

Displays the data type to be used for the notification destination.

Description

Displays the operation setting when an exception (no applicable record) occurs.

Opens the "Exception Settings (No Applicable Record)" window.

Displays the operation setting when an exception (multiple applicable records) occurs.

Opens the "Exception Settings (Multiple Applicable Records)" window.

Displays the operation setting when an exception (applicable record overflow) occurs.

Opens the "Exception Settings (Applicable Records Overflow)" window.

76 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

External communication action settings

This sets the action to execute the program in the application server.

Window

Click the [External Communication Action] button on the "Action Type Selection" window.

Displayed items

Item

Target Server Selection Target Server

[...] button

Execution Command Setting

Program Execution Option Settings

(optional)

Execution Command

Option

Return Value Mismatch - Exception

Settings (optional)

[Change] button

Exception Setting

[Change] button

[OK] button

Description

Selects the target server for the external communication action.

Opens the "Target Server Settings" window for the corresponding target server.

Page 58 Target server settings

Sets commands to be executed in the program execution.

Displays the settings of the optional function such as execution completion standby.

Opens the "Program Execution Option Setting" window.

Displays the settings of the operation when the return value does not match with the expected value.

Opens the "Exception Settings (Return Value Mismatch)" window.

Reflects the settings.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

77

Operation action settings

This sets the action to perform four/remainder arithmetic operations based on the factors such as device tag or variable and constant.

Window

Click the [Operation Action] button on the "Action Type Selection" window.

Displayed items

Item

Operation Action Settings Substitution Item

(Data Type)

Operator

First Item

(Data Type)

Second Item

(Data Type)

[Delete] button

[OK] button

Description

Sets the data to substitute the operation result.

Displays the data type to substitute the operation result.

Selects an operator.

Sets the data (first item) to be used for operation.

Displays the data type (first item) to be used for operation.

Sets the data (second item) to be used for operation.

Displays the data type (second item) to be used for operation.

Deletes the data corresponding to the selected rows.

Reflects the settings.

78 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

Copy of action

This copies and adds the set action to utilize.

Window

Click the [Copy of Action] button on the "Action Type Selection" window.

Displayed items

Item

Copy Source Job Selection

Copy Action Selection

*1

[OK] button

Copy Source Job

Action Type

Content

Description

Selects the job to copy an action.

Displays the action type to be copied.

Displays the details of action to be copied.

Copies the selected action.

*1 The display details are the same in the [Pre-Processing] tab, [Main-Processing] tab, and the [Post-Processing] tab.

5

5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

79

Verification settings

This sets log output settings (working history, detailed log) and input/output simulation settings (device tag writing control, DB output control) for job verification.

Window

Displayed items

Item

Working History Settings (optional)

Data Output Inhibition Necessity

Settings (optional)

Job Execution Inhibition Necessity

Setting (optional)

Working History

Detailed Log

Inhibit the data output to the target device

Inhibit the data output to the target server

Inhibit the job execution even when the trigger condition is satisfied.

Description

Selects whether to output or not output the working history.

Selects whether to output or not output the detailed log.

Selects this to inhibit the data output to avoid affecting to the target device at the job operation verification.

Selects this to inhibit the data output to avoid affecting to the target server at the job operation verification.

Selects this to inhibit the job execution even when the trigger condition is satisfied.

80 5 INFORMATION LINKAGE FUNCTION

5.2 MES Interface Function Configuration Tool

5.3

DB Connection Service and Setting Tool

This section describes DB Connection Service and DB Connection Service Setting Tool.

DB Connection Service functions

The information linkage function of the MES interface module can be used by installing DB Connection Service on the server.

DB connection function

The DB connection function connects the MES interface module and the ODBC interface for database.

The following shows the operation on the database server.

Database

ODBC

Database server

Ó

Ò

Information linkage function

Ô

When accessing

DB Connection

Service

When SQL execution is failed

Access log

SQL failure log

 An SQL statement or stored procedure execution request is received from the information linkage function performing on the MES interface mode.

 The SQL statement or stored procedure is executed by accessing the database via ODBC interface.

 The execution result is sent to the MES interface module.

5

5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

81

Program execution function

The program execution function performs a program on the application server upon request from the MES interface module.

The following shows the operation on the application server.

Program

Ó

Ò

Information linkage function

Ô

When accessing

DB Connection

Service

Access log

Application server

 A program execution request is received from the information linkage function performing on the MES interface module.

 The program on the application server is executed.

* 1

 The program execution result is sent to the MES interface module.

*1 DB Connection Service Client (user session) executes programs.

DB Connection Service Client is automatically started at the time of user login.

DB information browse function

This function sends table information (such as table names and field names) or stored procedure information in the database to MES Interface Function Configuration Tool.

The function is performed when browsing the table information or stored procedure information with the communication action setting of MES Interface Function Configuration Tool.

Page 62 DB table information browse

Page 62 DB field information browse

Page 62 DB procedure information browse

Configuration personal computer

Database

ODBC

MES Interface

Function

Configuration Tool

Ò

DB Connection

When accessing

Access log

Service

Database server

82

 When clicking the [Browse DB Table Information] button, the [Browse DB Field Information] button, or the [Browse DB

Procedure Information] button of MES Interface Function Configuration Tool, a request to browse the table information or stored procedure information is received from MES Interface Function Configuration Tool.

 The table information (table name and field name) or stored procedure information in the database is acquired.

 The table information (table name and field name) or stored procedure information is returned to MES Interface Function

Configuration Tool.

5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

Security function

The security function can specify the IP address of the MES interface module and a configuration personal computer that can connect to DB Connection Service to ensure the security of the server.

Batch specification using the mask bit length specification is possible.

If the security function is not used, any MES interface module and configuration personal computer can be connected to DB

Connection Service.

Log output function

DB Connection Service outputs an access log and an SQL failure log.

Access log

The communication details between the MES interface module and DB Connection Service are output to the access log.

For access log specifications, refer to the following.

Page 124 Access log

SQL failure log

The error information are output to the SQL failure log when the SQL statement or stored procedure cannot be completed normally in the database due to the reason such as no table exists.

For SQL failure log specifications, refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Log characterset specification

A log file (access log, SQL failure log) is output in ASCII/SJIS or Unicode (UTF-8) depending on the log characterset specification of DB Connection Service Setting Tool.

When the settings of the "Log characterset" are changed, a new log is output by switching the output file, even if the "access log capacity" specified by the user is not achieved.

The file name at the time of switching the output file is changed in the same way as when the file capacity exceeds.

5

5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

83

Setting items

The following shows how to change the settings of DB Connection Service.

The settings of DB Connection Service which is currently in operation are displayed during start.

Operating procedure

1.

Set the following items, then click the [Reflect settings] button.

Item

Service port (required)

DB access timeout (required)

Description

Sets the port number where DB Connection Service operates.

Sets the value of "DB access timeout" (unit: second) for the case when no response is returned to the MES interface module after requesting the server to write/read the value to/from the database or execute a program.

Limit IP addresses permit to connect

Output access log

Output SQL failed log

Specifies whether to set the connection-permitted IP address.

Sets whether to output the access log.

Sets whether to output the SQL failure log.

Log character code Specifies the character code of the log file (access log, SQL failure log) that is output by DB Connection Service in ASCII/SJIS or Unicode.

2.

After updating the settings, check whether any errors occurs by selecting [Administrative Tools]  [Event Viewer] of

Windows.

Precautions

● Change the settings of DB Connection Service when a job using DB Connection Service is not operating.

The status is as follows:

• The programmable controller is powered off.

• The MES interface function is stopped to perform with [Online]  [Remote operation] of MES Interface Function

Configuration Tool. (

 Page 115 MES interface module diagnostics)

● When reflecting the settings while a job using DB Connection Service is running, the execution of the connected job is canceled and a communication error occurs.

For a job in which the DB buffering is enabled, any SQL statement is buffered in the DB buffer.

84 5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

Service port (required)

This sets the port number where DB Connection Service operates.

1,*2

The set port number is used for communications with the MES interface module and a configuration personal computer.

*1 Set the value in [Service port] same as the one set in [Port No.] of [Access Target Server Settings] of MES Interface Function

Configuration Tool.

 Page 93 Setting a target server

*2 Specify a port number that is not being used by any database or other applications.

Usually, it does not need to be changed.

Setting data

Setting range: 1024 to 65535, Default: 5112

DB access timeout (required)

This sets the value of "DB access timeout" (unit: second) for the case when no response is returned to the MES interface module or a configuration personal computer after requesting the server to write/read the value to/from the database or execute a program.

When a timeout occurs, the connection with the MES interface module or the configuration personal computer is disconnected and job execution is canceled.

Set the setting values in "Connection time out time" for [Access Target Server Settings] in MES Interface Function

Configuration Tool and "DB access timeout time" in DB Connection Service Setting Tool as follows:

• Setting value of connection timeout time  setting value of DB access timeout time

Setting data

Setting range: 1 to 3600, Default: 30

Limit IP addresses permit to connect

This specifies whether to set the connection-permitted IP address.

By selecting the "Limit IP addresses permit to connect" checkbox, connection is permitted only from the MES interface module and the configuration personal computer with the set IP address.

At least one IP address needs to be set for connection-permitted IP address. Up to 64 IP addresses can be set for it.

When not selecting the "Limit IP addresses permit to connect" checkbox, connection is permitted from any MES interface module and configuration personal computer.

When selecting the" Limit IP addresses permit to connect" checkbox, set the IP addresses with connection permission.

Outputting access log

For details, refer to the following.

Page 124 Access log

5

5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

85

Output SQL failed log

This sets whether to output the SQL failure log.

When selecting the "Output SQL failed log" checkbox, set the following items.

Item

Output destination

SQL failed log capacity

Description

Sets the output destination of a log file.

Sets the file capacity for each SQL failure log and number of files.

Setting data

Default: Output

Output destination

This sets the output destination of a log file.

If no output destination is set, the log is output to an install folder.

If a read-only file is specified, the log is not output and "SQL failure log output error" is output to [Administrative Tools] 

[Event Viewer] of Windows.

Setting data

Default: "sqlFailed.log"

SQL failed log capacity

This sets the file capacity for each SQL failure log and number of files.

If the capacity for a file is exceeded, the log is copied to a file with a numbered file name and a new log file is created.

If the total number of files exceeds the one which is set, the file is deleted from the oldest one.

Setting data

Setting range: 1 to 10 MB  2 to 100 files, Default: 1 MB  10 files

Specify the log characterset

This specifies the character code of a log file (access log, SQL failure log) that is output by DB Connection Service in ASCII/

SJIS or Unicode.

The specified character code is enabled after the settings are updated.

Setting data

Default: ASCII/SJIS

86 5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

Help

The product information of DB Connection Service Setting Tool and the "Connection to MITSUBISHI ELECTRIC FA Global

Website" window are displayed.

Product information

Operating procedure

1.

Select [Help]  [Product information] from the menu.

2.

The "Product information" window of DB Connection Service Setting Tool appears.

Connection to MITSUBISHI ELECTRIC FA Global Website

Operating procedure

1.

Select [Help]  [Connect to MITSUBISHI ELECTRIC FA Global Website] from the menu.

2.

The MITSUBISHI ELECTRIC FA Global Website appears.

5

5 INFORMATION LINKAGE FUNCTION

5.3 DB Connection Service and Setting Tool

87

6

LINKING WITH DATABASE

In this chapter, trainees set parameters with MES Interface Function Configuration Tool and check that information is input/ output from the database

6.1

Parameter Settings

This section describes how to set the parameters with MES Interface Function Configuration Tool and DB Connection Service

Setting Tool.

The following is the standard setup procedure.

1.

Set two Ethernet ports and a common host name in [Network Settings]. ( 

Page 89 Setting a network)

2.

Set a connection route to access a device existing in the own station or other stations from the MES interface module in

[Target Device Settings]. (

 Page 90 Setting a target device)

3.

Set a logic name to the device memory of the target device as a tag component in [Device Tag Settings]. Also, set the group of device tag components as a device tag. ( 

Page 91 Setting device tags)

4.

Set the server type, network information, and user authentication information in [Target Server Settings]. ( 

Page 93

Setting a target server)

5.

Set a logic name to the table/procedure and field/procedure argument of the database as an access table/procedure and access field/procedure argument in [Access Table/Proc. Settings]. (

 Page 94 Setting access tables)

6.

Set the trigger condition that collects or transfers data, and create a transaction that relates the specific data with an action in [Job Settings]. (

Page 98 Setting jobs (GettingProject), Page 103 Setting jobs (Reporting))

88 6 LINKING WITH DATABASE

6.1 Parameter Settings

Parameter setting procedure of MES Interface Function

Configuration Tool

Starting MES Interface Function Configuration Tool

Operating procedure

1.

Select [MELSOFT]  [MELSEC iQ-R Series MES interface function configuration tool] from Windows

Start.

1.

Select!

Setting a network

Operating procedure

1.

Select!

2.

Check!

1.

Select [Network Settings] in the edit item tree.

2.

Check that the "Use the Ethernet port (CH1)" checkbox is selected because the Ethernet port (CH1) is connected.

This setting is used as a default.

3.

Click the [OK] button.

6

3.

Click!

6 LINKING WITH DATABASE

6.1 Parameter Settings

89

Setting a target device

Operating procedure

1.

Select!

2.

Click!

2.

Select!

1.

Select [Target Device Settings] in the edit item tree.

2.

Select "ControlCPU", and click the [Edit] button.

3.

Check the details, and click the [OK] button.

This setting is used as a default.

3.

Click!

90 6 LINKING WITH DATABASE

6.1 Parameter Settings

Setting device tags

This sets which data is used in which device(address) in the device specified in the target device setting.

The device tag "GettingData" is set for the device that selects the production information. The device tag "PuttingData" is set for the device that inserts the production result into the database.

Operating procedure

1.

Right-click [Device Tag Settings] in the edit item tree, and select [Add Item].

1.

Select!

6

2.

Enter!

2.

Enter "GettingData" in "Device Tag Name", and set each setting item according to the following table.

3.

Click the [OK] button.

2.

Set!

3.

Click!

Component Name

Production plan volume

Specified weight

Size

Production plan volume acquisition

Target Device Device Memory (Start)

ControlCPU

ControlCPU

ControlCPU

ControlCPU

D100

D110

D120

X100

Device Memory (End) Data Type

D100

D110

D120

X100

Word [Unsigned]/Bit String [16-bit]

Word [Unsigned]/Bit String [16-bit]

Character string [ASCII/SJIS]

Bit

Length

2

6 LINKING WITH DATABASE

6.1 Parameter Settings

91

4.

Select!

4.

Add another device tag.

5.

Enter!

5.

Enter "PuttingData"in the "Device Tag Name", and set each setting item according to the following table.

6.

Click the [OK] button.

5.

Set!

6.

Click!

Component Name

Pattern

Quality determination

Number of accepted products

Number of rejected products

Production volume

Container ID

Target Device Device Memory (Start)

ControlCPU

ControlCPU

ControlCPU

D0

D140

D150

Device Memory (End) Data Type

D0

D140

D150

Word [Unsigned]/Bit String [16-bit]

Word [Unsigned]/Bit String [16-bit]

Word [Unsigned]/Bit String [16-bit]

ControlCPU

ControlCPU

ControlCPU

D160

D200

D210

D160

D200

D212

Word [Unsigned]/Bit String [16-bit]

Word [Unsigned]/Bit String [16-bit]

Character string [ASCII/SJIS]

6

Length

92 6 LINKING WITH DATABASE

6.1 Parameter Settings

Setting a target server

Operating procedure

1.

Select!

1.

Right-click [Target Server Settings] in the edit item tree, and select [Add Item].

2.

Enter "SampleServer" in "Target Server Name", and set each setting item according to the following table.

6

Setting Item

Target Server Name

Target Server Common Settings

Target Server Individual Settings

Access Error Notification Setting (optional)

Server Type

IP Address

Port No.

Communication Timeout Time

Data Source Name

User Name

Password

Database Type

Access Error Notification Setting

Settings

SampleServer

Database Server

192.168.3.100

5112

10

SAMPLE sa

Fatec_MES

SQL Server 2016

Not Notify

Precautions

• Set the same IP address as TCP/IP of the personal computer.

Page 148 TCP/IP Setting on Personal Computer

• Set the same data source name as the one set on the [System DSN] in the ODBC setting.

Page 37 ODBC (Open Database Connectivity) Setting

• Set the same user name and password as the one set in the database.

The user name/password are the same as the login ID and password that are entered when the device is connected to the following server.

Page 34 Database table creation procedure

6 LINKING WITH DATABASE

6.1 Parameter Settings

93

Setting access tables

This sets an access table by grouping some fields in the target database to be accessed from the MES interface module.

The access table/procedure name "ProjectTable" is set for the table that selects the production information from the database.

The access table/procedure "JudgementTable" is set for the table that inserts the production result into the database.

Operating procedure

1.

Right-click [Access Table/Proc. Settings] in the edit item tree, and select [Add Item].

1.

Select!

4.

Click!

2.

Enter!

3.

Select!

2.

Enter "ProjectTable" in "Access Table/Procedure

Name".

3.

Select "SampleServer" in "Target Server" in "Access

Table/Procedure Settings", and select "Access Table" in

"Table/Procedure Type".

4.

Click the [Browse DB Table Information] button in

"Access Table Detailed Settings".

5.

Select "Project", and click the [OK] button.

5.

Click!

94 6 LINKING WITH DATABASE

6.1 Parameter Settings

6.

Click!

6.

Click the [Browse DB Field Information] button in

"Access Table Detailed Settings".

7.

Select "Pattern", "Size", "ProductionPlanVolume", and

"SpecifiedWeight", and click the [OK] button.

6

7.

Click!

8.

Set each setting item according to the following table, and click the [OK] button.

8.

Click!

Access Field Name DB Field Name

Pattern

Size

Pattern

Size

ProductionPlanVolume

SpecifiedWeight

ProductionPlanVolume

SpecifiedWeight

Data Type

Integer

Character String

[Unicode(NCHAR)]

Integer

Integer

Precision Hold Default Value Setting

Disable

Disable

Disable

Disable

Disable

Disable

Disable

Disable

Default Value

6 LINKING WITH DATABASE

6.1 Parameter Settings

95

9.

Select!

9.

Add another access table/procedure.

12.

Click!

10.

Enter!

11.

Select!

10.

Enter "JudgementTable" in "Access Table/Procedure

Name".

11.

Select "SampleServer" in "Target Server" in "Access

Table/Procedure Settings", and select "Access Table" in

"Table/Procedure Type".

12.

Click the [Browse DB Table Information] button in

"Access Table Detailed Settings".

13.

Select "Judgement", and click the [OK] button.

13.

Click!

14.

Click the [Browse DB Field Information] button in

"Access Table Detailed Settings".

14.

Click!

96 6 LINKING WITH DATABASE

6.1 Parameter Settings

15.

Select "ContainerID", "DateAndTime",

"QualityDetermination",

"TotalNumberOfAcceptedProducts", and

"TotalNumberOfRejectedProducts", and click the [OK] button.

15.

Click!

16.

Set each setting item according to the following table, and click the [OK] button.

16.

Click!

Access Field Name

ContainerID

DateAndTime

QualityDetermination

TotalNumberOfAcceptedProducts

TotalNumberOfRejectedProducts

DB Field Name

ContainerID

DateAndTime

QualityDetermination

TotalNumberOfAcceptedProducts

TotalNumberOfRejectedProducts

Data Type Precision

Hold

Disable Character String

[Unicode(NCHAR)]

Date and Time [Without

Time Zone]

Integer

Integer

Integer

Disable

Disable

Disable

Disable

Default Value

Setting

Disable

Disable

Disable

Disable

Disable

Default

Value

6

6 LINKING WITH DATABASE

6.1 Parameter Settings

97

Setting jobs (GettingProject)

This sets when and how the MES interface module operates to the database.

When the production information acquisition button is touched (X100 is turned on), set the conditions to select the production information from the database.

Operating procedure

1.

Right-click [Job Settings] in the edit item tree, and select

[Add Item].

1.

Select!

2.

Set!

2.

Set!

2.

Set each setting item as follows in the [Job configuration] tab.

[Setting details]

Job Name: GettingProject

Job Configuration: Main Configuration

3.

Click the [Next] button.

3.

Click!

98 6 LINKING WITH DATABASE

6.1 Parameter Settings

5.

Click!

4.

Set!

4.

Set each setting item as follows in the [Trigger

Conditions] tab.

[Setting details]

Configuration Type: Single Event

Condition Combination Type: 

Trigger Buffering: Disable

5.

Click the [Edit] button.

6.

Set!

7.

Click!

6.

Set each setting item as follows on the "Event/Condition

Setting" window.

[Setting details]

Event/Condition Type: Condition (Value Monitoring)

Monitoring Target:

[TAG]GettingData.ProductionPlanVolumeAcquisition

(Data Type): Bit

Condition: =

Comparison Target: [INT]1

*1

*1 "[INT]1" is set on the "Integer Type Constant Settings" window.

"Comparison Target"  "Constant"  "[Integer]"

6

7.

Click the [OK] button.

8.

Click the [Next] button.

8.

Click!

6 LINKING WITH DATABASE

6.1 Parameter Settings

99

12.

Click!

9.

Set!

10.

Click!

9.

Set each setting item as follows in the [Read Data at

Trigger Judgment] tab.

[Setting details]

Access Type: General Access

Access Interval: Milliseconds Specification: "1"  100 ms

Reading Target Data: The Data to be used in Trigger

Condition only

10.

Click the [Next] button.

11.

Set each setting item as follows in the [Main-Processing] tab.

[Setting details]

At Processing Failure: Notification: "Not Set"

DB Buffering: No Buffering

12.

Click the [Edit] button.

11.

Set!

13.

Click the [DB Communication Action] button on the

"Main-Processing Action" window.

13.

Click!

100 6 LINKING WITH DATABASE

6.1 Parameter Settings

15.

Set!

14.

Set!

14.

Set each setting item as follows on the "DB

Communication Action Setting" window.

[Setting details]

DB Communication Type: Select

Access Table: ProjectTable.SampleServer

15.

Set each setting item as follows in the [Data Assignment ] tab and the [Narrowing-Down Conditions] tab.

16.

Click the [OK] button.

6

15.

Set!

16.

Click!

• [Data Assignment] tab

Access Field

Pattern

Size

ProductionPlanVolume

SpecifiedWeight

(Data Type) 

Integer 

Character String [Unicode(NCHAR)] 

Integer 

Integer 

• [Narrowing-Down Conditions] tab

Combination

Access Field

Pattern

(Data Type)

Integer

Condition

=

Assignment Data

[TAG]GettingData.Size

[TAG]GettingData.ProductionVolume

[TAG]GettingData.SpecifiedWeight

Comparison Target

[TAG]PuttingData.Pattern

(Data Type)

Character String [ASCII/SJIS]

Word [Unsigned]/Bit String [16-bit]

Word [Unsigned]/Bit String [16-bit]

(Data Type)

Word [Unsigned]/Bit String [16-bit]

6 LINKING WITH DATABASE

6.1 Parameter Settings

101

17.

Click the [Next] button.

19.

Click!

18.

Set!

17.

Click!

18.

Set each setting item as follows in the [Verification

Settings] tab.

[Setting details]

Working History: Not output

Detailed Log: 

Inhibit the data output to the target device: Unselected

Inhibit the data output to the target server: Unselected

Inhibit the job execution even when the trigger condition is satisfied.: Unselected

19.

Click the [OK] button.

102 6 LINKING WITH DATABASE

6.1 Parameter Settings

Setting jobs (Reporting)

When the production has completed and the production volume (D200) is 1 or more and changed, set the conditions to insert the container IDs, production time, and quality determination results on the database.

Operating procedure

1.

Right-click [Job Settings] in the edit item tree, and select

[Add Item].

1.

Select!

2.

Set!

2.

Set!

2.

Set each setting item as follows in the [Job

Configuration] tab.

[Setting details]

Job Name: Reporting

Job Configuration: Main Configuration

3.

Click the [Next] button.

6

3.

Click!

5.

Click!

4.

Set!

4.

Set each setting item as follows in the [Trigger

Conditions] tab.

[Setting details]

Configuration Type: Precondition × Event

Condition Combination Type: 

Trigger Buffering: Disable

5.

Click the [Edit] button.

6 LINKING WITH DATABASE

6.1 Parameter Settings

103

7.

Click!

6.

Set!

6.

Set!

6.

Set each setting item as follows on the "Event/Condition

Settings" window.

[Setting details (Precondition)]

Event/Condition Type: Condition (Value Monitoring)

Detail Type: 

Monitoring Target: [TAG]PuttingData.ProductionVolume

(Data Type): Word [Unsigned]/Bit String [16-bit]

Condition: ≥

Comparison Target: [INT]1

*1

(Data Type): 

[Settings (Event)]

Event/Condition Type: Event (Value Changed)

Detail Type: 

Comparison Target:

[TAG]PuttingData.ProductionVolume

(Data Type): Word [Unsigned]/Bit String [16-bit]

*1 "[INT]1" is set on the "Integer Type Constant Settings" window.

"Comparison Target"  "Constant"  "[Integer]"

7.

Click!

7.

Click the [OK] button.

• When the production is completed, 1 is added to D200 in the ladder program, so whether the production is completed or not is determined according to the change of the value in D200.

• When the [Production stop/reset] button on the GOT is touched, the value in D200 is reset. (The value is changed to 0.)

The condition, the production volume (D200) is 1 or more, is added not to insert the value to the database.

104 6 LINKING WITH DATABASE

6.1 Parameter Settings

8.

Click the [Next] button.

8.

Click!

9.

Set!

10.

Click!

9.

Set each setting item as follows in the [Read Data at

Trigger Judgment] tab.

[Setting details]

Access Type: General Access

Access Interval: Seconds Specification: 1

Reading Target Data: The Data to be used in Trigger

Condition only

10.

Click the [Next] button.

6

12.

Click!

11.

Set!

11.

Set each setting item as follows in the [Main-

Processing] tab.

[Setting details]

At Processing Failure: Notification: "Not Set"

DB Buffering: No Buffering

12.

Click the [Edit] button.

6 LINKING WITH DATABASE

6.1 Parameter Settings

105

13.

Click the [DB Communication Action] button on the

"Main-Processing Action" window.

13.

Click!

14.

Set!

14.

Set each setting item as follows on the "DB

Communication Action Setting" window.

[Setting details]

DB Communication Type: Insert

Access Table: JudgementTable.SampleServer

15.

Set!

15.

Set each setting item in the [Data Assignment] tab according to the following table.

16.

Click the [OK] button.

16.

Click!

• [Data Assignment] tab

Access Field (Data Type)

ContainerID Character String

[Unicode(NCHAR)]

DateAndTime Date and Time [Without

Time Zone]

QualityDetermination Integer

TotalNumberOfAcceptedProducts Integer

TotalNumberOfRejectedProducts Integer

Assignment Data

[TAG]PuttingData.ContainerID

(Data Type)

Character string [ASCII/SJIS]

[MACRO]Job Execution Start Date and Time Date and Time

[TAG]PuttingData.QualityDetermination

Word [Unsigned]/Bit String [16-bit]

[TAG]PuttingData.NumberOfAcceptedProducts

Word [Unsigned]/Bit String [16-bit]

[TAG]PuttingData.NumberOfRejectedProducts

Word [Unsigned]/Bit String [16-bit]

106 6 LINKING WITH DATABASE

6.1 Parameter Settings

17.

Click the [Next] button.

20.

Click!

20.

Name!

17.

Click!

19.

Click!

18.

Set!

18.

Set each setting item as follows in the [Verification

Settings] tab.

[Setting details]

Working History: Not output

Detailed Log: 

Inhibit the data output to the target device: Unselected

Inhibit the data output to the target server: Unselected

Inhibit the job execution even when the trigger condition is satisfied.: Unselected

19.

Click the [OK] button.

6

20.

Click the save icon, name the file, and save it.

File name: school_MES_MESIF.mu2

6 LINKING WITH DATABASE

6.1 Parameter Settings

107

Writing parameters to the MES interface module

This section describes how to write the parameters, which have been set with MES Interface Function Configuration Tool, to the MES interface module.

Operating procedure

1.

Select [Online]  [Write to MES Interface Module] from the menu in MES Interface Function Configuration Tool.

1.

Select!

2.

Enter!

2.

When the "Specify Connection Destination" window appears, enter the user name and password.

[Default settings]

User name: RD81MES96

Password: MITSUBISHI

3.

Click the [Connection Test] button. If the connection succeeds, the following window appears.

4.

Click!

3.

Click!

4.

Click the [OK] button.

5.

After the parameters are written, reset the CPU module, and restart the MES interface module.

After resetting the CPU module, change the state of the

CPU module to "RUN".

108 6 LINKING WITH DATABASE

6.1 Parameter Settings

Setting DB Connection Service Setting Tool

This section describes how to set DB Connection Service Setting Tool.

For details on setting items, refer to the following.

Page 81 DB Connection Service and Setting Tool

Operating procedure

1.

Select!

1.

Select [MELSOFT]  [DB connection service setting tool] from Windows

Start.

2.

When using an operating system with the User

Account Control function, a warning message relating to "DBCnctConf.exe" is displayed. Click the

[Yes] button.

6

3.

The window for DB Connection Service Setting Tool appears.

This setting is used as a default.

6 LINKING WITH DATABASE

6.1 Parameter Settings

109

6.2

Operation Check

This section describes how to check the operation of the demonstration machine after each parameter is set and written.

The following is an example of an operation check for the production pattern 1 (production of small container).

Operating procedure

1.

Set the RUN/STOP/RESET switch of the CPU module to the RUN position.

2.

Touch the [1] button of "Production pattern selection"on the GOT.

2.

Touch!

3.

Touch the [Production information acquisition] button on the GOT.

3.

Touch!

110 6 LINKING WITH DATABASE

6.2 Operation Check

4.

The production information on the production pattern 1, acquired from a database, is displayed.

5.

Touch the [Production start] button on the GOT.

6

5.

Touch!

When the [Production start] button is touched, the following operations are performed.

• Small containers are produced in every one second.

• ID numbers are assigned to the finished products. (S1, S2, S3, and others.)

• The finished products are checked if they are accepted or rejected.

• When the number of accepted products meets production plan volume, the production stops.

• Servomotor changes its number of rotations depending on the production patterns.

Small container: 1 rotation

Medium container: 2 rotations

Large container: 3 rotations

• If the production is stopped, the servomotor stops its operation.

6 LINKING WITH DATABASE

6.2 Operation Check

111

6.

When the [Production stop/reset] button is touched, or the number of the accepted products meets production plan volume, the production stops.

6.

Touch!

112 6 LINKING WITH DATABASE

6.2 Operation Check

7.

To check that whether the production results are stored in a database properly or not, start SQL

Server Management Studio.

For details on how to start SQL Server Management

Studio, refer to the following.

 Page 34 Database Setting

8.

Select!

8.

Right-click "Databases"  "System Databases" 

"master"  "dbo.Judgement", and then select "Edit

Top 200 Rows" in the "Object Explorer" window.

9.

The results (production results) which are set in the job settings (Insert) of MES Interface Function

Configuration Tool can be checked.

6.3

Starting MC Works64

This section describes how to check the production results which are stored in the database on MC Works64.

The settings for MC Works64 are required in advance, the file which has already been set is used in this training.

Operating procedure

1.

Click!

1.

Open the file "MC Works64_Demo.gdfx", and click the

[Runtime] button.

2.

The production state and quality information per size, which are stored in the database, are displayed in the forms of bar chart or table.

6

6 LINKING WITH DATABASE

6.3 Starting MC Works64

113

7

TROUBLESHOOTING

7.1

Troubleshooting Functions

This section describes the troubleshooting with MES Interface Function Configuration Tool and DB Connection Service.

Communication test function

The communication test function performs the communication test between the MES interface module and an access target device or access target server after receiving a request from MES Interface Function Configuration Tool. Before writing settings to the MES interface module, perform the communication test for a write target using the target device setting or target server setting.

The detailed specification of the communication test function is as follows:

Item

Number of concurrent tests

Setting information Target device communication test

Target server communication test

Specification

Only one communication test can be performed.

Performs the communication test using the target device setting of MES Interface Function

Configuration Tool.

The communication test does not affect the operating information linkage function.

Performs the communication test using the target server setting of MES Interface Function

Configuration Tool.

The communication test does not affect the operating information linkage function.

Precautions

Depending on the operating status of jobs in a module or the status of peripherals (such as network and database), the communication test may take time.

Before the performing communication test, check the operation status of jobs in a module and the status of peripherals.

114 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

Diagnostics

This function performs MES interface module diagnostics by displaying the information in the MES interface module, and by confirming the diagnostic information such as operating status and error status of the module.

In addition, remote operations such as error clear and module stop can be performed for the MES interface module.

Description Reference Diagnostic function name

Diagnostics

Job Diagnostics

Server Access Diagnostics

Device Access Diagnostics

DB Buffer Diagnostics

SD Memory Card Diagnostics

Displays the module status, error history, and product information of the module, and performs the remote operation for the module status.

Displays the working history and detailed log of the module.

This function changes temporarily the verification settings of the job set in the module.

Displays the connection status of the target server set in the module.

Displays the connection status of the target device set in the module.

Displays the current use status of the DB buffer in the module and performs operations manually.

Displays the current use status of the SD memory card inserted in the module and formats the SD memory card.

Page 115 MES interface module diagnostics

Page 117 Job diagnostics

Page 119 Server access diagnostics

Page 120 Device access diagnostics

Page 121 DB buffer diagnostics

Page 122 SD memory card diagnostics

MES interface module diagnostics

This function displays the module status, error history, and product information of the MES interface module, and performs the remote operation for the module status.

Window

Select [Online]  [Diagnose MES Interface Module].

7

Monitoring status

Operating status

Error status

Displayed items

Item

Product Information

Firmware Version

Project Name

Date and Time of Project File Editing

[Module Status] tab

[Error History] tab

[Job Diagnostics] button

[Server Access Diagnostics] button

[Device Access Diagnostics] button

[DB Buffer Diagnostics] button

[SD Memory Card Diagnostics] button

Description

Displays the product information of the MES interface module.

Displays the firmware version of the MES interface module.

Displays the project name of the project operating in the MES interface module.

Displays the date and time of editing the project operating in the MES interface module.

Displays the monitoring status, operating status, and error status of the MES interface module, and performs the remote operation of each status.

Displays the error history of the MES interface module.

Opens the "Job Diagnostics" window.

Opens the "Server Access Diagnostics" window.

Opens the "Device Access Diagnostics" window.

Opens the "DB Buffer Diagnostics" window.

Opens the "SD Memory Card Diagnostics" window.

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

115

[Module Status] tab

Item

Monitoring status

Operating status

[Start Monitoring] button/

[Stopped Monitoring] button

[Restart] button/[Stop] button

Description

Displays the monitoring status.

Switches the start monitoring and stop monitoring.

Error status

Current error list *1

Detailed Information

[Clear Error] button

Occurrence

Operation

Error Code

Summary

Detailed Information

Cause

Corrective Action

Displays the operating status of the MES interface function and SD memory card status.

Switches the restart and stop of the operation of the MES interface function.

When stopped, the operating processing is as follows:

• The trigger buffer will be cleared.

• When the job stops during execution before completing the main-processing, the job rolls back to the database. The job returns to the status prior to execution without writing to the device and ends. However, the variable and external communication action operations do not return to the status prior to execution.

The job is completed by performing the post-processing and writing to the device after completing the main-processing.

• When the job stops while communicating with the database, and if there is no response even after waiting up till the communication time out time from the corresponding connection, then it changes to unconnected status (In such a case it is not an error).

Displays the error status of the MES interface module.

Clears the error status of the MES interface module.

Displays the occurrence date and time.

Displays the error status.

Displays the error code.

Displays an error outline.

Displays the detailed information of error.

Displays the cause of error occurrence.

Displays the corrective action for clearing error.

*1 Up to 15 continuation errors and 1 stop error can be displayed.

When a new stop error occurs in the state where a stop error occurs, the information of the stop error is updated.

An error is not displayed in the following cases.

 An error that has already been displayed in the "Current error list" occurs again.

 A new continuation error occurs after a stop error has occurred.

 A new continuation error occurs in the state where 15 continuation errors are displayed.

[Error History] tab

Item

[Refresh] button

[History Clear] button

[Create File] button

No. of history

Error History List

Detailed Information

Occurrence

Operation

Error Code

Description

Detailed Information

Cause

Corrective Action

Description

Updates the error history to the latest information.

Clears the error history.

Opens the "Create File of Error History" window.

Select the number of errors to display on the error history list.

Displays the occurrence date and time.

Displays the error status.

Displays the error code.

Displays an error outline.

Displays the detailed information of error.

Displays the cause of error occurrence.

Displays the corrective action for clearing error.

To save error history

Save the error history in a CSV file (diagnose information file).

For details on the CSV file (diagnose information file), refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Operating procedure

1.

Click the [Create File] button on the [Error History] tab of the "Diagnostics" window.

2.

Specify a save location and file name on the "Create File of Error History" window.

3.

Click the [Save] button.

116 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

Job diagnostics

This function displays the working history and detailed log of the MES interface module.

The function changes temporarily the verification settings of the job set in the MES interface module.

Window

Click the [Job Diagnostics] button on the "Diagnostics" window.

Displayed items

[Working History] tab

Item

[Refresh] button

[History Clear] button

[Create File] button

No. of History

Working history list *1,*2

Warning icon

Date and Time

Job Name

Content

Comment

Detailed Log

*3

[Trigger Buffering Status Confirmation] button

Description

Updates the working history to the latest information.

Clears the working history.

Opens the "Create File of Event History" window.

Page 118 To save working history

Select the number of logs to be displayed on the working history list.

Displays an icon depending on the error type.

: When the job execution result is processing failure and processing interruption.

: When the job execution is being inhibited or for the operation history (stop or restart operations of the module) for the MES interface module

Displays a date and time.

Displays the executed job name.

Displays the working contents of the job and operations for the module.

Displays the comment set arbitrarily.

When the "Detailed Log" is set to "Output" in the verification settings, the "Detailed Log" window appears by clicking the [Display] button.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Opens the "Trigger Buffering Status Confirmation" window.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

*1 When the "Detailed Log" is set to "Output" in the verification settings, it may not be displayed up to the maximum number of items displayed (256).

*2 If the trigger buffering count reaches to the maximum number (192 counts) when the trigger buffering condition of a job, of which the trigger buffering is enabled, is satisfied, the working history of the job will not be displayed.

*3 The detailed log may not be output when an error occurs at job execution.

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

117

[Temporary Change Verification Settings] tab

Item

[Refresh] button

Job to be Confirmed/Changed

Select

Confirmation and Change for

Verification Settings

[Change] button

Target Job

Current Settings

Change Item

Settings to be Changed

Description

Updates the verification settings information to the latest information.

Selects the target job to be confirmed and changed.

Displays the verification settings on the MES interface module.

Selects the items to be changed.

Displays the settings to be changed.

Requests a verification settings change to the MES interface module.

To save working history

Save the working history in a CSV file (diagnose information file).

For details on the CSV file (diagnose information file), refer to the following.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Operating procedure

1.

Click the [Create File] button on the [Working History] tab of the "Job Diagnostics" window.

2.

Specify a save location and file name on the "Create File of Event History" window.

3.

Click the [Save] button.

118 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

Server access diagnostics

This function displays the connection status of the target server set in the MES interface module.

Window

Click the [Server Access Diagnostics] button on the "Diagnostics" window.

Displayed items

Item

[Monitoring] button/[Stop Monitoring] button

Server access connection status list Warning icon

Target Server

Server Type

Database Type

Status

Description

Switches the start monitoring and stop monitoring.

Displays an icon depending on the error type.

: Disconnected

: Not connected

Displays the server name registered in the target server settings.

Displays the server type registered in the target server settings.

Displays the connected database when the server type is a database server.

Displays the result of connection to the server from the MES interface module.

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

119

Device access diagnostics

This function displays the connection status of the target device set in the MES interface module.

Window

Click the [Device Access Diagnostics] button on the "Diagnostics" window.

Displayed items

Item

[Monitoring] button/[Stop Monitoring] button

Device access connection status list Warning icon

Target Device

Device Type

Communication Route

Status

Description

Switches the start monitoring and stop monitoring.

Displays an icon depending on the error type.

: Disconnected

: Not connected

Displays the device name registered in the target device settings.

Displays the device type registered in the target device settings.

Displays the network settings.

Displays the result of connection to the device from the MES interface module.

120 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

DB buffer diagnostics

This function displays the current use status of the DB buffer in the MES interface module and performs operations manually.

Window

Click the [DB Buffer Diagnostics] button on the "Diagnostics" window.

Displayed items

Item

DB Buffer Diagnostics

DB Buffer Operation

[Monitoring] button/[Stop Monitoring] button

Warning icon

Current Stored Data

Maximum Stored Data

[Clear] button

Current Used Amount [KB] ([%])

Maximum Used Amount [KB] ([%])

[Clear] button

Resending Status

Resend Mode

Operation at Recovery

DB Buffer Size [MB]

Target DB Buffer

[Start Resending] button

[Stop Resending] button

[DB Buffer Clear] button

Description

Switches the start monitoring and stop monitoring.

Displays an icon depending on the error type.

: When the use rate is 100%

: When the use rate is 1% to 99%

Displays the number of jobs that the DB buffering is currently being performed.

Displays the maximum number of jobs that the DB buffering is performed after starting the MES interface module.

Clears the maximum stored data.

Displays the current used amount and use rate of the DB buffering.

Displays the maximum used amount and use rate of the DB buffering after starting the MES interface module.

Clears the maximum used amount.

Displays the current resending status of DB buffer.

Displays the resend mode of DB buffer.

Displays the operation at recovery of DB buffer.

Displays the DB buffer size currently set.

Selects the target DB buffering area.

Starts the resend of the DB buffering data.

Stops the resend of the DB buffering data.

Clears the DB buffer.

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

121

SD memory card diagnostics

This function displays the current use status of the SD memory card inserted in the MES interface module and format the SD memory card.

Window

Click the [SD Memory Card] button on the "Diagnostics" window.

Displayed items

Item

SD Memory Card Diagnostics

SD Memory Card Operation

[Refresh] button

Used Amount [KB] ([%])

Capacity [KB]

[SD Memory Card Format] button

Description

Updates the SD memory card status to the latest information.

Displays the used amount and use rate of an SD memory card.

Displays the capacity of an SD memory card.

Formats an SD memory card.

Precautions

All the settings of the MES interface module will be lost if the SD memory card is formatted since the settings are saved in the

SD memory card.

Read the current setting as necessary, and write the setting after formatting the card.

If the power is OFF to ON or the CPU module is reset without writing the setting in the SD memory card, the IP address of the

MES interface module returns to the initial status (192.168.3.3).

122 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

One-shot execution function

The One-shot execution function executes an arbitrary job in an arbitrary timing regardless of the operation status of the MES interface module.

The operation specification of the One-shot execution function is as follows:

1.

The following operations can be executed by selecting the target job for one-shot execution (one-shot job) and selecting

[Online]  [One-Shot Execution] in MES Interface Function Configuration Tool.

 MES Interface Function Configuration Tool writes the settings required for the execution of one-shot job to the MES interface module.

 MES Interface Function Configuration Tool notifies the execution request of the one-shot job to the MES interface module.

Configuration personal computer

Ò One-shot job setting information writing

MES interface module

Ó One-shot execution request

One-shot job setting information

Trigger condition monitoring function

MES Interface

Function

Configuration Tool

2.

The MES interface module in which the notification has been received notifies the one-shot job execution request for the

Job execution control function. After that, the job is executed based on the settings written in Operation 1 .

Configuration personal computer MES interface module

One-shot job setting information

One-shot execution request

Trigger condition monitoring function

Operating based on the one-shot job setting information

MES Interface

Function

Configuration Tool

Job execution control function

3.

After the one-shot job is completed, the MES interface module performs the following operations.

 The execution result of the one-shot job is saved as a detailed log.

 The settings written in Operation 1 are deleted.

 Completion of the one-shot job and detailed log of the Operation 3 is notified to MES Interface Function Configuration

Tool.

Configuration personal computer

MES interface module

Ô One-shot job completion notification

+ detailed log

One-shot job setting information

Detailed

Ò log

Saving the writing result of the one-shot job to the detailed log Ó Deleting the one-shot job setting information

MES Interface

Function

Configuration Tool

Job execution control function

4.

If canceling from MES Interface Function Configuration Tool during one-shot execution, or if the communication with the setting tool is disconnected, the MES interface module will operate as follows:

 The one-shot job is canceled.

 The settings written in Operation 1 and detailed log are deleted.

 The one-shot execution is ended without notifying the completion of the one-shot job.

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

123

Access log

The communication details between the MES interface module and DB Connection Service are output to the access log.

Output access log

This function sets whether to output the access log using DB Connection Service Setting Tool.

When checking the "Output access log" checkbox, set the following items.

Item

Output destination

Access log capacity

Description

Sets the output destination of a log file.

Sets the capacity of an access log file and number of files.

Output destination

The output destination of a log file can be set.

If a file name only is specified, the log is output to an install folder.

If a read-only file is specified, the log is not output and "Access log output error" is output to [Administrative Tools]  [Event

Viewer] of Windows.

Access log capacity

The capacity of an access log file and number of files can be set.

If the capacity for a file is exceeded, the log is copied to a file with a numbered file name and a new log file is created.

If the total number of files exceeds the one which is set, the file is deleted from the oldest one.

Ex.

When the output destination is set to 'dbConnector.log' and the access log capacity is set to '1MB × 3 files'

Capacity exceeded

Ò dbConnector.log

Ó dbConnector.log.001

Ô dbConnector.log.002

New

Rena me

Rena me

Delete dbConnector.log

dbConnector.log.001

dbConnector.log.002

Up to the number of specified files

124

 When "dbConnector.log" exceeds 1M byte, it is renamed as "dbConnector.log.001". A new "dbConnector.log" is created and the logging restarts again.

 "dbConnector.log.001" is renamed as "dbConnector.log.002".

 "dbConnector.log.002" is deleted because the total number of files exceeds 3.

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

Access log details

For details on [Database error number] and [Database error message] in the output log format in the case of failure, refer to the manual for each database.

Depending on the [Error code], the contents after 'Database Message' are not be output.

According to the error code, check the error details and take corrective actions.

 MELSEC iQ-R MES Interface Module User's Manual (Application)

Service start

Item

Output log format

Example

Description

[Date] [Error code] Service Start

2015/08/01 12:00:00.000 0x00000000 Service Start

Service end

Item

Output log format

Example

Description

[Date] [Error code] Service Stop

2015/08/01 12:00:00.000 0x00000000 Service Stop

Connection from the MES interface module

Item

Output log format

Example

Description

[Date] [Error code] SID [Session ID]:MIFWS Connected:[Source IP]:[Target data source]:[Connection User Name]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:MIFWS Connected:192.168.3.3:DataSource:UserName

Disconnection from the MES interface module

Item

Output log format

Example

Description

[Date] [Error code] SID [Session ID]:MIFWS Disconnected:[Source IP]:[Target data source]:[Connection User Name]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:MIFWS Disconnected:192.168.3.3:DataSource:UserName

Connection to a database

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:DB Connect:[Target data source]:[Connection User Name]:Success

Example

[Date] [Error code] SID [Session ID]:DB Connect:[Target data source]:[Connection User Name]:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:DB Connect:DataSource:UserName:Success When succeeded

When failed 2015/08/01 12:00:00.000 0x20400022 SID 00000001:DB Connect:DataSource:UserName:Failed

Database Message 0x000003f9 [Oracle][ODBC][Ora]ORA-01017: invalid username/password;logon denied

Disconnection from a database

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:DB Disconnect:[Target data source]:[Connection User Name]:Success

Example When succeeded

[Date] [Error code] SID [Session ID]:DB Disconnect:[Target data source]:[Connection User Name]:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:DB Disconnect:DataSource:UserName:Success

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

125

SQL statement reception/processing results

• SELECT

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Success([No. of selected records])

Example

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:SQL<SELECT COL from TABLE;>:Success(1) When succeeded

When failed 2015/08/01 12:00:00.000 0x20600023 SID 00000001:SQL<SELECT COLL from TABLE;>:Failed

Database Message 0x00000388 [Oracle][ODBC][Ora]ORA-00904: "COLL": invalid identifier

• UPDATE

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Success([No. of updated records])

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:SQL<UPDATE TABLE SET COL = '1';>:Success(1) Example When succeeded

When failed 2015/08/01 12:00:00.000 0x20600023 SID 00000001:SQL<UPDATE TABLE SET COL = 'COL';>:Failed

Database Message 0x000006ba [Oracle][ODBC][Ora]ORA-01722: invalid number

• INSERT

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Success([No. of inserted records])

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:SQL<INSERT INTO TABLE (COL) VALUES ('1');>:Success(1) Example When succeeded

When failed 2015/08/01 12:00:00.000 0x20600023 SID 00000001:SQL<INSERT INTO TABLE (COL) VALUES ('1');>:Failed

Database Message 0x000003ae [Oracle][ODBC][Ora]ORA-00942: table or view does not exist

• COMMIT

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:COMMIT:Success

[Date] [Error code] SID [Session ID]:COMMIT:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:COMMIT:Success Example When succeeded

• ROLLBACK

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:ROLLBACK:Success

[Date] [Error code] SID [Session ID]:ROLLBACK:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:ROLLBACK:Success Example When succeeded

• GetNext (Request for the next record)

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:GetNext:Success

Example When succeeded

[Date] [Error code] SID [Session ID]:GetNext:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:GetNext:Success

126 7 TROUBLESHOOTING

7.1 Troubleshooting Functions

• DELETE

Item

Output log format

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Success([No. of deleted records])

[Date] [Error code] SID [Session ID]:SQL<[SQL statement]>:Failed

Database Message [Database error number] [Database error message]

2015/08/01 12:00:00.000 0x00000000 SID 00000001:SQL<DELETE FROM TABLE;>:Success(1) Example When succeeded

When failed 2015/08/01 12:00:00.000 0x20600023 SID 00000c60:SQL<DELETE FROM table1 ;>:Failed

Database Message 0x000003ae [Oracle][ODBC][Ora]ORA-00942: table or view does not exist.

Table name/field name browsing results

• Table name browsing

Item

Output log format

Example

When succeeded

When failed

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:Table Get:Success

[Date] [Error code] SID [Session ID]:Table Get:Failed

2015/08/01 12:00:00.000 0x00000000 SID 0:Table Get:Success

2015/08/01 12:00:00.000 0x00000000 SID 0:Table Get:Failed

• Field name browsing

Item

Output log format

Example

When succeeded

When failed

When succeeded

When failed

Description

[Date] [Error code] SID [Session ID]:Field Get:[Table name]:Success

[Date] [Error code] SID [Session ID]:Field Get:[Table name]:Failed

2015/08/01 12:00:00.000 0x00000000 SID 0:Field Get: TableName:Success

2015/08/01 12:00:00.000 0x00000000 SID 0:Field Get: TableName:Failed

7

7 TROUBLESHOOTING

7.1 Troubleshooting Functions

127

7.2

Troubleshooting Operation Check

This section describes how to detect and correct improper settings in the project "school_MES_MESIF_troubleshoot.mu2" using the troubleshooting functions, and check whether the corrected settings operate properly.

The following functions are used as the troubleshooting functions; "communication test function", "diagnose MES interface module", "one-shot execution function", and "access log".

Writing parameters for the troubleshooting

To write the troubleshooting operation check project "school_MES_MESIF_troubleshoot.mu2" to the MES interface module, follow the procedure described in "

 Page 108 Writing parameters to the MES interface module".

Troubleshooting 1

The troubleshooting is performed by using the "communication test function" and "access log".

Checking errors

Communication test function

Operating procedure

1.

Open the project

"school_MES_MESIF_troubleshoot.mu2". Click the

[Communication Test] button on the "Target Server

Setting No.[1]" window of MES Interface Function

Configuration Tool.

1.

Click!

128 7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

2.

Click!

2.

Enter the following in the "Connection Destination

Settings" and "User Authorization Setting (optional)", and click the [OK] button.

[Setting details]

IP Address: 192.168.3.3

User Name: RD81MES96

Password: MITSUBISHI

3.

Click the [OK] button.

3.

Click!

4.

The error message window appears as shown on the left. Check [Cause] and [Corrective Action], and correct improper settings.

7

7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

129

Access log

Operating procedure

2.

Set!

1.

On Windows

, select [MELSOFT]  [DB connection service setting tool] from the start menu.

2.

Select the "Output access log" checkbox, and set any location to output an access log file in "Output destination".

3.

Perform " 

Page 128 Communication test function".

4.

Open the access log file stored in the location set in

2.

Check if errors appeared as "~: Failed" in the access log file, and correct improper settings.

4.

Check!

130 7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

Correcting errors

According to the access log, there is an error in data source name From this result, it is assumed that the name entered in

"Data Source Name" on the "Target Server Setting No.[1]" window is inappropriate.

Operating procedure

1.

An unnecessary one-byte space has been added to the end of the data source name, so the name differs from the data source name set in 

Page 37 ODBC (Open

Database Connectivity) Setting. This caused the error.

Delete the one-byte space to correct the name in "Data

Source Name".

1.

Correct!

2.

After the correction, click the [Communication Test] button again. When communications succeed, the message window appears as shown on the left.

Click the [OK] button.

7

2.

Click!

3.

Write the setting to the MES interface module.

 Page 108 Writing parameters to the MES interface module

3.

Select!

7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

131

Troubleshooting 2

The troubleshooting is performed by using the MES interface module diagnostics, one-shot execution function, access log, and referring to their results. Although how an error is displayed differs among the these methods, the error occurred is identical.

Checking errors

MES interface module diagnostics (Job diagnostics)

Operating procedure

1.

Select [Online]  [Diagnose MES Interface Module] in

MES Interface Function Configuration Tool.

1.

Select!

2.

Click the [Job Diagnostics] button.

2.

Click!

132 7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

3.

Select!

3.

Click!

4.

Click!

3.

Set!

3.

Click the [Temporary Change Verification Settings] tab, and select the target job to be diagnosed. Select the

"Change Item" checkboxes of "Working History" and

"Detailed Log" to output them.

Click the [Change] button.

4.

Click the [Close] button.

When "Output" is selected for "Working

History" and "Detailed Log" in the

[Verification Settings] tab on the "Job Setting

No.[1]" screen, this step is not required.

7.

Click!

5.

Perform " 

Page 110 Operation Check".

6.

ERR LED on the MES interface module turns on during the operation check. Check the error details.

Select [Online]  [Diagnose MES Interface Module].

The window on the left appears.

7.

Click the [Job Diagnostics] button.

7

8.

Click!

8.

If an execution result is a processing failure or processing interruption, "Job Names" is "Reporting" and an icon for the processing failure or processing interruption is displayed.Display the "Detailed Log" window.

7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

133

9.

On the "Detailed Log" window, check execution results of actions actually executed, and correct improper settings.

One-shot execution function

The one-shot execution function executes an arbitrary job in an arbitrary timing regardless of the operation status of the MES interface module. Therefore, job execution results can be checked without performing "

 Page 110 Operation Check" while

" 

Page 132 MES interface module diagnostics (Job diagnostics)" requires it.

Operating procedure

1.

Select a target job to execute the one-shot execution function, and select [Online]  [One-Shot Execution] on the "Job Setting No.[1]" window of MES Interface

Function Configuration Tool.

1.

Select!

2.

The "Detailed Log" window is displayed.

When selecting "GettingProject, "Success" is displayed in "Execution Result", and no error in the target job is confirmed.

When selecting "Reporting", "Processing Failure" is displayed in "Execution Result" in the same way as

" 

Page 132 MES interface module diagnostics (Job diagnostics)", and errors in the target job are confirmed.

Check execution results of actions actually executed, and correct improper settings.

134 7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

Access log

Operating procedure

1.

Perform "

 Page 110 Operation Check".

2.

ERR LED on the MES interface module turns on during the operation check. Check the error details.

3.

Check if errors appeared as "~: Failed" in the access log file, and correct improper settings.

3.

Check!

7

7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

135

Correcting errors

According to the access log, there are errors in the execution SQL statements of "Reporting" in "Job Names". In the access log, an error "Cannot insert the value NULL into column 'Pattern', table 'master.dbo.Project'; column does not allow nulls." is confirmed. This means that the table and row to which the value should be inserted are container ID and other items in the

'master.dbo.Judgement' row. Therefore, it can be assumed that there is an error in their settings.

Operating procedure

2.

Select and set!

1.

Open the "DB Communication Action" for "Main-

Processing" of "Reporting".

2.

On the "DB Communication Action Setting" window, select "JudgementTable.SampleServer" in "Access table" to re-set data to be assigned.

For data assignment setting, refer to the following.

Page 103 Setting jobs (Reporting)

3.

Click the [OK] button.

3.

Click!

4.

Click the [OK] button.

4.

Click!

136 7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

5.

Select!

5.

Write the setting to the MES interface module.

Page 108 Writing parameters to the MES interface module

6.

Perform "

 Page 110 Operation Check".

Check whether the operation check has been performed properly.

7

7 TROUBLESHOOTING

7.2 Troubleshooting Operation Check

137

APPENDICES

Appendix 1

MC Works64

MC Works64

Mitsubishi Electric provides MC Works64 that is a SCADA software package with a highly functional monitoring control system designed for industrial systems, instrumentation systems in plants, air conditioning/lightening systems in buildings, and social infrastructure.

This software includes the function required for variety of industries and systems and these function can be flexibly integrated to construct unique systems by users.

The functions can be added or changed as desired by the users to customize the systems.

MC Works64 is the advanced software that can operate together with cloud services or business process management systems such as ERP for responding to the Iot age.

Basic functions

Application name

Workbench Desktop

GraphWorX64

TrendWorX64

AlarmWorX64

Function

Project management function that builds applications of all the MC Works64 related products

Window configuration function that configures advanced monitoring screens allowing the 2D/3D animation, utilization of symbols, linkage with videos, and other functions

Trend display function that displays advance trend graphs allowing split and overlapped displays

Alarm function that displays notification lists of the standard alarms and an alarm chart of every alarm type

Advanced functions

Application name

Workbench-SL

MC AppBuilder

Function

Project management function that builds applications of all the MC Works64 related products

Project auto generation function

138 APPX

Appendix 1 MC Works64

Features

Enhanced visibility and operability

3D graphics enables to monitor devices from various angles with stereoscopic displays that are not achieved with 2D graphics.

On a 3D graphic window, users can shift the window's viewpoint freely and zoom in/out the window, so monitor an entire equipment as well as details of an equipment.

Integrating with 2D graphic windows which are excellent in monitoring device operating status and displaying measurement data enhances the visibility and operability of the monitoring windows.

Enhanced reliability

MC Works64 enables to construct a sever redundant systems and server-and- client systems.

Two servers, a control server and a standby server, can be utilized to enhance the reliability of the system and reduce the communication load on the network.

Server systems can be configured flexibly depending on system scale, from large-scaled systems to standalone systems.

Remote monitoring with any device

MA Works64 client system supports the monitoring on a web browser.

With the MC Works 64 server as the web server, access and monitoring from clients on the web can be performed.

Operating status of equipment can be monitored remotely on any mobile device such as a tablet computer or a smart phone.

Reduced engineering man-hours

Utilizing pre-registered symbols in libraries reduces the man-hours for symbol design on a monitoring window.

Tags can be registered to symbols to change color and display numerical value using the animation function of the preregistered symbols, so reduces the man-hours for script creation.

Visualization and analysis of energy consumption

Integrating Mitsubishi Electric energy measurement device, energy display, and AX Energy, an energy analysis and visualization tool, enables to visualize energy consumption and CO2 emissions in the whole system or per device.

A

APPX

Appendix 1 MC Works64

139

SCADA software

SCADA is the abbreviation for Supervisory Control And Data Acquisition. It is a system of software controlled with a personal computer to perform industrial system supervision, system control, and data acquisition.

The basic configuration includes client personal computers, an SCADA server, and programmable controllers as shown below.

Industrial systems are normally controlled using the programmable controllers and relevant data, such as production results and process values, is collected in the SCADA server.

The collected data is interconnected with graphics to operate animations on a screen of an HMI (Human-Machine Interface) on the SCADA server, recorded as logs, and utilized to notify alarms.

When collecting data from programmable controllers, device addresses of the programmable controllers and data elements, known as tags, handled on the SCADA server need to be linked. Tag databases manage this processing//operation.

To check log data, alarms, and graphics, open an HMI screen by accessing the server from a client personal computer.

Alternatively, the HMI screen can be opened directly on the server.

SCADA system primally collect data. In addition to this function, it converts values on the HMI screen to send instructions to control systems and sends signals for production instructions and process values to the programmable controller after the buttons are pressed.

Client personal computer

DB SCADA server

Programmable controller

140 APPX

Appendix 1 MC Works64

What to learn in this training course

MC Works64 is used to transfer information which is acquired in a CPU module to databases via the MES interface module and efficiently visualize them. This training practices the operations of (1) and (2). The details on (3) can be learnt in another training course.

(3)

Displaying the inserted data.

Select (DB → control system)

• Production information

(1)

(2)

Control system

Insert (control system → DB)

• Production results

A

APPX

Appendix 1 MC Works64

141

Appendix 2

Database Management System

Installing database management system

This section describes the procedure for installing Microsoft

SQL Server

in a database server personal computer.

In this manual, exercise the installation of Microsoft

SQL Server

with the following conditions.

Item

Database management system

Operating system

Description

Microsoft

SQL Server

2016 Express with Advanced Services (64-bit)

*1

Windows

10 Pro

*1 SQL Server Management Studio needs to be the latest version.

Turn on ".NET Framework 4.6 Advanced Services" before installing Microsoft

SQL Server

.

"Control Panel"  "Programs"  "Programs and Features"  "Turn Windows features on or off"

Select the ".NET Framework 4.6 Advanced Services" checkbox.

Installing SQL Server 2016 Express

Operating procedure

1.

Start the downloaded installer.

2.

When the "User Account Control" window appears, click the [Yes] button.

2.

Click!

142 APPX

Appendix 2 Database Management System

3.

Select "Custom" in the installation type.

3.

Select!

4.

Click the [Install] button.

4.

Click!

5.

Select!

5.

Select "Installation" and "New SQL Server standalone installation or add features to an existing installation".

A

APPX

Appendix 2 Database Management System

143

6.

Select!

7.

Click!

6.

Select the "I accept the license terms and Privacy

Statement." checkbox.

7.

Click the [Next] button.

When updates for Windows or other programs are detected through Windows

Update service, install them by following the instructions on the screen

8.

Ensure that the "Database Engine Services" checkbox is selected, and click the [Next] button.

8.

Click!

9.

Enter!

9.

Select "Named instance", and enter the following.

 Named instance: SQLExpress

 instance ID: SQLEXPRESS

10.

Click the [Next] button.

10.

Click!

144 APPX

Appendix 2 Database Management System

11.

Set the server configuration according to the database server personal computer to be used and the network environment. Click the [Next] button.

Use the default settings this time.

11.

Click!

12.

Enter!

13.

Click!

12.

Select "Mixed mode" and enter the password in

"Enter password".

[Setting detail]

Password: Fatec_MES

13.

Click the [Next] button.

Login user names for SQL Server can be added using "SQL Server Management

Studio" after database generation.

A

14.

The "Installation Progress" window appears. When the installation is completed, the "Complete" window appears.

15.

Click the [Close] button.

15.

Click!

APPX

Appendix 2 Database Management System

145

Installing the latest version of SQL Server Management Studio

Operating procedure

1.

Return to the "SQL Server Installation Center" window, and select "Install SQL Server Management

Tools".

1.

Select!

2.

Click "Download SQL Management Studio 18.2" on the link destination website.

3.

Click the [Run] button.

2.

Select!

3.

Click!

146 APPX

Appendix 2 Database Management System

4.

When the "User Account Control" window appears, click the [Yes] button.

5.

Click the [Install] button.

5.

Click!

6.

Click!

6.

When the installation is completed, click the [Close] button.

A

APPX

Appendix 2 Database Management System

147

Appendix 3

TCP/IP Setting on Personal Computer

This section describes how to set TCP/IP in a personal computer operated with Microsoft

Windows

10 Operating System.

Operating procedure

1.

On Windows

, select [System Tools] 

[Control Panel] from the start menu.

1.

Select!

2.

The "Control Panel" dialog box appears.

Select "Network and Internet".

2.

Select!

148 APPX

Appendix 3 TCP/IP Setting on Personal Computer

4.

Click!

3.

Select!

3.

Select "Ethernet".

4.

Click the [Properties] button.

A

APPX

Appendix 3 TCP/IP Setting on Personal Computer

149

5.

Select [Internet Protocol Version 4 (TCP/

IPv4)].

6.

Click the [Properties] button.

5.

Select!

6.

Click!

7.

Set!

7.

Select "Use the following IP address" and set the following.

[Settings details]

IP address: 192.168.3.100

Subnet mask: 255.255.255.0

8.

Click the [OK] button.

8.

Click!

150 APPX

Appendix 3 TCP/IP Setting on Personal Computer

9.

Click the [Close] button.

9.

Click!

10.

Click the [Close] button.

A

10.

Click!

APPX

Appendix 3 TCP/IP Setting on Personal Computer

151

MEMO

152 APPX

Appendix 3 TCP/IP Setting on Personal Computer

Mitsubishi Programmable Controllers Training Manual

MES Interface Basic Course

MODEL

MODEL

CODE

SCHOOL-R MES-E

-

-

HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN

NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN

When exported from Japan, this manual does not require application to the

Ministry of Economy, Trade and Industry for service transaction permission.

Specifications subject to change without notice.

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals