Home
Q Corresponding Ethernet Interface Module User`s Manual (Web
Contents
1. Ethernet module External devices Web browsers 1 OVERVIEW Ethernet module MC protocol HTTP 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 1 With the Web function exchange of information between the Ethernet module and the Web server and between the Web server and the Web browser is performed via HTTP With the Web function the programmable controller is accessed by sending receiving messages of the MC protocol which are used for communication between the programmable controller and the external device via HTTP 3 Availability of a communication library and a sample screen a The Web function can be used by installing the following __ Required devico software Description Programmable controller side Ethernet module Subject module of this manual See Section 2 1 2 Communication library See item b Files created by the user to be used ASP files for accessing the programmable controller for displaying the Web browser See Section 2 1 9 b Asample screen HTML files ASP files is provided It is used to check the access function to the programmable controller u
2. I Ej webMai E Contact D People D YellowPages B Download 4 Channels MITSUBISHI QE ACCESS vert o Device Read Connection target 10 97 85 200 Head device D x o Number of device 4 Hex Read Clear Last Modified 05 11 2001 Free DownLoad a Document Done Setting item Setting value Connection target 10 97 85 200 D000000 Number of device 0004 2 Execution result 2 Device Read QE ACCESS vert H Netscape Jol File Edit View Go Window Help M gt d d 3 A a m d 4 Nil Reload Home Search Netscape Print Security A Bookmarks J Location hitp 10 97 85 10 _qj 1e71 _asp dev_read asp I WebMail B contact E People E Yelow Pages D Download C4 Channels la Gal What s Related The execution result of Device Read The normal completion Device code D Device 000000 Number of device 4 When completed normally Reading data 123456789ABC 1234 The execution result of Device Read The abnormal completion C056 When completed abnormally Document Done 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 a b c d Connection target character string Specify the IP address or host name of the connection target Ethernet module Example To specify using the IP address enter 10
3. Input input i Input p Pointer to the execution result character string Output O O O O O S Z T 9 o o o o o o o o ASBASEGRRE 3 E le 9 5 x 2 s JE B x j Z a z z z o ojo z z 2 2 5 2 s 9 8 o o 9 le S C S 0 lo o o z lt jo 3 zia amp la a o S 6 2 a amp o o 3 9 S ES 9 lt 5 bei Gei 2 0 a 3 D s volo Cy DU Z T v 3 ic o o 9 z la c Z 3 2 8 z 3 2 S o e o B z 3 2 lo a o S l 3 lg 19 G 9J9 8 o o c zIS 3 a 3 zia 8 9 o 6 2 9 e lo 3 o a o 3 o 3 3 ls 3 S ko f i 3 2 BSTR p RmtStop HostName NetNo PcNo CpuTime CpuNo CmdMode PassWord 5 i Input b input Input Remoto Stop ime itoring ti Input inati i Input i Input Input p Pointer to the execution result character string Output BSTR p ReqCmd HostName CmdData PassWord RetType HostName Connection target Input CmdData Application data part subheader text command Input Data Request T Argument PassWord Password Input RetType Execution result type 1 Actual data only Other than 1 Normal execution result Input p Pointer to the execution result character string Output BSTR p ProxySet ProxyName PortNo ProxyName Proxy server address input Argument PortNo HTTP port No Input p Pointer to the execution result character strin
4. MITSUBISHI ELECTRIC MELSEC Q Series Programmable Logic Controllers User s Manual Web Function ETHERNET Modules QJ71E71 B2 QJ71E71 B5 Art no 208186 ee MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION Version D Q Corresponding Ethernet Interface Module MITSUBISHI User s Manual C Web function e Fettes series Mitsubishi Groe Controller QJ71E71 100 S QJ71E71 B5 MEL E Q QJ71E71 B2 e SAFETY PRECAUTIONS e Always read these instructions before using this equipment 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 of the CPU module to use In this manual the safety instructions are ranked as DANGER and CAUTION e B l Indicates that incorrect handling may cause hazardous conditions RS DANGER resulting in death or severe injury I I I Indicates that incorrect handling may cause hazardous conditions A CAUTION resulting in medium or slight personal injury or physical damage E Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save t
5. 3i Remote RUN QE ACCESS verl 0 Netscape BEE File Edit View Go Window Help 7 NY a gt ee gt 3 2 a D od w 3 Nil Reload Home Search Netscape Print Security J A Bookmarks J Location http 10 37 85 10 _qi71e71 _sspimt_iun asp B WebMail B Contact B People B YellowPages B Download C4 Channels The execution result of Remote RUN The normal completion Le Ql What s Related r When completed normally The execution result of Remote RUN The abnormal completion 4B00 r When completed abnormally Document Done amp 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 a Connection target character string Specify the IP address or host name of the connection target Ethernet module Example 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 To perform remote RUN STOP to a single CPU specify the control CPU c Operation mode selection Select whether or not to execute remote RUN forcibly 1 Do not execute forcibly Does not perform remote RUN when remote STOP is being executed from other external device Force execution Performs remote RUN even if remote STOP is being executed from other external device d Clear m
6. 1 2 Features of the MELSEC Communication Protocol 2 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL 2 1 Types and Applications of Data Communication Frames 2 2 Accessible Range of Each Data Communication Frames 2 3 How to Read the Control Procedures of the MC Protocol 2 4 Access Timing of the Programmable Controller CPU Side 2 5 Setting Method for Writing to the Programmable Controller CPU during RUN 2 6 Accessing Other Stations 2 7 Precautions on Data Communication 2 8 Time Chart and Communication Time of the Transmission Sequence of the Serial Communication Module 2 9 Transmission Time When Accessing Other Stations via MELSECNET G MELSECNET H MELSECNET 10 2 10 Compatibility with Multiple CPU Systems 2 11 Compatibility with the QOOCPU Q01CPU Serial Communication Function 3 WHEN COMMUNICATING USING THE QnA COMPATIBLE 3E 3C 4C FRAMES OR 4E FRAME 3 1 Message Formats 3 2 List of Commands and Functions for the QnA Compatible 3E 3C 4C Frames and 4E Frame 3 3 Device Memory Read Write 3 4 Buffer Memory Read Write 3 5 Reading from and Writing to the Buffer Memory of an Intelligent Function Module 3 6 Programmable Controller CPU Status Control 3 7 Drive Memory Defragmentation for Other Station QnACPU 3 8 File Control 3 9 Registering Deleting and Reading User Frames for Serial Communication Modules 3 10 Global Function for Serial Communication Modules 3 11 Data Transmission to an External device On Demand F
7. _BLINK gt Response Write lt TABLE gt Response Write lt TD VALIGN middle gt PASSWORD lt TD gt lt TD gt lt INPUT TYPE PASSWORD SIZE 20 NAME iPassWord gt lt TD gt Response Write lt TABLE gt Response Write lt P gt Response Write lt TABLE gt Response Write lt TD gt Response Write lt INPUT TYPE SUBMIT NAME iPassInf VALUE OK gt Response Write lt TD gt Response Write lt TD gt Response Write lt INPUT TYPE SUBMIT NAME iPassInf VALUE Cancel gt Response Write lt TD gt m Response Write lt TABLE gt Description Response Write lt INPUT TYPE hidden NAME iHostName VALUE amp HostName amp gt relating to Response Write lt INPUT TYPE hidden NAME iDevCode VALUE amp DevCode amp gt the remote Response Write lt INPUT TYPE hidden NAME iDevNo VALUE amp DevNo amp gt password Response Write lt INPUT TYPE hidden NAME iDevNum VALUE amp DevNum amp gt Response Write lt INPUT TYPE hidden NAME iPassCnt VALUE amp PassCnt 1 amp gt Response Write lt FORM gt Response Write lt CENTER gt Else Response Write disp End If Else Response Write disp End If Else Response Write disp End If gt lt BODY gt lt HTML gt 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER 5 EXAMPLE OF CREATING A FILE FOR ACCESSING TH
8. gt Then Dim CpuNo CPUNo CpuNo 03FF Dim CmdMode Commmand mode CmdMode 0001 Select Case Request Form CpuNo Case Remote RUN Dim ClrMode Clear mode ClrMode 02 disp Object RmtRun HostName NetNo PcNo CpuTime CpuNo CmdMode ClrMode PassWord Case Remote STOP disp Object RmtStop HostName NetNo PcNo CpuTime CpuNo CmdMode PassWord End Select Else Dim DevCode Device code DevCode D Dim DevNo Device number DevNo 000100 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 amp DevData disp Object DevWrite HostName NetNo PcNo CpuTime DevCode DevNo DevNum DevData PassWord End If End If End If gt lt BODY gt lt TABLE HEIGHT 80 gt lt TR gt lt TD gt lt FONT SIZE 2 gt WEB FUNCTION TEST lt FONT gt lt P gt lt TD gt lt TR gt lt TABLE gt lt FORM METHOD POST gt lt TABLE BGCOLOR LIGHTYELLOW ALIGN RIGHT CELLPADDING 5 CELLSPACING 0 BORDER 0 gt lt TR BGCOLOR CCCCFF gt lt TH COLSPAN 2 gt DATA INPUT lt TH gt lt TR gt lt TR gt lt TD COLSPAN 2 HEIGHT 50 gt lt BR gt lt TD gt lt TR gt lt TR gt lt TD COLSPAN 2 ALIGN CENTER HEIGHT 50 gt lt INPUT TYPE TEXT NAME DevData SIZE 10 MAXLENGTH 8 VALUE lt DevData gt gt lt INPUT TYPE SUBMI
9. gt lt INPUT TYPE submit NAME stop VALUE Stop gt lt TD gt lt TR gt lt TR gt lt TD COLSPAN 2 ALIGN middle HEIGHT 50 gt lt Dara register read result gt lt INPUT TYPE TEXT SIZE 10 MAXLENGTH 8 VALUE lt Mid Value 27 8 gt gt Hexadecimal lt BR gt D100 D101 lt TD gt lt TR gt lt TR gt 5 7 5 7 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC Q lt TD ALIGN middle COLSPAN 2 HEIGHT 80 gt lt FONT SIZE 0 gt lt B gt lt Select Case Mid Value 38 1 Case 0 gt OFF lt Case 1 gt ON lt End Select gt lt B gt lt FONT gt lt BR gt M100 lt TD gt lt TR gt lt TR gt lt TH COLSPAN 2 HEIGHT 50 VALIGN TOP gt lt Select Case Mid Value 26 1 Case 0 gt RUN lt Case 2 gt STOP lt End Select gt lt BR gt CPU status lt TH gt lt TR gt lt TR gt lt TH COLSPAN 2 BGCOLOR ccffcc gt RESULT lt TH gt lt TR gt lt TR gt lt TH COLSPAN 2 gt lt Select Case Left disp 5 Case lt OK gt Select Case Mid Value 19 4 Case 0000 Answer Normal completion Case Else 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC Q Answer Abnormal completion amp Mid Value 19 4 End Select Case lt ING gt Answer Abnormal completion amp Mid disp Instr disp error Len error 1 4 End Select gt lt TEXTAREA NAME Answer ROWS 5 gt lt Answer gt
10. 0 2 97 44 05 8 Fax 47 0 32 8485 77 MIDDLE EAST Viale Colleoni 7 Fax 359 0 2 97 44061 MPL Technology Sp 200 POLAND REPRESENTATIVES L20041 Agrate Brianza MI INEA CR d 0 0 CROATIA Ul Krakowska 50 llan amp Gavish Ltd ISRAEL GE Losinjska 4a PL 32 083 Balice Automation Service aer HR 10000 Zagreb Phone 48 0 12 630 47 00 24 Shenkar St Kiryat Arie MITSUBISHI ELECTRIC CORPORATION JAPAN Phone 385 0 1 36 940 01 02 03 Fax 48 0 12 630 47 01 1L 49001 Petah Tiqva D atum Fax 385 0 1 36 940 03 Sirius Trading amp Services srl ROMANIA Phone 972 0 3 922 18 24 KEES AutoCont Control Systems s r o CZECH REPUBLIC Aleea Lacul Morii Nr 3 Fax 972 0 3 924 0761 Dese 4813622 160 60 Jelinkova 59 3 R0 060841 Bucuresti Sector 6 Texel Electronics Ltd ISRAEL Fax 31 3622 16075 CZ 721 00 Ostrava Svinov Phone 40 0 21 430 40 06 2 Ha umanut P 0 B 6272 gen Phone 420 0 59 5691 150 Fax 40 0 21 430 40 02 1L 42160 Netanya MITSUBISHI ELECTRIC EUROPE B V UK Fax 420 0 59 5691 199 CRAFT Consulting amp Engineering do o SERBIA Phone 972 0 9 863 0891 T pi AutoCont Control Systems s r o CZECH REPUBLIC Toplicina str 4 lok 6 Fax 972 0 9 885 24 30 ee n Technologick 374 6 SER 1800 Nis e aree 7 708 00 Ostrava Pustkovec Phone 381 0 18 292 24 4 5 523 962 Get ee Phone 420 595 691 150 Fax 381 0 18 292 24 4 5 523 962 Fax 420 595 691 199 INEA SR d 0 0 SERBIA AFRICAN REPRESENTATIVE MITSUBISH
11. 3 6 List of GX Developer Setting Items for Ethernet Modules 3 7 List of Input Output Signals to from the Programmable Controller CPU 3 8 List of Applications and Assignments of the Buffer Memory 4 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 1 Loading and Installation 4 2 Settings and Procedures Prior to Starting the Operation 4 3 Components of the Ethernet Module 4 4 Connecting to the Network 4 5 Settings from GX Developer 4 6 Network Parameters Setting the Number of MELSECNET Ethernet Cards 4 7 Operational Settings 4 8 Self Diagnostic Tests 4 9 Maintenance and Inspection 5 COMMUNICATION PROCEDURE 5 1 Overview of the Communication Procedure 5 2 Initial Processing 5 3 Router Relay Parameter 5 4 Confirming the Completion of the Initial Processing 5 5 Open Settings 5 6 Open Processing Close Processing of the Connection 5 7 Pairing Open 5 8 Automatic Open UDP Port 5 9 Corresponding with the QCPU Remote Password Function 5 10 Hub Connection Status Monitor Function 5 11 Configuring a Network in Redundant System Redundant System Support Function A 5 SH 080009 L 6 COMMUNICATION USING THE MC PROTOCOL 6 1 Data Communication Function 6 2 Utilizing the MX Component 7 FIXED BUFFER COMMUNICATION WITH THE PROCEDURE EXIST CONTROL METHOD 7 1 Control Method 7 2 Sending Control Method 7 3 Receiving Control Method 7 4 Data Format 7 5 Programming 8 FIXED BUFFER COMMUNICATION WITH THE NO PROCEDURE CON
12. 97 85 200 Head device Specify the device code and head device of the device for reading writing data 1 Device code selection Select the device memory 2 Headdevice character string Specify the head number of the device memory for which data is to be read written Specify the head device number in decimal hexadecimal from the target device memory Example To specify the data register D100 select the device code D and specify 000100 for the head device Only 100 may be specified by omitting the first three O s Example To specify the link register W1FF select the device code W and specify 0001FF for the head device Only 1FF may be specified by omitting the first three O s Number of device character string Specify the number of points hexadecimal of the device for which reading writing are to be performed Example To specify 20 points as the number of device points specify 0014 Only 14 may be specified by omitting the first two O s Read data write data character string See item 4 1 Read data execution result screen Displays the content of data for the number of device points read from the specified device memory 2 Write data Specify the data to be written to the device for the number of device points 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC Q 4 Arrangement of read write data The follow
13. EVA n means version 4 or later A and V mean volume license product and version upgrade product respectively HTML Abbreviation for Hyper Text Markup Language HTTP Abbreviation for Hyper Text Transfer Protocol This protocol sends receives the information on World Wide Web in the Internet Abbreviation for MELSEC communication Protocol Name of a communication system for accessing the programmable controller CPU from an external device using the communication procedure for Q serial MC protocol communication modules or Ethernet interface modules etc Two type of communication systems are available one using ASCII code data and the other using binary code data For more details see to the Reference Manual MELSECNET 10 Abbreviation for MELSECNET 10 Network system MELSECNET H Abbreviation for MELSECNET H Network system MELSECNET G Abbreviation for MELSECNET G Network system Personal computer Generic term for IBM PC AT or 100 compatible personal computer QCPU Reference Manual Generic term for Q00JCPU QOOCPU Q01CPU Q02CPU Q02HCPU QO6HCPU Q12HCPU Q25HCPU Q12PHCPU Q25PHCPU Q12PRHCPU Q25PRHCPU Q02UCPU QO3UDCPU Q04UDHCPU and QO6UDHCPU Abbreviation for the Q Corresponding MELSEC Communication Protocol Reference Manual URL User s Manual Application Abbreviation for Uniform Resource Locator Abbreviation for the Q Corresponding Ethernet Interface Module Use s Manual Appl
14. 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 External device Web browser A Specify the address and HTTP port of the proxy server to be routed through when accessing from the Web server Proxy server Ethernet module It is necessary to set the URL of the Ethernet module in advance in order to access via the proxy server Web server 1 Proxy setting Example To set the port 8000 of the proxy server qe_serv XX Proxy Setting QE ACCESS verl 0 Netscape File Edit View Go Window Help s S W Print Security Stop J J Whats Related J Whats Related MITSUBISHI The proxy setting completion QE ACCESS verto Proxy Setting Proxy ae_serv J Port sooo Set Reset Clear Last Modified 05 11 2001 Free DownLoad ab Document Done a Documer nt Done 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC Q 2 Resetting proxy Stt QE ACCESS verl 0 Netscape CS DE Proxy Setting QE ACCESS ver1 0 Netscape Ele Edt View Go Window Help Fie Edt View Go Window Help gt p f E
15. lt TEXTAREA gt lt INPUT TYPE BUTTON VALUE Clear ONCLICK this form elements Answer value gt lt TH gt lt TR gt lt TABLE gt lt FORM gt lt P gt lt BODY gt lt HTML gt lt SCRIPT LANGUAGE javascript gt lt l function check_number element var i for i 0 i lt element value length i if 0123456789 indexOf element value charAt i 1 alert element name Enter using a numeric value element value element focus return false return true Il gt lt SCRIPT gt 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 I Reads from a bit device X Y M etc in 16 point units Corresponds to command 0401 Device Read DevRead Reads from a word device D R T C etc in one point units 00C 0 for QnA compatible 3E frame z Writes to a bit device X Y M etc in 16 point units Corresponds to command 1401 Device Write DevWrite Writes to a word device D R T C etc in one point units 00C10 for QnA compatible 3E frame Requests a remote RUN operation to the programmable Corresponds to command 1001 0000 Remote RUN RmtRun controller CPU for QnA compatible 3E frame Requests a remote STOP operation to th
16. lt BR gt The MC protocol abnormal completion than 1 C056 lt BR gt D00000FF03FF000016C05600FF03FF0004010000 lt BR gt RetType 1 lt OK gt The proxy setting lt BR gt The proxy setting completion lt BR gt lt NG gt The communication library error lt BR gt Check the setting value of the proxy lt BR gt Abnormal completion lt NG gt The communication library error lt BR gt The proxy information is not set lt BR gt INDEX C Communication Library argument 6 3 Communication Library functions 6 1 Configuration of files on the Sample STEE erii cse fo diaper eter Dad 4 15 D Device code 6 4 Decompressing the file 3 3 F File struchire nr neeeennee 3 3 H Head device numbers 6 4 How to obtain the Communication lIbraryc mas n E 3 2 How to obtain the Sample screen 3 2 M Manual s use A 9 MC protocol A 10 O Overview of web function 1 1 R Registering the Communication library 3 4 Related Manuals A 8 Remote password check 1 4 S Setup the file 3 3 Supported Communication library MUNCUON sis une dite ob x eta nd 6 1 U Utilizing the Web server 1 3 V Verifying the
17. or fault should occur in the programmable controller device and that backup and fail safe functions are systematically provided outside of the device for any problem or fault 2 The Mitsubishi programmable controller has been designed and manufactured for applications in general industries etc Thus applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications In addition applications in which human life or property that could be greatly affected such as in aircraft medical applications incineration and fuel devices manned transportation equipment for recreation and amusement and safety devices shall also be excluded from the programmable controller range of applications However in certain cases some applications may be possible providing the user consults their local Mitsubishi representative outlining the special requirements of the project and providing that all parties concerned agree to the special circumstances solely at the users discretion Microsoft Windows Windows NT are registered trademarks of Microsoft Corporation in the United States and other countries Netscape is a registered trademark of Netscape Communication Corporation in the United State
18. test2 asp gt lt FRAMESET gt 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC Q b test1 asp lt Language VBScript gt lt 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 gt lt HTML gt lt HEAD gt lt META HTTP EQUIV Content Type Content text html charset x sjis gt lt META NAME GENERATOR Content Microsoft Visual Studio 6 0 gt lt HEAD gt lt If Request ServerVariables REQUEST_METHOD POST Then Dim Object Communication library Set Object Server CreateObject QeAccess McProtcol Dim HostName Host name HostName 00 00 00 Dim NetNo Network number NetNo 00 Dim PcNo PC number PcNo FF Dim CpuTime CPU monitering timer CpuTime 0040 Click Set Clear If Request Form SetData lt gt Then Call command data Dim DevCode Device code DevCode M Dim DevNo Device number DevNo 000100 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 If Request Form CpuNo lt
19. 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi loss in opportunity lost profits incurred to the user by Failures of Mitsubishi products special damages and secondary damages whether foreseeable or not compensation for accidents and compensation for damages to products other than Mitsubishi products replacement by the user maintenance of on site equipment start up test run and other tasks 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice 6 Product application 1 In using the Mitsubishi MELSEC programmable controller the usage conditions shall be that the application will not lead to a major accident even if any problem
20. 789ABC1234 r When completed normally The execution result of Data Request The MC protocol abnormal completion C056 D00000FF03FF000016C05600FF03FF0004010000 When completed abnormally 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 Example To specify using the IP address enter 10 97 85 200 b Command data character string Specify the MC protocol application data using the same character string as the setting for ASCII code transmission For details on the MC protocol refer to the Reference Manual Precautions for use of Data Request a Available communication frame Application data of the QnA compatible 3E frame command can be specified Specification of the 4E or A compatible 1E frame is not allowed b No of commands that can be specified at a time Only one command can be specified at a time Continuous specification of more than one command is not allowed c Remote password unlock lock Command 1630 1631 Remote password unlock lock Command 1630 1631 is not available The remote password to the HTTP port is unlocked in the dialog box which is displayed in the Web browser when accessing to a programmable controller CPU See Section 1 1 5 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC Q 4 4 4 Proxy
21. CPU User s Manual Hardware Design Maintenance and Inspection C000H and higher Section 11 3 3 of the User s Manual Basic 4 Inthe case of a communication library error an error message is displayed c If the HTTP port is used or a remote password has been set in the programmable controller CPU of access destination create a program for remote password input processing using the error code for the following return value as a condition For an example of how to describe a program for remote password input processing see Section 4 5 IHTTP error 401 d The following table lists examples of the return values of the communication library functions Return value example RetType other lt OK gt The execution result of Device Read lt BR gt The normal completion lt BR gt Device code D lt BR gt Device than 1 000000 lt BR gt Number of device 4 lt BR gt Reading data 123456789ABC1234 RetType 1 lt OK gt 123456789ABC1234 Normal completion RmtSto r Abnormal completion lt NG gt lt MCP error 4B00 gt The execution result of Remote STOP lt BR gt The abnormal completion 4B00 lt BR gt RetType other lt OK gt The execution result of Data Request lt BR gt The MC protocol normal than 1 completion lt BR gt D00000FF03FF0000140000123456789ABC1234 lt BR gt RetType 1 lt OK gt D00000FF03FF0000140000123456789ABC1234 RetType other lt OK gt The execution result of Data Request
22. E PROGRAMMABLE CONTROLLER MELSEC Q 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 1 Configuration of a user created screen The following shows the screen configuration of a file used for accessing the programmable controller to be created in this chapter The function being used is enclosed with parentheses X WEB FUNCTION TEST Netscape File Edit View Go Window Help 4 3 4 2 td amp 4 UI 2 Back Reload Home Search Netscape Print Security BEE E Bookmarks A Location http 710 97 85 10 _user frame htm Z Bj webMai Dl Contact D People E YellowPages E Download C4 Channels C3 What s Related WEB FUNCTION TEST Time Read 4 16 29 PM DATA INPUT DATA DISPLAY Read interval seconds Set Stop a bech pete crexeadecima lexadecimal D100 D101 D100 D101 b gt siz M100 M100 c zech sm Remote STOP CPU status RESULT RESULT lt e a Device Write DevWrite Writes data into D100 and D101 b Device Write DewWrite Turns ON OFF M100 c Remote RUN STOP RmtRun RmtStop Performs remote RUN STOP d Results Displays the execution results of items a through c above e Read interval Sets the read interval time Performs random read see item f below processing for ea
23. Ethernet module is not subject to remote password check Therefore the following dialog box will not be displayed Ed Device Read QE ACCESS ver1 0 Netscape File Edit View Go Window Help D a ax 3 a id d wd 34d Reload Home Search Netscape Print Security 16 Bookmarks A Location http 10 97 85 10 _gi71271 _asp dev_read asp Z E webMai B Contact D People E YellowPages B Download 4 Channels oh x J What s Related Input remote password PASSWORD OK Cancel Document Done Data communication For an example of data communication see Section 4 4 1 and subsequent sections End of data communication Close the Web browser 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 For details on the MC protocol refer to the Reference Manual This section explains an example of reading four points of the data registers DO through D3 1 Device Read Screen RY QE ACCESS ver1 0 Netscape BEE File Edt View Go Window Help Q a X gt 3 2 a u cd wd d Back Reload Home Seach Netscape Print Security Stop E Bookmarks A Goto http 10 97 85 10 _qi71e71 index html al What s Related
24. FF03FF000018001004010000D 0000000004 Example The following shows an example of the format for the application data of the MC protocol that is equivalent to the command data rk Text Command T Q header i Tute ss EE Request Request CPU I inati destination Device Number of Subheader Network j destination due Request data monitoring Command Subcommand Head device code device No module station length timer i I O No No i i H EJE Gu o sc ECHO e o E e xm vi He OB H L H L 5 0 0 0jo 0 F F O 3 F F 0 01 0 0 a 8 0 0 1 o o 4 0 1 0 00 0 D i 0 0 0 0 0 0 0 0 0 4 35H 30H 30H 30H 30H 30H 464 464 30s 334 464 46x 30H 30H 30H 30H 314 38H 30H 30H 314 304 30 344 30 314 304 304 304 30H 44u 2An 30n 30H 304 304 30H 304 30H 306 304 341 gt lt x Specify this part in the command data 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC Q 2 Execution result 4 SE Data Request QE ACCESS ver1 0 Netscape Eie Edt View Go Window Help a a 3 Reload Home Search Print Security E uf Bookmarks _ Location http 2710 97 85 10 _qi71e71 _asp req cmd asp what s Related T E webMai E Contact D People D YellowPages E Download Channels The execution result of Data Request e MC protocol normal comple The MC protoco letion D00000FF03FF0000140000123456
25. I ELECTRIC EURORE BN SPAIN B TECH as CZECH REPUBLIC Karadjordjeva 12 260 Spanish Branch Na Ostrove 84 SER 113000 Smederevo CBI Ltd SOUTH AFRICA Carretera de Rub 6 30 i CZ 58001 Havlickuv Brod Phone 381 0 26 617 163 Private Bag 2016 E 08190 Sant Cugat del Vall s Barcelona Phone 420 0 569 408 841 Fax 381 0 26 617 163 24 1600 Isando Phone 34 93 565 3131 Fax 420 0 569 408 889 Phone 27 0 11 928 2000 Fax 3493 589 1579 5 I Sane G Mirade Slovensko H i SLOVAKIA Fax 27 0 11 392 2354 MITSUBISHI ELECTRIC AUTOMATION UR eri 2m Piestany ee Woods Parkway U Borov 69 Phone 421 0 33 7742 760 A elio 2 580 01 Havlickuv Brod Fax 421 0 33 7735 144 i aed E Phone 420 569777 777 NEA doo SLOVENIA Gs Fax 420 569 777 778 Stegne 11 Beijer Electronics A S DENMARK SI 1000 Ljubljana Lautruphoj 1 3 Phone 386 0 1 513 8100 DK 2750 Ballerup Fax 386 0 1 513 8170 Phone 45 0 70 26 46 46 o Fax 45 0 70 26 48 48 ee E Automation AB SWEDEN Beijer Electronics Eesti OU ESTONIA SE 20124 Malm P rnu mnt 160i Phone 46 0 40 35 86 00 EE 11317 Tallinn Fax 46 0 40 35 86 02 Phone 372 OGL S1814 ECONOTEC AG SWITZERLAND Fax 372 0 6 518149 Hinterdoriste 12 Beijer Electronics OY FINLAND CH 8309 Niirensdorf Jaakonkatu 2 Phone 41 0 44 838 48 11 FIN 01620 Vantaa Fax 41 0 44 838 48 12 Phone 358 0 207 463 500 GIs TURKEY EE Darulaceze Cad No 43 KAT 2 UTECO A B E E GREECE TR 34384 O
26. Microsoft Visual Studio 6 0 gt lt If Request QueryString stop And Request QueryString time lt gt Then Time setting Time Request QueryString time gt lt Refresh by time gt lt META HTTP EQUIV Refresh CONTENT lt Time gt gt lt End If gt lt HEAD gt lt Execute if time is specified If Time lt gt Then MELSEC Q 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 L1 E1 E1 L1 Dim CmdData Command data CmdbData 500000FF03FF000034004004060000020138D0002030001D 0001000002M 0001 000001 Dim RetType Execution result type RetType 1 disp Object ReqCmd HostName CmdData PassWord RetType Select Case Left disp 5 Case lt OK gt Value Mid disp Len lt OK gt 1 End Select End If gt lt BODY STYLE RIGHT gt lt TABLE HEIGHT 80 gt lt TR gt lt TD gt Time Read lt FormatDateTime Now 3 gt lt P gt lt TD gt lt TR gt lt TABLE gt lt FORM gt lt TABLE BGCOLOR lightyellow CELLPADDING 5 CELLSPACING 0 BORDER 0 gt lt TR BGCOLOR ccccff gt lt TH COLSPAN 2 gt DATA DISPLAY lt TH gt lt TR gt lt TR gt lt TD HEIGHT 50 gt Read interval lt INPUT SIZE 2 MAXLENGTH 2 NAME time VALUE lt Time gt ONCHANGE check_number this gt seconds lt INPUT TYPE submit VALUE Set
27. RS x E d gt 24 2 3 4 F i gt 2A a D d w Back Reload Home Search Net Security Stop Reload Home Seach Netscape Pn Secu 7 saf Bookmarks Location rtp 771097 85 107 inder himi T J Whats Related Z suf Bookmarks A Location itp 771057 8507 71717 Whats Related WebMail E Contact D People E YellowPages E Download Channels Z 1B WebMail D Contact D People D Yelow Pages E MITSUBISHI The proxy setting The proxy setting cancellation When completed normally QE ACCESS verto Proxy Setting w DD iii Proxy The proxy information is not set Port r If proxy has not been set Last Modified 05 11 2001 Free DownLoad 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 a Proxy character string Specify the IP address or host name of the proxy server to be routed through Example To specify using the IP address enter 10 97 85 200 b Port character string Specify the port to be used 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 th
28. T VALUE Execute gt Hexadecimal lt BR gt D100 D101 lt TD gt lt TR gt lt TR gt lt TD ALIGN CENTER COLSPAN 2 HEIGHT 80 gt lt INPUT TYPE SUBMIT NAME SetData VALUE Set gt lt INPUT TYPE SUBMIT NAME SetData VALUE Reset gt lt BR gt M100 lt TD gt lt TR gt lt TR gt lt TH HEIGHT 50 gt lt INPUT TYPE SUBMIT NAME CpuNo VALUE Remote RUN gt lt TH gt lt TH HEIGHT 50 gt lt INPUT TYPE SUBMIT NAME CpuNo VALUE Remote STOP gt lt TH gt lt TR gt lt TR gt lt TH COLSPAN 2 BGCOLOR CCFFCC gt RESULT lt TH gt lt TR gt lt TR gt lt TH COLSPAN 2 gt lt Select Case Left disp 5 Case lt OK gt 5 5 5 5 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER Answer Normal completion Case lt ING gt Answer Abnormal completion amp Mid disp Instr disp error Len error 1 4 End Select 90 lt TEXTAREA NAME Answer ROWS 5 gt lt Answer gt lt TEXTAREA gt lt INPUT TYPE BUTTON VALUE Clear ONCLICK this form elements Answer value gt lt TH gt lt TR gt lt TABLE gt lt FORM gt lt BODY gt lt HTML gt C Test aen lt Language VBScript gt lt Option Explicit Dim Time Time Dim Password Password not set Dim disp Return value Dim Value Result Dim Answer For display gt lt HTML gt lt HEAD gt lt META HTTP EQUIV Content Type Content text html charset x sjis gt lt META NAME GENERATOR Content
29. TION OF THE WEB FUNCTION USING A SAMPLE SCREEN MELSEC Q 1 l ASP file dev_read asp lt LANGUAGE VBScript gt lt HTML gt Execution result screen lt HEAD gt mm lt TITLE gt Device Read QE ACCESS ver1 0 lt TITLE gt J 3 4 a a lt HEAD gt Era 3 SES S EF wras Raiatea lt BODY gt i lt Getting of input data gt Str lt Sumber nee 4 Reading data 12345 789ABC1234 HostName Request Form iHostName DevCode Request Form iDevCode DevNo Request Form iDevNo DevNum Request Form iDevNum PassWord Request Form iPassWord PassInf Request Form iPassInf PassCnt Request Form iPassCnt gt lt Setting of default value gt lt NetNo 00 L PcNo FF CpuTime 0028 RetType 0 gt Create an object call the communication library lt ICalling of DLL gt lt Set Object Server CreateObject QeAccess McProtcol disp Object DevRead HostName NetNo PcNo CpuTime DevCode DevNo DevNum PassWord RetType Y gt lt Showing of execution result When the password error occurs it makes input a password gt lt Execute device read If InStr disp lt HTTP error 401 gt lt gt 0 Then If PassCnt lt 3 Then If PassInf lt gt Cancel Then Response Write lt CENTER gt Response Write lt FONT SIZE 4 gt Input remote password lt FONT gt Response Write lt FORM ACTION dev_read asp METHOD POST TARGET
30. TROL METHOD 8 1 Control Method 8 2 Sending Control Method 8 3 Receiving Control Method 8 4 Data Format 8 5 Simultaneous Broadcast Using UDP IP 8 6 Programming 9 COMMUNICATION USING THE RANDOM ACCESS BUFFER 9 1 Control Method 9 2 Data Format 9 3 Physical and Logical Addresses of the Random Access Buffer 9 4 Precautions when Creating Programs 10 DEDICATED INSTRUCTIONS 10 1 Dedicated Instruction List 10 2 ZP BUFRCV 10 3 Z BUFRCVS 10 4 ZP BUFSND 10 5 ZP CLOSE 10 6 ZP ERRCLR 10 7 ZP ERRRD 10 8 ZP OPEN 10 9 ZP UINI 11 TROUBLESHOOTING 11 1 How to Check Errors Using LED Displays 11 2 How to Check an Error Through GX Developer 11 3 Error Code List 11 4 Troubleshooting Flowchart Related Manual 1 Q Corresponding Ethernet Interface Module User s Manual Basic SH 080009 L 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 Appendix 8 Program Examples Appendix 9 Communication Support Tool MX Component Appendix 10 Differences between the Ethernet and the IEEE802 3 Appendix 11 ICMP Protocol Supported by the Ethernet Module Appendix 12 Setting Value Recording Sheets Related Manual 2 Q Corresponding MELSEC Communication Protocol Reference Manual 1 OVERVIEW 1 1 Overview of the MELSEC Communication Protocol
31. Web function using a Sample SCPOGn cpr iaia 4 1 Index 1 W Web browser A 10 2 2 Web function items available on the Sample screen sss 4 1 Web server A 10 2 2 Web server software A 10 Index 1 MEMO Index 2 Index 2 WARRANTY Please confirm the following product warranty details before using this product 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company However if repairs are required onsite at domestic or overseas location expenses to send an engineer will be solely at the customer s discretion Mitsubishi shall not be held responsible for any re commissioning maintenance or testing on site that involves replacement of the failed module Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty te
32. anda D 40880 Ratingen Phone 43 0 2252 85 55 20 Phone 370 0 5 232 3101 Phone 7 3212 50 11 50 Phone 49 0 2102 486 0 Fax 43 0 2252 488 60 Fax 370 0 5 232 2980 Fax 7 3212 50 1150 Fax 49 0 2102 486 1120 TEHNIKON BELARUS INTEHSIS srl MOLDOVA ELEKTROSTILY RUSSIA MITSUBISHI ELECTRIC EUROPE B V FRANCE Oktyabrskaya 16 5 Off 703 711 bld Traian 23 1 Rubzowskaja nab 4 3 No 8 French Branch BY 220030 Minsk MD 2060 Kishinev RU 105082 Moscow 25 Boulevard des Bouvets Phone 375 0 17 210 46 26 Phone 373 0 22 66 4242 Phone 7 495 545 3419 F 92741 Nanterre Cedex Fax 375 0 17 210 46 26 Fax 373 0 22 66 4280 Fax 7 495 545 3419 E oy o E T 68 Koning amp Hartman B V BELGIUM Koning amp Hartman B V NETHERLANDS ICOS RUSSIA ax 33 0 Industrial Solutions Haarlerbergweg 21 23 Industrial Computer Systems ZAO MITSUBISHI ELECTRIC EUROPE B V IRELAND Woluwelaan 31 NL 1101 CH Amsterdam Ryazanskij Prospekt 8A Office 100 Irish Branch BE 1800 Vilvoorde Phone 31 0 20 587 76 00 RU 109428 Moscow Westgate Business Park Ballymount Phone 32 0 2 257 02 40 Fax 31 0 20 587 76 05 Phone 7 495 232 0207 IRL Dublin Mm an Fax 32 0 2 257 02 49 Beijer Electronics AS NORWAY Fax 7495 2320327 dini Mis AKHNATON BULGARIA Postboks 487 ax 353 0 4 Andrej Ljapchev Blvd Pb 21 NO 3002 Drammen MITSUBISHI ELECTRIC EUROPE B V ITALY BG 1756 Sofia Phone 47 0 32 24 30 00 Italian Branch Phone 359
33. ata to the data registers DO through D3 SM402 d Mov H1234 DO Mov H5678 DI MOV HOABC D2 Mov H1234 D3 Write the Ethernet parameters and programs to the programmable controller CPU and restart the programmable controller CPU When it is operating normally the initial processing of the Ethernet module will be completed normally and the INIT LED will be lit 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 b Web server 1 Set up the communication library and the sample screen See Section 3 2 2 2 Register the DLL file in the OS registry See Section 3 2 2 This registration is not required if it has already been registered 3 After all settings are completed restart the Web server Web browser Start the Web browser Execution of data communication a b c d URL display on the sample screen Specify the following URL for the sample screen in the Web browser http 10 97 85 10 qj71e71 index html Unlocking the remote password If the port of the Ethernet module to be used for data communication with the Web server is subject to remote password check the following dialog box will be displayed when access to a QCPU will start Enter the remote password to perform unlock processing This operation is not required if the port of the
34. ch set time interval after the read interval is set Ends random read processing by STOP f Random read ReqCmd Reads the following device memory D100 and D101 2 points M100 SD203 g Result Displays the execution result of item f above 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER MELSEC Q 2 File configuration a The following shows the file configuration of a file used for accessing the programmable controller _user 4 frame htm HTML file for Web browser test1 asp ASP file for data input test2 asp ASP file for data display b Copy the above files to the root directory Inetpub wwwroot of the Web server Inetpub wwwroot T _Qj71e71 sample screen See Chapter 4 _user user created screen c Register the communication library DLL file See Section 3 2 If the communication library has already been registered it is not necessary to register it 3 File content Shows the content of the file to be created Enter the host name for HostName in the program a frame htm lt HTML gt lt HEAD gt lt META HTTP EQUIV Content Type Content text html charset x sjis gt lt META NAME GENERATOR Content Microsoft Visual Studio 6 0 gt lt HEAD gt lt TITLE gt WEB FUNCTION TEST lt TITLE gt lt FRAMESET COLS 50 FRAMEBORDER 0 gt lt Specify a read file gt lt FRAME SRC test1 asp gt lt FRAME NAME DATA SRC
35. d from an external device to a remote programmable controller any problems on the programmable controller side may not be dealt with promptly due to abnormal data communication In addition to configuring an interlocking circuit in a sequence program determine how the system handles data communication abnormalities etc between the opposite devices and the programmable controller CPU Design Precautions lt gt DANGER e Do not write any data in the system area of the buffer memory of the intelligent function module Also do not output turn on the use prohibited signal which is one of the output signals from the programmable controller CPU to the intelligent function module If data is written to the system area or the use prohibited signal is output there is a risk that the programmable controller system may malfunction N CAUTION e Do not bundle the control wires and the communication cables with the main circuit and the power wires and do not install them close to each other They should be installed at least 100 mm 3 94 in away from each other Failure to do so may generate noise that may cause malfunctions e When the status control remote RUN STOP etc of the programmable controller CPU is performed from the external device select the Always wait for OPEN parameter set by an user in advance Select with the initial timing setting in the operational setting If Do not wait for OPEN is selected the co
36. displayed When completed abnormally An error code is displayed Refer to the explanation of troubleshooting in the User s Manual Basic 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 L1 Ethernet module Web server Web browser 10 97 85 200 10 97 85 10 10 97 85 201 Station number 1 2 Execution environment for the above data communication example Ethernet module side a b c Mount an Ethernet module to slot 0 of the basic base unit Set the parameters for Ethernet using GX Developer For the setting items other than shown below the default values will be used 1 Network parameters Setting screen Setting item Setting data Network type Ethernet Starting I O No Network No Group No Operational settings IP address 10 97 85 200 Network parameters setting the number of MELSECNET Ethernet cards 2 Remote password Setting item Setting data Password setting Remote password settings QJ71ET1 Password active module settings Start X Y 0000 Remote password detail settings System connection Check HTTP port Write d
37. dix 1 Reading and Writing by Designation of the Device Memory Extension Appendix 2 Reading from and Writing to the Buffer Memory Appendix 3 Processing Time of the Programmable Controller CPU Side While Communicating Using the MC Protocol 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 opposite devices line connections open close fixed buffer communication random access buffer 13JL88 communication and troubleshooting Q Corresponding Ethernet Interface Module User s Manual Application This manual explains the e mail function of the Ethernet module the programmable controller CPU status monitoring function the communication function via MELSECNET G MELSECNET H MELSECNET 10 as i well as the communication function using data link instructions and how to use file transfer FTP server etc sold separately Q Corresponding MELSEC Communication Protocol Reference Manual This manual explains the communication methods and control procedures through the MC protocol for the SH 080008 external devices to read and write data from to the programmable controller CPU using the serial 13JF89 communication m
38. e configuration of the ASP files for accessing the programmable controller using the Device Read sample screen For communication library functions see Chapter 6 Device Read screen BE QE ACCESS vor1 0 Notecapo 2 qf Bookmaks fre DE Gi EI whats Related T Viet B Contact D ege H Yelow Pages BJ Dowibad 2 Channels MITSUBISHI QE ACCESS verto Device Read Connection target 10 87 85 200 Head device D z fe Number of device 1 Hex Lasi Modified 01 2001 Free DownLoad HTML file dev_read html lt HTML gt lt TITLE gt Device Read QE ACCESS ver1 0 lt TITLE gt lt BODY BGCOLOR FFFFFF gt lt BR gt lt CENTER gt lt IMG SRC _img qeaccess_logo gif gt lt BR gt lt TT gt lt FONT SIZE 5 FACE Arial Lucida Sans Time Roman gt Device Read lt FONT gt lt TT gt lt BR gt lt Action gt Specify the lt FORM ACTION _asp dev_read asp METHOD POST TARGET _BLINK gt lt BR gt transmission lt TABLE BORDER 0 gt destination lt Connection target gt lt TR gt lt TD WIDTH 140 ALIGN RIGHT gt lt FONT FACE Arial Lucida Sans Time Roman gt Connection target lt FONT gt lt TD gt lt TD WIDTH 200 COLSPAN 2 gt lt INPUT TYPE TEXT SIZE 26 NAME iHostName gt lt TD gt lt TR gt lt Input type gt lt INPUT TYPE RESET VALUE Clear gt lt CENTER gt lt BODY gt lt HTML gt 1 4 VERIFYING THE OPERA
39. e programmable Corresponds to command 1002 0000 Remote STOP RmtStop controller CPU for QnA compatible 3E frame Sends a user specified command an application data Data Request ReqCmd subheader text of the MC protocol and receives the result Specify the proxy server when connecting a Ethernet module Proxy Setting ProxySet via a proxy server Proxy Reset ProxyReset Resets the proxy setting le Sg I 2 Communication library functions The following table lists the communication library functions Web function item RetType E Execution result type 1 Actual data only Other than 1 Normal execution result BSTR IBSTR p DevRead HostName NetNo PcNo CpuTime DevCode DevNo DevNum PassWord RetType DevRead HostName NetNo PcNo CpuTime DevCode DevNo DevNum PassWord RetType Device Read Argument 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC Q Web function item Function BSTR p DevWrite HostName NetNo PcNo CpuTime DevCode DevNo DevNum DevData PassWord i Input E Input Input ime itoring ti input Device Write i Input Argument A Input i Input Wri Input input p Pointer to the execution result character string Output BSTR p RmtRun HostName NetNo PcNo CpuTime CpuNo CmdMode ClrMode PassWord i Input 3 I Input input Remote Run ime itoring ti ynput CpuNo Target programmable controller Request destination module I O No Input i i
40. ea 4 1 4 3 Explanation of the Sample Screen i 4 2 4 4 Example of Data Communication on the Sample Screen 4 3 4 44 Device Read Wite nce ak bla em Ea ER enit meno 4 5 4 4 2 Remote RUNG TOP 4 9 444 3 Data Request iore end ee d edet re eaa Fete vi pe ee ou Ede re dg e De Ye ge eae Read 4 11 A 4 4 Proxy Settlhig et tp E iii i G iain i A e cs 4 13 4 5 Configurations of Files on the Sample Screen nennen 4 15 5 EXAMPLE OF CREATING A FILE FOR ACCESSING THE PROGRAMMABLE CONTROLLER 5 1t05 9 6 COMMUNICATION LIBRARY FUNCTIONS 6 1t06 5 INDEX Index 1 to Index 2 Related Manual 1 Q Corresponding Ethernet Interface Module User s Manual Basic 1 OVERVIEW 1 1 Overview of the Ethernet Module 1 2 Features of the Ethernet Module 1 3 Additional Functions in Function Version B or later 1 4 Software Configuration 2 SYSTEM CONFIGURATIONS 2 1 Applicable Systems 2 2 Devices Required for Network Configuration 2 3 For Use in Multiple CPU System 2 4 For Use with Q00J Q00 Q01CPU 2 5 For Use with Q12PRH Q25PRHCPU 2 6 For Use at MELSECNET H Remote UO Station 2 7 Checking the Function Version and Serial No 3 SPECIFICATIONS 3 1 Performance Specifications 3 2 Data Codes for Communication 3 3 Relationship between the External Devices and Additional Functions for Each Communication Function 3 4 Ethernet Module Function List 3 5 Dedicated Instruction List
41. ee File Edit View Go Window Help 7 P x 3 A a m d w Wi N Back Reload B WebMail E Contact ENere r o meo mme MITSUBISHI Device Write QE ACCESS verto Device Read Connection target 10 97 85 200 Head device D o Number of device a Hex Read Clear Last Modified 05 11 2001 Free DownLoad a Document Done 1 Start the Web browser and specify the URL for the sample screen Example If the host name of the Web server is qe_serv specify http qe_serv _qj71e71 index html 2 Select the Web function item to be used from the menu gt 3 Enter the required items on each function screen and execute the selected Web function item Example The screen display when Device Read has been selected 2 Execution result screen Device Read QE ACCESS ver1 0 Netscape File Edit View Go Window Help x 3 A gt w dod N Reload Home Search Netscape Print Security a Bookmarks Location http qe_serv _qi71e71 _ssp dev_read asp Z E webMai B Contact B People E YellowPages D Download C4 Channels EI what s Related Le The execution result of Device Read The normal completion Device code D Device 000000 Number of device 10 Reading data 123456789ABC123456789ABC123456789ABC 1234 w 1 The execution result is displayed on a new screen When completed normally The execution result is
42. erver 1 Complicated screens can be created The user can create multiple HTML files and HTML files of large sizes without being limited by the size of the Ethernet module memory by storing these HTML files in a Web server The HTML files for Web browser can be created or changed easily if the user has knowledge of creating a web page 2 Reducingthe load on the Ethernet module Since access programs for the programmable controller and control programs for Web browsers are executed in the Web server the load on the Ethernet module can be minimized when accessing the programmable controller 3 Separating an Ethernet line By separating the line connecting between the Ethernet module and the Web server and the line between the Web server and the Web browser the screen data for the Web browser will not be sent to the line connecting between the Ethernet module and the Web server Therefore it is possible to reduce effect on the transmission reception of data for system control for communication between the Ethernet module and the external device 1 OVERVIEW b c 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 add
43. following integer value 00003F40 DO 00004 D1 3F40n Example 2 If a character string 12AB is stored in D2 and D3 it will be read as the following integer value 32314241 D2 3231H D3 4241H 1 Indicates ON 0 Indicates OFF 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN 4 4 2 Remote RUN STOP MELSEC Q 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 1 Remote RUN screen FY QE ACCESS ver1 0 Netscape BEE File Edt View Go Window Help E o E y w gt 4 Q a m d w 2 Back Reload Home Seach Netscape Print Security Stop A Bookmarks J Goto htp 10 97 85 10 _q71e71 index html what s Related 7 D webMai E Contact D People E Yellow Pages B Download Channels MITSUBISHI QE ACCESS verto Remote RUN Connectiontarget 10 97 85 200 Target PLC Control PLC C PLC No 1 C PLC No 2 C PLC No 3 C PLC No 4 Operation mode Do not execute forcibly C Force execution Clear mode Do not clear C Clear all except latch C Clear all Run Clear Last Modified 05 11 2001 Free DownLoad E Document Done Setting item Setting value Connection target 10 97 85 200 Operation mode Do not execute forcibly 2 Execution result
44. g Output BSTR p ProxyReset Proxy Reset i p Pointer to the execution result character string Output VIO IO O DU Z Z s 3 e 9 S 2 lo 9 a S S Z Z 2 E 2 4 6 Z S 3 9 9 a o 8 zl3 a e s o elg le a vlo S x 6 o 8 IC o o 2 lo A HS AIS 3 5 z 2 o a amp o 9 o 2 5 9 2 2 o F o 313 la 5 3 8 e 5 o o Ke o 3 CBE Q o g L o o o o 9 3 2 o 2 3 o o z 6 Proxy Setting 6 COMMUNICATION LIBRARY FUNCTIONS Argument ClrMode CmdData CmdMode CpuTime CpuNo DevCode DevData DevNo DevNum HostName NetNo PassWord PcNo PortNo ProxyName RetType 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 Data type Overview Setting range Character string Specifies the clear mode 00 01 02 Section 3 6 Specifies the application data subheader text Enter according to command of the MC protocol QnA the MC protocol Chapter 3 compatible 3E frame format Specifies the remote operation mode 0001 0003 Section 3 6 Specifies the CPU monitoring timer 0000 to FFFF Section 3 1 3 TER 0000 to O1FF Specifies the target CPU reque
45. hapter 6 describes the communication library functions To know about the following items see the Ethernet Interface Module User s Manual Basic 1 To learn startup processing of Ethernet module e Chapter 4 describes a general procedure up to operation of Ethernet module e Section 5 4 describes confirmation of initial processing completion 2 Detailed descriptions of the error codes Chapter 11 describes troubleshooting how to check for errors and detailed descriptions of error codes for the Ethernet modules 3 Storage locations of the error codes for the Ethernet module Section 11 3 lists the error code storage locations in the buffer memory 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 External device Abbreviation for Active Server Pages Generic term for personal computers computers workstations and Ethernet module etc that are connected by the Ethernet for data communication Ethernet module Abbreviation for Model QJ71E71 100 QJ71E71 B5 and QJ71E71 B2 Ethernet Interface Modules Ethernet network system Abbreviation for 10BASE2 10BASES5 and 10BASE T 100BASE TX network systems GX Developer Generic product name for SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW
46. hernet module that can use the Web function is as follows e Model QJ71E71 100 Ethernet interface module e Model QJ71E71 B5 Ethernet interface module Model QJ71E71 B2 Ethernet interface module For the applicable systems and the devices required for network configuration of the above Ethernet module see Chapter 2 of the User s Manual Basic 4 Web server The Web server is a computer in which the Web server software operates a The operating environment of the Web server is listed below Microsoft Windows 2000 Professional Operating System Microsoft Windows NT Server Network Operating System Internet Information Server 5 0 IIS5 0 Internet Information Server 4 0 IIS4 0 Version 4 0 Peer Web Services 4 0 PWS4 0 UPS NT Workstation Operating System Personal Web Server 4 0 PWS4 0 Microsoft Windows 98 Operating System 1 Set up Internet Information Server 5 0 when installing the OS 2 Set up Personal Web Server 4 0 when installing Windows NT 4 0 Service Pack 3 or later and Option Pack Windows NT 4 0 Service Pack 3 or later and Option Pack can be obtained by downloading them from the web page of Microsoft Corporation or requesting their CD ROMs to be sent 3 Set up Windows 98 when installing the OS b Itis necessary to set up the following files in the Web server in order to use the Web function Communication library HTML files for Web browser ASP files for programmable controller acce
47. his manual to make it accessible when required and always forward it to the end user Design Precautions lt DANGER e For details on the operating status of each station when a communication abnormality occurs in the data link see the manual for each data link Erroneous outputs and malfunctions may lead to accidents Not doing so can cause an accident due to false output or malfunction e To prevent malfunctions of the programmable controller system that may be caused by illegal e mails from the outside take a proper countermeasure such as virus detection so that illegal e mails are not received by the mail server of this module e If itis necessary to ensure the security of the programmable controller system against unauthorized access from external devices via the Internet appropriate measures must be incorporated by the user e Then controlling a running programmable controller modifying data by connecting peripheral devices to the CPU module or connecting a personal computer to the intelligent function module configure an interlocking circuit in a sequence program so that the safety of the overall system is always maintained Also before performing other control operations program modifications and operation status modifications status control on the running programmable controller be sure to read the manual carefully and thoroughly confirm the safety Especially in the above mentioned control operations that are performe
48. ication User s Manual Basic Abbreviation for the Q Corresponding Ethernet Interface Module Use s Manual Basic User s Manual Web function Abbreviation for the Q Corresponding Ethernet Interface Module Use s Manual Web function Web browsers Abbreviation for software that views Web pages Web server Abbreviation for the computer in which Web server software operates Web server software Generic name of server software that supports the WWW World Wide Web services 1 VERVIEW 2 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 1 1 Overview The following shows an overview of the Web function of the Ethernet module 1 Programmable controller monitoring via the Internet using the Web function The Web function of the Ethernet module is used for the system administrator to monitor Q Series CPUs at a remote location via the Internet using a commercially available Web browser Internet network Public line Internet service provider ET LL Internet service provider Z N Router
49. ing a firewall function to the Web server The communication information between the Ethernet module and the Web server and between the Web server and the Web browser can be recorded and used for maintenance using the functions of the Web server 5 Remote password check function a b The remote password check function of the Ethernet module is provided to prevent any unauthorized access to the QCPU by the user at a remote location For details on the remote password check function see Section 5 9 of the User s Manual Basic If the HTTP port is set as the target connection for remote password check access to the QCPU will become possible by performing unlock processing of the remote password via the dialog box displayed in the Web browser ES Device Read QE ACCESS ver1 0 Netscape File Edit View Go Window Help zi a m e 34 d 2 to 3 d Security MEE Reload Home Search Netscape Print u Bookmarks Af Location http qe_serv _ai71e71 _asp dev_read asp Z E WebMail B Contact Ej People E YellowPages B Download C4 Channels v Ga What s Related Input remote password PASSWORD a Document Done The remote password lock processing is performed when the Web browser ends 2 SYSTEM CONFIGURATION SYS CONFIGU ONS MELSEC Q 2 SYSTEM CONFIGURATIONS 2 1 System Configurations This section explains the environment and system configurations for using the Web functi
50. ing 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 Example To write data to 32 points from the internal relay M16 In the case of data read operation the content of data ON OFF status when 32 points are specified from the internal relay M16 is shown Specify each setting item as follows Device code Select M Head device Specify 000016 Only 16 may be specified by omitting the first four Oe Number of device 0002 Only 2 may be specified by omitting the first three Oe Write data Specify AB1234CD The following data will be written In the case of device read operation the following data will be read 1 lt B15 B14 B13 B12 B11B10 B9 B8 B7 B6 BS B4 B3 B2 B1 BO B15 B14 B13B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 BO 1 Indicates ON 1101110 1 011 110 0 0 110 0 1 0 0 0 4 4 011 0 0 1 1 0 0 4141011 0 Indicates OFF MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN b When read
51. ing 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 5 6 B15 B14 B13 B12 B11B10 B9 B8 Specify each setting item as follows Device code Head device e Number of device Write data Select D Specify 000350 MELSEC Q Only 350 may be specified by omitting the first three Oe 0002 Only 2 may be specified by omitting the first three Oe Specify 56AB170F The following data will be written In the case of device read operation the following data will be read A B7 B6 B5 B4 B B3 B2 B1 BO 1 7 B15 B14 B13 B12 B11 B10 B9 B8 0 B7 B6 B5 B4 F B3 B2 B1 BO 0111011 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0111111 0 0 0 0 11 11 ke A The content of D350 indicates 56ABu 22187 in decimal If values real numbers character strings other than integers are stored in the word device memory from which data is to be read the Ethernet module reads the stored values as integer values Example 1 If a real number 0 75 is stored in DO and D1 it will be read as the The content of D351 indicates 170Fu 5903 in decimal
52. kmeydani Istanbul 5 Mavrogenous Str Phone 90 0 212 320 1640 GR 18542 Piraeus Fax 90 0 212 320 1649 Phone 30 211 1206 900 n CSC Automation Ltd UKRAINE Fax 30 211 1206 999 15 M Raskova St Fl 10 Office 1010 Meltrade Ltd HUNGARY UA 02002 Kiev Fert utca 14 Phone 380 0 44 494 33 55 HU 1107 Budapest Fax 380 0 44 494 33 66 Phone 36 0 1 431 9726 Fax 36 0 1 431 9727 Beijer Electronics SIA LATVIA Vestienas iela 2 1V 1035 Riga Phone 4 371 0 784 2280 Fax 371 0 784 2281 MITSUBISHI ELECTRIC Mitsubishi Electric Europe B V FA European Business Group Gothaer Stra e 8 D 40880 Ratingen Germany FACTORY AUTOMATION Tel 49 0 2102 4860 Fax 49 0 2102 4861120 info mitsubishi automation de www mitsubishi automation com Specifications subject to change Art no 208186 SH NA 080180 D 06 2007
53. mmunication line at remote STOP is closed The communication line cannot be reopened on the programmable controller CPU side after that and the remote RUN from the external device cannot start either Operating Precautions N CAUTION e Please read the user s manual carefully and confirm the safety thoroughly before proceeding to perform control operations of the programmable controller especially modifications of data programs and operation status status control that is running by connecting personal computers etc to the intelligent function module Incorrect modifications of data programs and operating status may cause system malfunctions damages to the machines or accidents REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Jun 2001 SH NA 080180 A First Edition Apr 2003 SH NA 080180 B iditional model QJ71E71 B5 QJ71E71 B2 Correction About the Generic Terms and Abbreviations Section 1 1 Section 2 1 2 2 Section 4 1 Chapter 6 1 Aug 2005 SH NA 080180 C Correction Section 1 1 Section 4 1 4 4 3 Chapter 6 Jun 2007 SH NA 080180 D Change of a term PLC was changed to programmable controller Correction About Manuals About the Generic Terms and Abbreviations Section 3 2 1 Chapter 6 3 Japanese Manual Version SH 080144 D This manual confers no industrial property
54. ng file 3 OPERATING PROCEDURE MELSEC Q 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 see Section 2 1 Procedure 1 Decompressing the qeaccess e exe file Move the compressed qeaccess e exe file approximately 75 KB to any folder and decompress it The following shows the file structure after decompression Folder name File name Remark dev read html dev write html foot html TOI For sample screen j71e71 menu html d proxy set html HTML files req_cmd html rmt_run html rmt_stop html dev_read asp dev_write asp proxy_set asp For sample screen req_cmd asp ASP files rmt_run asp rmt_stop asp QeAccess dil Communication library l DLL file mitsubishi gif For sample screen 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 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 In that case install the Microsoft Corporation s Internet Explorer 5 5 or la
55. nication library cannot be created by the user For details on the communication library functions see Chapter 6 b The Web server provides a log function that records file access etc Periodically collect the access log for the programmable controller access file and check the access status If there are too many unauthorized access logs to the Web server the user should take appropriate measures to resolve unauthorized access c A maximum of four connections are allowed as the simultaneous access count when accessing the Ethernet module using the Web function If this maximum allowable access number is exceeded a timeout error will be returned from a communication library function In case a timeout error occurs extend the access interval time and retry Precautions for registering the communication library DLL file The regsvr32 may not be executed properly when registering the communication library DLL file In that case install the Microsoft Corporation s Internet Explorer 5 5 or later and then execute again 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 When it is operating normally the INIT LED on the front of the Etherne
56. ode selection Specify clear initialization processing of QCPU s device clear when starting QCPU calculation by remote RUN 1 Do not clear Does not clear the device memory Clear all except latch Clears the device memory outside the latch range Clear all Clears all device memory including the latch range 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 DO through D3 by specifying the application data of Device Memory Batch Read command 0401 for the QnA compatible 3E frame 1 Data Request screen XY QE ACCESS ver1 0 Netscape Bee File Edit View Go Window Help 9 x a d gt 3 d 2 m d d N Back Reload Home Search Netscape Print Security Stop Bookmarks Goto http 10 97 85 10 _qi71e71 index html i What s Related D WebMail E Contact B People B YellowPages B Download C4 Channels MITSUBISHI m Remote RUN QE ACCESS verto Data Request Connection target 10 97 85 20 Command Data 500000FF03FF000018001004010000D 00000000 2 04 Request Clear Last Modified 05 11 2001 Free DownLoad Document Done Setting item Setting value Connection target 10 97 85 200 command Data 500000
57. odule Ethernet module sold separately 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 e Chapter 1 describes an overview of the Web function e Chapter 2 describes a system configuration for utilizing the Web function 2 To find out about the procedure for using the Web function e Section 3 1 describes the procedure up to communication using the Web function e Section 3 2 describes how to obtain and set up the communication library and sample screen e Section 4 2 describes the procedure for accessing the programmable controller using a sample screen 3 To check the operation of the Web function Chapter 4 describes an example when accessing the programmable controller using a sample screen 4 To create data used to access the programmable controller by the user e Section 4 5 describes an overview of ASP Active Server Pages files for accessing the programmable controller as well as HTML Hyper Text Markup Language files to be displayed by the Web browser both of which are to be created by the user e Chapter 5 describes an example of file creation for programmable controller access e C
58. on The following describes the system configurations for using the Web function of the 2 Ethernet module 1 System configuration when accessing via the Internet Internet network public line Internet service provider Web server see 4 Internet service provider lt System administrator gt prt ER SS SS aS asses SSS Communication library DLL Sample screen HTML ASP Ethernet Provided by Mitsubishi Electric Corporation Firewall Web browser see 5 HTML files for Web browser ASP files for programmable controller access Created by the user RARE IRE ene i eee ETE Ten pam os Commercially sold product External device Ethernet Ethernet module see 3 2 System configuration when accessing via the Intranet Ethernet Files Ethernet module see 3 Web server see 4 Communication library DLL Web browser see 5 Sample screen HTML ASP Provided by Mitsubishi Electric Corporation Files HTML files for Web browser EE FS ASP files for programmable controller access Commercially sold product Created by the user External device Commercially sold product 2 SYSTEM CONFIGURATION SYS CONFIGU ONS MELSEC Q 3 Ethernet module The Et
59. ord devices D R T C etc in one point units Requests a remote RUN operation to the programmable controller CPU 4 Requests a remote STOP operation to the programmable controller CPU Specifies the proxy server when a Ethernet module is connected via a proxy server 4 2 Operating Procedure The following shows the operating procedure for accessing a QCPU from a sample Screen Set up both the sample screen and the communication library in the Web server in advance See Chapter 3 y Start the Web browser and specify See Section 4 3 the URL for the sample screen fi The Device Read screen Index screen is displayed y Select the function item to be used from the menu y See Section 4 3 y Y Device Device Remote Remote Data Proxy f Re s e red items Read Write RUN STOP Request Setting 1 on the screen displayed v y Execution Execution Execution Execution Execution Execution See Section 4 4 result result result result result result Bg The execution result is displayed i 1 Set this to access an Ethernet module via the proxy server Close the Web browser 4 VERIFYING THE OPERATION OF THE WEB FUNCTION USING A SAMPLE SCREEN 4 3 Explanation of the Sample Screen MELSEC Q The following shows the operations that are performed on the sample screen 1 Setting screen SS QE ACCESS vert D Netscape B
60. put relay v oooptorr Intemalreay mx 00000859 Latchreay LG 0000099 o O 000000 to 002047 O F Edge relay o va 000024 o Link relay 1 O pn owore Data register o px 0000000128 o Link register O we oopotorrr NN ne M ERE 000000 to 002047 Contact Counter 000000 to 001023 Direct input File register 000000 to OFE7FF 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC Q 4 Return values of the functions The following explains the return values of the communication library functions a A code for judging the execution result is added to the head of the return value For normal completion lt OK gt is added For abnormal completion lt NG gt is added For ReqCmd lt OK gt is added in the case of an MC protocol error b A code for judging an error is added at abnormal completion 1 Inthe case of an HTTP error lt ING gt lt HTTP error HTTP error code gt is added 2 Inthe case of a WinSock error lt NG gt lt WinSock error WinSock error code gt is added 3 Inthe case of an MC protocol error lt NG gt lt MCP error error code end code gt is added Refer to either of the following manuals according to the error code verify the error content and take an appropriate action lt Error codes gt 4FFFH or ower Q
61. 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 2001 MITSUBISHI ELECTRIC CORPORATION 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 CONTENTS This manual SAFETY PRECAUTIONS r eege letti Ee Meed gedet hah By A 1 REVISIONST ee A 3 CONTENTS lla unen ded Alia la lan E Ala pa Alba ARIA pila da nen A 4 eg E A 8 Te Manual St RE A 9 About the Generic Terms and Abbreviations i A 10 1 OVERVIEW 1 1to1 4 a We NEE 1 1 2 SYSTEM CONFIGURATIONS 2 1to2 4 2 1 System Configurations i ila vada dadi iaia 2 1 2 2 Precautions for Using the Web Function L 2 3 3 OPERATING PROCEDURE 3 1to3 4 3 1 General Procedure up to Communication Using the Web Function i 3 1 3 2 How to Obtain and Set Up the Communication Library and the Sample Screen 3 2 4 1 Web Function Items Available on the Sample Screen L 4 1 4 2 Operating Procedure inane niei dida dni n i ie i d iii
62. rm before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user
63. s and other countries Adobe and Acrobat are registered trademarks of Adobe Systems Incorporation Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries Ethernet is a trademark of Xerox Co Ltd in the United States Other company names and product names used in this document are trademarks or registered trademarks of respective owners Q Corresponding Ethernet Interface Module User s Manual Web function MODEL QJ71E71 U WEB E VODE 13JR40 SH NA 080180 D 0706 MEE s MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 ee NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPA 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 MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES EURASIAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B V EUROPE GEVA AUSTRIA Beijer Electronics UAB LITHUANIA Kazpromautomatics Ltd KAZAKHSTAN German Branch Wiener StraBe 89 Savanoriu Pr 187 2 Scladskaya str Gothaer StraBe 8 AT 2500 Baden LT 02300 Vilnius KAZ 470046 Karag
64. sing the communication library and the Web function Contact your local agency or marketing company 1 The user can easily create ASP files in order to access the programmable controller by using the communication library In addition the result of access to the programmable controller using ASP files can arbitrarily be displayed on the Web browser using user created HTML files HTTP MC protocol header Command message Web server External device HTTP Response message header Web browser ca Display of Execution requests results of the ASP file a 1 OVERVIEW MELSEC Q 2 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 in the items to be displayed in the Web browser Example To read three points of data registers DO 1234u D1 5678H and D2 9ABCH QE ACCESS verto Last Modified 05 11 2001 Free Download Input screen Execution result screen 4 Utilizing the Web server Access to the programmable controller using the Web function becomes possible by combining an Ethernet module and a Web server computer a A system can easily be configured by utilizing a Web s
65. ss 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 Netscape Communicator 4 05 or later Netscape Communications Corporation 2 SYSTEM CONFIGURATIONS MELSEC Q 2 2 Precautions for Using the Web Function 1 Precautions for configuring a system a b c It is necessary to take sufficient security measures for connection to the Internet 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 If a firewall function is installed in the network set it so that the HTTP protocol can pass the firewall function When accessing multiple Ethernet modules via one Web server Personal Web Server the next processing may not be executed during the time from the request start through until the response is returned If no response is received due to a communication line fault the next processing may be delayed until a timeout occurs on the Web server Example Accessing 2 Ethernet modules using one Web server Ethernet module 1 Because no response is received from Ethernet module 1 the next a request cannot be handled l la Web bro
66. st destination 03E0 to 03E3 Section 3 1 6 module I O No 03FF Specifies the device code See item a See item a Specifies the number of device 1 to 960 Specifies data for the number of device Section 3 3 Specifies the head device number Specifies the IP address or host name of the connection target Ethernet module Specifies the network No to be routed thorough I 00 to EF FE Section 3 1 3 last Specifies the remote password Specifies the PC No of the access station ake piu Te Section 3 1 3 Specifies the HTTP port No Specifies the IP address or host name of the proxy server Specifies the execution result type 1 Actual data only Returns only the application data subheader text response returned from the programmable controller CPU Other than 1 Normal execution result Returns the data edited in the communication library 6 COMMUNICATION LIBRARY FUNCTIONS MELSEC Q a 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 Device Device No range code at default assignment Decimal Hexadecimal special relay sm 000001o002047 O Special register so o0000000007 pure O x opor Out
67. t module lights up 3 For details refer to the User s Manual Basic 2 Settings on the external device side Web server Web browser Start See Chapter 2 This sets an environment that enables the connection of the Web server Web browser and Ethernet module to the Internet Checks the system configuration B Obtains the communication library and the sample screen ff See Section 3 2 Sets up the communication library and the sample screen in the Webserver r See Section 3 2 Checks the operation of the Web function on the sample screen v 8 See Chapters 5 and 6 Creates files Lc E HTML files for Web browser for user created files ASP files for programmable controller access y Sets up the HTML and ASP files in the Web server y Start the Web browser and specify the URL of the user created screen ae See Chapter 4 v Execute the programmable controller access by using the user created files PERATING PROCEDURE han 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 The qeaccess e exe is a self decompressi
68. ter and then execute again 1 Set the Web server to MS DOS mode 2 Switch the current directory C gt cd Inetpub wwwroot _qj71e71 _dll 3 Input the directory path of the regsvr32 command for Windows set path C windows system 4 Register the communication library DLL with the regsvr32 command for Windows C gt Inetpub wwwroot _qj71e71 _dll gt regsvr32 qeaccess dll Example When the root directory is in drive C ws LISI w d Dea E3 sf al Corp 1981 1999 A DIIRegisterServer in qeaccess dll succeeded Procedure 4 When all settings are complete restart the Web server When deleting the files that have been set up delete all files below the qj71e71 folder of the root folder Inetpubwwwroot 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 Function File name Description Device Read dev_read html Reads from a bit devices X Y M etc in 16 point units Reads from a word devices D R T C etc in one point units 3 Writes to a bit devices X Y M etc in 16 point units Device Write dev_write html a Writes to a w
69. unction for Serial Communication Modules 3 12 Initializing the Transmission Sequence for Serial Communication Modules SH 080008 3 13 Mode Switching for Serial Communication Module 3 14 Turning Off Displayed LEDs and Initializing Communication Error Information and Error Code for Serial Communication Module 3 15 Turning Off the COM ERR LED for Ethernet Modules 3 16 Loopback Test 3 17 Registering or Canceling Programmable Controller CPU Monitoring for Serial Communication Modules 3 18 Remote Password Unlock Lock 4 WHEN COMMUNICATING USING THE QnA COMPATIBLE 2C FRAMES 4 1 Control Procedures and Message Formats 4 2 Contents of the Data Designation Items 4 3 List of Commands and Functions for QnA Compatible 2C Frames 4 4 Precautions on the Data Communication 4 5 Example of Data Communication Using QnA Compatible 2C Frames 5 WHEN COMMUNICATING USING THE A COMPATIBLE 1C FRAMES 5 1 Control Procedures and Message Formats 5 2 Device Memory Read Write 5 3 Extension File Register Read and Write 5 4 Reading and Writing in the Buffer Memory of an Intelligent Function Module 5 5 Loopback Test 6 WHEN COMMUNICATING USING THE A COMPATIBLE 1E FRAMES 6 1 Message Formats and Control Procedures 6 2 List of Commands and Functions for A Compatible 1E Frames 6 3 Device Memory Read Write 6 4 Extension File Register Read and Write 6 5 Reading and Writing in the Buffer Memory of an Intelligent Function Module APPENDIX Appen
70. wser 1 Web server PWS m Response to Web server Line fault Internet Intranet Web browser 2 Ethernet module 2 Access from Web browser 1 to Ethernet module 1 Access from Web browser 2 to Ethernet module 2 The line fault between the Web server and Ethernet module 1 disables the response from Ethernet module 1 to the Web server This brings the Web server into the wait status and the access request from Web browser 2 to Ethernet module 2 has to wait at the Web server 2 SYSTEM CONFIGURATIONS MELSEC Q 2 Precautions relating to security 3 The remote password check function is not designed to completely prevent unauthorized access When accessing a programmable controller CPU 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 Examples of measures against unauthorized access Installing a firewall function Security measures by the Web server Take necessary measures by referring to the User s Manual of the device used Precautions for accessing the programmable controller CPU a When the user creates an ASP or HTML file for the Web function use the communication library QeAccess dll provided by Mitsubishi Electric Corporation The commu
Download Pdf Manuals
Related Search
Related Contents
仕 様 書 - 鳥取県産業技術センター Z1 PLUS DMX-512 LED CONTROLLER User Manual UPS200 Manual de instrucciones Estibadora Semi eléctrica Serie SPN Esolift Europe GmbH Dataflex ViewMate Style Monitor Arm 662 Owner`s Manual Guide du Propriétaire Manual del Usuario 14. Distributed monitoring [Zabbix] Sandisk Ultra CompactFlash 32GB Copyright © All rights reserved.
Failed to retrieve file