Mitsubishi MELSEC-Q Series User Manual
Mitsubishi MELSEC-Q Series User Manual

Mitsubishi MELSEC-Q Series User Manual

Ethernet interface module
Hide thumbs Also See for MELSEC-Q Series:

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi MELSEC-Q Series

  • Page 3: Safety Precautions

    • SAFETY PRECAUTIONS • (Always read before starting use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly. The instructions given in this manual are concerned with this product. For the safety instructions of the programmable controller system, please read the user's manual for the CPU module to use.
  • Page 4 [Design Precautions] DANGER • 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 programmable controller CPU to the intelligent function module. Doing so may cause malfunction of the programmable controller system.
  • Page 5: Revisions

    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 6: Table Of Contents

    INTRODUCTION Thank you for purchasing the MELSEC-Q series programmable controller. Before using the equipment, please read this manual carefully to develop full familiarity with the functions and performance of the Q series programmable controller you have purchased, so as to ensure correct use.
  • Page 7 (Related Manual-1) ··· Q Corresponding Ethernet Interface Module User's Manual (Basic) SH-080009-M 1 OVERVIEW 6 COMMUNICATION USING THE MC PROTOCOL 1.1 Overview of the Ethernet Module 6.1 Data Communication Function 1.2 Features of the Ethernet Module 6.2 Utilizing the MX Component 1.3 Additional Functions in Function Version B or later 1.4 Software Configuration 7 FIXED BUFFER COMMUNICATION...
  • Page 8 (Related Manual-1) ··· Q Corresponding Ethernet Interface Module User's Manual (Basic) SH-080009-M APPENDIX Appendix 1 Function Upgrade for the Ethernet Module Appendix 2 The QnA/A Series Module Appendix 3 Installing the Ethernet Module on Existing Systems Appendix 4 Processing Time Appendix 5 ASCII Code List Appendix 6 References Appendix 7 External Dimensions...
  • Page 9: Contents

    (Related Manual-2) … Q Corresponding MELSEC Communication Protocol Reference Manual SH-080008-K 1 OVERVIEW 3.13 Mode Switching: for Serial Communication 1.1 Overview of the MELSEC Communication Module Protocol 3.14 Turning Off Displayed LEDs and Initializing 1.2 Features of the MELSEC Communication Communication Error Information and Error Protocol Code: for Serial Communication Module...
  • Page 10: About Manuals

    About Manuals The following manuals are also related to this product. In necessary, order them by quoting the details in the tables below. Related Manuals Manual number Manual name (Model code) Q Corresponding Ethernet Interface Module User's Manual (Basic) This manual explains the specifications of the Ethernet module, data communication procedures with SH-080009 (13JL88) opposite devices, line connections (open/close), fixed buffer communication, random access buffer...
  • Page 11: The Manual's Use

    The Manual's Use How to use this manual This manual explains how to use the Web function of the Ethernet module (QJ71E71-100, QJ71E71-B5 and QJ71E71-B2). 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: About The Generic Terms And Abbreviations

    About the Generic Terms and Abbreviations Unless otherwise specified, this manual uses the following generic terms and abbreviations to describe Type QJ71E71-100, QJ71E71-B5 and QJ71E71-B2 Ethernet Interface Modules Generic Term/Abbreviation Description Abbreviation for Active Server Pages Generic term for personal computers, computers, workstations and Ethernet module External device etc.
  • Page 13: Overview

    1 OVERVIEW MELSEC-Q 1 OVERVIEW This manual explains the Web function of the MELSEC-Q Series model QJ71E71-100, QJ71E71-B5 and QJ71E71-B2 Ethernet interface module (hereinafter called the Ethernet module). When applying the following program examples to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems.
  • Page 14 1 OVERVIEW MELSEC-Q (2) Access function to the 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 ( 1).
  • Page 15 1 OVERVIEW MELSEC-Q Device memory read/write, remote RUN/STOP and other operations can be performed for the QCPU 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.
  • Page 16 1 OVERVIEW MELSEC-Q 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: System Configurations

    <System administrator> Files Router Web server (see (4)) Communication library (DLL) Sample screen (HTML, ASP) Ethernet Provided by Mitsubishi Electric Corporation Firewall Web browser (see (5)) Files HTML files for Web browser ASP files for programmable Commercially sold product controller access Created by the user <Factory/production site>...
  • Page 18 • Communication library • HTML files for Web browser • ASP files for programmable controller access (5) Web browser Web browsers whose compatibility has been verified by Mitsubishi Electric Corporation are as follows: ® • Internet Explorer 4.0 or later (Microsoft Corporation) ®...
  • Page 19: Precautions For Using The Web Function

    (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. If a firewall function is installed in the network, set it so that the HTTP protocol can pass the firewall function.
  • Page 20 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: Operating Procedure

    3 OPERATING PROCEDURE MELSEC-Q 3 OPERATING PROCEDURE 3.1 General Procedure up to Communication Using the 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: How To Obtain And Set Up The Communication Library And The Sample Screen

    3 OPERATING PROCEDURE MELSEC-Q 3.2 How to Obtain and Set Up the Communication Library and the 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 Contact your local agency or marketing company to obtain “qeaccess-e.exe.”...
  • Page 23 • ASP files rmt_run.asp rmt_stop.asp Communication library QeAccess.dll _dll • DLL file mitsubishi.gif For sample screen _img qeaccess_logo.gif • Image files (Procedure 2) Copying the files Copy the decompressed folder (_qj71e71) under the root folder “\Inetpub\wwwroot” of the Web server.
  • Page 24 3 OPERATING PROCEDURE MELSEC-Q (Procedure 3) Registering the communication library (DLL file) Register the DLL file in the OS registry of the Web server. The following shows how to register it in MS-DOS mode. The regsvr32 may not be executed properly when registering the communication library (DLL file) ®...
  • Page 25: Verifying The Operation Of The Web Function Usinga Sample Screen

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN This chapter explains how to access the QCPU using the Web function through a sample screen. 4.1 Web Function Items Available on the Sample Screen The following lists the items of the Web function whose operations can be verified on the sample screen.
  • Page 26: Explanation Of The Sample Screen

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 4.3 Explanation of the 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.
  • Page 27: Example Of Data Communication On The Sample Screen

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 4.4 Example of Data Communication on the Sample Screen The following shows how to access a QCPU 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 Ethernet module...
  • Page 28 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (3) Execution environment of the above data communication example (external device side) (a) Web server Set up the communication library and the sample screen. (See Section 3.2 (2).) Register the DLL file in the OS registry.
  • Page 29: Device Read/Write

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 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 QCPU in batch mode.
  • Page 30 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (3) Setting items The following explains the setting items on the Device Read/Write screen. Connection target (character string) Specify the IP address or host name of the connection target Ethernet module.
  • Page 31 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (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.
  • Page 32 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (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. (Example) 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 33: Remote Run/Stop

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 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 QCPU. For details on the MC protocol, refer to the Reference Manual. This section explains an example of Remote RUN.
  • Page 34 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (3) Setting items The following explains the setting items on the Remote RUN/STOP screen. Connection target (character string) Specify the IP address or host name of the connection target Ethernet module.
  • Page 35: Data Request

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 4.4.3 Data Request The Data Request function accesses the programmable controller CPU 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 36 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (2) Execution result (When completed normally) (When completed abnormally) (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.
  • Page 37: Proxy Setting

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 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.
  • Page 38 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q (2) Resetting proxy (When completed normally) (If proxy has not been set) (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 39: Configurations Of Files On The Sample Screen

    4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q 4.5 Configurations of Files on the 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.
  • Page 40 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC-Q ASP file (dev_read.asp) <%@ LANGUAGE="VBScript" %> <HTML> (Execution result screen) <HEAD> <TITLE>- Device Read - QE-ACCESS ver1.0</TITLE> </HEAD> <BODY> <!Getting of input data> <% HostName = Request.Form("iHostName") DevCode = Request.Form("iDevCode") DevNo = Request.Form("iDevNo")
  • Page 41: Example Of Creating A File For Accessing The Programmable Controller

    5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER This chapter explains an example of creating a file for accessing the programmable controller. This file (sample-e.exe) can be obtained by contacting your local agency or marketing company.
  • Page 42 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q (2) File configuration 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) Copy the above files to the root directory "\Inetpub\wwwroot"...
  • Page 43 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 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 %>...
  • Page 44 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 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...
  • Page 45 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q '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 46 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 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> test2.asp <%@ Language=VBScript %> <% Option Explicit Dim Time...
  • Page 47 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 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 48 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q <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"...
  • Page 49 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC-Q 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>...
  • Page 50 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC-Q 6 COMMUNICATION LIBRARY FUNCTIONS This chapter explains the communication library functions. (1) 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 (X, Y, M, etc.) in 16-point units.
  • Page 51 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC-Q 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 52 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC-Q (3) Arguments used by the 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.
  • Page 53 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC-Q 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 programmable controller CPU. For details, refer to the Reference Manual.
  • Page 54 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC-Q (4) Return values of the functions The following explains the return values of the communication library functions. 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>...
  • Page 55 INDEX Communication Library argument ... 6-3 Web browser ......... A-10, 2-2 Communication Library functions.... 6-1 Web function items available on the Configuration of files on the Sample Sample screen ........4-1 screen ........... 4-15 Web server........A-10, 2-2 Web server software ......A-10 Device code ..........
  • Page 56 MEMO Index - 2 Index - 2...
  • Page 57 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
  • Page 58 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies.

This manual is also suitable for:

Qj71e71-100Qj71e71-b5Qj71e71-b2Qj71e71-u-web-e13jr40

Table of Contents