Download Table of Contents Print this page

Mitsubishi Electric MELSEC-Q Series User Manual

Hide thumbs Also See for MELSEC-Q Series:

Advertisement

Quick Links

MELSEC-Q/L Ethernet Interface Module
User's Manual (Web function)
-QJ71E71-100
-QJ71E71-B5
-QJ71E71-B2
-LJ71E71-100

Advertisement

loading

Related Manuals for Mitsubishi Electric MELSEC-Q Series

Summary of Contents for Mitsubishi Electric MELSEC-Q Series

  • Page 1 MELSEC-Q/L Ethernet Interface Module User's Manual (Web function) -QJ71E71-100 -QJ71E71-B5 -QJ71E71-B2 -LJ71E71-100...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the user's manual for the CPU module used.
  • Page 4 [Design Precautions] WARNING ● Do not write any data in the "system area" of the buffer memory in the intelligent function module. Also, do not use any “use prohibited” signals as an output signal from the CPU module to the intelligent function module.
  • Page 5: Conditions Of Use For The Product

    CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
  • Page 6: Introduction

    INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-Q or -L series programmable controllers. This manual describes how to use the Web functions with the Ethernet interface module. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC-Q or -L series programmable controller to handle the product correctly.
  • Page 7 Memo...
  • Page 8: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 9 CHAPTER 6 COMMUNICATION LIBRARY FUNCTIONS List of Supported Communication Library Functions ....... . 52 Communication Library Functions .
  • Page 10: Relevant Manuals

    RELEVANT MANUALS The manuals related to this product are listed below. Order each manual as needed, referring to the following lists. Manual number Manual name (Model code) Q Corresponding Ethernet Interface Module User's Manual (Basic) Specifications, procedures for data communication with external devices, line connection (open/close), fixed buffer SH-080009 communication, random access buffer communication, and troubleshooting of the Ethernet interface module (13JL88)
  • Page 11: How To Use This Manual

    HOW TO USE THIS MANUAL Please refer to the applicable items of this manual by referring to the following outline of the contents of this manual: (1) To find out how to use the Web function and to learn about the operating environment •...
  • Page 12: Terms

    TERMS Unless otherwise specified, this manual uses the following generic terms and abbreviations to describe QJ71E71-100, QJ71E71-B5 and QJ71E71-B2, and LJ71-100 Ethernet Interface Modules. Term Description Abbreviation for Active Server Pages CPU module A generic term for QCPU and LCPU Ethernet module The abbreviation for Model QJ71E71-100, QJ71E71-B5 and QJ71E71-B2 Ethernet interface modules Generic term for personal computers, computers, workstations and Ethernet module etc.
  • Page 13: Chapter 1 Overview

    CHAPTER 1 OVERVIEW CHAPTER 1 OVERVIEW The following shows an overview of the Web function with the Ethernet module. Programmable Controller Monitoring via Internet Using Web Function The Web function with the Ethernet module is used for the system administrator to monitor the MELSEC-Q/L series CPU modules at a remote location via the Internet, using a Web browser.
  • Page 14: Access Function To Programmable Controller

    Access Function to Programmable Controller By using the Web function, the programmable controller data can be collected or updated, the CPU module operation can be monitored, and the status control of the CPU module can be performed in order to control and monitor the equipment on the programmable controller side using a Web browser.
  • Page 15: Utilizing Web Server

    CHAPTER 1 OVERVIEW (b) Device memory read/write, remote RUN/STOP and other operations can be performed for the Q/LCPU of an Ethernet module mounted station by specifying the URL of the sample screen using the Web browser. The execution result is displayed by simply entering the access device, the number of devices, etc. in the items to be displayed in the Web browser.
  • Page 16: Remote Password Check Function

    (2) System expansion can easily be achieved because the Web server and the Ethernet module are separated. For example, the following function can be added: If it is necessary to maintain the security of the programmable controller system against any unauthorized access (to damage programs or data, etc.) from external devices, the user can take a measure by adding a firewall function to the Web server.
  • Page 17: Chapter 2 System Configurations

    <System administrator> Files Router Web server Communication library (DLL) Sample screen (HTML, ASP) Ethernet Provided by Mitsubishi Electric Corporation Firewall Web browser Files HTML files for Web browser ASP files for programmable controller access Commercially sold product Created by the user <Factory/production site>...
  • Page 18 Files Ethernet module Web server Web browser Communication library (DLL) Sample screen (HTML, ASP) Provided by Mitsubishi Electric Corporation Files HTML files for Web browser ASP files for programmable Commercially sold product Commercially sold product controller access Created by the user External device ...
  • Page 19: Precautions For Using Web Function

    Consult with a network installer, an Internet service provider, and a network administrator (person in charge of network planning and IP address management). Mitsubishi Electric Corporation will not take any responsibility for any system problems that may occur while connecting to the Internet.
  • Page 20 When accessing a CPU module via the Internet, and if it is necessary to maintain the security of the programmable controller system, the user should take appropriate measures. Mitsubishi Electric Corporation will not take any responsibility for any system problems that may occur due to unauthorized access.
  • Page 21: Chapter 3 Operating Procedure

    CHAPTER 3 OPERATING PROCEDURE CHAPTER 3 OPERATING PROCEDURE General Procedure up to Communication Using Web Function The following shows a general procedure up to access to the programmable controller from the Web server using the Web function. (1) Settings on the Ethernet module side Start the Ethernet module mounted station.
  • Page 22 (2) Settings on the external device side (Web server, Web browser) Start Checks the system configuration. * This sets an environment that enables the connection of the Web server, Web browser and Ethernet module to the Internet. Obtains the communication library and the sample screen.
  • Page 23: How To Obtain And Set Up Communication Library And Sample Screen

    CHAPTER 3 OPERATING PROCEDURE How to Obtain and Set Up Communication Library and Sample Screen The following explains how to obtain the communication library and the sample screen, and their setup procedures in the Web server. (1) How to obtain the communication library and the sample screen For sample files, please consult your local Mitsubishi representative.
  • Page 24 (2) Setup Set up the qeacess.exe file in the Web server. Web server software must be installed in the Web server in advance. For the operating environment, refer to Page 15, Section 2.1. Decompressing the downloaded file Move the compressed qeaccess-e.exe file to any folder and decompress it. The following shows the file structure after decompression.
  • Page 25 CHAPTER 3 OPERATING PROCEDURE Registering the communication library (DLL file) Register the DLL file in the OS registry of the Web server. The following shows how to register the file using a command prompt. 1) Open a command prompt of the Web server. 2) Switch the current directory.
  • Page 26: Web Function Items Available On Sample Screen

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN This chapter explains how to access a CPU module using the Web function through a sample screen. Web Function Items Available on Sample Screen The following lists the items of the Web function whose operations can be verified on the sample screen. Function File name Description...
  • Page 27: Operating Procedure

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN Operating Procedure The following shows the operating procedure for accessing a CPU module from a sample screen. Set up both the sample screen and the communication library in the Web server in advance. ( Page 19, CHAPTER Start Start the Web browser and specify the URL for the sample screen.
  • Page 28: Explanation Of Sample Screen

    Explanation of Sample Screen The following shows the operations that are performed on the sample screen. (1) Setting screen Start the Web browser and specify the URL for the sample screen. (Example) If the host name of the Web server qe_serv, specify http://qe_serv/_qj71e71/index.html.
  • Page 29: Example Of Data Communication On Sample Screen

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN Example of Data Communication on Sample Screen The following shows how to access a CPU module using the sample screen. (1) System configuration The following shows a system configuration for data communication. (Explanation of proxy setting is omitted.) Network No.1 QJ71E71-100 Web server...
  • Page 30 (d) Write the Ethernet parameters and programs to the CPU module, and restart the CPU module. When it is operating normally, the initial processing of the Ethernet module will be completed normally and the [INIT. ] LED will be lit. (3) Execution environment of the above data communication example (external device side) (a) Web server...
  • Page 31: Device Read/Write

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN 4.4.1 Device Read/Write The Device Read and Device Write functions (QnA compatible 3E frame commands 0401 and 1401) read and write the bit device memory (16-bit units) and word device memory (1-word units) of the local station's CPU module in batch mode.
  • Page 32 (b) Abnormal completion (3) Setting items The following explains the setting items on the Device Read/Write screen. (a) Connection target (character string) Specify the IP address or host name of the connection target Ethernet module. To specify using the IP address, enter 10. 97. 85. 200. (b) Start device Specify the device code and start device of the device for reading/writing data.
  • Page 33 CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN (4) Arrangement of read/write data The following explains the transmission method and placement of the bit device data and word device data handled by device read/write operation. The data is handled in word units during device read/write operation on the sample screen. (a) When reading/writing the bit device memory In the bit device memory, one word is expressed in 4-bit units sequentially from upper bits in hexadecimal.
  • Page 34 (b) When reading/writing the word device memory In the word device memory, one word is expressed in 4-bit units sequentially from upper bits in hexadecimal. To write data to the data registers D350 and D351 (In the case of data read operation, the content of data when the data registers D350 and D351 are specified is shown.) Specify each setting item as follows: •...
  • Page 35: Remote Run/Stop

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN 4.4.2 Remote RUN/STOP The Remote RUN and Remote STOP functions (QnA compatible 3E frame commands 1001 and 1002) stop and run the local station's CPU module. For details on the MC protocol, refer to the Reference Manual. This section explains an example of Remote RUN.
  • Page 36 (b) Abnormal completion (3) Setting items The following explains the setting items on the Remote RUN/STOP screen. (a) Connection target (character string) Specify the IP address or host name of the connection target Ethernet module. To specify using the IP address, enter 10. 97. 85. 200. (b) Target PLC (selection) Select the target programmable controller for remote RUN/STOP operation.
  • Page 37: Data Request

    CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN 4.4.3 Data Request The Data Request function accesses the CPU module by inputting the application data of the MC protocol (QnA compatible 3E frame). This section explains how to read four points of the data registers D0 through D3 by specifying the application data of Device Memory Batch Read (command 0401) for the QnA compatible 3E frame.
  • Page 38 (2) Execution result (a) Normal completion (b) Abnormal completion...
  • Page 39 CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN (3) Setting items The following explains the setting items on the Data Request screen. (a) Connection target (character string) Specify the IP address or host name of the connection target Ethernet module. To specify using the IP address, enter 10.
  • Page 40: Proxy Setting

    4.4.4 Proxy Setting In case an Ethernet module is connected via a proxy server, specify the address and HTTP port of the proxy server to be routed through when accessing from the Web server to the Ethernet module. It is necessary to set the URL of the Ethernet module in advance in order to access via the proxy server. Internet network (Public line) Ethernet...
  • Page 41 CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN (2) Resetting proxy (3) Setting items The following explains the setting items on the Proxy Setting screen. For the IP address and port of the proxy server to be used, consult with the network administrator (the person in charge of network planning and IP address management), and then specify them.
  • Page 42: Configurations Of Files On Sample Screen

    Configurations of Files on Sample Screen The following shows the configuration of the HTML files for Web browser and the configuration of the ASP files for accessing the programmable controller, using the Device Read sample screen. For communication library functions, refer to Page 52, CHAPTER 6. (Device Read screen) HTML file (dev_read.html) (Specify the...
  • Page 43 CHAPTER 4 VERIFYING OPERATION OF WEB FUNCTION USING SAMPLE SCREEN ASP file (dev_read.asp) (Execution result screen) (Create an object (call the communication library)) (Execute device read) Description relating to the remote password...
  • Page 44: Chapter 5 Example Of Creating File For Accessing Programmable Controller

    CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER This chapter explains an example of creating a file for accessing the programmable controller. This file (sample-e.zip) can be obtained by contacting your local agency or marketing company. Configuration of User-Created Screen The following shows the screen configuration of a file used for accessing the programmable controller to be created in this chapter.
  • Page 45 CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER (5) Read interval Sets the read interval time. Performs random read processing for each set time interval after the read interval is set. ( Page 43, Section 5.1 (6)) Ends random read processing by STOP. (6) Random read (ReqCmd) Reads the following device memory.
  • Page 46: File Configuration

    File Configuration (1) The following shows the file configuration of a file used for accessing the programmable controller. _user frame.htm (HTML file for Web browser) test1.asp (ASP file for data input) test2.asp (ASP file for data display) (2) Copy the above files to the root directory "\Inetpub\wwwroot " of the Web server.
  • Page 47 CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER (2) test1.asp <%@ Language=VBScript %> <% Option Explicit Dim Password 'Password(not set) Dim disp 'Return value Dim Value 'Result Dim DevData 'Device data(use input value) Dim Answer 'For display %> <HTML>...
  • Page 48 Dim DevNum 'Number of device DevNum="0001" Dim SetData 'Set data Select Case Request.Form("SetData") Case "Set" SetData="0001" Case "Reset" SetData="0000" End Select disp = Object.DevWrite( HostName, NetNo, PcNo, CpuTime, DevCode, DevNo, DevNum, SetData, PassWord ) Else 'Click remote RUN,remote STOP If Request.Form("CpuNo")<>"" Then Dim CpuNo 'CPUNo CpuNo="03FF"...
  • Page 49 CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER 'Dim DevNum 'Number of device DevNum="0002" 'Device data(use input value) DevData=Trim(Request.Form("DevData")) DevData=UCase(String(8-Len(DevData),"0") & DevData) disp = Object.DevWrite( HostName, NetNo, PcNo, CpuTime, DevCode, DevNo, DevNum, DevData, PassWord ) End If End If End If %>...
  • Page 50 Answer="Normal completion" Case "<!NG>" Answer="Abnormal completion " & Mid(disp,Instr(disp,"error")+Len("error")+1,4) End Select %> <TEXTAREA NAME="Answer" ROWS=5><%=Answer%></TEXTAREA> <INPUT TYPE=BUTTON VALUE=Clear ONCLICK="this.form.elements['Answer'].value=''"> </TH></TR> </TABLE> </FORM> </BODY> </HTML> (3) test2.asp <%@ Language=VBScript %> <% Option Explicit Dim Time 'Time Dim Password 'Password(not set) Dim disp 'Return value Dim Value 'Result...
  • Page 51 CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER Dim Object 'Communication library Set Object=Server.CreateObject("QeAccess.McProtcol") Dim HostName 'Host name HostName=" . . . " Dim CmdData 'Command data CmdData="500000FF03FF0000340040040600000201SD0002030001D*0001000002M*0001000001" Dim RetType 'Execution result type RetType = "1" disp=Object.ReqCmd( HostName, CmdData, PassWord, RetType ) Select Case Left(disp,5) Case "<!OK>"...
  • Page 52 <TD ALIGN=middle COLSPAN=2 HEIGHT=80> <FONT SIZE=+0><B> <% Select Case Mid(Value,38,1) Case "0" %> <% Case "1" %> <% End Select %> </B></FONT> <BR> M100 </TD> </TR> <TR> <TH COLSPAN=2 HEIGHT=50 VALIGN=TOP> <% Select Case Mid(Value,26,1) Case "0" %> <% Case "2" %>...
  • Page 53 CHAPTER 5 EXAMPLE OF CREATING FILE FOR ACCESSING PROGRAMMABLE CONTROLLER Answer="Abnormal completion " & Mid(Value,19,4) End Select Case "<!NG>" Answer="Abnormal completion" & Mid(disp,Instr(disp,"error")+Len("error")+1,4) End Select %> <TEXTAREA NAME="Answer" ROWS=5><%=Answer%></TEXTAREA> <INPUT TYPE=BUTTON VALUE=Clear ONCLICK="this.form.elements['Answer'].value=''"> </TH></TR> </TABLE> </FORM></P> </BODY> </HTML> <SCRIPT LANGUAGE=javascript> <!-- function check_number(element) var i;...
  • Page 54: Chapter 6 Communication Library Functions

    CHAPTER 6 COMMUNICATION LIBRARY FUNCTIONS This chapter explains the communication library functions. List of Supported Communication Library Functions The following table lists the functions supported for the communication library. Web function item Function Overview Remarks Reads from a bit device (such as X, Y, or M) in 16-point units. Corresponds to command 0401 Device Read DevRead...
  • Page 55 CHAPTER 6 COMMUNICATION LIBRARY FUNCTIONS Web function item Function BSTR *p = DevWrite (HostName, NetNo, PcNo, CpuTime, DevCode, DevNo, DevNum, DevData, PassWord) HostName: Connection target Input NetNo: Network No. Input PcNo: PC No. Input CpuTime: CPU monitoring timer Input Device Write DevCode: Device code Input Argument...
  • Page 56: Arguments Used By Functions

    Arguments Used by Functions The following table lists the arguments used by the communication library functions. All of the arguments of the communication library are specified using the same character string as used for the communication settings of the MC protocol in ASCII code. Argument Data type Overview...
  • Page 57 CHAPTER 6 COMMUNICATION LIBRARY FUNCTIONS (1) Device codes and head device numbers The following table lists the device codes and head device numbers. The devices that can be accessed using device memory read/write vary, depending on the target CPU module. For details, refer to the reference manual.
  • Page 58: Return Values Of Functions

    Return Values of Functions The following explains the return values of the communication library functions. (1) A code for judging the execution result is added to the head of the return value. For normal completion, <!OK> is added. For abnormal completion, <!NG> is added. For ReqCmd, <!OK>...
  • Page 59 CHAPTER 6 COMMUNICATION LIBRARY FUNCTIONS (4) The following table lists examples of the return values of the communication library functions. Function Condition Return value (example) <!OK>- The execution result of Device Read -<BR>The normal completion.<BR>Device code RetType = other D*<BR> Normal than "1"...
  • Page 60: Index

    INDEX Return values of the communication library functions ........56 .
  • Page 61 Memo...
  • Page 62: Revisions

    Japanese manual version SH-080144-H 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.
  • Page 63: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 64: Trademarks

    TRADEMARKS Microsoft, Windows, Windows Vista, Windows NT, Windows XP, Windows Server, Visio, Excel, PowerPoint, Visual Basic, Visual C++, and Access are either registered trademarks or trademarks of Microsoft Corporation in the United States, Japan, and other countries. Intel, Pentium, and Celeron are either registered trademarks or trademarks of Intel Corporation in the United States and other countries.
  • Page 66 SH(NA)-080180-H(2007)MEE MODEL: QJ71E71-U-WEB-E MODEL CODE: 13JR40 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.