Home
Q Corresponding Ethernet Interface Module User`s Manual
Contents
1. Ethernet module DD EN 1 E mails can be sent and received in an environment where the Internet service is available as shown above 2 Set each Internet mail setting value for the Ethernet module and PC following the directions from the Internet service provider or system administrator 3 Each of the Ethernet module parameters for using the e mail function is set with GX Developer 2 USING THE E MAIL FUNCTION MELSEC Q 2 3 Precautions for Using the E mail Function The following explains precautions when using the e mail function of the Ethernet module 1 Precautions regarding the system 2 3 a b Design the system so that the entire system operates normally at all times when sending receiving e mails to from a running system and controlling the programmable controller In order to avoid programmable controller system malfunctions caused by receptions of illegal e mails from the outside sources take precautions in preventing illegal e mails from being received on the mail served on the Ethernet module side using an anti virus program etc Precautions regarding the external device a E ma
2. i L 1 OVERVIEW 3 MELSEC Q Perform data communication between programmable controller CPUs Details are explained in Chapter 4 This function sends and receives data to from another station s programmable controller CPU via the Ethernet using the data link instructions SEND RECV READ WRITE REQ ZNRD ZNWR It also sends and receives data to from another station s programmable controller CPU via the Ethernet and CC Link IE controller network MELSECNET H MELSECNET 10 network systems QCPU dl E71 QCPU E71 Buffer F m J T memory Ethernet network system QCPU E71 QCPU Ezi READ M WRITE Ethernet network system evice ZNWR QCPU E71 QCPU 5 iai Remote Ethernet network system RUN STOP etc BE py 4 Perform file transfer FTP Details are explained in Chapter 5 The Ethernet module supports the server function of the TCP IP standard protocol FTP File Transfer Protocol By using the FTP commands QCPU files can be read written in file units Because of this it is possible to manage QCPU files by computers etc and to transfer files and browse a file list as needed Ethernet l FTP client FTP server 1 VERVIEW 2 MELSEC Q 1 2 Additional Functions in Function Version B or Later The following
3. Mail address V Check of mail At every 5 Minute y Mail server name Mail send setting SMTP server name C IP address Mail receive setting pe JT T T POP server name C IP address Send mail addre etting New etting End Setting item pe dL I TT Cancel Description of setting item Setting range option Set the password to the mail server Mail address Set the mail address for the Ethernet module Check of mail Select whether or not to make inquiries to the incoming mail server regarding the receiving status Atev Set the time interval and unit for making inquiries to the Y incoming mail server Mail send setting Mail receive setting SMTP server name Input format Select the input format of the send mail server s IP address Set the IP address of send mail server Set the receive mail server name Select the input format of the receive mail server s IP address IP address POP server name Input format IP address Set the IP address of the receive mail server Check mark Inquire No check mark Do nat inquire 30sto24h e h min s Set the send mail server name Decimal Hexadecimal 00000001 to FFFFFFFEH Decimal e Hexadecimal 00000001 to FFFFFFFEn MAIL FUNCTION 2 USING THE E UNCTIO MELSEC Q a General settings Designate the mail setting values that have been registered with the Interne
4. Instruction execution station Local station Target station Station type Ethernet Ethernet module Programmable controller CPU type Station type Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control sta
5. aj JP SWRITE ao Command GP SWRITE Un S1 S2 D1 D2 D3 GP SWRITE 2 3 The following format is applicable only when the local station is the Universal model QCPU Instruction Executing symbol condition Command Psw Jn S1 S2 ry D2 03 JP SWRITE 2 3 Command o es Un St s2 ory 02 03 GP SWRITE 2 3 2 The SWRITE instruction can be programmed without argument D3 However in such a case the operation is identical to the WRITE instruction With the SWRITE instruction different operations are available depending on whether D3 is omitted or not x3 When the target station is a Basic model QCPU or safety CPU the write notification device set as argument D3 for the target station is ignored Same operation as with the WRITE instruction DEDICATED INSTRUCTION oe MELSEC Q Setting data Set data Set by Data type Network number of the local station 1 to 239 254 254 The network designated by the valid module during other station access User Binary 16 bits MS Start 1 O signal of the local station s Ethernet net module 00 to FE The higher 2 digits of the 3 digit I O signal S1 Head device of the local station that stores the control data S2 Head device of the local station that stores data to be written NN Device name D1 Head device of the target station to which data is written Local
6. Communication relay sending station Communication relay station Automatic response system L Ethernet Communication request destination station 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 3 3 Routing parameter settings The routing parameters contain information of the Ethernet modules passed through when accessing other stations This section explains the routing parameters that must be set in order to access other stations via the Ethernet module using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function Select GX Developer Network parameters to start the Setting the Ethernet CC IE MELSECNET routing information For details on how to display the screen see the GX Developer Operating Manual Mi Network parameters Setting the Ethernet Cc Oj x Target Relay Relay No network No station e Clear Check End Cancel Routing information setting Set the Network No of the Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 to which the communication request destination station or the communication Target Network No O EQ 1 to 239 request source station is connected when sending a communication request message or a response message respectively Set the Network No of the Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 to which the next com
7. 4 5 2 Data sending receiving for receive with an interrupt program SEND RECVS This section explains the format and program examples of the RECVS instruction for receive when sending receiving data between the programmable controller CPUs For details on the instruction format and program examples of the SEND instruction see Section 4 5 1 For more details see Sections 6 5 and 6 9 1 Instruction format a SEND instruction Same as the instruction format described in Section 4 5 1 b RECVS instruction Ethernet module start I O signal designation Receive command 1 gt 1 If the originating station is a Basic model QCPU function version B or later or Universal model QCPU double quotation of the first argument can be omitted NS Description of setting Setting range Start I O signal of the local station Ethernet module Designate by higher two digits when the I O signal is 0 to FEH expressed by three digits Control data storage head device Designate the head device of the local station that stores Word device 2 the control data Send data storage head device Designate the head device of the local station that stores Word device 2 the receive data Bit device D2 Designate dummy data Word device bit designation 3 4 Bit device eetere X Y M L F V B 2 Word device RETETA ETIE TTET T C D W ST R ZR 3 Word device bit designation Word device Bit number 4 WHEN THE Q
8. 9857 to Flag indicating whether there are receive mails Buffer memory address 9858 bit 15 on the server 0 lt 2 0 Buffer memory address i i 22640 Buffer memory address A Mail 2 Mail buffer MRECYV instruction MRECYV instruction completion device p LSet tate ver pc eb MRECYV instruction completion completion device 1 Mail 1 Mail 2 2 ING THE E MAIL FUNCTION eee MELSEC Q 1 Start up the local station programmable controller The parameters for the e mail function are stored in the Ethernet module 2 Check whether or not any received e mails are stored on the mail server If any receive mail has been stored the receive mail information is stored in the buffer memory 3 Execute the MRECV instruction Read e mails from the server E mails that have been read will not remain on the mail server 4 The flag indicating whether or not there is a receive mail stays on by designating Inquire with MRECV instruction s control data item 5 When reading e mails is completed the MRECV instruction completion device turns on When the completion device 1 abnormal completion signal turns on the error code is stored in the control data completion status S 1 x For details on the causes of errors see Troubleshooting in the Q Corresponding Ethernet Interface Module User s Manual Basic 6 Execute the MRECV instruction Continue to read e mails remaining on the mail
9. FTP operation command No file conversion notification bynaly lt ret gt e Password setting in the Ethernet module quote keyword set password lt ret gt e Display file list dir lt ret gt or Is lt ret gt File read get TRANSFER DESTINATION FILE NAME lt ret gt 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 2 Procedure to write the sequence program file to QCPU FTP client gt FTP server C Start file write D Y Notify that the files will not be converted Confirm the QCPU operation status During STOP Operation status During RUN Set the QCPU to STOP status Set the password of the target file for file transfer This is not required if a password is not registered y Confirm the file list in the QACPU Same file name exists for the file to be written Does not exist Exists Delete the file with the same name Or change the file name gt y Write file Set the QCPU to RUN status 1 End file write FTP operation command No file conversion notification binary lt ret gt Display operation status quote status lt ret gt Change operation status RUN gt STOP status quote stop lt ret gt Password setting in the Ethernet module quote keyword set password lt ret gt Display file list dir lt ret gt or Is lt ret gt Delete file de
10. 00 to FEn The higher 2 digits of the 3 digit 1 O signal Character Character string Un S1 Head device of the local station that stores the control data S2 Head device of the local station that stores the request data Lo User O Device name MN Local station device that is turned on for one scan by the completion of System a D2 the instruction D2 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data The REQ instruction can be executed only when the target station is a Q QnACPU The REQ instruction cannot be executed to an ACPU connected to an MELSECNET 10 or Ethernet network system The number of basic steps for the REQ instruction is 9 DEDICATED INSTRUCTION oe MELSEC Q Control data to b7 a b15 to b4 to bO 0 1 0 1 0 1 1 Abnormal complete type bit 7 Set whether or not the clock data setting is required at abnormal completion 00114 Abnormal complete type 0 Clock data setting is not required 00911 User Clock data is not stored in S1 11 to S1 17 when errors occur 1 Clock data setting is required Clock data is stored in S1 11 to S1 17 when errors occur Store the status at completion of an instruction S1 1 Completion status 0 Normal System Other than 0 Abnormal error code 2 S1 2 Channel used by the local Designate the channel used by the
11. 1 This instruction sends data stored in the devices designated with the local station s S2 to the station designated with the target station network number and target station number in the control data The target station must be connected to a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system The sent data is stored in the channel set with the target station s S2 Use the RECV RECVS instruction when reading the data sent on the target station When data sending to the target station number is completed the completion device designated in D turns on Response station Ethernet module Q QnACPU Ethernet module Channel 1 Channel 1 Channel n Channel n Channel 8 Channel 8 Ethernet 2 Data can be sent to stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated numbers in addition to stations connected to the local station s network 3 The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction 4 Whether the SEND instruction is being executed or has been completed
12. 3000 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b When abnormal completion 1 ZNRD instruction Sequence scan 0 END 70 END 0 END H70 END Read command ee aO A 1 i Read completion device Device designated with D2 1 Localstation QCPU Read completion device D2 1 device Buffer memory 2 Address 207 X Error code Ethernet module Sequence scan o ENDE Ho END H0 END j0 ENDE o END Write command or eee ae l l il i l l Local Satoni Write completion device 7 QCPU 1 Device designated with D2 l i Write completion device D2 1 device ae 1 1 scan l Write data storage device 3000 AS aa Address 209 M Al Ethernet module Target station error 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION ZNRD instruction communication request source station 3 Program example MELSEC Q Contents of station 4 D10 to 14 are read to station 1 D200 to 204 Contents of station 2 D300 to 304 are read to station 3 D50 to 53 Staion 1 ZNRD instruction communicaiton request designation s
13. cecceecceeceseeeeeeeeeeeeeeeeeeeseeesaeesieesieesieesieesieesieesieesieeieeeiees 4 2 4 3 Using the Data Link Instructions 000 2 ce eecceeeeeeeeeneeeeee teeters taeetaeesaeesaeesaeesaeesaeesaeesaeesieeseesieeeesieetieeeneees 4 5 4 4 Data Link IMStHUCTIONS lt 2 deetcuk atte ca 4 8 4 5 Data Sending Receiving 0 0 eeeeceeeeeeeeeeeeeeeeeeeeeteeeeeesaeesaeeeaeesaeesaeeseesaeesaeeseeseesieeseesieesiesieesieesieesieeeieeed 4 11 4 5 1 Data sending receiving for receive with the main program SEND RECV s 4 12 4 5 2 Data sending receiving for receive with an interrupt program SEND RECVS seee 4 18 4 6 Reading Writing Word Devices of Other Stations READ WRITE ccecceeceeceeeeeteeeeeeeeeeeeeeeeeeenes 4 22 4 7 Reading Writing Word Devices of Other Stations ZNRD ZNWR cccecceeceeeeeeeeeeeeseeeeeeeeneeeneeenes 4 30 4 8 Reading Writing Clock Data Remote RUN Remote STOP REQ ceccsecceeceeeeeseeeteeeseetneesieetneeeneees 4 36 4 9 Error Codes for Data Link INStrUCtIONS iarsin pukina ei AREA EEA RENAR EAA RRE 4 41 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER 5 1 to 5 32 ST File Transfer Functions neser E E A AEA 5 1 5 1 1 FTP server support functions of Ethernet module cccecceeeeeeeeeeeeeeeeeeeeeeeeeeteaeeteeeesieeeennees 5 2 9 2 Flo Transterable RanQe iii ate heen eee ei 5 4 5 3 FTP Parameter Settings for File Transfer from GX Developer eeceeceeeeeeeeeeeeereeeeeeeeeaeeeaeeeeeeat
14. 1 Sub request type 00011 Clock data write 1 Change pattern bits O to 7 Specify which items are to be written to the fields of high byte of S2 2 to S2 5 0 Do not change 1 Change 2 Year to be changed bits 8 to 15 Store year last two digits of the year in the Gregorian Change pattern calendar as BCD code Year to be changed b15 to b8 b7 b6 b5 b4 b3 b2 b1 b0 Year 00H to 99H O E Year Month Date Hour Minute Second Day of the week Higher 8 bits date 01 to 311 lower 8 bits month 01H to 12 Higher 8 bits minute 00H to 59 Clock data to be changed ll i a uio 00H t9 59 lower 8 bits hour 00H to 23H continued Higher 8 bits day of the week 00H Sunday to 06H Saturday lower 8 bits second 00H to 59x In this function the higher two digits of the year data cannot be changed When it is necessary to change the higher two digits of the year data use other function such as GX Developer to set the clock data DEDICATED INSTRUCTION oe MELSEC Q Request data All items marked with are set by the user When all stations or a group FFH or 81H to AOH is specified in Target station No S1 5 no response data will be stored Clock data Clock data Device Item Set data read write 0081H Clock data read D1 0 Request type 0091 Clock data write When station No is specified in S1 5 0002 Clock data read D1 1 Sub req
15. 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER get Function Designation format Designation example 1 Designation example 2 Caution O is Function Designation format Designation example Similar function mdelete Function Designation format Designation example Caution Similar function MELSEC Q Reads the file from the QCPU get TRANSFER SOURCE FILE PATH transfer destination file path Reads the file stored in the RAM area of memory card and stores using the same file name get 1 MAINSEQ1 QPG To read the file stored in the RAM area of memory card and store using a different file name get 1 SEQIBAK QPG ISEQISEQ10LD QPG When the transfer destination file path FTP client side is not designated the file is stored in the FTP client side with the same name as the transfer source file name on the QCPU side The transfer destination is the connected current directory of the FTP startup connection See sections 5 5 and 5 6 1 Displays the file names of the files stored in the QCPU Is drive name To display the file names of the files stored in the RAM area of memory card Is 1A dir Deletes the file stored in the QCPU When deleting the multiple files the file name and extension are designated using wild cards or mdelete FILE PATH abbreviated as mdel To delete all files with the extension QPG in the files stored in the RAM area of memor
16. B10 B4F CR LF 0030 0031 0032 0033 CR LF The dotted boarder lines between device values in the above figure are inserted for the purpose of explanation They are not recorded in the main text 2 USING THE E MAIL FUNCTION MELSEC Q lt When data format is character strings binary gt The device name and display device No are recorded for each setting device When Condition for inspection is set to No conditional settings character string send Notification data storage device records the data of specified notification points starting from the low byte L of the specified value If NULL 00H exists in the range contiguous data immediately before it are recorded Insert CR Code ODH and LF Code OAH for each setting device range Example Setting No conditional settings character strings send to Condition for inspection DO to Notification data storage device and 20 points to Notif data points This means that Normal system start completion is stored in DO to D19 by the MOV instruction For the main text of e mail character string binary format DO D19 CR LF Normal system start completion CR LF ASCII or SHIFT JIS format values must be set in the Notification data storage device 1 When e mail is sent after the result of the device monitoring and the monitoring condition match the Subject and attached file or the Subject and mai
17. Partner station IP Address T 9 0 0 0 3 0 5 DL Si ss ye ere Y 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY 1 L Network No and station No Network No and station No 4 8 4 3 8 F A 0 A Logical product F F F F 0 0 0 0 8 4 3 8 0 0 0 0 Logical sum 0 3 0 5 8 4 3 8 0 3 0 5 For class B MELSEC Q e When the local station IP Address is 8438F AQA e When the CC Link IE controller network MELSECNET H MELSECNET 10 Routing Net Mask Pattern is FFFFOOOOH e When the destination Network No is 03H and station number is 05H For class C e When the local station IP Address is CA65300AH e When the CC Link IE controller network MELSECNET H MELSECNET 10 Routing Net Mask Pattern is FFFFFFOOH e When the destination Network No is 02H The Network number is not used c A 6 5 3 0 0 A Logical product F F F F F F 0 0 c A 6 5 3 0 0 0 Logical sum 0 2 c A 6 5 3 0 0 2 REMARKS e IP address configuration of class A 31 30 to 2423 to 1615 to 0 Class Network Host address e IP address configuration of class B 31 3029 to 1615 to 0 Class Network address Host address e IP address configuration of class C 31 to 2928 to 87 to 0 Network address Host address 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 Table exc
18. Read error code etc 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b This is a program to Remote STOP station number 13 on network number 7 When I O signals of Ethernet module are X Y00 to X Y1F Station No 1 Station No 13 QCPU E71 Q QnACPU E71 REQ instruction REQ instruction communication pp s communication request i i request source station Channel destination station T 1 1 Network No 7 X20 j HAM HOL DO Clock data setting required Control data setting command Yi m Channel used by the local station H3FF D3 J Target station s CPU type target CPU K7 D4 J Target station network number K13 DS J Target station number K5 D7 Number of resend K20 D8 Arrival monitoring time 20 s K3 D9 Request data length soi 3 words il MOV H10 D20 Request type Request data setting command MOV 2 D21 Subrequest type gov El D22 Forced execution not performed X22 X19 eae kK RR firs bo D20 D30 Mo X19 Initial normal completion omana signal Mo i Processing program on instruction 1 completion i Processing program on abnormal I l I y completion Read error code etc L mov p1 mop 1 I 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 9 Error Codes for Data Link Instr
19. 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 Related Manual 1 Q corresponding Ethernet Interface Module User s Manual Basic 10 DEDICATED INSTRUCTIONS 10 1 Dedicated Instruction List and Available Devices 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 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 SH 080009 M ABOUT MANUALS The following manuals are also related to this product If necessary order them by quoting the details in the tables below Related Manuals Model code Q Corresponding Ethernet Interface Module User s Manual Basic This manual explains the specifications of the Ethernet module data communi
20. Set the monitoring time until the instruction completion so that it is greater than or equal to the TCP resend timer value When the instruction fails to complete within the monitoring time it is resent Bo nat for the number of resends designated in S1 7 Ue 2 ia de ine 0 to TCP resend timer value The monitoring time is reset to the TCP Dia tases user resend timer value TCP resend timer value 1 to 16383 Monitoring time unit s Designate the number of data to be read S1 9 Read data length When reading from QCPU 1 to 960 Word 1 to 960 User ASU NO Notuse le gt As o o o oo S o o i Store the valid invalid status of the data in S1 12 to S1 17 1 Valid Higher 8 bits month 011 to 12h lower 8 bits last 2 digits of year 00 to 99x Clock data set only when errors Higher 8 bits hour 00x to 23x lower 8 bits date 011 to 311 occur Higher 8 bits second 004 to 59x lower 8 bits minute 00 to 591 Higher 8 bits first 2 digits of year 00 to 99 lower 8 bits day of the week 00 Sunday to 06x Saturday Stores the network number of the station that detected an abnormality 1 to 239 Network No Stores the station number of the station that detected an abnormality 1 to 120 Station number DEDICATED INSTRUCTION 6 C STRUCTIONS MELSEC Q The data read storage device D1 requires a contiguous free area equal to or greater than the length of the data read
21. X1F Watchdog time error station signal b Via CC Link IE controller network MELSECNET H MELSECNET 10 Check the status of the local station communication request source station communication relay station and access destination communication request destination station using the following devices Execute the data link instruction if the status is normal e Link special relay SB20 SB47 SB70 etc e Link special register SW70 to 73 SW74 to 77 etc See the CC Link IE controller network MELSECNET H MELSECNET 10 Reference Manual for the interlock signals link data send receive processing and processing time when performing data communication with the programmable controller CPU of another station via CC Link IE controller network MELSECNET H MELSECNET 10 Number of resend designation of data link instruction When executing each data link instruction except for ZNRD and ZNWR it is recommended to designate a value greater than 1 for the number of resend designation area of the control data storage device The resend timing when the READ command is executed after designating the number of resend is described below 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q Example READ instruction execution timing 1 Communication timing when the READ instruction completed successfully when resend is not performed E71 QCPU E71 Local sta
22. already reached the allowed number of registered files The files are stored in the designated drive s cluster size units Any drives which fit in the size of the continuous unused clusters in the designated drive memory can be written When restarting the QCPU operation after writing a file it is recommended to set to the run status using the QCPU key switch The QCPU can be switched from STOP to RUN using the FTP command but sufficient caution must be taken for the programmable controller system operations When writing files the Ethernet module creates temporary work files FTP_Ixxx TMP in the QCPU The temporary files are automatically created in the designated drive during the file write put or mput and the file name is changed to the designated file name after the operation is completed The xxx in the temporary file name FTP_Ixxx TMP is the upper three digits of the four digits representing the Ethernet module s I O signals from the QCPU The temporary file is automatically deleted when the file write is successfully completed line is shut down during transfer or a file capacity error occurs with the QCPU The temporary work file may remain in the designated drive when the QCPU power is disconnected or reset during the file write When the temporary file remains in the drive delete the file using the FTP command In the case where file deletion and file writing are repeated while the QCPU is in RUN status
23. can be the request source However the same transfer destination Network No cannot be set two or more times multiple times 3 15 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q Routing parameter setting Target Relay Network No Network No Setting is necessary only for the request target network _No 3 CC Link IE contoroller y network MELSECNETI H 3Mp1 3Ns2 MELSECNET 10 Network No 3 1N1 Remote 1Ns3 node Network No 1 Ethernet o 1Ns4 2Mp1 CC Link IE contoroller network MELSECNET H MELSECNET 10 O Remote node Remote node 3N3 Routing parameter setting Target Relay Relay Target Relay Relay Network No Network No Station No Network No Network No Station No 3 2 4 1 2 1 0 Routing parameter Setting is necessary only for the setting area Setting is necessary only for the response request target network No 3 target network No 1 Setting is not necessary for the target network No 1 and 2 because they are the same station Setting is not necessary for the target network No 2 and 3 because they are the same station The meanings of the symbols used for the stations shown in the diagram e Network system CC Link IE controller network MELSECNET H MELSECNET 10 1 4
24. gt IE MELSECNET cards Setting the Ethernet CC IE z y e MELSECNET routing information Setting the Ethernet Station No lt gt x x x IP information Setting the Ethernet router relay x x x x x x parameter 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 4 Procedure for Accessing Other Stations This section explains the procedure for accessing other stations via the Ethernet using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function as well as the required processing 1 Setting the parameters The parameters shown in Section 3 3 must be set using GX Developer 2 Accessing other stations Access to other stations is performed from an external device local station QCPU using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function Access to other stations with the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function is performed using the UDP IP protocol and data is always communicated in binary code e In the data communication the port number for the UDP IP port for the Ethernet module system is used e It is possible to continue accessing other stations while the initial normal completion signal X19 is on When the initial normal completion signal X19 is turned off the Ethernet module forcefully closes the connection although other station is being a
25. number Can be set when the execution type designated in S1 is 0 No arrival confirmation 3 All stations FFH All stations having the target network number simultaneous broadcast Excluding the local station Can be set when the execution type designated in S1 is 0 No arrival confirmation Spre Fixed vate Ze Valid when the execution type designated in S1 is 1 With arrival confirmation 1 At instruction execution Set the number of resends when the instruction fails Number ot res na to complete within the monitoring time designated by 0to 15 User S1 8 system 0 to 15 Time 2 At instruction completion Store the number of resends executed result 0 to 15 Time 1 to 120 814 to AOH FFH Target station number Valid when the execution type designated in S1 is 1 With arrival confirmation Set the monitoring time until the instruction completion equal to the TCP resend timer value or greater When the instruction fails to complete within the Arrival monitoring time monitoring time it is resent for the number of resends 0 to 16383 User designated in S1 7 0 to TCP resend timer value The monitoring time is reset to the TCP resend timer value TCP resend timer value 1 to 16383 Monitoring time units s Designate the number of write data in S2 to S2 n S1 9 Write data length When writing to QCPU 1 to 960 Word 1 to 960 User When writing to QNACPU 1 to 480 Word 6
26. AA PL Aa eee 4 RO NA a aa E 3 Ethernet i i i Channel 1 i i module i i A at Sha cohen es e A A e ts a E EN o A A EA 4 Target station error 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION 3 Program example Read data from D10 to 14 of station 4 to D200 to 204 of station 1 Write the data stored in D300 to 303 of station 2 to D50 to 53 of station 3 MELSEC Q READ instruction communication request source station READ instruction communication request destination station Station 1 Station 2 QCPU E71 WATE QCPU E71 Seia D200 ae D300 o D201 Channel E D301 Channel E D202 3 D302 1 8 D203 D303 D204 Network No 20 Q QnACPU E71 Wale Q QnACPU E71 communication D10 a D50 D1 1 station D51 D12 D52 D13 D53 D14 Station 4 Station 3 M100 turns on write completion a Station 1 program READ instruction When I O signals of Ethernet module are X Y40 to X Y5F X20 JA MOV H81 0 Control data setting mov K3 2 7 command 7 Woy HO 3 7 MOV K20 4 Y MOV Ka 5 y Woy K5 7 MOV K20 8 7 MOV K5 9 y X21 X59 ka gt BRP READ 420 DO D10 D200 MO y e and A A ins H Processing program on read completion M ARAR RARER o OLE Sa YH Processing program on normal completion H
27. Be careful not to let any foreign matter such as wire chips get inside the module They may cause fire as well as breakdowns and malfunctions of the module e A protective sheet is pasted on the upper part of the module in order to prevent foreign matter such as wire chips to get inside the module while wiring Do not remove this protective sheet during wiring work However be sure to remove the protective sheet before operating the module to allow heat radiation during operation e Correctly solder coaxial cable connectors Incomplete soldering may result in malfunction Setup and Maintenance Precautions A CAUTION e Never disassemble or modify the module This may cause breakdowns malfunctions injuries or fire e Before mounting dismounting the module be sure to shut off all phases of external power supply used by the system Failure to do so may cause module failure or malfunctions e Do not mount remove the module onto from base unit more than 50 times IEC 61131 2 compliant after the first use of the product Failure to do so may cause the module to malfunction due to poor contact of connector e Do not touch the terminals while the power is on Doing so may cause electric shocks or malfunctions e Before cleaning up and retightening terminal screws and module fixing screws be sure to shut off all phases of external power supply used by the system Not doing so may cause failure or malfunction of the module If the screws
28. CPU does not exist the following message is displayed 557 Cpu not found Designation example 1 When designating the access target CPU as the control CPU quote cpuchg controlPLC Designation example 2 When displaying the currently selected access target CPU quote cpuchg Caution The control CPU of the Ethernet module will be the access target CPU after logging in when the OPEN USER command is executed to the Ethernet module 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q keyword set Ethernet module dedicated command Function Sets the registered password of the target file for file transfer in the Ethernet module Or display clear the current password set in the Ethernet module Use this command only if a password is registered in the target file of file transfer The Ethernet module performs a password check when the designated file is accessed Designation format quote keyword set password Password To set a password designate the password registered in the file of the target QCPU memory Designate gt gt to clear a password set in the Ethernet module One of the following is displayed as the execution result for a successful completion When setting a password 200 Command successful When displaying a password 200 keyword is password When clearing a password 200 Command successful Designation example 1 To set the password 1234 to the Ethernet module quote keyword s
29. Clock data setting is not required The clock data at error occurrence is not set in S1 11 to S1 15 1 Clock data setting is required The clock data at error occurrence is set in S1 11 to S1 15 2 Send data format bit 12 to bit 8 Designate the format of data to be sent When sending data as an attached file foia ori oro bo es baatomat 3 ASCII data converted from binary Execution complete type o 1 0 0 0 to ASCII As described in Send data fi t the left abs CSV data converted from binary elott to CSV When sending data as the main text e12 b1 bio bo be Datafomat Precautions when designating the main text of e mail The setting of bit 11 to bit 8 is invalid when the main text is designated Designate the main text using ASCII characters in a sequence program the Ethernet module does not convert it to ASCII The following binary code data is treated as control codes ODOAu Line feed code CR LF 00x End of the main text It is recommended to limit the data written in one line of the main text to 78 characters or less Be sure to add a line feed code CR LF ODOAh at the end of lines of the main text Store the status at completion of the instruction S1 1 Completion status 0 Normal Other than 0 Abnormal error code 2 Designate the opposite device to which the e mail is sent by the 1 2 Send destination number setting number of the Ethernet s
30. Ethernet module installed station is explained The file transfer operation from the external device using the Ethernet module FTP server function can be performed from any external device with Ethernet module on the Ethernet When the router relay function is used the external device on the Ethernet connected via the designated router can perform FTP functions File transfers can be performed from the following external device with the symbol Ethernet 1 LAN E Router Relay processing H dk CC Link IE controller network MELSECNET H a MELSECNET 10 rit 3 A Qu x File transfers cannot be performed from the external device on the Ethernet 3 which is connected via CC Link IE controller network MELSECNET H MELSECNET 10 Ethernet 2 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 3 FTP Parameter Settings for File Transfer from GX Developer This section explains how to set the Ethernet FTP parameters for the file transfer FTP Select GX Developer Network parameters to start the Setting the Ethernet FTP parameters screen For details on how to display this screen see the GX Developer Operating Manual igi Network parameters Setting the Ethernet FTP parameters Module No 1 i l E3 FTP parameters FTP Not used Log in name Qu ME Password Current New Command
31. FTP server are explained NCAUTION e Some of the FTP operation commands on the FTP client external device side supported by the Ethernet module may not perform as explained in this manual depending on the FTP application used on the client side See the manual for the FTP client external device as well and confirm the functions and operation methods 1 FTP server support commands binary Function Designation format bye Function Designation format Same function close Function Designation format delete Function Designation format Designation example Caution Similar function dir Function Designation format Designation example Similar function Notifies to the FTP server that the file transfer is performed without converting the file The carriage return code and kanji code are not converted either The Ethernet module is automatically set to this binary Abbreviated as bin Disconnects the FTP server connection and ends FTP bye quit Disconnects the FTP server connection close Deletes the file stored in the QCPU delete FILE PATH To delete a file stored in the RAM of memory card delete 1 MAINSEQ1 QPG e See section 5 5 and 5 6 1 mdelete Displays the file names created dates and sizes of the files stored in QCPU dir drive name To display detailed information of files stored in the RAM of memory card dir 1 Is
32. For reading writing ZNRD Reads from other station s device Section 6 13 device data For A series Writes to other station s device er 6 14 SEND Sends data to other station 1 data to other station Sends data to other station Section 6 9 6 9 For message any Reads receive data from other station x Data link RECV 1 Section 6 6 F data sending For the main program instruction oe receiving Reads receive data from other station RECVS i 1 Section 6 6 For interrupt programs For reading writing Issues a remote RUN STOP request to other 4 Section 6 7 clock data REQ station Remote RUN STOP Reads writes clock data of other station Section 6 8 x1 Cannot be used if the source or target station is a safety CPU 2 Writing to a safety CPU is not allowed from other stations DEDICATED INSTRUCTION oe MELSEC Q 1 The user should not change data control data request data etc designated with any of the dedicated instructions until the execution of that instruction is completed Only programmable controller CPUs of QCPU modules can handle the higher two digits of the year Gregorian calendar in the clock data that are processed with dedicated instructions Thus when executing dedicated instructions on programmable controller CPUs other than QCPUs the data portion of the higher two digits of the year is treated as 00H All dedicated instructions must be execut
33. GX Developer the main program can not be used to read receive data 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 5 1 Data sending receiving for receive with the main program SEND RECV This section explains the format and program examples of the SEND and RECV instructions that are used to send receive data between the programmable controller CPUs For more details see Sections 6 5 and 6 9 1 Instruction format a SEND instruction Network number designation Send command JP Execution tesa Ten Tes one Network module Ethernet module start I O signal designation Send command GP Execution GP SEND S1 S2 donno tai N Setting details Setting range Network number Network designated in the Local station network number valid module for other station access Start I O signal of the local station network module Ethernet module ye 0 to FEH Designate by higher two digits when the I O signal is expressed by three digits Control data storage head device Designate the head device of the local station that stores Word device 2 the control data Send data storage head device Designate the head device of the local station that stores Word device f the send data Send completion device Designate the device to turn on one scan when the send Bit device 1 complete Word device bit designation 7 OFF
34. However in such a case the operation is identical to the WRITE instruction With the SWRITE instruction different operations are available depending on whether D3 is omitted or not gt 2 When the target station is a Basic model QCPU or safety CPU the write notification device set as argument D3 for the target station is ignored Same operation as with the WRITE instruction 4 23 4 23 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q N Setting details Setting range 1 to 239 Network number 254 Network designated in a valid module for other station access Start I O signal of the local station network module Ethernet module Designate by higher two digits when the I O signal is expressed 0 to FEH by three digits Control data storage head device Designate the head device of the local station that stores the Word device control data Write data storage head device local station Designate the head device of the local station that stores the data Word device 2 to write Write data storage head device target station Designate the head device of the local station where the data is Word device 3 written Write completion device local station Designate the device of the local station to turn on one scan when the write is complete OFF Incomplete ON Complete OFF Normal ON Abnormal Write notify device target station Designate the devi
35. Incomplete ON Complete OFF Normal ON Error x1 Bit device oeer X Y M L F V B 2 Word device 0000ereerrerrrrrnnnnanannns T C D W ST R ZR 3 Word device bit designation Word device Bit number 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b RECV instruction for receive by the main program Network number designation Receive command PESA Exection LA JP RECV Jn S D1 D2 during startup Network module Ethernet module start I O signal designation Receive command GP Execution GP RECV D1 D2 during startup SE Setting details Setting range Network number Network designated in the valid module for other Local station network number Start I O signal of the local station network module Ethernet Un module Designate by higher two digits when the I O signal is station access expressed by three digits Control data storage head device Designate the head device of the local station that stores Word device 2 the control data Receive data storage head device D1 Designate the head device of the local station that stores Word device 4 the receive data Receive completion device Designate the device to turn on one scan when the Bit device 1 D2 fees compete Word device bit designation gt OFF Incomplete ON Complete OFF Normal ON Error 2 Word device ve T C D
36. MI pee E pa aa er Processing program on abnormal completion I i mov D i D100 1 J Clock data setting is required Channel used by local station Target station s CPU type target CPU Target station network number Target station number Number of resend Arrival monitoring time 20 s Read data length 5 words X59 Initial normal completion signal Performs error code reading etc 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b Station 2 programs SWRITE instruction When I O signals of Ethernet module are X Y40 to X Y5F X20 tt mov HI bo y With arrival confirmation clock Control data setting required data setting command mov K6 D2 J Channel used by local station wov HO D3 J Target stations CPU type target CPU Nov K20 D4 Target statio n network number mov K3 D5 Target station number Woy K5 D7 J Number of resend HOV K20 D8 Arrival monitoring time 20 s Hov Ka be J Write data length 4 words X21 E 4 tt voy K10 D300 Write data setting command ov K20 wor y 7 Write data nov K30 D30z J Hov K40 D303 x22 x59 HH PH suri J20 DO D300 D50 M60 moo Y X59 Initial normal completion signal Write command M60 A a into el JE Processing program on write completion M61 A E tn ea r n Processing program on normal
37. MRECV instruction s control data item Receive mails can successively be read based on this stored information 2 Read receive mails stored on the mail server using the MRECV instruction Receive mails will accumulate on the mail server if the MRECV instruction is not executed 3 After executing the MRECV instruction e mails that have been read are deleted from the mail server Receive mails read will not remain on the mail server 4 If the Ethernet module has received e mail longer than the reception data length specified with the MRECV instruction it stores the data equivalent to the reception data length and ignores the remaining data 2 ING THE E MAIL FUNCTION 2n MELSEC Q 1 Reception using the sequence program The following explains the designation method in a sequence program For details see Chapter 6 MRECV Instruction Un G9858 F za Read the receive mail information Create control data at DO and on E mail is read if there is recieve mail in Ethernet module ZP MRECV UO Processing program when normal completion Processing program when abnormal completion 2 Execution timing of the instruction Initial Receive mail Receive mail processing confirmation confirmation aa r 1 Inquiry interval Inquiry interval Initial normal completion X19 i A AAA 2 Number of mails remaining
38. Manual for the restrictions and details of the QCPU user files 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER 5 6 3 Response code MELSEC Q For information regarding the response codes that are returned to the external device FTP client by the Ethernet module FTP server see the manual for the FTP client for the codes except the following 4000H Other than the following See the manual for the FTP client See the QCPU User s Manual and correct See Section 11 3 3 of User s Manual Basic and correct The first two digits of the response code is described below 123 ll Response regarding the start of the request processing Response regarding the successful end of the request proccessing Response indicationg the necessity for additional information pertaining to the request processing Response regarding abnormal end of the request processing Response regarding abnormal end of the request processing Response regarding a syntax error Response regarding information request such as status Response regarding control or data connection Response regarding log in processing or account processing Unused Response regarding the FTP server status 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER 5 6 4 FTP operation command MELSEC Q The FTP operation command functions and usage on the FTP client external device side supported by the Ethernet module
39. No 1 ME Timer setting Module will operate on default values if setting left blank Setting value Default value in module TCP ULP timer TCP zero window timer TCP resend timer TCP end timer IP assembly timer R Response monitoring timer 2 Shows the setting screen of Destination existence conformation starting interval GX Developer Destination existence conformation interval timer Destination existence conformation resend timer _ DNS setting Input format DEC bas IP address of DNS server 1 IP address of DNS server 2 IP address of DNS server 3 IP address of DNS server 4 Cancel a DNS Setting Designate the internet service provider used by the local station s Fthernet module and the IP addresses of the domain name servers DNS designated by a system 3 Shows a description of administrator the setting 1 Select the input format of the IP addresses decimal hexadecimal 2 Designate the IP addresses of the DNS server to DNS servers 1 to 4 Depending on the function used Address 00004 may be indicated after some function names This address indicates the buffer memory address of the Ethernet module in which the setting values from GX Developer are stored For more details on the buffer memory see Section 3 8 of the Q Corresponding Ethernet Interface Module User s Manual Basic About the Generic Terms and Abbreviations This manual uses the following generic t
40. Others device UM GO 1 T C D W ST SD or SW can be used Instruction Executing symbol condition Command _ _ p sREAD Jn S1 JP SREAD Command GP SREAD Un S1 S2 D1 D2 D3 GP SREAD 2 3 The following format is applicable only when the local station is the Universal model QCPU Instruction Executing symbol condition Command JP SREAD S2 D2 D3 JP SREAD 2 3 Command GP SREAD Un D2 D3 GP SREAD x23 2 The SREAD instruction can be programmed without argument D3 However in such a case the operation is identical to the READ instruction With the SREAD instruction different operations are available depending on whether D3 is omitted or not 3 When the target station is a Basic model QCPU or safety CPU the read notification device set as argument D3 for the target station is ignored Same operation as with the READ instruction DEDICATED INSTRUCTION oe MELSEC Q Setting data Set data Set by Data type Network number of the local station 1 to 239 254 254 The network designated by the valid module during other station access User Binary 16 bits MS Start I O signal of the local station s Ethernet module 00 to FEn The higher 2 digits of the 3 digit I O signal S1 ORT ee device of the local station that stores the control data S2 Head device of the peac seve om
41. Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Channels 1 to 8 for the Ethernet module and network module are the OS area for each module in the diagram to store the send receive data of each x1 Access to programmable controller CPUs other than the QCPU and QnACPU is allowed only to stations connected to the MELSECNET 10 2 Cannot be used if the source or target station is a safety CPU x3 Wri
42. Q01CPU High performance o cpu Q02HCPU Q06HCPU Q12HCPU Q25HCPU model QCPU QCPU Q mode Process CPU Q02PHCPU Q06PHCPU Q12PHCPU Q25PHCPU Redundant CPU Q12PRHCPU Q25PRHCPU Universal model Q02UCPU QO3UDCPU Q04UDHCPU QO6UDHCPU Q13UDHCPU Q26UDHCPU QCPU QO3UDECPU Q04UDEHCPU QO6UDEHCPU Q13UDEHCPU Q26UDEHCPU Safety CPU asoo1cPU Q2ACPU Q2ACPU S1 Q2ASCPU Q2ASCPU S1 Q2ASHCPU Q2ASHCPU S1 Q3ACPU Q4ACPU A1NCPU A2NCPU A2NCPU S1 A3NCPU A2ACPU AZACPU S1 AJACPU ACPU A2UCPU A2UCPU S1 ASUCPU A4UCPU A1SCPU A1SJCPU S3 A1SHCPU QCPU A mode A1SJHCPU A2SCPU A2SHCPU A2ZASCPU AZASCPU S1 AOQJ2HCPU Q02CPU A QO2HCPU A QO6HCPU A 1 The safety CPU can be used only as a request target station and cannot be used as a relay station 2 Remote I O station modules a Moe O MELSECNET A QJ72LP25 25 QJ72LP25GE QJ72BR15 Remote l O station WELSEONETO ee Remote I O station 2 Q Q AJ72LP25 G AJ72BR15 2 It is possible to read from and write to the buffer memory of special function modules that are installed in MELSECNET 10 remote I O stations b Modules that can act as relays between networks communication relay stations AAA ee O CC Link IE controller network QJ71GP21 SX QJ71GP21S SX QJ71LP21 QU71LP21 25 QJ71LP218 25 QJ71LP21GE QJ71BR11 a QJ71LP21 QJ71LP21 25 QJ71LP218 25 QJ71LP21GE QJ71BR11 MELSECNET 10 mode MELSECNET 10 ae 3 AJ71QE71N3 T AJ71QE71N B5 AJ71QE71N
43. S 9 maximum of 960 words 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic x3 It can be specified when the local station has an Ethernet module of function version D or later Not available in any other case Access to the target CPU is required x4 Nothing is stored if the execution source detects an error when receiving an instruction x5 When the READ instruction is executed to the redundant system with a control system or standby system CPU specified the instruction may be unsuccessfully completed due to system switching occurred on the target station error code 4244H 4248H If this has occurred execute the READ instruction again x6 When data of more than 480 words is specified a CO84H error occurs on the local station Check the read data length 1 to 480 words and execute the READ instruction The allowable read data length S1 9 of the READ instruction varies depending on the version See the User s Manual Basic Section 2 7 Specifying a length value outside the setting range will cause a 4101 error OPERATION ERROR on the local station 6 DEDICATED INSTRUCTIONS Functions 1 MELSEC Q This instruction desi
44. When the e mail sending to the send mail server is completed the MSEND instruction completion device turns on When the completion device 1 abnormal completion signal turns on the error code is stored in the control data completion status S1 1 For details on the causes of errors see Troubleshooting in the Q Corresponding Ethernet Interface Module User s Manual Basic 2 ING THE E MAIL FUNCTION soe ees MELSEC Q 3 Sample program The following shows a sample program for sending e mail by the programmable controller CPU Perform e mail transmission processing the send command X20 The contents of the send data are shown in 4 When I O signals of the Ethernet module are X Y00 to X Y1F x 20 A nn TI 1000 D20 y Designate main text as the send data format wove KI D22 Designates the send destination number WovP K16 D29 J Designate the send data length _ _ rive K D30 Designate the subject length MOVP testmail msend D200 Designate Subject HH 8940 VP Error Machine 001 D207 J Designate the main text ZP MSEND uo D20 D200 mo J Send the e mail mo mi E A de AOS HA Processing program when normal completion Mi benee 1 Processing program when abnormal completion De fea a fia tea oa co cance ee eco ee eet Asa pepe eee ee eee 4 When an error occurs while sending e mail from the sending mail server to an external device an error code
45. X Y M L F V B 2 Word device Ge ae a ad ously wate su einee ane T C D W ST R ZR 3 Word device bit designation Word device Bit number 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Instruction execution timing a When normal completion Sequence scan Execution instruction Local station QCPU Execution completion device device specified with D2 Execution completion device D2 1 device Se ee Soe See eo eee See Se SSS eee e a A asset AO E ENS 4 EP SS Sea Eee a a eg o ate age il lo Soe Tp way Sh ER URE Ee Rte UTS PhP iat cet ene nee ey ay g Ethernet dul i Channel 1 i module i Ne i i A A A ee Es a A a e o o o A mu Be CM we vet MAE TE en te IN A A ee eee Saha pe AN ee O A Ethernet module Sequence scan Target station Q QnACPU 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b When abnormal completion Sequence scan Execution command f Execution completion device Local station QCPU Device designated with D2 Execution completion device D2 1 device Completion status S1 1 device Boy Se EE ak ee nee BENE Nas A ARIAS IO TR eat Mase Mac A EII Ms Bale Daly AA ect A tlh ee ERROR al O O MA AS che SANE OE MAA LL SR de Ethernet i i Channel 1 i module i i Es
46. are loose it may cause the module to fallout short circuits or malfunction If the screws are tightened too much it may cause damages to the screws and or the module resulting in the module falling out short circuits or malfunction e Always make sure to touch the grounded metal to discharge the electricity charged in the body etc before touching the module Failure to do so may cause a failure or malfunctions of the module Operating Precautions A CAUTION e When changing data and operating status and modifying program of the running programmable controller from a personal computer connected to an intelligent function module read relevant manuals carefully and ensure the safety before operation Incorrect change or modification may cause system malfunction damage to the machines or accidents Precautions When Disposing of This Product AX CAUTION e Dispose of this product as an industrial waste REVISIONS x The manual number is given on the bottom left of the back cover Print Date_ Manual Number Dec 1999 SH NA 080010 A First edition Oct 2000 SH NA 080010 B Jun 2001 SH NA 080010 C Oct 2001 SH NA 080010 D Apr 2003 SH NA 080010 E Reflect the contents of the function version B Put Windows base software products together from Mitsubishi Programmable Controller MELSEC series to Mitsubishi integrated FA software MELSOFT series Standardize the name from software pa
47. be designated as notification conditions Start procedure E mail setting gt News setting Setting screen Ethernet news setting x ia PLC Serious Fatal Error v PLC inquiry interval 5 Minute Y Send method Send attached file C Send text mail Attached file name Attached file form csv ka Input format of inspection value DEC y News data storage device Pulse up Pulse up Pulse up End Cancel 2 USING THE E MAIL FUNCTION Item name Condition for PLC inspection MELSEC Q News settings Notification condition Description of setting CPU status Device Setting range option monitoring 1 monitoring No setting e Normal STOP Module error Module system error Serious Fatal Error Select the monitoring condition for the Module warning STOP CPU Moderate error STOP e Normal RUN Module warning RUN Moderate Error STOP x e Send attached file Send method Select the data send method Send text mail Attached file form e Binary format Se the data format for the attached x lt ASCII format file CSV format Attached file name Set the attached file name E E 1 PLC inquiry interval Input format of inspection value Set time interval between reading the CPU status and device values and e 30sto24h the units h min s Select the input format of the q e Decimal hexadecimal monitoring data Condition device Set the condition device EEE Condition for i
48. by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation 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
49. calculated from the stored Network No and station number Therefore by receiving the other station access communication request message first the communication partner stations can be maintained 2 The maximum number of station information that can be set is 64 When more than 64 other station access communication request message is received the Ethernet module starts deleting from the oldest data to store the station information in the newly received message communication request message However it is ignored if the station information is the same as the station information already stored Information from the same station is not stored twice 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 2 IP address computation system a Overview of the IP address computation system During calculation the IP address of the partner station is obtained from the calculation equation below according to the Network No and station number and the UDP port number predefined for the Ethernet module system is used as the UDP port number of the destination For more information about the net mask pattern for CC Link IE controller network MELSECNET H MELSECNET 10 see Section 3 3 2 a Net mask pattern for a EREA P address of Logical CC Link IE controller network Logical ON habia a and station number the local station product MELSECNET H MELSECNET 10 sum L J i
50. character string as that registered with the GX Developer to the QCPU designated file password unlock Ethernet module dedicated commands Function Designate the remote password set in the QCPU and perform the unlock processing This command is used when the FTP communication port is designated as a port subject to the remote password check Designation format quote password unlock remote password Remote password Designate the remote password set in the QCPU parameter The following is displayed as the execution result for a successful completion 200 Command Okey The following is displayed if the remote password does not match 556 Password Error The following is displayed if another command is requested before the remote password unlock processing is performed 555 Password Locked Designation example 1 To designate the remote password 1234 quote password unlock 1234 Caution e If the FTP communication port is designated as a port subject to the remote password check the status will be locked when the user logs into the Ethernet module from an external device Executing this command and performing the unlock processing prior to various operation of the FTP enables QCPU file operation If the FTP communication port is not designated as a port subject to the remote password check the operation is completed successfully when the remote password unlock processing is performed password lock Ethe
51. codes refer to the User s Manual Basic e The e mail function is supported for the SMTP and POP3 servers 2 USING THE E MAIL FUNCTION k MELSEC Q When communication errors of e mails cannot be checked by a dedicated instruction check the error codes stored in the mail send reception error log area of the buffer memory If e mails cannot be received try one of the following 1 Execute the MRECV instruction once 2 Shorten the Inquiry interval time in the e mail settings of GX Developer 3 Check the number of incoming mails remaining on the mail server Can be checked with the buffer memory address 5870H area When the receive data of an e mail sent using the MSEND instruction is abnormal garbled characters etc review the transmission data format binary ASCII CSV designated with the MSEND instruction The Subject should be designated in ASCII code data It is not converted to ASCII format Confirm with a system administrator regarding the minimum time intervals for accessing the mail server when sending mails reading receive mails and inquiring whether or not there are receive mails Depending on the mail server s security setting frequent access may be prohibited The e mail send reception function using the programmable controller CPU and the communication function using the random access buffer cannot be used together Only one of them can be used at a time The e mail send function us
52. completion xi Processing program on abnormal l 1 completion Performs error code reading etc 1 i MOV D1 D100 Le F i 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 7 Reading Writing Word Devices of Other Stations ZNRD ZNWR This section explains the format and program examples of the ZNRD ZNWR instructions that are used to read and write data of word devices of other station For details see Sections 6 13 and 6 14 1 Instruction format a ZNRD instruction Network number designation Read command JOE ti Execution l JZNRD Jn n1 S D1 n2 D2 E during ON Read command JP Execution 5 k JP ZNRD Jn n1 S D1 n2 D2 during startup Setting details Setting range Target station network number 4 to 239 Designate the target station network number 1 to 64 constant Bit device digit designation 2 Word device 3 Target station number Designate the target station number Read data storage head device target station Designate the head device of the target station that stores the data to read Read data storage head device local station Designate the head device of the local station which will Word device 3 store the data to be read When reading from Q QnACPU 1 to 230 constant When reading from programmable Read data length controller CPU other than Designate the number
53. controller CPU other than Q QnACPU perform the access using the group No designation 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 5 Data Sending Receiving This section explains the arbitrary data sending receiving function instruction format and programs using the data send receive instructions SEND RECV and RECVS instructions 1 The SEND RECV and RECVS instructions are used for sending and receiving arbitrary data to from the programmable controller CPU with which communicate is being performed 2 Data sending is performed using the SEND instruction and data receiving is performed using the RECV or RECVS instruction The RECV instruction and the RECVS instruction are used differently as follows a The RECV instruction is used in the receiving processing in the main program The main program reads from the RECV instruction executing request area in the buffer memory and executes the RECV instruction using a switch from off to on of a bit corresponding to the data receiving channel number as a trigger b The RECVS instruction is used in the receiving processing in an interrupt program An interrupt program is started when data is received from the programmable controller CPU with which communication is being performed to enable receive data reading to the programmable controller CPU In order to start the interrupt program set the parameters on t
54. data is stored in S1 11 to S1 17 when errors occur Store the status at completion of an instruction Completion status 0 Normal System Other than 0 Abnormal error code 2 S1 2 Channel used by the local station Designate the channel used by the local station 1to8 User y 1 to 8 Channel Specify the CPU type on the target station Setting value 0000 Single CPU or CPU in the system directly connected to l the local station Same as 03FFH 03D0x Control system CPU 5 merci H AE 3 Target station s CPU type 03D1n Standby system CPU 3 03D3n 03D2 System A CPU 03F Fn 03D3H System B CPU Single CPU or CPU in the system directly connected to O3FFu y the local station Designate the network No of the target station 1 to 239 Network No Target station network No 254 When 254 is designated in Jn The network designated by the valid 1 to 239 254 User module during other station access Designate the target station S1 5 Target station number When local station is Universal model QCPU 1 to 120 1to 120 When local station is other than Universal model QCPUs 1 to 64 EN Fed value o se 1 At instruction execution Set the number of resends when the instruction is not completed within the monitoring time designated by S1 8 User S1 7 Number of resend 0 to 15 times Oto 15 s i gt A ystem 2 At instruction completion Store the number of resends executed result 0 to 15 times
55. data storage device Target station Device designated with D1 l 3000 Q QnACPU Write notify device Device designated with D3 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b When abnormal completion 1 READ instruction SREAD instruction l Sequence scan 0 END 70 END 0 END 70 END 0 END l I Read command if SS l Local station l QCPU i Read completion device Device designated with D2 1 I E Read completion device i D2 1 device 1 scan I Completion status Error code r 1 S81 1 device Ee et Re A AA AI AA ee Ee a 4 Be pe ee RS EI RRA A Sea GO E ae SER eh CBee he Pe MI aoe Oe Ae Neg CuO Ot A Pee o Bye pee a Ethernet i l Channel 1 module Ee Race en es tee TASEA eh EE a A tl A Aa 4 Target station error 2 WRITE instruction SWRITE instruction A A A AO aR eC 2 WRITE l Sequence scan o END H O END H0 END 0 END 0 END y y l i Write command Lea A 1 i l l l at Local station rite completion device Y 1 QCPU i Device designated with D2 f f Write completion device D2 1 device 1 1 scan i gt i y l f i Write data storage device 3000 l Device designated with S2 D S1 1 device 7 A A a ats
56. device Ethernet module Programmable N W module controller CPU E Fixed 1 1 1 1 1 1 1 1 Word device i f 1 1 1 1 1 1 1 1 See Section 4 7 Writes data to other station s word device Ethernet module N W module Ethernet module Programmable N W mosule controller CPU Word device See Section 4 7 Xx data link instruction 4 1 Instruction execution station Local station MELSEC Q Target station Station type Ethernet Ethernet module Programmable controller CPU type Station type Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station
57. format Attached file Binary to ASCII conversion Maximum 6k words Binary to CSV conversion Main text Designating using ASCII data Maximum 960 words 1 The Ethernet module receives the Subject without decoding a Sending e mail by the programmable controller CPU MSEND instruction Data transmission is performed via the main text or attached file of e mail using the MSEND instruction 1 For an attached file device data and other information is sent by converting into binary ASCII CSV data format 2 For the main text ASCII code data character string data created by a sequence program is sent b Receiving e mail by the programmable controller CPU MRECV instruction Receives attached file data of e mail using the MRECV instruction The main text data of e mail cannot be received 2 ING THE E MAIL FUNCTION eee MELSEC Q 2 Data conversion method used by the Ethernet module The following shows the data conversion method used by the Ethernet module When sending e mails When receiving e mails Programmable Mail Mail Programmable controller CPU g server server controller CPU Subject Encode j Subject Does not decode ASCII data Base64 7bit i ASCII data Main text Encode i Main text Cannot be 2 Ey MRECV ASCII data 7bit gt ASCII data gt received nefie tion Binary data i Attached file Encode Attached file Decode binary da
58. from computers and programmable controller CPUs via the Internet Furthermore by setting the automatic notification the Ethernet module sends e mail when the notification conditions set by the user match for the transmission from programmable controllers Internet network Public line Internet service provider Internet service provider Mail server 1 OVERVIEW MELSEC Q 2 Communicate with other stations programmable controllers via the CC Link IE controller network MELSECNET H MELSECNET 10 network system Details are explained in Chapter 3 This function enables accessing other stations via multiple networks in the network system shown below This function is used for multiple relays through a network in which the Ethernet and CC Link IE controller network MELSECNET H MELSECNET 10 network systems coexist as well as through a network in which multiple Ethernet network systems are connected Using this function another station s programmable controller can be accessed via the CC Link IE controller network MELSECNET H MELSECNET 10 and Ethernet network systems Access source Access destination Ss 5 f DQ HA Ethernet CE E Ethernet j CC Link IE controller network aaneen MELSECNET H ESSEE MELSECNET 10 ml JE DUNAS
59. in an environment that meets the general specifications in the user s manual for the CPU module used Using the programmable controller in any other operating environments may cause electric shocks fires or malfunctions or may damage or degrade the module e While pressing the installation lever located at the bottom of module insert the module fixing tab into the fixing hole in the base unit until it stops Then securely mount the module with the fixing hole as a supporting point If the module is not installed properly it may cause the module to malfunction fail or fall off Secure the module with screws especially when it is used in an environment where constant vibrations may occur e Be sure to tighten the screws using the specified torque If the screws loose it may cause the module to short circuit malfunction or fall off If the screws are tightened excessively it may damage the screws and cause the module to short circuit malfunction or fall off e Before mounting dismounting the module be sure to shut off all phases of external power supply used by the system Failure to do so may cause product damage e Do not directly touch any conductive part or electronic component of the module This may cause the module to malfunction or fail Wiring Instructions AX CAUTION e Connectors for external connection must be crimped or pressed with the tool specified by the manufacturer or must be correctly soldered If the conne
60. initial setting Module No 1 M Timer setting Module will operate on default values if setting left blank Destination existence conformation interval timer Destination existence conformation resend timer DNS setting Input format DEC z End Cancel 2 USING THE E MAIL FUNCTION MELSEC Q Initial settings Description of setting Setting range options Timer setting 1 DNS setting TCP ULP timer Set the time of packet existence at TCP data send 2 to 32767 q Set the interval for checking the receive enabled TCP zero window timer Rite 2 to 32767 us TCP resend timer Set the time to resend at TCP data send 2 to 32767 y Set the confirmation wait time at TCP close TCP end timer 2 to 32767 processing IP assembly timer Set the wait time for division data packets 1 to 32767 Response monitoring timer Set the response wait time 2 to 32767 Set the time to start confirming existence of an Destination existence confirmation AN we external device after communication with it has 1 to 32767 starting interval terminated Destination existence confirmation Set the time interval between reconfirming 4 to 32767 interval timer existence Set the number of times to reconfirm existence when a response to the existence confirmation is 1 to 32767 not received Select the input format of the IP addresses of the F Input format decimal hexadecimal DNS servers IP address of DNS server 1
61. is considered normally completed on the send station even if the contents of the send data are abnormal In addition even if the contents of the send data are normal when the instruction is executed to the same station from multiple stations a timeout error C0831 will occur on the send station When the execution type is set to With arrival confirmation if the send station sends data to the same channel of the receive station before the receive station reads data using the RECV instruction a buffer full error will occur on the send station side Q QnACPU Q QnACPU send station E71 N W module E71 N W module receive station Channel 5 Channel 3 l Designate the target station sending data with the network No and station No of the network module or Ethernet module receiving the request from the send station In the diagram below designate the network No and station No of the first Ethernet module The SEND instruction cannot be executed if a network module or Ethernet module other than the one receiving the request from the send station is designated In the diagram below the SEND instruction cannot be executed if the network No and station No of the second Ethernet module is designated Network No 1 Network No 2 Eihernet Ethernet module module module Target 1st 2nd station Send station CPU 6 DEDICATED INSTRUCTIONS Functions Local station S2 QCPU MELSEC Q
62. is stored in S1 11 to S1 17 Stores the status at the completion of the instruction S1 1 Completion status 0 Normal System Other than 0 Abnormal error code 2 Channel used by the local Set the channel used by the local station S1 2 1to8 User station 1 to 8 channel 81 3 Target station storage Designate the target station s channel that stores data 1108 User channel 1 to 8 channel Designate the network number of the target station 1 to 239 Network number Target station network 2 S1 4 bar 254 When 254 is designated in Jn The network 1 to 239 254 User u designated by the valid module during other station access Continued to the next page DEDICATED INSTRUCTION SLS MELSEC Q Set data Set by 0 Designate the target station 1 Station number specification When local station is Universal model QCPU 1 to 120 When local station is other than Universal model QCPUs 1 to 64 2 Specific group 81H to AOn All the station having the indicated group 4 to 120 number Can be set when the execution Target station number f f f 81H to AOH type designated in S1 is 0 No arrival FF confirmation 3 All stations FFH All stations having the target network number simultaneous broadcasting Excluding the local station Can be set when the execution type designated in S1 is 0 No arrival confirmation ene Fixed ser Valid when the execution type designated in S
63. is stored in the receiving error log area 1 The following shows the transmission format of the main text designated in the control data of the MSEND instruction If data is sent as the main text of e mail the Ethernet module does not convert the transmission format Designate the main text data in ASCII characters in sequence programs Completion type Designates the transmission format of the main text Setting values for designating the main text Applicable data transmission format Format set P ion Description of processing b12 b11 b10 b9 b8 Send the main text data The Ethernet module does not convert the transmission format Designate the main text data in ASCII characters in sequence programs PC UNIX No conversion portable terminal FUNCTION 2 USING THE E MAIL FUNCTIO MELSEC Q 4 Receiving by the a personal computer The following explains how a PC UNIX portable terminal receives e mail sent from the Ethernet module After setting an environment for using the Internet with application software that processes e mails e mails can be received on a receive message screen as shown below Example The following shows an example of the reception of e mail sent using the MSEND instruction see 3 The screen display shows is that of Microsoft Corporation s Outlook Express 5 No 1 testmail msend Ox File Edit View Tools Message Help So le amp X ao o Reply Reply All For
64. local station 1108 User station 1 to 8 channel Specify the CPU type on the target station Single CPU or CPU in the system directly 00001 connected to the local station Same as Target station s CPU type aa E 00004 arg 03D0 to 03D3 O3FFu Single CPU or CPU in the system directly O3F Fu connected to the local station Designate the network number of the target station 1 to 239 Network number 254 When 254 is designated in Jn The network designated by the valid module during other station access Designate the target station 1 Station number specification When local station is Universal model QCPU 1 to 120 When local station is other than Universal model QCPUs 1 to 64 2 Specific group 814 to AO All stations with the indicated group number only clock data write and remote RUN STOP are allowed 3 All stations FFu All stations of the target network number simultaneous broadcast excluding the local station only clock data write and remote RUN STOP are allowed 1 SS O 1 At instruction execution Set the number of resends when the execution of an instruction did not complete within the monitoring time designated by S1 8 0 to 15 times 2 At instruction completion Store the number of resends executed result 0 to 15 times Set the monitoring time until the instruction completion so that it is greater than or equal to the TCP resend timer value When the instruction fails to complete within the monit
65. module from the FTP client again b For the QCPU 1 If a password is registered in the target file for file transfer transfer that password set in the Ethernet module using the FTP operation command quote keyword set after log in If a password is registered that file cannot be accessed unless a password of the same character string is designated The password is a character string for file access that the user registers in the QCPU and it allows prohibits access to the target file The QCPU files of target file transfer must be only the files in the root directory for each memory When the QCPU file begin accessed do not perform any QCPU key switch operations change operation status with GX Developer such as RUN gt STOP and STOP gt RUN turn off power reset power or install remove the memory card If any of these operations are performed the QCPU files will corrupt and the QCPU may not be able to start again Do nat perform any file operations read write change file information from GX Developer etc when the FTP function is in operation When file operations are performed from a peripheral device etc while the FTP function is in operation the FTP function may abnormally end If the FTP communication port is designated as a port subject to the remote password check perform the file transfer operation after changing the remote password status from lock to unlock Perform the lock processing for the remo
66. net mask designate the target settings of the IP address class network address and sub net address so that all bits are 1 in the mask pattern The mask pattern is designated with a decimal hexadecimal value obtained by dividing the 32 bit mask value into 8 bit segments c When the sub net mask is not designated the mask pattern designation is not necessary x When the mask pattern is not designated the following mask value is used as the mask pattern according to the local station IP Address class Mask value used FF 00 00 00H FF FF 00 00H FF FF FF 00H 3 Conversion setup conversion information address 229H to 3A8H a The conversion setting is required to obtain the IP address from the Network No and station number using the table exchange system b Ifthe local station is an Ethernet module and the next station to which the communication request response message is passed to access other station is also an Ethernet module designate the Network No station number and IP address of the next station s Ethernet module Designate the values set on Network parameters Setting the number of Ethernet CC IE MELSECNET cards screen c Designate the Network No in the range of 1 to 239 1H to EFH and the station number in the range of 1 to 64 1H to 40h 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 1 Communication between the Ethernet modu
67. on at the END processing of the scan where the ZNWR instruction is completed and turns off at the next END processing DEDICATED INSTRUCTION SELE MELSEC Q b Status display device at completion D2 1 Turns on and off depending on the completion status of the ZNWR instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the ZNWR instruction is completed and turns off at the next END processing Operation of the local station when the ZNWR instruction is being executed END END END END processing processing processing processing Sequence program 5 t II nooo E ON ZNWR instruction execution ZNWRinstrucion E E ee Send receive OFF l direction flag Completion device 1 Normal 1 1 ji I completion _y One scan Status display device OFF at completion i Errors 1 When execution of a dedicated instruction ends with an error the abnormal completion signal D2 1 turns ON and the result is stored in the data link instruction execution result ZNWR instruction storage area address 209 of the buffer memory See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Ma
68. on for one scan by the completion of the instruction System Bit D2 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data 6 56 6 56 DEDICATED INSTRUCTION oe MELSEC Q 1 The WRITE instruction can be executed only when the target station is the Q QnACPU The WRITE instruction cannot be executed for an ACPU connected to the MELSECNET 10 or Ethernet network systems Thus the target station numbers should be limited to Q QnACPU station numbers When writing data from the other station CPU module device with the WRITE instruction specify the device within the range applicable to the host station CPU module Head device number to be write in other station CPU module D1 number of write points 1 lt last device number of host station CPU module gt x Last device number in host station CPU module having the same device name as D1 Use the file register ZR when specifying the expansion data register D or the expansion link register W that are out of area of the data register D or the link register W on the host CPU module respectively excluding the Universal model QCPU For calculating a area for the file regisger ZR refer to QCPU User s Manual Function Explanation Program Fundamentals Example When not assigning the data register D of the other station CPU module or a
69. other station CPU module or assigning all of the 32K points of the file register ZR to the expansion data register D Other station Host CPU module 1 CPU module DO Expansion data register D12287 ZR12287 ZR12288 Data register Specify within DO to 12287 Specify within ZR12288 to 32767 ZR32767 1 File register with 32K points or more is required for the host CPU DEDICATED INSTRUCTION oe MELSEC Q Control data See Section 6 12 for information about how to handle the control data of the SWRITE instruction when writing to the word device memory of other station The control data should be handled is the same as when writing to the word device memory using the WRITE instruction Thus this section omits its explanation x The number of steps for the SWRITE instruction is 11 Functions This instruction writes data in the device designated in S2 and succeeding devices of the local station to the word devices of the station which is connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet that is designated with the target station network number and target station number in the control data When writing device data from other station number is completed the completion device designated in D2 turns on Also when writing the device data designated in S2 is completed the device on the other station designated in D3 turns on Local station Re
70. out of area of the data register D or the link register W on the host CPU module respectively excluding the Universal model QCPU For calculating a area for the file regisger ZR refer to QCPU User s Manual Function Explanation Program Fundamentals Example When not assigning the data register D of the other station CPU module or assigning all of the 32K points of the file register ZR to the expansion data register D Other station Host CPU module 1 CPU module DO Expansion data f fis Data register tenias Specify within DO to 12287 D12287 ZR12287 ZR12288 Specify within ZR12288 to 32767 ZR32767 1 File register with 32K points or more is required for the host CPU Control data See Section 6 4 for information about how to handle the control data of the SREAD instruction when reading from the word device memory of other station The control data should be handled in the same way as when reading the word device memory using the READ instruction Thus this section omits its explanation x The number of steps for the SREAD instruction is 10 6 DEDICATED INSTRUCTIONS Functions MELSEC Q 1 This instruction reads the designated word device data of the station designated Local station QCPU with the target station network number and target station number in the control data The station must be connected to a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network s
71. request controller network destination from an access MELSECNET H source device via multiple MELSECNET 10 network Communication with CC Link IE controller system as that of the station other stations using network MELSECNET H _ lin which the Ethernet module GX Developer GX Developer MELSECNET 10 and is installed Ethernet network systems Example Only access 1 shown in the diagram in GX Developer Manual Section 3 2 1 is possible 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 2 Range of Accessible Other Station s Programmable Controllers and Accessible Stations The accessible range and the stations when performing the other station access via Ethernet module using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function is described 3 2 1 Accessible range and stations External device External device QcPU Ethernet module 1 Accessing on the same Ethernet T 1 E A A oe dei a a Ethernet lacpu Ethernet Ethernet 2 Accessing to External External QCPU Ethernet module module remote Ethenet device device module Ethernet a a 3 Accessing to the CC Link IE controller network MELSECNETIH A A tat has soe eee ed ee MELSECNET 10 4 Accessing the Ethernet via via Ethernet Ethernet CC Link IE controlle
72. server 1 Reading receive mails to the Ethernet module The Ethernet module automatically checks the mail server to see whether or not there are any receive mails at the inquiry interval set with GX Developer If there are any receive mails addressed to the local station the reception information is stored in the buffer memory the MRECV instruction should be executed based on this information 2 When there are two or more receive mails on the mail server By designating Inquire in the MRECV instruction s control data the Ethernet module also reads the information of the remaining receive mails on the mail server and stores it in the buffer memory when the MRECV instruction is executed Continue to execute the MRECV instruction based on this information 2 ING THE E MAIL FUNCTION soe ees MELSEC Q 3 Sample program The following is a sample program for receiving e mail by a programmable controller CPU It performs reception processing of e mail using the receive command X21 When I O signals of the Ethernet module are X Y00 to X Y1F w 160 Y M60 U0 G9858 F Move H200 DO 3 Designate to make inquiry to the server A O D2 Designate to read the head mail Move KO D9 Designate to adjust to the data length of the receive mail movP KO D10 Designate to adjust to the header data length of the receive mail ZP MRECY vo DO D100 vo Read receive mails M m o E A a p Proces
73. set only when S 14 errors occur S 15 S 16 Abnormal detection network number Abnormal detection station number z MELSEC Q b8 to 0 A T to a 1 Abnormal complete type bit 7 Set whether or not the clock data setting is required at abnormal completion 0 Clock data setting is not required Clock data is not stored in S 11 to S 17 when errors occur 1 Clock data setting is required Clock data is stored in S 11 to S 17 when errors occur Store the status at completion of an instruction 0 Normal Other than 0 Abnormal error code 2 Specify the channel of the own station where receive data are stored 1to8 User 1 to 8 Channel a the channel number used by the transmission station System o 8 Channel ae the network number of the transmission station Sist m o 239 Network No 4 Stores the station number of the transmission station o 120 Station number reception from the station with the System corresponding station number A po Set the monitoring time until the instruction completion so that it is greater than or equal to the TCP resend timer value When the instruction fails to complete within the monitoring time abnormal completion occurs 0 to 16383 0 to TCP resend timer value User The monitoring time is reset to the TCP resend timer value TCP resend timer value 1 to 16383 Monitoring time unit s Stores the word count of the receive d
74. storage channel S 2 designated in the control data Data is sent using the SEND instruction When data is received from the transmission station the receive data is stored in the channel of the local station designated with the transmission station and the interrupt program with the interrupt number Ixx set with GX Developer is started The receive data is read using the RECVS instruction in this interrupt program Local station QCPU D1 Interrupt RECVS occurrence je Ethernet module Channel 1 Channel n Channel 8 Response station Q QnACPU Ethernet module D1 Channel 1 EN ERES gt Channeln p4 Channel 8 Sequence program oe q programe e tie MA processing RECVS instruction Interrupt program Instruction execution Receive data storage 2 The Z RECVS instruction is used in the interrupt program and its processing is completed within one scan 3 RECVS instruction interrupt program use can not be used with the instruction for data link in cases where the same channel is used to read received data using the instruction for data link 1 When a dedicated instruction completes abnormally the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S 1 See the following manuals regarding the error code check the errors and ta
75. the file size must be fixed in advance If a file is deleted and then writing of another file larger than the deleted one is attempted a 402B error will occur disabling the file writing 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 6 Precautions when deleting files 1 2 When determining the timing to delete files consider the system operation as a whole including the functions of QCPU and GX Developer The parameter file and sequence program file can not be deleted during the QCPU is performing RUN Delete these files after setting the QCPU to the stop status Files with read only attribute and files that are locked from another device or function cannot be deleted The file attributes can be changed using the FTP operation command quote change File deletion can only be conducted for the QCPU program memory or memory card RAM area After deleting a file with the QCPU in RUN status do not read or write the data of the deleted file by the sequence program Doing so may result in an operation error detected in the QCPU 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 6 FTP Commands The FTP operation commands on the FTP client side external devices supported by the Ethernet module FTP server are described 5 6 1 File designation method The file designation method in the FTP operation command from the FTP client side is explained Designation descriptions The pa
76. 1 is 1 With arrival confirmation 1 At instruction execution Set the number of resends when the instruction fails to complete within the monitoring time designated by S1 8 Number of resends 0 to 15 Time 2 At instruction completion Store the number of resends executed result Valid when the execution type designated in S1 is 1 With arrival confirmation Set the monitoring time until the instruction completion equals to or becomes greater than the TCP resend timer value When the instruction fails to complete within the f e monitoring time it is resent for the number of resends 0 to 16383 S1 8 Arrival monitoring time i designated in S1 7 0 to TCP 0 to TCP resend timer value The monitoring time is reset to the TCP resend timer value TCP resend timer value 1 to 16383 Monitoring time unit s Designate the number of send data in S2 to S2 n S1 9 Send data length When sending to QCPU 1 to 960 word 1 to 960 User When sending to QnACPU 1 to 480 word 81 10 Notused Pe Store the valid invalid status of the clock data in S1 12 to S1 17 st 11 Clock set flag etl System 0 Invalid 1 Valid Continued to the next page DEDICATED INSTRUCTION SELE MELSEC Q Set data Set by 0 S1 12 Higher 8 bits month 01H to 12H lower 8 bits last 2 digits of year 00H to 99H Y 8 bits hour 00 to 23H Clock data lower 8 bit date 01H to Y set only when er
77. 1 Mp 1 Network number 1 control station station number 1 Station number Control station normal station Mp Control station Ns Normal station ANUCPU QnACPU QCPU Ni Normal station Other than ANUCPU QnACPU and QCPU Network number 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 4 Using the example of a system shown below the accessible stations and the stations that require parameter settings when an opposite device or QCPU access other stations are explained x Stations that require the setting of the setting the Ethernet router relay parameter as mentioned in Section 5 3 of the User s Manual Basic are also shown 7 1 External device External device QCPU ESTA module Ethernet E a 2 QCPU Ethernet EU External device External device module module Ethernet a E 3 QCPU Ethernet Network module module CC Link IE controller network MELSECNET H MELSECNET 10 4 QCPU Network Network module module 4 CC Link IE controller network MELSECNET H MELSECNET 10 gt 5 External device QCPU Network Ethernet module module Ethernet E E Router 6 QCPU Ethernet External device module Ethernet a Accessible not accessible Access destination combination Acces
78. 163 SS B TECH A S CZECH REPUBLIC AutoCont Control slovakia EXEL ELECTRONICS Ltd ISRAEL MITSUBISHI ELECTRIC EUROPE B V UE Uik aia 2 Ha umanut P 0 B 6272 UK Branch i IL 42160 Netanya Travellers Lane 2 58001 Havl k v Brod SK 02601 Dolny Kubin Phone 972 0 9 863 39 80 ic es so ene a 7 Pae a meson aaa Phone 44 0 1707 27 61 00 ak EOOH arte Fax 44 0 1707 27 86 95 pr Ia EN DENMARK A UG S 1 0 SLOVAKIA ykkegarasvej 1 1 ajanskeno ae CORPORATION JAPAN DK 4000 Roskilde SK 92101 Piestany AFRICAN REPRESENTATIVE Phone 45 0 46 75 76 66 Phone 421 0 33 7742 760 Sah oe Chuo Ku Fax 45 0 46 75 56 26 Fax 421 0 33 7735 144 CBI Ltd SOUTH AFRICA nate eel i606 Beijer Electronics Eesti OU ESTONIA INEA d 0 0 SLOVENIA Private Bag 2016 5 ZA 1600 Isando Fax 81 3 622 16075 P rnu mnt 160i Stegne 11 Phone 27 0 11 928 2000 EE 11317 Tallinn SI 1000 Ljubljana MITSUBISHI ELECTRIC AUTOMATION In USA Phone 4379 0 6 51 81 40 Phone 386 0 1 513 8100 Fax 27 0 11 392 2354 500 Corporate Woods Parkway So mie Were Hk IL 60061 Fax 372 006 518149 Fax 386 0 1 513 8170 Phone 1 847 478 2100 Beijer Electronics OY FINLAND Beijer Electronics AB SWEDEN Fax 1 847 478 22 53 Jaakonkatu 2 Box 426 FIN 01620 Vantaa SE 20124 Malm Phone 358 0 207 463 500 Phone 46 0 40 35 86 00 Fax 358 0 207 463 501 Fax 46 0 40 35 86 02 UTECO A B EE GREECE Econotec AG SWITZERLAND 5 Mavrogenous Str Hinterdorfstr 12 G
79. 2 2 9 2 Receiving a news e Mail oooocoinncininnninncinci id 2 37 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY 3 1 to 3 20 3 1 CC Link IE controller network MELSECNET H MELSECNET 10 Relay Communication 3 1 3 2 Range of Accessible Other Station s Programmable Controllers and Accessible Stations 3 2 3 2 1 Accessible range and Stations rrn aea ar aE AEREA TRATA RARA EATE 3 2 3 3 Settings for Accessing Other Stations 0 2 eeceeceeeceeeeeeeeeeeeeeeeeeeeeeeseeeeeseeeeeseesaeeseeseeseeseeseeeaeesas 3 4 3 3 1 Setting the Station No lt gt IP Information ececceeeeeeeeeeteeeeeeeteeeseeeseeeseeeseeeseeeseeeseaeseaesenseeeeeaes 3 5 3 3 2 Convert format between the Network No station number and IP address port number 3 8 3 3 3 Routing parameter SettiNgS oooncinnniiinniniicii aa a A a i R R 3 14 3 4 Procedure for Accessing Other Stations 0 0 0 ececcecceeeeeeeeeeeeeneeeeeeeeeeeeeaeeeaeseaeecaeeeaeeeaeesaeeeaeeeteareeateeas 3 20 3 5 Precautions for Accessing Other Stati0MS oo nnoniicninninninnicnnnconnconncanccannrnn arar nr nora rr 3 20 A 7 A 7 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION 4 1to4 41 4 1 Other Station Access with the Data Link Instruction 00 0 ee eeceeeeeeeeeteeeeeeeeeeeteeteetaeetaeesaeeseetieetieeeee 4 1 4 2 Precautions for Accessing Other Stations
80. 3 5 Station No lt gt IP information system Conversion Method ccceeeeeeseeeeteeeetteees 3 6 SWRITE data link instruction 4 23 6 51 T Target exchange System 3 11 Target network NO oooonocnconccnncnonccoccconncnnnnn 3 15 U Use together system eeeeeeeseseeeeetteees 3 13 w WRITE data link instruction 4 22 6 56 Z ZNRD data link instruction 4 30 6 63 ZNWR data link instruction 4 31 6 67 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 shal
81. 6 News designatiON ooocconinnnnncnnconconconco 2 14 NS 2 36 News setting Notification setting 2 14 2 32 Notif data points ooooocccncccinconcccncccnnnccninnnos 2 36 Notification data storage device 2 36 Index 1 P Password EMail 2 12 EP o da 5 5 5 16 PLC inquiry interval oooooonconncnninnninnncnncnaccnnns 2 34 PLC monitoring timer s 5 6 POPS Serias 2 8 2 13 R READ data link instruction 4 22 6 13 Receive E mail cceececeeseeeeeeeeeeneeenteees 2 20 Receive setting 0 eeeeeeeteeeteeeteeeteeenreeteees 2 12 Receiving a news e mail eee eeeeeeeeeeeee 2 37 RECV data link instruction 4 13 6 19 RECVS data link instruction 4 18 6 24 Relay network NO c ecceeseeseeeeeeeeeneeeeees 3 15 Relay station No sesers 3 15 Remote RUN Remote STOP programmable controller CPU Janireri iaat 4 36 REQ data link instruction 4 36 6 28 6 34 RESPONSE COE ceccceeeeeeeeeeeeeeeeeeeteneeetees 5 20 Routing parameter settings 3 14 S SEND data link instruction 4 12 6 37 Send mail Address 0 0 0 ee eeeeeeeeeeeeeeeeeeneees 2 14 Send SoN ical itech baie eee 2 12 Simultaneous broadcast ceeeeeeeeeeteeees 4 5 SMTP SW iaa iia 2 8 2 13 SREAD data link instruction 4 22 6 46 Station No lt gt IP information cee
82. 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 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
83. 99x lower 8 bits day of the week 00x Sunday to 06 Saturday Stores the network number of the station that detected an S1 16 ee detection network abnormality 4 p 1 to 239 Network number X Stores the station number of the station that detected an S1 17 a detection station abnormality 4 1 to 120 Station number 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction System The programmable controller CPU stores the execution result of a dedicated instruction x2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic 3 It can be specified when the local station has an Ethernet module of function version D or later Fixed to 03FFH for other than the above Access to the target CPU is made 4 Nothing is stored if the execution source detects an error when receiving an instruction x5 When the REQ instruction is executed to the redundant system with a control system or standby system CPU specified the instruction may be unsuccessfully completed due to system switching occurred on the target station error code 4244H 42484 If this has occurred execute the REQ instruction again snes Request data All values are set by the user Remote RUN_ Remote STOP 0010 When station No is specified in S1 5 Request type y a a 0030 When all stations or a group is
84. AN eg Sd ele Sch A A cata ate Ethernet Channel 1 module Ea tr A A AS A A cht Ne Me a a SP SS a a Gl pp A o la Ethernet module Ri a A EA A A e NN o a da ds a e e E A A A A A e al A A A Bie eae aaah hh a ye Gc EE Target station Q QnACPU Sequence scan 0 END Ho END k Ho END Ho END Ho END Read data storage device l Device designated with S2 7 100 l 1 i Read notify device Device designated with D3 lt gt 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 WRITE instruction SWRITE instruction y E EE O O O MSG ePeese tec gees EA a see ese eels ese aaa Ea E a a seas WRITE Sequence scan 0 END 0 END 40 END 70 END 40 END I AAA Write command A 1 1 Local station QCPU Write completion device Device designated with D2 1 1 scan l A e f Write completion device D2 1 device OFF Write data storage device 3000 Device designated with S2 ID A a as Ce o o o ae ey IS iS ee ee ee eS oe ee es Bee St ee es ee Se ee ERA a Ge a eee Ethernet i i i i Channel 1 i module Li A A A o A A A AA A A Gy E a A ee ak ONS a Se ee et LS ee NNN al ERS Ethernet i module LA E I Sa A E F a leads de E dd DI EES Sequence scan 0 END Ho END 10 END o END o END 1 Write
85. B2 AJ71QE71N T AJ71QE71N B5T A18J71QE71N3 T A1SJ71QE71N B5 A1SJ71QE71N B2 A1SJ71QE71N T A18SJ71QE71N B5T AJ71QE71 AJ71QE71 B5 A1SJ71QE71 B2 A18J71QE71 B5 3 QnA series Ethernet interface modules can act as relays between networks if the function version is B or later Verify the function version with the production date shown in the Date column of the rated plate which is attached to the side of the module Manufactured date Year last two digits Month two digits function version one digit 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 3 Settings for Accessing Other Stations This section explains the parameters and setting items that need to be set with GX Developer to access other stations via the Ethernet using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function 1 Network parameter setting the number of Ethernet CC IE MELSECNET cards 1 Network No group number station number station No etc for using the Ethernet module are set on this screen 2 Make sure to set the values by seeing Section 4 6 of the User s Manual Basic Setting the Ethernet Station No lt gt IP Information setting the MELSECNET Ethernet routing information 1 The Ethernet s routing method correspondences of the Ethernet module s IP address and Network No station number etc for using the CC Link IE controller networ
86. CNET 10 relay communication functions are described to perform data communication with another station s programmable controller CPU via Ethernet module or CC Link IE controller network MELSECNET H MELSECNET 10 from the QCPU at external device or Ethernet module installed QCPU station 3 1 CC Link IE controller network MELSECNET H MELSECNET 10 Relay Communication The CC Link IE controller network MELSECNET H MELSECNET 10 relay communication is a function to perform the following data communication to another station s programmable controller via Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 from the external device or Ethernet module installed QCPU station By setting the parameter described in Section 3 3 the other station access becomes possible with the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function Function that can be Communication range Communication Function reference used for When using this function When not using this function request source section communication Communication using Only possible to read write External device Reference Manual the MC protocol data from to the Communication using Possible to read write data programmable controllers of Network module the data link from to another station s other stations in the same installed QACPU Chapter 4 instructions programmable controller Ethernet or CC Link IE station which is the access
87. CPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Execution timing of the instruction When executing reception processing by an interrupt program a When normal completion SEND H With arrival confirmation Sequence scan 0 END H0 END o END o END 1 0 END Send command A Sending side f Q QnACPU 1 Send completion device Device designated with Send completion device D1 1 device Lc E AR AR a DA ss AD A A a ds es A a al E E A o IN E EA AM IA dd IA Az E A A SM Sy re Ethernet 4 Channel 1 l module i i E A A RA RA AA ee ei Se ee ee E TE A eee al Data Storage sending complete HS O A a a o o E A ee ee eS E g Ethernet A tea aaa l module l l as y e e ss in aa A a ey da Be o ts a pe ES E a o a dis o A A A A A AR A A a a A MP es mE i Interrupt program RECVS i f l IRET i I mos Receiving side Sequence scan ENDH 0 ENDH END H 0 END 0 ENDH i QCPU i i 1 1 1 scan completion l 4 T g l I I I Receive data i i storage device 2 Y Receive data Device designated with D1 1 l maz 2525 E Be esl See lee e SERS Se See aaa le aes SEAS a SHS Sic aie eels S AS pe 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b When abnormal completion 1 In case of the SEND instruct
88. CPU of the communication request source station The programmable controller CPU of the stations relay reception station and relay transmission station that relay communication request messages The programmable controller CPU of the stations relay reception station and relay transmission station that relay response messages 1 The routing parameters setting is not necessary for the other station access on the same Ethernet network as the external device local station QCPU 2 The routing parameters are designated in the following manner To go to a station on the network No O relay through the station No O on the network No A which is the first communication relay A from the local station Y Relay Station No Target Network No Relay Network No 3 As an example to perform other station access from station 1Ns3 to 3Ns4 in the diagram in the next page the following values are set to the stations which require the routing parameter setting e Communication request source station Station 1Ns3 e Communication relay station Station 1Ns4 2Mp1 and Station 2Ns4 3Ns5 x The code used for each station in the diagram indicates the Network No of the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet station type and station number A maximum of 64 Target Network No can be set in the QCPU 64 types of Network No can be accessed to other station via local station or
89. D the read processing is executed only once when the read command switches from off to on at rise When a dedicated instruction ends with an error the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S1 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic See the program example of the READ instruction described in Section 6 4 The SREAD instruction only differs from the READ instruction on one point namely that the read notification device D3 is designated at the end of arguments 6 DEDICATED INSTRUCTIONS MELSEC Q 6 11 JP GP SWRITE This instruction writes data to word devices of other stations Applicable device Set Link direct device Intelligent Internal device y Index register Constant data File register JO O function module Others Zn K H device UNGO so o sa o wye e o ___ D3 x1 T C D W ST SD or SW can be used For SD SW data can be written within the setting range allowed for the user For details on SD SW refer to the manual for the programmable controller CPU or network module of the target station Instruction Executing symbol condition Command
90. F instruction flag i i KR ES Completion device OFF o i l Abnormal i i ON completion i e 4 Normal 7 Status display device at OFF es 1 completion y completion One scan 5 When the instruction is executed using J REQ G REQ the next write processing is executed in succession after one processing is completed while the send receive instruction flag is on When the instruction is executed using JP REQ GP REQ the processing is executed only once when the send receive instruction flag switches from off to on at rise Errors 1 When a dedicated instruction completes abnormally the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S1 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic DEDICATED INSTRUCTION SELE MELSEC Q Program example The following example shows a program that executes remote STOP on the Q QnACPU of station number 13 in network number 7 When I O signals of the Ethernet module are X Y00 to X Y1F x20 o n91 DO Clock data setting required Control data setting command MOV Ki we Channel used by the local station MoV HOPE D3 J Target station s CPU type target CPU MOV K7 D4 Y Targ
91. Instruction format Network number designation during on Execution command ae JP Execution Execution command ie 6 H J REQ un St S2 01 D2 Execution H sp REQ Jn St 82 01 02 sai Network module Ethernet module start I O signal designation Execution command G E ti Execution E G REQ S1 S2 01 D2 ion Execution command GP E ti Execution GP REQ S1 82 D1 D2 during startup 1 to 239 Network number 254 Network designated in a valid module for other n Local station network number station access Start I O signal of the local station network module Ethernet module Designate by higher two digits when the I O signal is expressed by three digits Control data storage head device S1 Designate the head device of the local station that stores the control data D1 D2 Un Request data storage head device local station Designate the head device of the local station that stores Word device a the request data Response data storage head device local station Designate the head device of the local station that stores Word device 2 the response data Execution completion device local station Designate the device of the local station to turn on one scan when the execution is complete Bit device Word device bit designation 3 OFF Incomplete ON Complete OFF Normal ON Abnormal x1 Bit device ee
92. M16 M32 M48 M64 X10 X20 X30 B10 B20 B30 B40 0001 0002 0003 0004 0005 0060 0061 0062 0030 0031 0032 0033 For CSV wo w1 001A 0028 CRLF bo pi b2 D3 Ds DS De D7 Ds do OOO L 0011 0012 0013 0014 0015 0016 0017 0018 0019 0014 OR LE MO M16 M32 M48 M64 0001 0002 0003 0004 0005 CR LF X10 X20 X30 0060 0061 0062 CR LF B10 B20 B30 B40 0030 0031 0032 0033 CR LF The spaces and lines between device numbers and device values are inserted for the purpose of explanation They are not recorded in the attached file 2 ING THE E MAIL FUNCTION 2 ero MELSEC Q 2 When sending data as main text lt When data format is CSV gt Target data values are converted to 4 digit hexadecimal ASCII codes and recorded from the higher byte H side of the values The device name and display device No are recorded for each setting device e If multiple word data is to be processed insert a comma between each word 4 byte ASCII code data Insert a CR code ODH and a LF code 0AH for each setting device range or 8 word data Example In case of M15 to MO 0001 M31 to M16 0002n WO 001An W1 002Bh For M15 to MO M15 to M12 to M8 to to MO 1 M4 BR Re ee For the main text of e mail WO W1 CR LF 001A 002B CR LF DO D9 CR LF 0011 0012 0013 0014 0015 0016 0017 0018 CR LF 0019 001A CR LF MO M79 CR LF 0001 0002 0003 0004 0005 CR LF X10 X3F CR LF 0060 0061 0062 CR LF
93. ND END processing processing processing processing N it execution is aa OFF OFF OFF i 1 ji i j Abnormal i ON completion I i L esas raSi EEA a One scan 5 When the instruction is executed using J WRITE G WRITE the next write processing is executed in succession after one write processing is completed while the write command is on When the instruction is executed using JP WRITE GP WRITE the write processing is executed only once when the write command switches from off to on at rise When a dedicated instruction ends with an error the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S1 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFHorless QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic See the program example of the SWRITE instruction described in Section 6 11 The SWRITE instruction only differs from the WRITE instruction on one point namely that the write notification device D3 is not designated at the end of arguments 6 DEDICATED INSTRUCTIONS MELSEC Q 6 13 J P ZNRD This instruction reads data from word devices of other stations ACPU Applicable device Link direct device Intelligen
94. 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 SH NA 080010 L Q Corresponding Ethernet Interface Module User s Manual Application MODEL QJ71E71 U OU E MODEL 13JL89 SH NA 080010 L 0810 MEE a MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 id 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 a MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES EURASIAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B V EUROPE GEVA AUSTRIA INTEHSIS sr MOLDOVA Kazpromautomatics Ltd KAZAKHSTAN German Branch Wiener StraBe 89 bld Traian 23 1 Mustafina Str 7 2 Gothaer Stra e 8 AT 2500 Baden MD 2060 Kishinev KAZ 470046 Karaganda D 40880 Rati
95. ONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION 4 4 Data Link Instructions MELSEC Q This section explains the overview of the data send receive in each data link instruction when accessing via Ethernet Module Instruction Details Data is sent SEND and received RECV between the Q QnACPU stations Ethernet module Ethernet module Q QnACPU N W module N W module Q QnACPU p 4 channel 1 channel 1 channel 2 channel 2 j i i 1 SEND Holanda NI channel 3 1 1H RECV i f i i i l channel 4 channel 4 RECVS i i i i i i channel 5 channel 5 channel 6 channel 7 channel 8 channel 6 channel 7 i channel 4 See Section 4 5 1 4 5 2 Reads data from other station s word device With SREAD completion device on target station can be turned on Ethernet module Ethernet module N W module N W module Q QnACPU r aor Q QnACPU 4 Chapter 1 Chapter 2 Sa Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Word device See Section 4 6 Writes data to other station s word device With SWRITE completion device on target station can be turned on 3 Ethernet module N W module Ethernet module Q QnACPU N W module Q QnACPU r HE 4 Chapter 1 Chapter 2 Chapter 3 EE Chapter 5 Chapter 6 Chapter 7 Chapter 8
96. P Is the connection to be used subject to the remote password check Remote password lock processing 5 Remote password lock processing End 6 Disconnect a connection with the FTP server 1 Checking the initial processing of the Ethernet module Make sure that the Ethernet module s initial processing has normally completed by checking the LED display input signal of the Ethernet module LED display The INIT LED on the front of the Ethernet module flashes e 1 0 signal The initial normal completion signal X19 turns on 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 2 Log in to the Ethernet module Once the Ethernet module s initial processing has completed normally log in to the Ethernet module Example Start FTP from MS DOS prompt of Microsoft Windows 98 Operating System IT ME ES Pe ela El sf al 1 Start FTP fto lt ret gt 2 Connect with the FTP server open IP address of the FTP server lt ret gt 3 Designate the log in name log in name default value QJ71E71 lt ret gt Designate the password password default value QJ71E71 lt ret gt When logging in use the FTP log in name and password set on the Ethernet FTP parameter settings screen for setting the log in name and password Upon receiving the log in name and password from the external device FTP client the Ethernet module FTP server checks whether they match with the FTP log in na
97. P log in name and password To designate the user name user QJ71E71 To designate both user name and password user QJ71E71 QJ71E71 e The password entry from the keyboard is not displayed 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 2 Ethernet module dedicated commands The Ethernet module dedicated commands to be attached to the FTP operation command quote are explained change Ethernet module dedicated command Function Displays changes the file attribute for the file stored in the QCPU Designation format When displaying the file attribute quote change FILE PATH Either of the following is displayed as the execution result after a successful completion When the designated file is a read only file When the designated file is a file with read write enabled W Designation format When changing the file attribute quote change FILE PATH ATTRIBUTE Designate either of the following for the attribute To change to read only file Er To change to read write enabled w Designation example 1 To display the file attribute for the file stored in the RAM area of memory card quote change 1 MAINSEQ1 QPG Designation example 2 To change the file attribute of the file stored in the RAM area of memory card quote change 1 MAINSEQ1 QPG r Caution When the programmable controller CPU is set to RUN an error occurs when the following files are designated Parameter file File currently b
98. R 18542 Piraeus CH 8309 Niirensdorf Phone 30 211 1206 900 Phone 41 0 44 838 48 11 Fax 30 211 1206 999 Fax 41 044 838 48 12 MELTRADE Ltd HUNGARY GTS TURKEY Fert utca 14 Dar laceze Cad No 43 KAT 2 HU 1107 Budapest TR 34384 Okmeydani Istanbul Phone 36 0 1 431 9726 Phone 90 0 212 320 1640 Fax 36 0 1 431 9727 Fax 90 0 212 320 1649 Beijer Electronics SIA LATVIA CSC Automation Ltd UKRAINE Vestienas iela 2 4 B M Raskovoyi St LV 1035 Riga UA 02660 Kiev Phone 371 0 784 2280 Phone 380 0 44 494 33 55 Fax 371 0 784 2281 Fax 380 0 44 494 33 66 Beijer Electronics UAB LITHUANIA y MITSUBISHI ELECTRIC Savanoriu Pr 187 LT 02300 Vilnius Phone 370 0 5 232 3101 Fax 370 0 5 232 2980 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 com www mitsubishi automation com
99. RUCTION MELSEC Q b Station 15 program RECV instruction When I O signals of the Ethernet module are X Y00 to X Y1F mov p21 D100 X20 tt mov aso D20 Clock data setting required Control data setting command A po 6 D22 Local station storage channel mov K20 D28 Arrival monitoring time 20 s 54400 x19 GON 1 t finov 205 D110 X19 Initial normal completion signal D110 4 Las ye recv 37 D20 D300 M10 ee pein Mtn tei wd E te ee pts Rice nan whee eS r 30077777T E i al i H Processing program when receive completion DOR a atk RRA eh ca te Se i i tT Fo Foo RRR HSS SR eS Se eee eee eS i M11 1 Processing program when normal completion Beth i E EAE EE f i bo opoopo Se ree a a g 1 1 4 1 i ul Processing program when abnormal i A completion m Performs error code reading etc i i I I l l i I i I i E When the data is stored in the receive station channel the bit corresponding to each channel of buffer memory RECV instruction execution request area turns on Data can be read automatically bu using this signal for the receive command The signal turns off shen the RECV instruction is completed Buffer memory Address 205 CDhH Bit location 15 to 8 7 6 5 4 3 2 1 0 a O O O l to Channel 1 Channel 2 to Channel 8 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q
100. Read command pae 4 Execution H JP SREAD Jn 81 S2 01 D2 03 H danad start p Network module Ethernet module start I O signal designation Read command GP Execution o GP READ S1 S2 D1 D2 during startup Read command Gave A Execution a 1 The SREAD instruction can be programmed without argument D3 However in such a case the operation is identical to the READ instruction With the SREAD instruction different operations are available depending on whether D3 is omitted or not 2 When the target station is a Basic model QCPU or safety CPU the read notification device set as argument D3 for the target station is ignored Same operation as with the READ instruction 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q ESS Setting details 1 to 239 Network number 254 Network designated in a valid module for other station access Local station network number module Designate by higher two digits when the I O signal is expressed by three digits Control data storage head device Designate the head device of the local station that stores Word device the control data Read data storage head device target station S2 Designate the head device of the target station that stores Word device d the data to read 0 to FEH S1 Start I O signal of the local station network modul
101. S1 10 Not used Store the valid invalid status of the clock data in S1 12 to S1 17 S1 11 Clock set flag O Invalid 1 Valid Higher 8 bits month 01H to 12H lower 8 bits last 2 digits of year 00H to 99H Higher 8 bits hour 00x to 23H Clock data lower 8 bits date 01H to 31H set only when errors Higher 8 bits second 00 to 59H occur lower 8 bits minute 00x to 59x Higher 8 bits first 2 digits of year 00H to 99H S1 15 lower 8 bits day of the week 00H Sunday to 06H Saturday S1 12 S1 13 S1 14 Continued to the next page 6 59 6 59 DEDICATED INSTRUCTION SESLE MELSEC Q Device Item Set data Setting range Set by 1 Stores the network number of the station that detected Abnormal detection 44 S1 16 wak b an abnormality network number pci 1 to 239 ae number Stores the station number of the station that detected an Abnormal detection station 4 S1 17 Ber abnormality num 1 to 120 Station number SL The data written storage device D1 requires a contiguous free area equal to or greater than the write data length S1 9 maximum of 960 words 2 In order to increase the reliability of the function it is recommended to execute the instruction by setting the execution type to With arrival confirmation when a number from one to 120 is designated for the target station number When 81H to AO or FFH is designated for the
102. SetIP address of DNS server IP address of DNS server2 Set IP address of DNSserver2 IP address of DNS server3 SetIP address of DNSserver3 IP address of DNS server4 SetIP address of DNS server do 41 See Section 5 2 of the User s Manual Basic Destination existence confirmation resend timer a DNS setting Designate the Internet service provider used by the local station s Ethernet module and the IP addresses of the domain name servers DNS designated by a system administrator 1 Select the input format of the IP addresses decimal hexadecimal 2 Designate the IP addresses of the DNS servers to DNS servers 1 to 4 1 The DNS servers manage networks DNS settings are required to search for the SMTP server and POP3 server from a domain name 2 Make the DNS setting when the mail server name shown in item 2 is specified with a domain name No setting is required when it is specified with an IP address 3 When obtaining the IP addresses from a domain name the DNS servers are searched sequentially starting from the first DNS server 2 USING THE E MAIL FUNCTION 2 E mail setting Purpose of setting Perform the setting to use the e mail function Start procedure MELSEC Q Network parameter setting the number of Ethernet CC IE MELSECNET cards E mail setting Setting screen fg Network parameter Ethernet e mail setting Module No 1 General setting Password
103. Stores the station number of the send station 1 to 120 Station number receive from the station with the indicated station number i 6 System area a 8 e ns word count of the receive data stored in D1 O to Receive data length Pe ie receive data Se 1 to 960 Word count of receive data 10 systemarea H _l l Receive data Set data Setting range Set by 1 D1 0 to Receive data Store the receive data System D1 n The receive data storage device D1 requires a contiguous free area equal to or greater than the receive data length S 9 maximum of 960 words 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic The allowable receive data length S 9 of the RECVS instruction varies depending on the version See the User s Manual Basic Section 2 7 Specifying a length value outside the setting range will cause a 4101 error OPERATION ERROR on the local station 6 DEDICATED INSTRUCTIONS Functions Errors MELSEC Q 1 This instruction reads the data received from other station a station connected to CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system at the local station
104. U module S2 number of read points 1 lt last device number of host station CPU module gt Last device number in host station CPU module having the same device name as S2 Use the file register ZR when specifying the expansion data register D or the expansion link register W that are out of area of the data register D or the link register W on the host CPU module respectively excluding the Universal model QCPU For calculating a area for the file regisger ZR refer to QCPU User s Manual Function Explanation Program Fundamentals Example When not assigning the data register D of the other station CPU module or assigning all of the 32K points of the file register ZR to the expansion data register D Other station Host CPU module CPU module DO Expansion data register Specify within DO to 12287 Data register D12287 ZR12287 ZR12288 Specify within ZR12288 to 32767 ZR32767 1 File register with 32K points or more is required for the host CPU The number of steps for the READ instruction is 9 DEDICATED INSTRUCTION oe MELSEC Q Control data Set data b15 to b7 to bO 0 1 0 1 1 Abnormal complete type bit 7 Set whether or not the clock data setting is required at abnormal completion Abnormal complete type 0 Clock data setting is not required ek User Clock data is not stored in S1 11 to S1 17 when p errors occur 1 Clock data setting is required Clock
105. Universal model QCPU Instruction Executing symbol condition Command JP READ To l H JP READ S1 s2 D1 D2 Command GP READ __ GP READ S1 s2y 02 Set data Set data Description Set by Data type Network number of the local station 1 to 239 254 Jn 254 The network designated by the valid module during other station access User Binary 16 bits Start I O signal of the local station s Ethernet module 00 to FEn The higher 2 digits of a 3 digit I O signal Head device of the local station that stores control data Head device of the target station from which data is read User Device name Local station device that is turned on for one scan by completion of the D2 1 turns on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data DEDICATED INSTRUCTION oe MELSEC Q 1 The READ instruction can be executed only when the target station is the Q QnACPU The READ instruction cannot be executed for an ACPU connected to the MELSECNET 10 or Ethernet Thus the target station numbers should be limited to Q QnACPU station numbers When reading data from the other station CPU module device with the READ instruction specify the device within the range applicable to the host station CPU module Head device number to be read in other station CP
106. V Q series Ethernet module QnA series Ethernet module Supporting receive Not supporting receive data length of QE71N QE71 480 words data length of 960 960 words 480 words gt 480 words words Function version B D Function version A 9707B or later 9706 or earlier O Performs the processing normally x Terminates abnormally and returns an error code to the request source Local station SEND x1 A C086H error occurs on the local station On the target station the corresponding bit in the RECV instruction execution request area address 205 of the buffer memory remains OFF and no error occurs 2 On the local station although the initial transmission is completed normally a C085H error will occur for the second one or later The target station behaves as follows Upon the initial reception of the SEND instruction message the corresponding bit in the RECV instruction execution request area address 205 of the buffer memory turns ON Executing the RECV instruction generates a C1A6H error by which the corresponding bit in the RECV instruction execution request area address 205 cannot be turned OFF The RECV instruction generates an interrupt however the instruction is not be executed 3 On the local station the SEND instruction is completed normally On the target station execution of the RECV instruction generates a 4001H error and turns OFF the corresponding bit in the RECV instr
107. W ST R ZR 3 Word device bit designation Word device Bit number 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Instruction execution timing for receive processing by the main program a When normal completion A A A A e ts SENDH With arrival confirmation i Sequence scan 0 END 0 END 0 END 0 END 0 END i Send command 1 Sending side Q QnACPU i i l f i Send completion device Device designated with D Send completion device D 1 device Ethernet i dul j Channel 1 moquie i WN ay tees tes Sean fete Bae a el oat Stine nea alt onl a Sm TS TAN a ee A A A ED id ey galt gate eM AALS ok Ns es Ee dew El Data Storage sending complete Ethernet module l Sequence scan request flag gt k1 RECV instruction exection O Receive completion device Device designated with D2 1 1 scan i e a Receive completion device p OFF l D2 1 device E A Receive data storage device 2 Receive data Device designated with D1 1 The RECV instruction execution request flag for Channel 3 used at the receiving side Q QnACPU is as shown below gt For Ethernet module Bit 2 of the RECV instruction execution reques
108. Write data storage head device target station Designate the head device of the target station that stores the data to write Write data storage head device local station Designate the head device of the local station which will Word device 3 store the data to write When writing from Q QnACPU 1 to 230 constant When writing from programmable Write data length controller CPU other than Q QnACPU Designate the number of data words to write x 1 to 32 constant Bit device digit designation 2 Word device 3 Write completion device local station Designate the device of the local station to t esignate the device of the local station to turn on one Bit device 1 hen the write i lete PETON EWS RNP Word device bit designation 3 OFF Incomplete ON Complete OFF Normal ON Abnormal 1 Bit device 2 Bit device digit designation es Word device The normal or abnormal write completion status is stored in the data link instruction execution result ZNWR instruction storage area address 209 When the write completion device D2 1 is on due to abnormal end read the error code See troubleshooting of User s Manual Basic stored in the area described above and perform the necessary corrective action 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Instruction execution timing a When normal completion 1 ZNRD instruction Sequen
109. a maximum of 1920 bytes total points for the device X10 to X1F n 1 device E 2 USING THE E MAIL FUNCTION MELSEC Q 2 8 Sending E mail Main Text by the Programmable Controller CPU This section explains how to send the main text of e mail using the dedicated MSEND instruction available for the Ethernet module 2 8 1 When sending data as main text of e mail The following explains the MSEND instruction and program for sending e mail The following illustration shows how the MSEND instruction is used to store data in the main text of e mail and send it to an external device 1 2 QJ71E71 6 E mail address parameter setting 3 4 Bn Subject main text per Mail server Destr nation 5 Main text of e mail 1 O number of the Ethernet module Control data such as sending e mail address This indicates the e mail address of the transmission destination device set on the Send E mail Address Settings screen Sending e mail Subject main text The Subject consists of No of transmissions and the character data specified by a sequence program It is not converted to ASCII format Designate text data in ASCII characters in sequence programs Completion bit Main text of e mail This indicates the character string designated by the MSEND instruction It is not converted to ASCII format by the Ethernet module Designate the main text in ASCII characters in sequence p
110. aa MITSUBISHI ELECTRIC MELSEC System Q Programmable Logic Controllers User s Manual Application QJ71E71 100 B5 B2 Ethernet Interface Module Art no 130028 01 10 2008 2 MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION SH NA 080010 Version L Q Corresponding Ethernet Interface Module MITSUBISHI User s Manual Application ETS re a series Mitsubishi Programmable Controller dd J71E71 B5 MELSEG Q QJ71E71 B2 e SAFETY PRECAUTIONS e Always read before starting use Before using this product please read this manual 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 In this manual the safety instructions are ranked as DANGER and CAUTION 7T N N Indicates that incorrect handling may cause hazardous conditions D DANGER resulting in death or severe injury l l AN CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage 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 store this manual in a
111. able controller CPU Lunoncicccicinciciconocnccnnaranacananannns 2 1 2 1 2 Sending e mail using the programmable controller CPU monitor function ooonocnnnnnnnnnnnnnion 2 3 2 2 Configuration and Environment of the Applicable System oonoonnionnicincnnnccnncnncnnccnrncnnncnrncarncanccnnccancn 2 5 2 3 Precautions for Using the E mail FUNCtION oooonicnnicnnininninnnnnncnnonncnccncanrr arcano 2 6 2 4 E mail Specifications 00 A A e O ead 2 8 2 5 Processing Procedure of the E mail FUNCtION oonoonnicnninnninnnnnnnnnnncnnonconccrncanarnr arar 2 9 2 6 E mail Settings from GX Developer oooncconcnnncnnccncocnocncocncananara canaria ronca 2 10 2 7 Sending Receiving E mail Attached Files by the Programmable Controller CPU nsss 2 15 2 7 1 When sending data as an attached file ooonoociooiicinicinidinicnnnnonncanncanccan ocn cr r cra r orar 2 15 2 7 2 When receiving data in the attached file ooooocoooinniicinininicinicnnnconnccnncanccn cra n aran nrn rara rara 2 20 2 7 3 Contents of the attached fileS urena anA aAA AAR EAA AAEE AANER ERREA RRENA 2 26 2 8 Sending E mail Main Text by the Programmable Controller CPU ssssssssssssesresrssrerrssrsersrrsrsersrrsersnss 2 28 2 8 1 When sending data as main text of O Mail eee ee eee cent eee eeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeesateaeesas 2 28 2 9 Sending E mails Using the Programmable Controller CPU Monitoring Function ooonnoonncnncnn co 2 32 2 9 1 News Setting uo adds 2 3
112. ad the receive mail information 1 Inquire Read the receive mail information Store the status at completion of the instruction S 1 Completion status 0 Normal System Other than 0 Abnormal error code 3 Designate the mail number to be read when multiple mails are received S 2 Mail ber to b d 0 or high U S ail number to be rea 0 Head mail or higher ser 1 or higher Designated mail Execution type complete type System area Designate the data length header attached file of the e mail that can be stored in D1 O to D1 n header 1 to 373 At instruction attached file 1 to 6144 0 to 6517 execution 0 Adjust to the data length of the received e mail Words Receive 1 to 6517 The number of data that can be stored in D1 to D1 data length n This stores the data length header attached file of the e mail At instruction stored in D1 0 to D1 n completion 1 to 6517 The number of received data stored in D1 0 to D1 n Designate the data length of the mail s header that can be stored i At instruction non ID 0 to 373 Svecut 0 Adjust to the header data length of the received mail Words User 1 to 373 The number of data that will be stored in D1 to D1 n Including the header length described below Store the data length of the mail s header that was stored in D1 At instruction 0 to D1 n Sistem completion 1 to 373 The number of receive data that was s
113. after placing the QCPU in the STOP status 5 Remote password lock Changes the status of the remote password from unlock to lock if the FTP communication port has been designated as a port subject to the remote password check using the remote password setting quote password lock lt ret gt 6 Disconnecting a connection with the FTP server The connection with the FTP server is disconnected and various FTP operations ends bye lt ret gt 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER File transfer operation procedure example MELSEC Q The following two procedures performed between log in and log out are explained as FTP operation examples Read the sequence program file from the QCPU e Write the sequence program file to the QCPU If the FTP communication port has been designated as a port subject to the remote password check perform the remote password unlock processing lock processing in compliance with the FTP transfer operation procedure described in Section 5 4 1 The procedure to read the sequence program file from the QCPU FTP client FTP server Start file read Notify that the files will not be converted Set the password of the target file for file transfer This is not required if a password is not registered Check the file list in the QCPU Does not exist Does the file to read exist Exists Y Read the file y C End file read D
114. als and the send receive processing and processing time of the link data when performing data communication with QCPUs of other stations via the CC Link IE controller network MELSECNET H MELSECNET 10 network system 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION By using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function the Ethernet network system is regarded as the same class as the CC Link IE controller network MELSECNET H MELSECNET 10 network system therefore the QCPU can perform data communication with the programmable controller CPUs of other stations as follows using the data link instructions Programmable controller CPUs of other stations on the same Ethernet network system Programmable controller CPUs on other Ethernet networks accessed via routers using the router relay function Programmable controller CPUs on other Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 networks accessed via the CC Link IE controller network MELSECNET H MELSECNET 10 using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function In this chapter the usage of the data link instructions etc are explained when the local station QCPU performs data communication with the prog
115. and 100BASE TX network systems Generic product name for SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EVA n means version 4 or later A and V mean volume license product and version upgrade product respectively Abbreviation for interface modules compatible with the CC Link IE controller network MELSECNET H MELSECNET 10 network system Abbreviation for ZP OPEN Generic term for personal computers computers work station WS and Ethernet module etc that are connected by the Ethernet for data communication Generic term for IBM PC AT or 100 compatible personal computer Generic term for QOOJCPU QOOCPU Q01CPU Q02CPU QO02HCPU QO6HCPU Q12HCPU Q25HCPU Q02PHCPU QO6PHCPU Q12PHCPU Q25PHCPU Q12PRHCPU Q25PRHCPU Q02UCPU QO3UDCPU Q04UDHCPU QO6UDHCPU Q13UDHCPU Q26UDHCPU QO3UDECPU Q04UDEHCPU QO6UDEHCPU Q13UDEHCPU and Q26UDEHCPU Generic term for QUOJCPU QOOCPU and Q01CPU Generic term for Q02CPU Q02HCPU QO6HCPU Q12HCPU and Q25HCPU Generic term for QO2PHCPU QO6PHCPU Q12PHCPU and Q25PHCPU Redundant CPU Generic term for Q12PRHCPU and Q25PRHCPU Generic term for QO2UCPU QO3UDCPU Q04UDHCPU QO6UDHCPU Q13UDHCPU Universal model QCPU Q26UDHCPU QO3UDECPU Q04UDEHCPU QO6UDEHCPU Q13UDEHCPU and Q26UDEHCPU ai a Generic term for QQGUDECPU Q04UDEHCPU QOGUDEHCPU Q13UDEHCPU and Built in Ethernet port QCPU Q26UDEHCPU Q2ASHCPU S1 QA3ACPU Q4ACPU and Q4ARCPU READ Abb
116. annel 5 When data is received at station 15 data is read from channel 5 Q QnACPU E71 Station number 3 E71 Station number 15 QCPU cn LH Network number 7 a Station 3 program SEND instruction Same as the program shown in Section 4 5 1 b Program for station number 15 RECVS instruction When the input output signals of the Ethernet module are X Y00 to X Y1F E FEND 150 SM400 ae MOV HO D20 MOV K5 D22 J Local station storage channel X19 a Z RECVS UO 20 D300 M10 X19 Initial normal completion signal IRET Create interrupt enable disable programs in the main program in order to start the interrupt program Use the El DI and IMASK instructions for this To check the descriptions of errors see the completion status S1 1 indicated in the control data 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 6 Reading Writing Word Devices of Other Stations READ WRITE This section explains the format and program examples of the READ WRITE instructions that are used to read and write data of word devices of other stations For details see Sections 6 4 and 6 10 to 6 12 1 Instruction format a READ SREAD instructions Network number designation Read command jee i Execution H JP READ Jn S1 S2 D1 D2 during startup
117. annel used by own station Channel 1 Arrival monitoring time monitoring time until instruction completion 10 seconds Number of resends for arrival monitoring timeout 5 times 3 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction DEDICATED INSTRUCTION i MELSEC Q 1 The ZNRD instruction can be executed when the target station is a QCPU or QnACPU Access to an AnUCPU is available via MELSECNET 10 When reading data from the other station CPU module device with the ZNRD instruction specify the device within the range applicable to the host station CPU module Head device number to be read in other station CPU module S number of read points 1 lt last device number of host station CPU module gt x Last device number in host station CPU module having the same device name as S 3 The normal or abnormal read completion status is stored in the data link instruction execution result ZNRD instruction storage area address 207 If the read completion device D2 1 is on due to abnormal end read the error code stored in the area mentioned above and correct the error accordingly Functions 1 This instruction reads n2 points of data from the word device of the connected station having the network number designated by Jn n1 in the Ethernet netwo
118. at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the SREAD instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the SREAD instruction is completed and turns off at the next END processing 6 DEDICATED INSTRUCTIONS Operation of the local station when the SREAD instruction is being executed END END END END processing processing processing processing Sequence program ES ea ON SREAD instruction execution is completed he SREAD instruction BEE ete ts ON Ei e A AAA AAA a i Send receive OFF i y direction flag ON OFF Completion device lt A Abnormal l l ON completion A Normal Status display device OFF _ _ er ad completion y at completion One scan Operation of the other station when the SREAD instruction is being executed Sequence program Completion device Errors Program example END END END END processing processing processing processing ae ASE OFF Completion of send of 5 device data designated with ON the SREAD instruction When the instruction is executed using J SREAD G SREAD the next read processing is executed in succession after one read processing is completed while the read command is on When the instruction is executed using JP SREAD GP SREA
119. ata stored in D1 0 to D1 n 0 No receive data System 1 to 960 Word count of receive data A po Store the valid invalid status of the data in S 12 to S 17 0 Invalid System 1 Valid Higher 8 bits month 01 to 12 lower 8 bits last 2 digits of year 00H to 99h Higher 8 bits hour 00 to 23x lower 8 bits date 01 to 31x Si Higher 8 bits second 00s to 59x lower 8 bits minute 00 to 59 ISRN Higher 8 bits first 2 digits of year 00x to 994 lower 8 bits day of the week 00 Sunday to 06x Saturday wen the network No of the station that detected an abnormality g to Das Network No Stores the station number of the station that detected an System abnormality 3 1 to 120 Station number 6 DEDICATED INSTRUCTIONS Functions MELSEC Q 1 The receive data storage device D1 requires a contiguous free area equal to or greater than the receive data length S 9 maximum of 960 words 2 Execute the RECV instruction every time the corresponding channel s bit in the RECV instruction execution request area address 205 of the buffer memory turns on there is receive data 3 When the Ethernet modules on the same network are installed at the receive station execute RECV instruction by specifying Un of the Ethernet module which stores the data sent by SEND instruction Specifying Jn does not execute RECV instruction Example Specify U2 when executing the RECV instr
120. ation to the same communication request destination station execute the second data link command after other station access by the first data link instruction is complete 3 Broadcast Simultaneous broadcast When FFh is designated as the target station number in the control data when executing SEND WRITE SWRITE REQ on the Ethernet the command is sent to all external devices on the network 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION 5 MELSEC Q Example IP address when the command is sent for class B Bit location 31 3029 to 1615 to 0 a 1 I 1 Class Network address i Host address i For the external devices on the Ethernet perform read dump processing locally for the received commands not related to the local station The COM ERR LED indicator of an Ethernet module may turn on and an error code may be stored in the following buffer memory area when a response to a simultaneous broadcast from the Ethernet module is returned from an external device Error code end code area address from E5H 229 These processing are performed automatically with the Ethernet module Interlock when executing the data link instruction a Via Ethernet Execute the data link command when the local station communication request source station Ethernet module is at the following I O signal state X19 X1F er A SEND X19 Initial normal complation signal
121. be deleted during RUN 2 The list of Ethernet module dedicated commands used along with the quote command is described When executing the commands from the FTP client attach the command after the quote command Example When executing the stop command Enter the following in the command prompt quote stop lt ret gt O f t x O i il itt ti H x O pi 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q Programmable controller CPU status Remote password Command Function i During RUN While A Remarks While locked unlocked status Display QCPU operation information stop SetacPutosTOPstte O run setacPutoRunstte O gt o Oe un ha Pa Designates an access target CPU when cpuchg configurating the multiple CPU system or displays the present access target CPU Set display clear QCPU file access keywords O O O O O O O gt a nge Ethernet module FTP server dedicated commands rd is o EN lock unlock to lock am unlock to unlock Some of the commands in the table may not operate as described in this manual depending on the client side FTP application See the manual for the FTP client side external device and confirm the functions and operation methods as well 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 2 File Transferable Range The file transferable range from the external device QCPU with
122. be used File name Max 8 characters Extension Max 3 characters For the extension identifier the name fixed by the ACPU must be used The corresponding file extension is designated as seen in section 5 6 2 See the GX Developer Operating Manual for the details about the file names and extensions When using a FTP operation command which can designate multiple files the files file names and extensions are designated using wild card symbols K Files containing the characters before gt and any set of characters including none replacing the gt are designated Example 1 When designating all files with the QPG extension QPG Example 2 When designating file names which start with MAIN and the extension is QPG MAIN QPG The files containing the text string designated including none replacing with any character including none can be used multiple times Example 1 The letter after MAIN is any character and the extension is QPG MAIN SEQ QPG Example 2 To designate all files whose extension start with QP QP Example 3 To designate all files whose extension start with Q Q97 In the description of the FTP operation commanas the file name indicates both the file name and extension It is recommended to use the following method to treat the file name from the external device e Use the ASCII code characters upper case for the alphabet letters for the file to be written to th
123. cation procedures with SH 080009 external devices line connections open close fixed buffer communication random access buffer 13JL88 communication and troubleshooting Sold separately Q Corresponding Ethernet Interface Module User s Manual Web function SH 080180 13JR40 This manual explains how to use the Web function of the Ethernet module Sold separately Q Corresponding MELSEC Communication Protocol Reference Manual This manual explains the communication methods and control procedures through the MC protocol for SH 080008 the external devices to read and write data from to the programmable controller CPU using the serial 13JF89 communication module Ethernet module Sold separately The Manual s Use and Structure How to use this manual In this manual explanations are given for each special function of the Ethernet modules QJ71E71 100 QJ71E71 B5 and QJ71E71 B2 Please use this manual using the following key items below as a reference 1 To learn about an overview of the special functions e Chapter 1 provides an overview of each of the special functions available for the Ethernet modules 2 To use the e mail transmission reception function and the programmable controller CPU monitoring function e Section 2 2 describes the environment in which e mails can be used Section 2 6 illustrates the screens for parameter settings using GX Developer in order to use the e mail function e Section 2 9 de
124. ccessed 3 End processing of the Ethernet module When ending access to other station with the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function that has been made using a connection opened by user execute the close processing of the connection by seeing Section 5 6 of the User s Manual Basic When the following two functions are used to access other station the close processing is not required e Communication using the data link instructions e Communication with other stations using GX Developer 3 5 Precautions for Accessing Other Stations The following describes precautions when accessing other stations via the Ethernet module using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function 1 The user should make an arrangement so that duplicate Network No s for the Ethernet network system that have already been assigned to the Ethernet modules are not used In addition make sure that the same station numbers for the Ethernet network system as those already assigned to the existing network system mentioned above and other Ethernet are not used 2 Access to other stations using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function is performed using the UDP IP protocol and data is always communicated in binary code See the manual for the CC Link IE controller network MELSECNET H MELSECNET 10 system for the interlock sign
125. ce By user designation with the MRECV instruction the Ethernet module reads the number of remaining receive mails on the mail server and stores this number in the buffer memory When receiving by a PC 5 Mails can be received using applications such as Internet Mail The e mail send reception function by the programmable controller CPU and the communication function using the random access buffer cannot be used together Only one of them can be used at any given time E MAIL FUNCTION 2 USING THE UNCTIO MELSEC Q 2 1 2 Sending e mail using the programmable controller CPU monitor function 1 Monitor function of the programmable controller CPU The monitor function of the programmable controller CPU is used to regularly monitor the status of the programmable controller CPU and device values and send e mail to the designated external device when they match with the notification conditions programmable controller CPU status and device values set by the user Sending e mail using the programmable External device controller CPU monitor function notification setting 1 Ethernet module Portable terminal MRECV device that cannot instruction handle attached files Remarks Subject Binary format Attached Maximum 960 Binary to ASCII conversion Binary to CSV conversion Binary format Maximum 960 Binary to ASCII conversion words words file Main text 1 For the no
126. ce of the target station to turn on one scan D3 when the write is complete Can recognize data of target station has been write from other station OFF Incomplete ON Complete EE TET X Y M L F V B alista idad T C D W ST R ZR das T C D W ST SD SW R ZR For SD SW data can be written within the setting range allowed for the user For details on SD SW refer to the manual for the programmable controller CPU or NW module of the target station ET EIRE nea Se 1 i E 4 Word device bit designation pord device Bit number Local station network number Bit device Word device bit designation 4 Bit device 1 Word device bit designation 4 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Instruction execution timing a When normal completion 1 READ instruction SREAD instruction Sequence scan 0 END H0 END 0 END 70 END l i l l i 1 Read command a ae l l 1 Local station QCPU 1 Read completion device i 0 END Device designated with D2 Read completion device D2 1 device Read data storage device Device designated with D1 Mae te a Set Oe ee tee Ue E eee ed ae earl at ne ont A See Set Aik et Sa ene ewe at eet Sek et het set an tana Somat Soa OS cnc ed Soest ac A I a
127. ce scan E i i l I 1 l l l 1 l Read command ait eo 4a l I Local station ii Read completion QCPU 1 Device designated with D2 I l 1 i Read completion device 1 D2 1 device l l l i Read data storage device Device designated with D1 l AAA ee A ER PS a SR Ethernet module Bi aae te Sate A a al ay a e Poet a RN ti o ace BS ESAS sesso ea Ethernet i module i ri e Se ON eS es A Ey E AS cs ees a ts o OS A E ee A O o o pl N ss a EE ii e ds A a ne a A A DAS ee SN Target station Sequence scan programmable controller CPU Read data storage device Device designated with S 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION 2 ZNWR instruction MELSEC Q Sequence scan 0 END Write command a een ad i l Local station QCPU i Write completion device Device designated with D2 l l 1 l Write completion device OFF D2 1 device Write data storage device 3000 Device designated with S A LA AAA T N E E E E E TO E S E O ee aD tage ge co noe Ethernet i module A a ee ee ee ti ea ga ra do A Se ME E a E Ethernet module ae OP ct A e o AEST EN li paa a a as Sane eri Target station on 0 END F0 END 470 END 0 END H0 END l programmable controller CPU i Write data storage device Device desiganted with D1 1 END 0 END
128. ckage GPP function to product name GX Developer Correction Entire manual change MELSECNET 10H to MELSECNET H Contents About Manuals About the Generic Terms and Abbreviations Chapter 1 entire Section 1 2 POINT Section 2 1 2 5 2 2 6 1 2 6 2 2 7 1 2 7 2 Section 3 2 1 2 3 3 3 4 Section 4 1 4 3 4 5 2 Section 5 1 1 5 2 5 3 5 4 5 5 5 6 1 5 6 1 2 2 5 6 2 5 6 4 Section 6 2 to 6 8 6 9 POINT before the function 6 10 to 6 14 Addition Entire manual add the explanation on MELSECNET H remote I O station Section 4 3 4 Chapter 5 POINT Added the description of the model QJ71E71 100 Ethernet interface module Additional model QJ71E71 100 Correction About Manuals The Manual s Usage and Structure About the Generic Terms and Abbreviations Section 1 1 1 1 2 Section 3 3 2 3 c Section 4 2 5 4 3 3 4 4 Table 4 7 Section 5 4 5 5 c Section 6 2 6 3 6 9 POINT 6 13 Function 6 14 Function Addition Chapter 2 entire Section 5 1 5 6 4 Correction Section 1 2 Section 2 1 2 3 2 4 2 7 2 4 POINT 2 8 Section 4 5 1 3 Chapter 5 POINT Section 5 1 1 5 4 4 5 5 c 2 5 6 4 2 Section 6 5 Additional model QJ71E71 B5 Deleted model QJ71E71 Correction SAFETY PRECAUTIONS Section 1 2 Section 2 6 POINT 2 7 2 8 2 9 Section 3 2 1 2 3 3 Section 4 2 1 4 6 1 Section 5 6 4 Sectio
129. code Main text 7 bits Attached file Base 64 Subject Does not decode Main text Cannot be received When receiving decode Attached file Base 64 7 bits 8 bits Quoted Printable If e mail is sent from the external device to the programmable controller side specify the encoding method Base 64 7 bits 8 bits Quoted Printable of the attached file Encryption No Data size Data transfer method Transmission data Compression No Communication with mail SMTP sending server Port number 25 server POP3 receiving server Port number 110 Microsoft Corporation Internet Explorer 5 0 Outlook Express 5 5 Outlook Express 5 Netscape Communications Corporation Netscape 4 05 Operation check mailer Internet mail terminology list DNS server Server that manages networks SMTP server Server that delivers transfers e mail between mail servers POP3 server Server that transfers received e mail addressed to subscribers to the corresponding subscribers 2 USING THE E MAIL FUNCTION 2 5 Processing Procedure of the E mail Function MELSEC Q The following flowchart illustrates the procedure that is required before sending and receiving e mails When DNS is used When DNS is not used Register the DNS server Register the mail address of the local station s Ethernet module See Section 2 6 1 See Section 2 6 2 When sending receiving e mails usi
130. computer This section explains how to send e mails from a PC UNIX to the Ethernet module Once an environment that is capable of using the Internet through an application program that handles e mail is set up e mail can be created and sent on the New Message screen As for an e mail program that sends e mail to the Ethernet module use a program that can designate the encoding method Base 64 7 bits 8 bits Quoted Printable of attached files e New Message CIF l Send To Mail address of Ethernet module a Subject TESTMAIL eee b Attach 01234567 bin 12 bytes eee d e A c Vi a To Designate the mail address of the Ethernet module b Subject Designate the subject of the e mail to be sent to the Ethernet module in ASCII format c Main text Do not designate data the Ethernet module ignores it d Attach file Data can be sent as an attached file Send the attached file data as binary data x The Ethernet module does not convert the received attached file data from ASCII to binary e Attached file name Designate the name of the attached file using alphanumeric characters It is recommended to use the name within eight characters Designate either bin or asc for the attached file extension The stored data will be received as binary data Designate a single attached file when sending e mail to the Ethernet module If more than one fi
131. ction is incomplete it may cause the module to short circuit catch fire or malfunction e Shut off the external power supply for the system in all phases before connecting the AUI cable e When connecting a cable with connector to the module connect the connector part to the module securely e Make sure to place the communication and power cables to be connected to the module in a duct or fasten them using a clamp If the cables are not placed in a duct or fastened with a clamp their positions may be unstable or moved and they may be pulled inadvertently This may damage the module and the cables or cause the module to malfunction because of faulty cable connections e Tighten the terminal screws using the specified torque If the terminal screws are loose it may cause the module to short circuit malfunction or fall off If the terminal screws are tightened excessively it may damage the screws and cause the module to short circuit malfunction or fall off e When disconnecting the communication and power cables from the module do not pull the cables by hand When disconnecting a cable with a connector hold the connector to the module by hand and pull it out to remove the cable When disconnecting a cable connected to a terminal block loosen the screws on the terminal block first before removing the cable If a cable is pulled while being connected to the module it may cause the module to malfunction or damage the module and the cable e
132. d by the user with GX Developer can be transferred See section 5 6 2 2 File transfers can only be performed to the local station ACPU with the Ethernet module installed Designate an access target CPU if the local station s QCPU is configured as a multiple CPU system 3 When file read write is performed by the file transfer functions while QCPU is running the QCPU s sequence scan time may take longer than when using Ethernet module s other functions and the file read write take a few minutes or longer depending on the file size or sequence scan The file read write processing time may take even longer depending on various conditions such as the Ethernet line load line traffic number of connections used at the same time exchange processing which uses another connection and the system configuration 2 Precautions when starting up the Ethernet module When the QCPU is write protected DIP switch 1 is on file transfers which perform write attribute change file write etc cannot be performed Excluding the Universal model QCPU 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 3 Precautions common to any usage of the file transfer functions a For external device When a time out error occurs during file transfer using the FTP function the FTP function line is closed disconnection regardless of the GX Developer setting When restarting the file transfer perform the log in operation to the Ethernet
133. designated in 3 Sends data as the main text of e mail in ASCII code format It is not necessary to designate items 3 and 4 when this setting is used 3 Attached file format Sends the attached file in binary format The Ethernet module sends the attached file as they are with the code currently in use Binary to ASCII conversion is not performed Sends the attached file in ASCII format ASCII format a The Ethernet module converts the attached file from binary to ASCII Sends the attached file in CSV format CSV format y f The Ethernet module converts the attached file from binary to CSV 4 Attached file name Designate the name of an attached file If a file name is not designated the Ethernet module automatically names it and sends the file named mmddhhss month date hour minute same as for e mail sending Send text mail Binary format 5 PLC inquiry interval Designate the interval for the Ethernet module to read the CPU status and device values from the programmable controller CPU The user can designate any inquiry time interval time within the ranges shown below Setting range default 5 min 1 to 24 1 to 1440 30 to 3600 6 Input format of inspection value Select the input format decimal hexadecimal of the monitoring value 2 ING THE E MAIL FUNCTION La 2 MELSEC Q 7 Condition device Designate the device to be monitored 1 A maximum of 16 devices can be monitor
134. device to request log in file transfer to the Ethernet module in order to use the FTP server function of the Ethernet module If the FTP log in name is changed and invalid characters are entered QJ71E71 is set as the log in name If the password is changed and invalid characters are entered QJ71E71 is set as the password Command input monitoring timer address 3BAH Default value 1800 0708H 15 min a b c Set the monitoring time for the Ethernet module to monitor the command input time from the FTP client when it operates as the FTP server It is recommended to use the default value for this timer value as much as possible When changing the setting value determine the command input monitoring timer value upon consulting the administrator of the external device or system Designate the setting value in the range of lt 1H to 7FFFH 1 to 32767 gt 15 min at the default value of 1800 The FTP connection is disconnected if there is no command input from the FTP client side within the time designated by the command input monitoring timer value after the FTP client log in When restarting the file transfer start over from the log in operation again PLC monitoring timer address 3BBhH Default value 10 DOOAH 5 s a b c Set the monitoring time for the Ethernet module to monitor the operation of the local station s QCPU when the Ethernet module is operating as the FTP server It is
135. dition J ZNWR JP ZNWR Setting data MELSEC Q This instruction writes data to word devices of other stations ACPU Applicable device Set maderas Link direct device Intelligent ata File register JOO function module x Can only use T C D W Command TL HI Command JP ZNWR Description Target station network number Designates the network number of the target station Target station number Designates the station number of the target station J ZNWR Setting range 1 to 239 1 to 64 Constant The station with the corresponding station number 81H to 89h All stations having the designated group number FFu All stations having the target network number Set by Data type o Continued to the next page DEDICATED INSTRUCTION SESLE MELSEC Q Setting data DN Description O Setting range Set by Data type Data written storage head device target station D1 Designate the head device of the target station to which data is written gt 3 Device name Data written storage head device local station Designate the head device of the local station that stores the data to be written When writing to Q QnA AnUCPU Length of data written 1 to 230 Constant n2 Designates the number of data word count to When writing to programmable User Binary 16 bits be written controller CPU
136. dress open 192 0 1 254 To connect to the FTP server by designating the host name and user name open HOST QJ71E71 To connect to the FTP server by designating the host name user name and password open HOST QJ71E71 QJ71E71 Normally the connection can be established by designating the FTP server IP address during FTP startup When designating the domain name the DNS environment must be set using the network parameters on the FTP client side The password entered from the keyboard is not displayed on the screen Writes a file to the QCPU put TRANSFER SOURCE FILE PATH transfer destination file path name To write the file MAINSEQ1 QPG to the RAM area of memory card with same file name put MAINSEQ1 QPG 1 MAINSEQ1 QPG To write the file MAINSEQ QPG file to the RAM area of memory card with different file name put MAINSEQ OPG 1 MAINSEQ1 QPG e When the directory is not designated for the transfer source file path FTP client the file is written to the connected current directory at FTP server startup connection When the transfer destination file path FTP server side is not designated the file is stored to the memory where the parameter file used for the current QCPU operation is stored See sections 5 5 and 5 6 1 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER pwd Function Designation format Caution quit Function Designation format Same function quote Function Desi
137. dule Index register Zn so o sa o o K H device UDIGD i Instruction Executing symbol condition Command ZP MSEND ZP MSEND Un S1 S2 D 1 1 If the originating station is a Basic model QCPU function version B or later or Universal model QCPU double quotation of the first argument can be omitted Set data Set data Description Set by Data eE Un Un Start I O signal of the local station s Ethernet module 00 to FEn The higher 2 digits of the 3 digit I O signal S1 Head device of the local station that stores the control data Head device of the local station that stores the contents of the e mail e Use Device name User sugar 161 16 bits S2 NS be sent Subject attached file or Subject main text Local station device that is turned on for one scan by the completion of D the instruction System Bit D 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data The MSEND instruction can be executed only when the local station is QCPU The number of steps for the MSEND instruction is 10 DEDICATED INSTRUCTION oe MELSEC Q Control data Set data Setting range Set by b15 tob12 to 0 1 Complete type bit 7 Designate whether or not the setting of the clock data is required at abnormal completion 0
138. e Ethernet Un Read data storage head device local station D1 Designate the head device of the local station that stores Word device a the data to read Read completion device local station Designate the device of the local station to turn on one 1 Bit device D2 scan when the read is complete Word device bit designation l OFF Incomplete ON Complete OFF Normal ON Abnormal Read notify device target station Designate the device of the target station to turn on one 03 scan when the read is complete Bit even 1 l oe i Can recognize data of target station has been read from Word device bit designation other station OFF Incomplete ON Complete 2 Word device ERLT T ETA TE T C D W ST R ZR 3 Word device a T C D W ST SD SW R ZR 4 Word device bit designation Word device Bit number b WRITE SWRITE instructions Network number designation Write command JKE 4 Execution JP WRITE S1 S2 D1 D2 during startup Write command JP E k Execution JP SWRITE Jn S1 S2 D1 D2 D3 during startup 42 Network module Ethernet module start I O signal designation Write command GP Execution i HH GP WRITE Un S1 S2 D1 D2 during startup Write command GP Execution i 6n Tea Ten ea os H siting startup 4 2 K1 The SWRITE instruction can be programmed without argument D3
139. e FTP server Do not change the file name for the file read from the QCPU Each memory for QCPU does not have any sub directories Each file is stored in the root directory 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 3 Attributes The following is designated when changing the attributes of the file stored in the QCPU drive to be transferred r Read Only gt w read write enabled See the quote change command in section 5 6 4 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 6 2 QCPU user file list The user created files files that are can be created by the user with GX Developer that can be designated for file transfer are described below Drive that can store the file Type File type File identifier ial REA 5 6 1 Remarks eee Sequence program 1 SFC program Device comments Ex For device File registers 08 e Local device For debugging Sampling trace data ESET For diagnosis _ Error log data amo x o O Can be stored x Cannot be stored x1 A password can be registered in program files device comment files and device initial value files of the designated memory program memory standard ROM memory card See the QCPU Q mode User s Manual Function Explanation Program Fundamentals for details on the password 1 Each memory for QCPU does not have any sub directories The files are all stored in the root directory 2 See the QCPU User s
140. e abnormal completion signal D2 1 turns on and the error code is stored in the completion status S 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic TION 6 DEDICATED INSTRUCTIONS MELSEC Q Program example The following example shows a program that receives e mails This program performs e mail reception processing using the receive command X21 When 1l O signals of the Ethernet module are X Y00 to X Y1F X21 _ _ _ SET N60 Y M60 U0 G9858 F Designate to make inquiry J y HA PA s to the server o KO D2 Designate to read the head mail movP KO D9 Y Designate to adjust to the data length of the receive mail movr Ko D10 J Designate to adjust to the header data length of the receive mail P MRECV UO DO D100 MO Y Read receive mails RST N60 Y M m Parea dale sac a a ia 1 ran Processing program when normal completion MI PERA A A eee eg Se A din Processing program when abnormal completion 6 DEDICATED INSTRUCTIONS MELSEC Q 6 3 ZP MSEND This instruction sends e mails Applicable device Set Link direct device Intelligent Internal device f gt Constant data File register JOO function mo
141. e at aten tom when data read __ station from which data is read a Device name D1 Head device of the local station that stores data read device of the local station that stores data read Local station device that is turned on for one scan by the completion of D2 the instruction System D2 1 is turned on if the instruction execution completes abnormally Bit D3 Device of the target station that is turned on for one scan by completion of the instruction Read notification device The local devices and the file register for each program cannot be used as devices used in setting data DEDICATED INSTRUCTION 6 C STRUCTIONS MELSEC Q 1 The SREAD instruction can be executed only when the target station is Q QnACPU The SREAD instruction cannot be executed for an ACPU connected to the MELSECNET 10 or Ethernet network systems Thus the target station numbers should be limited to Q QnACPU station numbers When reading data from the other station CPU module device with the SREAD instruction specify the device within the range applicable to the host station CPU module Head device number to be read in other station CPU module S2 number of read points 1 lt last device number of host station CPU module gt Last device number in host station CPU module having the same device name as S2 Use the file register ZR when specifying the expansion data register D or the expansion link register W that are
142. e following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic 6 DEDICATED INSTRUCTIONS Program example MELSEC Q The following example shows a program that writes the data stored in D300 to 303 to D50 to 53 of station number 3 When I O signals of the Ethernet module are X Y40 to X Y5F DO D2 D3 D4 D5 D7 D8 Dg D300 D301 D302 D303 M100 X20 At Mov HBt Control data setting command HOV K6 Hoy HO Hoy K20 Hoy K3 Woy K5 Woy K20 Hoy Ka x21 a At TOV K10 Write data setting command yoy K20 Hoy K30 How K40 X22 X59 Y AZ R P SWRITE J20 DO D300 D50 M60 Write command meo A a tee 1 Processing program on write completion M61 Pe Ne T A a ee aati r g Processing program on normal completion 4 vel Processing program on abnormal 1 completion i mov 01 With arrival confirmation clock data setting required Channel used by local station Target station s CPU type target CPU Target statio n network number Target station number Number of resend Arrival monitoring time 20 s Write data length 4 words y gt Write data Performs err
143. e i E processing is executed i on receive mails remaining on immediately Do not read E when there are no mails the mail server after the time set Mails tend to accumulate on the on the mail server in a GX Developer parameter mail server has elapsed Execute the read processing of e mails from the mail server After executing the MRECV E Inquiries to the mail server are instruction the inquiry read Receive mails stored on more frequent Inquire Read processing of information on the mail server can be f Ls More processing in the module receive mails remaining on the read in succession f f affects other internal processing mail server is also executed Inquire whether or not mails are received immediately x3 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic Functions 1 This instruction reads receive mails from the mail server CPU module Ethernet module Mail server Destination mail address Buffer memory MRECV Un S ma Header Header Subject etc Attached file x Main text Attached file i DEDICATED INSTRUCTION a MELSEC Q 2 Ifa received e mail contains data exceeding the reception data length S 9 designated in the control data of the MRECV instruction only the data equivalent to the designated reception data length
144. e link special relay 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 3 Program example Station 3 uses channel 3 with an SEND instruction and sends data to station 15 using channel 5 When data is received at station 15 data is read from channel 5 Q QnACPU E71 station3 E71 station 15 Q QnACPU Channel 1 Channel 1 _ Channel 2 H SEND L Channel3 HHRECV Channel 4 Channel 4 5 Network No 7 5 a Station 3 program SEND instruction When I O signals of Ethernet module are X Y00 to X Y1F x20 m ov m bo With arrival confirmation Control clock data setting required data setting command rn io meee D2 Local station usage channel mov KS Da Target station storage channel o K7 D4 Target station network number o K5 D5 Target station number q __Q AAA OS D7 Number of resend Janno 20 D8 Delivery monitoring time 20 s __ _ ____ MAL q _ammm MN Mb D9 Send data length 4 words Ho K10 D100 setting command tov K20 D101 Send data b gt for 0 D102 kov K40 D103 X22 X19 a l pr SEND 37 DO D100 MO X19 Initial normal completion command signal M1 h i Mi Processing program when abnormal i completion MOV D1 D200 F Performs error code reading etc 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INST
145. eas 5 5 5 4 Procedure and Required Processing on the External Device Side FTP Client eee eeeeeeeneee 5 7 5 5 Precautions when Using the File Transfer Functions 0 0 0 0 eeececeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeesaeeeateas 5 12 DO ETP COmimeands s eree A geveddactestiatseesicisdeviaali enacts deta entedisdenadaddls E 5 16 9 6 1 File designation method she ne dai aii nana aie anama iia sa 5 16 5 6 2 QGPU user Tile lists aa Boek pads tales whee ed gadget oes dae pac tai she ae pace pei tee ed pads elena 5 19 D073 RESPONSE COJES a cite eee ea oath ee ee ea ata eee Sete coaster etree 5 20 5 6 4 FTP operation command 1 ccscceeecceeeeeeeeeceeneeeeaeeecaeeeeaaeeseaeeceaeeseaeeesaceesaeeecaeeecaeeeseeeseaeeeseessieeees 5 21 6 1 Dedicated Instruction List and Available Devices 00 0 eee eceeeeeneeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeatenas 6 1 2 Z MIRE GN a a ce ae ee ee oe a anes a oe eee 6 3 6 37 ZP MSEND A e 6 8 6 4 JPIGP READ ws ecient Sneed Shee ieee Sie ieee ee 6 13 6 5 JP GP RECV for the Main Program ecccesceeceeeeeeeeeneeeeeeeeeaeeeaeecaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeateaeeeaeeeas 6 19 6 6 Z RECVS for Interrupt Programs ecceeceeeeeeeeeeeeeeeeeeeeaeeeaeeeaeseaeeeaeeeaeeeaeeeaeeeaeecaeeeaeesaeeeaeeaeeeaeeeatenas 6 24 6 7 J P G P REQ Remote RUN STOP 2 c ccecceceeseeececeseeceeceeeceeaesaesaeeaeeaecaecaeeeaeeaesaeseeeeaesaesaeseneeaeeates 6 28 6 8 J P G P REQ Cloc
146. ed 2 Itis possible to designate devices that can be accessed for communication using the MC protocol directly as condition devices see the Reference Manual In this case Timer Retentive timer and Counter should be designated by T ST or C The following devices cannot be designated Step relay S e Direct input DX Direct output DY e Index qualification e Indirect designation 3 After completion of the news setting the system will rearrange the condition devices in the order word devices first and then bit devices Display the news setting screen again to confirm the condition device settings 8 Condition for inspection Designate the news conditions to monitor the devices of the programmable controller CPU The following table lists the comparison conditions for the designated device No conditional settings Character String For each monitoring Selectable when Send text mail and Word device are send set for Send method and Condition device respectively Device value monitoring value When the monitoring device value and the value set by the user are the same Device value monitoring value When the monitoring device value and the value set by the user are different y When the monitoring device value is equal to or less than the value set by the Device value lt monitoring value unsigned SHE Device value lt monitoring value unsigned When the monitoring device value is less
147. ed online If any of the dedicated instructions is executed offline no error will occur but the execution of the dedicated instruction will not be completed When accessing another station via an Ethernet module using a data link instruction set the following parameters Refer to Section 3 3 e Station No lt gt IP information settings e Routing parameter settings 2 Available devices The following devices are available for the dedicated instructions Internal devices f f 2 Eq File register Constant XY MLFVB TST C DW x1 Word device bit designation can be used as bit data Word device bit designation is done by designating Word device Bit No Designation of bit numbers is done in hexadecimal For example bit 10 of DO is designated as DO A However there can be no bit designation for timers T retentive timers ST and counters C x2 Available devices are given in each of the Constant field DEDICATED INSTRUCTION oe MELSEC Q 6 2 ZP MRECV This instruction reads received e mails Applicable device Set i Link direct device Intelligent Internal device f i 3 Constant data File register JOO function module Index register Zn O K H device UGO i Instruction Executing symbol condition Command ZP MRECV o r MRECV Un 1 1 If the originating station is a Basic model QCPU function version B or later or Universal model QCPU double q
148. eing executed by the program memory drive name 0 The attribute changing is possible between read only file and read write enabled file e See sections 5 5 and 5 6 1 The file attributes designated using the quote change command are explained When changing the attribute of the file for file transfer designate the attribute after the change The attributes are for changing the file to read only or read write enabled file The attribute can be changed to the following for the files stored in the QCPU memory using this command r read only gt w read write enabled An user created file has the read write attribute if it has not been changed 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q cpuchg Ethernet module s dedicated command Function This command designates an access target CPU with a multiple CPU system configuration Alternatively it displays the current access target CPU Designation format quote cpuchg access target CPU Access target CPU Designate the CPU to which file access is to be performed quote cpuchg Checks the current access target CPU quote cpuchg controlPLC Designates the control CPU as the access target CPU When the command is successfully completed the execution result is displayed as follows When setting the access target CPU 200 Command Okey When displaying the access target CPU 200 Target cpu is access target CPU If the designated access target
149. em 1 The automatic response system differs from the other convert format in that designations can only be made when the Ethernet module installed station is the communication request destination station or communication relay receiving station 2 The partner station IP Address or port number setting are not necessary with this conversion method making the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication performed easily Communication request source station Ethernet Communication relay receiving station Communication relay sending station Ethernet Communication request destination station E71 Communication relay station Communication relay receiving ma A Communication Previous station request message eo i a a i Next Response I 1 message de i station Pogrammable Communication _ controller CPU ie relay sending station b Convert format of Automatic response system 1 When the Ethernet module receives other station access communication request message command frame from the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function the send source Network No IP address and UDP port number in the request message are stored internally The response message response for the communication request message is returned to the destination IP address and UDP port number
150. end mail address setting with GX Developer 1 to 16 The setting number of the destination external device S1 3to S1 8 System area ms a ee ee et Designate the data length Subject attached file or Subject main text of the e mail stored in S2 0 to S2 n 1 When sending data as an attached file Subject 0 to 373 attached file 1 to 6144 1to 6517 S1 9 Send data length 1 to 6517 The data length of e mail words a 2 When sending data as the main text 1 to 1333 Subject 0 to 373 Main text 1 to 960 1 to 1333 The data length of e mail words Designate the data length of the Subject of the e mail stored in S1 10 Subject length S2 0 to S2 n 0 to 373 User 0 to 373 The data length of the Subject words This stores the valid invalid status of the clock data in S1 12 to S1 15 S1 11 Clock set flag SS ieee System 1 Valid Higher 8 bits month 01u to 12h lower 8 bits last 2 digits of year 00H to 99x Higher 8 bits hour 00 to 231 Clock data lower 8 bits date 01H to 314 set only when abnormal Higher 8 bits second 00 to 59x lower 8 bits minute 00x to 59x Higher 8 bits first 2 digits of year 00s to 99x lower 8 bits day of the week 00 Sunday to 06x Saturday DEDICATED INSTRUCTION E ne MELSEC Q Send data Set data Setting range Set by S2 0 to Send data S2 n Designate the contents of e mail Subject attached Refer to the file
151. erlock circuit in the sequence program and determine corrective actions to be taken between the external device and CPU module in case of a communication failure Design Precautions lt DANGER e 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 A 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 changing the operating status of the programmable controller CPU such as remote RUN STOP from the external device select Always wait for OPEN Communication possible at STOP time for the Initial timing setting in the network parameter The communication line will be closed when Do not wait for OPEN Communications impossible at STOP time is selected and the remote STOP is executed from the external device Consequently the programmable controller CPU cannot reopen the communication line and the external device cannot execute the remote RUN Installation Precautions lt DANGER e Use the programmable controller
152. erms and abbreviations to describe the Model QJ71E71 100 QJ71E71 B5 and QJ71E71 B2 Ethernet interface modules unless otherwise specified ACPU Generic term for ANNCPU AnACPU and AnUCPU AnACPU Generic term for A2ACPU A2ACPU S1 A2ZACPUP21 R21 AZACPUP21 R21 S1 A3ACPU A3SACPUP21 R21 AnNCPU Generic term for AINCPU A NCPUP21 R21 A2NCPU A2NCPU S1 A2NCPUP21 R21 A2NCPUP21 R21 S51 A3NCPU A3NCPUP21 R21 AnUCPU Generic term for A2UCPU AZUCPU S1 A2ZASCPU AZASCPU S1 ASUCPU A4UCPU BUFRCV Abbreviation for ZP BUFRCV BUFRCVS Abbreviation for Z BUFRCVS BUFSND Abbreviation for ZP BUFSND CLOSE Abbreviation for ZP CLOSE ERRCLR Abbreviation for ZP ERRCLR ERRRD Ethernet Address Ethernet module E71 module Ethernet network system GX Developer MELSECNET 10 MELSECNET H MRECV MSEND Network module N W module Opossit device External device Personal computer Basic model QCPU High Performance model QCPU Process CPU Abbreviation for ZP ERRRD A machine specific address that is also referred to as the MAC Media Access Control address This is used to identify the addresses of external devices over a network The Ethernet address of the Ethernet module can be verified on the MAC ADD column of the rating plate Abbreviation for Model QJ71E71 100 QJ71E71 B5 and QJ71E71 B2 Ethernet Interface Modules Indicated as the Ethernet module or E71 in the diagrams Abbreviation for 10BASE2 10BASE5 10BASE T
153. ersion method used by the Ethernet module Ethernet Mail module Su ae server ubjec ncode gt ASCII data gt binary data Base64 7bit o binary data g Main text X Encode 5 ibinarydatay PSP Rp 3 3 binary data Attached file ASCII data Encode binary data gt F Base64 CSV data 2 ING THE E MAIL FUNCTION eee MELSEC Q 3 Flow of the e mail The diagram shown below illustrates the flow of e mails from the local station s Ethernet module to the external device after the monitor values match with the news conditions Programmable controller CPU Ethernet module Status 1 Read monitoring i information Device value ON sh 2 Check news i conditions Maii server i No match di External 4 device 3 Send mail oo 1 Reads the monitoring information such as status and device values of the programmable controller CPU 2 Checks whether the monitoring information read and the news conditions set by the user match Checks match mismatch of the news conditions 3 Sends an e mail when the monitored values match with the news conditions x Multiple news conditions may be set so that an e mail can be sent notified when any of the conditions matches See Section 2 9 1 Set the CPU inquiry time interval used by the Ethernet module to monitor the programmable controller CPU considering the interval of change time in the m
154. et 1234 Designation example 2 To display the password currently set in the Ethernet module quote keyword set Designation example 3 To clear the password currently set in the Ethernet module quote keyword set as 2 3 If a password is registered in the target file for file transfer set the password in the Ethernet module prior to file transfer Designating the password registered in the QCPU target file enables QCPU file operation One password can be set in the Ethernet module If the target file for file transfer changes and a password is registered in the file which is at the changed destination reset the password for the new target file in the Ethernet module When logging into the Ethernet module from the external device the password set in the Ethernet module changes to e k x x clear Caution 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q The password designated using the quote keyword set command is explained 1 If a password is registered in the target file for file transfer use this command to set the password in the Ethernet module after logging into the Ethernet module prior to file transfer 2 The password is used so that the QCPU can allow prohibit access to the target file from outside The password for file access to the QCPU is registered with the GX Developer The password designated by this command is for operations with the Ethernet module The user designates the same
155. et station network number ow 3 DS y Target station number MOV K5 D7 Number of resend MOV K20 v8 Arrival monitoring time 20 s Mov 3 D9 Request data length i 3 words MOV H10 D20 Request type Request data setting command MOV 82 D21 Subrequest type ho m D22 Forced execution not performed X22 X19 yia YY s E DO D20 D30 MO X19 Initial normal completion ae signal 10 Processing program when instruction 1 completion i Processing program when abnormal 1 l l J completion Read error code etc 1 _ MOV D1 D100 F DEDICATED INSTRUCTION SLS MELSEC Q 6 8 J P G P REQ Clock Data Read Write This instruction reads writes clock data from to other stations See Section 6 7 for the following information on the REQ instruction for reading writing clock data from to other stations Since the same explanation as when executing remote RUN STOP operations using the REQ instruction applies in this case the explanation of these items is omitted in this section Instruction format Devices that can be used with the instruction Control data in the setting data Functions Error Request data All items marked with are set by the user Clock data Clock data Device Item Set data read write 0001 Clock data read 0011 Clock data write When station No is specified in S2 Request type S1 5 0031H Clock data write When all stations or a group is specified in S1 5 0002 Clock data read S2
156. et station number Number of resend Arrival monitoring time 20 s Request data length 6 words Request type Subrequest type Change pattern Hour minute 8 30 Second 00s X19 Initial normal completion signal Read error code etc 6 DEDICATED INSTRUCTIONS MELSEC Q 6 9 JP GP SEND This instruction sends data to other station s Q QnACPU Applicable device Link direct device Intelligent Internal device y Index register Constant File register JOO function module Others S1 S2 ma device UD GO 2 Instruction Executing symbol condition Command PEE r SEND S1 S2 Command o GP SEND st S2 Setting data Set data Description Set by Data type Network number of the local station 1 to 239 254 Jn 254 The network designated by the valid module during other station Binary 16 bits access User Start I O signal of the local station s Ethernet module ae oe Character Character 00 to FEn The higher 2 digits of the 3 digit I O signal S1 Head device of the local station that stores the control data ES Device name S2 Head device of the local station that stores the send data aa Local station device that is turned on for one scan by the completion of NES D the instruction System Bit D 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting da
157. gnates the target network number and target station number of a station connected to a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system in the control data and reads the data of designated word devices of that station When reading the device data is completed the completion device designated by D2 turns on Local station Response station QCPU Ethernet module Q QnACPU Ethernet module D1 Channel 1 S2 READ Channeln je Channel 8 2 3 4 Ethernet Device data can be read from stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated numbers in addition to stations connected to the local station s network The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction Whether the READ instruction is being executed or has been completed normally or abnormally can be checked with the completion device D2 or completion status display flag D2 1 designated in the set data a Comp
158. gnation format Designation example Caution rename Function Designation format Designation example Caution user Function Designation format Designation example 1 Designation example 2 Caution MELSEC Q Displays the QCPU current directory pwd The QCPU disks do not have any sub directories and the files are stored in the root directory Therefore is displayed as the execution result of the pwd command Disconnects the connection to the FTP server and ends FTP quit bye Sends the FTP server subcommand Ethernet module dedicated command quote Ethernet module DEDICATED COMMAND Ethernet module dedicated command See 2 quote status Only the Ethernet module dedicated command shown in 2 can be designated directly after the quote command Changes the QCPU file name rename FILE PATH BEFORE CHANGE FILE PATH AFTER CHANGE abbreviated as ren To change the file name of the file stored in the RAM of memory card rename 1 MAINSEQ1 QPG 1 SEQ1OLD QPG Upon normal completion either of the following response codes is shown 350 Need more info 250 Rename successful See sections 5 5 and 5 6 1 Enter the user name and password for the connected FTP server User User name Password User name FTP log in name set during Ethernet module FTP parameter setting Password Password set during Ethernet module FTP parameter setting See sections 5 3 for the FT
159. hange system a Overview of the table exchange system 1 This method uses the Network No station number and IP address set in the conversion table of the Station No lt gt IP information and uses the UDP port number predefined for the Ethernet module system as the UDP port number of the destination If duplicate network and station numbers are set in the conversion table the data set with the younger registration number is used If all the required values are not set communication may not be performed successfully b Conversion processing of the table exchange system 1 When a communication request message command frame to access other station is received the same Network No and station number are searched in the conversion table of the Station No lt gt IP information and the communication request message is sent to the partner station with the corresponding IP address The response message response for the communication request message is returned based on the return IP address and the data in the conversion table above c Designation example Shown on the next page 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q Setting example 1 Communication request source station 222222222222222 Network No 21 acru E71 Station No 011 i IP Address 192 0 1 11 Ethernet Network No 1 2 Communication relay 3 Comm
160. he attached file of the MSEND instruction will be sent in the designated format 1 When binary format is designated The name of the attached file is mmddhhss bin system date bin mm month dd day hh hour ss minute 2 When ASCII format is designated The name of the attached file is mmddhhss asc system date asc mm month dd day hh hour ss minute 3 When CSV format is designated The name of the attached file is mmddhhss csv system date csv mm month dd day hh hour ss minute For details on how to receive e mails see 4 on page 2 17 The system date for the file name is the data managed by the programmable controller of the station in which the Ethernet module is installed MAIL FUNCTION 2 USING THE E MAIL FUNCTIO MELSEC Q 4 Receiving by a personal computer The following explains how a PC UNIX receives e mails sent from the Ethernet module After setting an environment for using the Internet with application software that processes e mails e mails can be received on a receive message screen as shown below Example The following shows an example of the reception of e mail sent using the MSEND instruction see 3 The screen display shows is that of Microsoft Corporation s Outlook Express 5 No 1 testmail msend Ela ES File Edit View Tools Message Help lo Ge g SD xX a Reply Reply All Forward Print Delete Previous Next Addresses From Mail address of Ethernet module e a Date To Mai
161. he condition device that stores the news data is set when the news condition is satisfied When the CPU monitoring condition shown in 1 is No setting GX Developer automatically sets the condition device so the user does not need to set it 11 Notif data points News points Designate how many devices should be read number of points read from the devices designated in 10 above a The number of device points that can be sent at a time is calculated as follows Word device points x 2 bit device points 8 round up lt 1920 1 Designate the settings so that the total number of points satisfies the equation above when multiple news conditions are satisfied when monitoring multiple condition devices 2 When multiple bit devices are to be designated be aware of following e One device occupies 16 device points 2 ING THE E MAIL FUNCTION 2 el MELSEC Q 2 9 2 Receiving a news e mail The designated external device side can open the news e mail from the Ethernet module in the same way as opening a mail received from the programmable controller CPU 1 When monitoring the CPU status a When the result of the CPU status monitoring matches the monitoring condition the Subject will be sent The attached file or main text will not be sent b The following shows the contents for the Subject sent No kxk ok Status kk Time yyyy mm dd hh mm ss No of transmissions 1 CPU model name Status Detection time Se
162. he following screens of GX Developer 1 Network Parameters Ethernet Interrupt Settings screen Set the control number SI on the Ethernet module side when an interrupt request is made to the programmable controller CPU from the Ethernet module 2 Intelligent function module interrupt pointer setting screen Associate the control number SI set in the Ethernet Interrupt Settings above with the interrupt pointer Ixx used in the sequence program The settings on the two screens above are the same as when received data is read by an interrupt program in the fixed buffer communication For details on the settings and setting method on these screens see Section 7 3 2 of the User s Manual Basic 1 In order to start an interrupt program the following settings with GX Developer and interrupt enable by the sequence program must be required e Network parameters Ethernet interrupt settings and Intelligent function module interrupt pointer settings with GX Developer e Create interrupt enable disable programs in the main program in order to start an interrupt program Use the El DI and IMASK instructions for this 2 In cases where receive data is read on the same channel the main program for reading receive data and the interrupt program for reading receive data can not be used together Please use either program to read receive data gt In order to read receive data with the interrupt program when the setting corresponds to
163. hen normal completion LA WE I eee gt 1 A A ESA 4 When an error occurs while sending e mail from the sending mail server to an external device an error code is stored in the receiving error log area 2 USING THE E MAIL FUNCTION MELSEC Q x1 The following shows the transmission format of the attached file designated in the control data of the MSEND instruction For more details on the binary format ASCII format CSV format designation see the MSEND Instruction in Chapter 6 Dedicated Instructions Complete type Designate the transmission format of the attached file Setting values for designating the attached file transmission format Format set Applicable station Description of processing b11 EEE Sends the attached file in binary format 0 nay Ethernet module bi ES in Sends the attached file in ASCII format ASCII PC UNIX The Ethernet module converts the attached file from binary to ASCII asc Sends the attached file in CSV format CSV PC UNIX The Ethernet module converts the attached file from binary to CSV csv a Designate binary format when communicating between Ethernet modules The attached file of the MSEND instruction will be sent as is The name of the attached file is mmddhhss bin system date bin mm Month dd Date hh Hour ss minute b Designate either binary format ASCII format or CSV format when a PC UNIX receives e mail sent from an Ethernet module T
164. iD Sol a a e e ee Eo E A A ei E e e SSS E N SS iz a Target station error 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 3 Instruction examples a A program that writes the clock data 8 30 00 to the Q QnACPU of station number 13 using network number 7 When I O signals of the Ethernet module are X Y00 to X Y1F Station No 1 Station No 13 QCPU E71 Q QnACPU E71 REQ instruction REQ instruction communication PAS a communication request i i request destination Channel station source station e A E etwork No 7 X20 a ee H91 DO Clock data setting required Control data setting command mov K D2 Channel used by the local station HOY ASPE D3 Target station s CPU type target CPU MOV K7 D4 Target station network number ov K13 DS Target station number Mov K5 D7 Number of resend o K20 D8 Arrival monitoring time 20 s _ lt lt A lt aA lt A ti K6 D9 Request data length 6 words X21 MOV H11 D20 Request type Request data setting command MOV HL D21 Subrequest type MOV H38 D22 Change pattern ov H3008 D24 Hour minute 8 30 MOV El D25 Second 00s x22 x19 ni r BR tir DO D20 D30 Mo X19 Initial normal completion Writ 4 conlland signal no Processing program on instruction Processing program on abnormal completion f mov D1 Do0
165. ient side with the same file name The destination is the connected current directory of the FTP startup connection See sections 5 5 and 5 6 1 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q mis Function Stores file names of the files stored in the QCPU in a file on the FTP client side as log data Designation format mls transfer source drive name transfer destination file path name Designation example 1 To store the file names of the files stored in the RAM area of memory card to the file S990901F LOG mis 11 S990901F LOG Designation example 2 To store the file names of the files in the memory where the parameter file used for the current operation of QCPU is stored to the file S990901F LOG mis 1 S990901F LOG Caution e Always designate directly after the drive name of the transfer source When designating the transfer destination file path FTP client side always designate the transfer source drive name When the transfer destination file path is not designated the file name set by the FTP application on the FTP client side is used to store the file e The transfer destination is the connected current directory of the FTP startup connection Similar function mdir 0 mput Function Writes a file to the QCPU When writing multiple files the file name and extension are designated using wild cards or When writing multiple files the send confirmation is performed for each f
166. if the mode of S2 2 is Do not force execution 0001H 4 If the Q QnACPU of the target station for which a remote STOP operation has been executed is reset the information of the remote STOP is erased 5 The clear mode S2 3 designates how the clear initialization processing of the Q QnACPU device memory should be performed when the Q QnACPU starts performing calculations after a remote RUN request has been issued to it The Q QnACPU executes the designated clear and then goes into the RUN status according to the parameter settings PLC file Initial Device value Functions 1 This instruction sends the request data designated by S2 of the local station to the station connected to a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system which is designated with the network number and station number in the control data and makes a service request When the request to the target station is completed the completion device designated with D2 turns on Local station Response station QCPU Ethernet module Q QnACPU Ethernet module S2 Channel 1 RUN STOP REQ Channel n Clock data lt reads writes Channel 8 Ethernet 2 Device data can be sent from stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated numbers in addition to stations connected t
167. il msend D200 Designate subject MOVP H1234 D207 Designate the attached file MOVP H5678 D208 MOVP HOABC D209 ZP MSEND uo D20 D200 M10 Send the e mail M10 M11 AE AT 7 2 When sending e mail as main text This program performs e mail transmission processing using the send command X20 When the I O signals of the Ethernet module are X Y00 to X Y1F x20 l nn TI 1000 D20 y Designate main text as the send data format wove KI D22 Designates the send destination number WOVP K6 D29 J Designate the send data length _ o K D30 Designate the subject length MOVP testmail msend D200 3 Designate Subject HH 840 VP Error Machine 001 D207 J Designate the main text ZP MSEND uo D20 D200 mo Send the e mail mo O iia r Processing program when normal completion i 6 DEDICATED INSTRUCTIONS MELSEC Q 6 4 JP GP READ This instruction reads data from word devices of other stations Applicable device Set i Link direct device Intelligent Internal device f i Constant a File register JOO function module Index register Zn KHS device UM GO O x1 T C D W ST SD or SW can be used Instruction Executing symbol condition Command JP READ JP READ Jn S1 S2 D1 D2 Command GP READ o GP READ Un s1 S2 01 02 The following format is applicable only when the local station is
168. ile transfer Designation format mput TRANSFER source file path Designation example When writing all files with extension QPG mput QPG Caution e The transfer destination is the memory where the parameter file used for the current operation of QCPU is stored The destination file name is the same as the file name on the FTP client side See sections 5 5 and 5 6 1 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER open Function Designation format Designation example 1 Designation example 2 Designation example 3 Designation example 4 Caution put Function Designation format Designation example 1 Designation example 2 Caution MELSEC Q Connects to the FTP server by designating the host name or IP address for the FTP server along with the FTP log in name and password FTP server host name is displayed while connected to the server open HOST NAME username password open IP ADDRESS username password Host name Host name domain name or synonym of the host name IP address IP address for Ethernet module designated within brackets User name FTP log in name set during Ethernet module initial processing Password Password set during Ethernet module initial processing See section 5 3 for the FTP log in name and password To connect to the FTP server by designating the host name open HOST To connect to the FTP server by designating the IP ad
169. ils can be sent to programmable controller CPU stations in which Q series Ethernet modules are installed Since the conventional A QnA series Ethernet modules do not have the e mail function e mails cannot be sent to those programmable controller CPU stations To send files to the Ethernet module as attachments to e mail specify the encoding method Base 64 7 bits 8 bits Quoted Printable of the attached files Common precautions a b c The Ethernet module stores the data of attached files received from the external device in the device specified by the MRECV instruction without converting it from ASCII to binary The maximum sizes of data that can be sent received by the Ethernet module are as follows Data size of attached files Up to 6k words e Data size of main text Up to 960 words Mails that are sent and received do not support encrypted data compressed data and data conversion d When the external device could not be found in an e mail sending from the Ethernet module the error code can be checked through the reception processing with the MRECV instruction If an external device cannot be found when sending e mail using the MSEND instruction failure of e mail transmission may not be recognized depending on the operation of the mail server Be sure to verify the receiver s e mail address in advance Error codes are stored within the control data of the MRECV instruction For details on error
170. imal hexadecimal of the IP addresses 3 Set the IP address of the outgoing mail server SMTP 4 Set the IP address of the incoming mail server POP3 e The SMTP server delivers transfers e mails between mail servers The POP3 server transfers received e mails addressed to users to the corresponding users The mail server names must be designated to use the e mail function See POINT of 1 2 USING THE E MAIL FUNCTION MELSEC Q 3 Send mail address setting Purpose of setting Register the e mail address of the external devices where e mail is to be sent Start procedure E mail setting gt Send e mail address setting Setting screen Ethernet send mail address setting End Cancel Setting item Description of setting Setting range Selections Send mail address Set the mail address of the transmission destination Notification setting Select whether or not to set news i ea a Send mail address 1 Designate the mail addresses of a maximum of 16 external devices to which mails are sent from the local station s Ethernet module Only one e mail address can be specified for each area 2 In the send e mail address setting sequentially set up e mail addresses starting from No 1 To delete an e mail address with a mid setting number specify dummy e mail addresses before that address If it is preceded by any empty e mail address areas subsequent setting numbers and areas will mo
171. ination station for each communication request source station If the channel number is being used at the communication request source station being accessed from other station using the same channel number when other station is accessed the data link instruction ends in error So re execute the instruction x If the channel number used is different at the communication request destination station side simultaneous other station access can be performed from a maximum of eight communication request source stations to the same station 2 When performing other station access from the same communication request source station to the same communication request destination station change the channel number at the communication request destination station side When designating the same channel number on the communication request destination station side perform the second other station access after the first other station access is complete If the second SEND instruction is executed before the first SEND instruction is completed the SEND instruction ends in error 2 Instruction other than the SEND instruction 1 When simultaneous other station access is performed to the same communication request destination station from multiple communication request source station and a busy error being accessed from other station occurs re execute the instruction 2 When accessing other station from the same communication request source st
172. information Alea IP information Setting the Ethernet router relay parameter A 1 Setting is required when accessing to the programmable controller of 1 to 5 from the device of 6 3 18 3 18 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 5 When performing a remote access from 7 to 1 Setting item Station that does Sa not E i T Setting the number of Ethernet CC IE MELSECNET cards Setting the Ethernet CC IE x Se Se x S x y MELSECNET routing information Setting the Ethernet Station No lt gt se e Se x s y IP information Setting the Ethernet router relay v Me sE X x X y parameter 6 When performing a remote access from 7 to 3 Setting item Station that does E not A T Setting the number of Ethernet CC IE MELSECNET cards PPP MELSECNET routing information 500000 IP information Setting the Ethernet router relay MS e is I parameter 7 When performing a remote access from 7 to 4 Setting item Station that does al not or ae a Setting the number of Ethernet CC IE MELSECNET cards Setting the Ethernet CC IE x x x x x MELSECNET routing information Setting the Ethernet Station No lt gt x x x x x IP information Setting the Ethernet router relay parameter 8 When performing a remote access from 7 to 6 Setting item Station that does does not x require setting Setting the number of Ethernet CC
173. ing the e mail function Support for encoding decoding Chapter 5 1 VERVIEW MELSEC Q 2 Function added for function version D Reference Function Overview section Sending character strings in the e mail s main text by the programmable controller CPU monitoring function When using the e mail function The programmable controller CPU monitoring function allows transmission of character string information stored in word Chapter 2 devices by the e mail s main text In the following data link instructions the target station number 65 to 120 can be specified Specification of the station number 65 to 120 in the CC Link IE controller network Specifying target station number in is available data link instructions SEND e READ SREAD e WRITE SWRITE REQ In the following data link instructions the target station s CPU type can be specified S1 3 Specification of control standby system or system A B in the redundant system is available e READ SREAD e WRITE SWRITE REQ The data length can be specified up to 960 words in the following data link instructions s Increased data length of data link SEND instructions 480 to 960 words e RECV RECVS e READ SREAD e WRITE SWRITE 1 In a multiple network system when transferring data exceeding 480 words to a station of another network No specify the Q series models to all of the request source relay station and request target Specifyi
174. ing programmable controller CPU monitoring and the communication function using the random access buffer can be used together A Subject that has been sent by the MSEND instruction from an Ethernet module of the following versions cannot be received normally by the MRECV instruction e Ethernet modules with serial numbers where the first 5 digits are 03101 or less Different methods are used for converting Subject data at send and reception See Section 2 1 1 2 e When sending Encodes the Subject and then send it e When receiving Receives the Subject without decoding it 2 ING THE E MAIL FUNCTION pb 2n MELSEC Q 2 4 E mail Specifications The following table lists the specifications of the e mail function Item Specification Attached file 6 k words X 1 Main text 960 words X 1 When sending Sends either a file as attachment or main text select one When receiving Received a file as attachment Subject Us ASCII format or ISO 2022 JP Base 64 Attached file format MIME format MIME Version 1 0 Binary ASCII CSV can be selected Data of attached file format File name XXXX bin binary XXXX asc ASCII XXXX csv CSV CSV Comma Separated Value Cannot be divided only one file can be sent received Division of attached file If any divided files are received only the first file will be received and the remaining files specifications will be discarded Transmission Subject Base 64 7 bits and reception When sending en
175. input 1800 500ms monitoring timer 1 32767 PLC monitoring timer fi 0 lt 500ms 1 32767 Default Check End Cancel FTP parameter settings Description of setting Setting range Selections Do not use FTP Select whether or not to use the FTP function U e Use Set the log in name when a communication destination requests Log in name QJ71E71 log in file transfer to the Ethernet module by external device c A Set the password when a communication destination requests urren file transfer to the Ethernet module by external device Password N Set the new password when a communication destination ew requests file transfer to the Ethernet module by external device Command input monitoring Set the monitoring time for the Ethernet module to monitor the 4 to 32767 o timer command input time from the FTP client CN Set the monitoring time for the Ethernet module to monitor the PLC monitoring timer i 1 to 32767 operation of the local station s CPU 1 FTP Address 4H b8 b9 Default value Do not use the FTP function Set whether or not to use the FTP function of the Ethernet module Explanation Aran the FTP function Do not use the FTP function not use the FTP function 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 2 Log in name and password Address 3B0H 3B6H Default value QJ71E71 4 a b c Set the log in name and password for the external
176. ion Sequence scan o END H0 END H0 END Jo END 70 END l l f Send command Sending side l l be Q QnACPU Send completion device Device designated with D Send completion device OFF D 1 device 1 1 scan I Completion status S1 1 device M aK Error code Ethernet modula Channel 1 IP A ES PI ASA E A o A Y o E SIC AI A A A A pal Data Data Data sending sending sending Send error Resend when designated for twice 2 In case of the RECVS instruction RS lO A AR NAN OY lg Chane AM A MAMAR et A A E E AAN AO a Ethernet Channel 3 module l l ag A A A A we a dadar aai gp A AA jE E ce A O e a feat lA se doe ena AN T ld pete Gi A AE O A A e ee at a ds EMIS OE ey heh ROR ED Be pe ee ee ee PF Ee R EA NT te yD a RSS pe oe Oe oe Oe Tt I OE ee we a ate Be ee h Hg frecvs interrupt program l Pipes E Completion status S 1 device X Error code Receiving side QCPU Sequence scan END END 70 END 0 END 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 3 Program examples Station 3 uses channel 3 with an SEND instruction and sends data to station 15 using ch
177. k MELSECNET H MELSECNET 10 relay communication function are set on this screen 2 Set these values by seeing Section 3 3 1 Setting the Ethernet CC IE MELSECNET routing information setting of routing parameters 1 On this screen the routing parameters between Ethernet modules for accessing other stations on other CC Link IE controller network MELSECNET H MELSECNET 10 networks are set in the same way as for the routing parameter settings of the CC Link IE controller network MELSECNET H MELSECNET 10 The Network No and station number of the first communication relay station as seen from the local station are set 2 These settings are required for a station in which two or more Ethernet modules or CC Link IE controller network MELSECNET H MELSECNET 10 network modules are installed 3 Set these values by seeing Section 3 3 3 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 3 1 Setting the Station No lt gt IP information The Station No lt gt IP information is used to obtain the IP address of the transmission destination station in order to send an access message to other station designated with the Network No and station number from one Ethernet module to the next Ethernet module This section explains the Station No lt gt IP information settings that are required to access other stations via the Ethernet module using the CC Link IE controller netw
178. k Data Read Write ce cececeeeeeneeeeeeeeeeneeeeeeaeecaeecaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeereeateeas 6 34 6 9 JP GP SEND tinh Abia aie ie al te ede Al ie de A cae 6 37 6 10 JP GPASREAD vant aie ni eee hate ee need tee te eid A Ta Od Od 6 46 6 11 IPIGPS WRITE niente ie antl a ee 6 51 6 12 JF OP WRI Een aida dd dada aida calls 6 56 613 MPPZNRD add a N E ETS 6 63 6 14 J P I ZNWR lt idad a a ee ad eta 6 67 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 Basic Model QCPU or Safety CPU 2 5 For Use with Redundant CPUs 2 6 For Use at MELSECNET H Remote I O 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 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 Memo
179. ke corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic 6 26 DEDICATED INSTRUCTION MELSEC Q Program example The following example shows an interrupt program that reads the receive data from channel 5 When I O signals of the Ethernet module are X Y00 to X Y1F El FEND 150 SM400 AS HO D20 wov Ko D22 Local station storage channel X19 mee Z REGVS UO D20 D300 MIO X19 Initial normal completion signal IRET 6 DEDICATED INSTRUCTIONS MELSEC Q 6 7 J P G P REQ Remote RUN STOP This instruction issues remote RUN STOP requests to programmable controller CPUs of other stations Applicable device Link direct device i Internal device AO i Intelligent Constant File register function module Index register Zn KH Others Word Bit device U GO Instruction Executing symbol condition Command S2 D1 J REQ and JPR 82 1 and S2 D1 S2 D1 Set data Set data Set by Data type Network number of the local station 1 to 239 254 Jn 254 The network designated by the valid module during other station Binary 16 bits access User Start 1 O signal of the local station s Ethernet module
180. ke an action by seeing the Troubleshooting section in the User s Manual Basic Storage area of execution result SEND RECV RECVS The completion status storage device of the control data storage READ SREAD x device of the instruction used WRITE SWRITE ZNRD Data link instruction execution result Address CFu 207 ZNWR storage area in buffer memory Address D14 209 4 Clock data when each of the data link instructions ends abnormally In the clock data stored as control data at the time that each of the data link instructions ends abnormally set only when it is something wrong the year data upper 2 digits is stored only when the QCPU is the error detection station If the error detection station is other than the QCPU 00h is stored 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 5 Channels used by the ZNRD and ZNWR instructions The ZNRD and ZNWR instructions for Ethernet modules are executed using the following channels of the target Ethernet module ZNRD Channel 1 ZNWR Channel 2 Do not use the channels used by the ZNRD and ZNWR instructions listed above for other data link instructions in an Ethernet module mounted station that executes the ZNRD and ZNWR instructions Also do not execute data link instructions from other stations on the channels listed above in an Ethernet module mounted station that executes the ZNRD and ZNWR instructio
181. l address of external device Subject No 1 testmail msend eee b Attach laa 00000000 asc 3 bytes ee c lt Data contents for attached files gt 123456789abc a From Displays the mail address of the Ethernet module By entering the mail addresses of the send destination devices in the address book the registered names display names can be displayed and it makes the management easier b Subject This indicates the No of transmissions 1 and the Subject written by a sequence program 1 The number is automatically incremented every time an e mail is sent from the Ethernet module starting from 1 After the maximum number 4294967296 is reached the number starts again from 0 c Attached file This indicates the name of the attached file sent by the Ethernet module Data in the attached file in CSV format can be read in cell units in Excel etc for each 1 word of data 2 ING THE E MAIL FUNCTION 2n MELSEC Q 2 7 2 When receiving data in the attached file This section explains the MRECV instruction and a program to receive e mails sent from external devices The MRECV instruction reads the attached file received 1 2 3 4 HH ZP MRECV Un S D1 D2 Read Mail server a gt Header 1 O No Y Main text of mail Attached file Qn CPU QJ71E71 Header attached file 1 I O number of the Ethernet module 2 Con
182. l be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable
183. le and ACP U is performed according to the Network No and communication between two Ethernet modules are performed according to the IP address and UDP port number Thus the Ethernet module must convert the data shown below Network No and station number of CC Link IE controller network MELSECNET H MELSECNET 10 IP address and UDP port number of Ethernet The Station No lt gt IP information are required when accessing other stations via other Ethernet network systems and must be registered in all the QCPU stations in which the Ethernet modules are installed The Station No lt gt IP information should be set on the Setting the Station No lt gt IP information screen and written in the programmable controller CPUs of the applicable stations where Ethernet modules are installed 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 3 2 Convert format between the Network No station number and IP address port number p 1 1 1 1 ie The process overview of the conversion method set by the Station No lt gt IP information screen for performing the other station access via Ethernet module using the CC Link IE controller network MELSECNET H MELSECNET 10 relay communication function is explained Select one of the conversion methods to set 1 Automatic response system Convert format of Ethernet module default value a Overview of automatic response syst
184. les are attached the destination Ethernet module will store only the first file and ignore the rest of the attached files MAIL FUNCTION 2 USING THE E MAIL FUNCTIO MELSEC Q 2 7 3 Contents of the attached files The following explains the contents of the attached file data The data format of the attached file is ASCII code ASCII format CSV format or binary code binary format The following example shows the transmission contents for each data format binary ASCII CSV when the Ethernet module sends the data register value as an attached file 1 When sending from the Ethernet module Programmable controller CPU Ethernet module D1 DO DO 12345 D1 5678H BIN ASCII conversion In case of CSV D9 D1 DO 2 When receiving by the Ethernet module Programmable controller CPU Ethernet module Only binary data can be received D20 D21 D29 NA External module D20 FEDCu HG DCH FEH 98H BAH 21H 43H lt D21 BA98H D29 4321H 1 For details on the order of data items when sending receiving bit device data see the figure shown in Section 2 9 2 2 ING THE E MAIL FUNCTION pd elias MELSEC Q 2 Data configuration in CSV format Data in CSV format can be used as control data for the cell units in Excel etc Data in CSV format handled by the Ethernet module is the data expressed as follows e 1 word 16 bits bi
185. lete FILE TO DELETED lt ret gt Change file rename CURRENT FILE NAME NEW FILE NAME lt ret gt Write file put WRITE SOURCE FILE NAME lt ret gt x1 The QCPU must be set to STOP RUN gt STOP gt RUN When restarting the QCPU operation after writing a file it is recommended to set QCPU to RUN with the key switch The QCPU can change its status from STOP gt RUN from the FTP command but caution must be taken to the programmable controller system operations 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 5 Precautions when Using the File Transfer Functions The precautions when using the Ethernet module FTP server functions are explained 1 Precautions when designing a system which uses file transfer functions a c For the system When performing file transfers with the system in operation or controlling the status of the programmable controller design the system such as configuring an interlocking circuit in the sequence program so that the safety of the overall system is always maintained For external devices Some of the FTP operation commands on the FTP client external devices supported by the Ethernet module as a FTP server may not operate as described in this manual depending on the client side FTP application See the manual on the FTP client external devices and confirm the functions and operation methods For the QCPU 1 Only files that can be created generate
186. letion device 1 Normal completion abnormal completion 1 Start the local station programmable controller The parameters for the e mail function are stored in the Ethernet module 2 Execute the MSEND instruction The e mail designated with the MSEND instruction is sent to the mail server 3 When the e mail sending to the send mail server is completed the MSEND instruction completion device turns on When the completion device 1 abnormal completion signal turns on the error code is stored in the control data completion status S1 1 For details on the causes of errors see Troubleshooting in the Q Corresponding Ethernet Interface Module User s Manual Basic 2 USING THE E MAIL FUNCTION MELSEC Q 3 Sample program The following shows a sample program for sending e mails by the programmable controller CPU Perform e mail send processing using the send command X20 The contents of the send data are shown in 4 When I O signals of the Ethernet module are X Y00 to X Y1F X20 j nove H800 D20 Designate ASCII as the send data format WOP KI D22 Designate the send destination number wove Kto D29 Designate the send data length MOVP K7 D30 Designate the subject length testmail msend D200 Designate subject MOVP H1234 D207 Designate the attached file MOVP H5678 D208 MOVP HOABC D209 ZP MSEND uo D20 D200 M10 Send the e mail MIO M11 a o a ae 7 F Processing program w
187. letion device D2 Turns on at the END processing of the scan where the READ instruction is completed and turns off at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the READ instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the READ instruction is completed and turns off at the next END processing 6 DEDICATED INSTRUCTIONS Operation of the local station when the READ instruction is being executed END END END END s processing processing processing processing aad READ instruction ON execution is a READ instruction OFF esse i ON o 3 i Sr eS e i Send receive OFF instruction flag i i ON OFF i Completion device oT am Abnormal i l _ completion Status display device 1 i 4 Normal OFF f completion y at completion One scan 5 When executing the instruction using JP READ GP READ the read processing is executed only once when the read instruction flag switches from off to on at rise Errors 1 When a dedicated instruction ends with an error the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S1 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User
188. mbers in addition to stations connected to the local station s network 3 The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction 4 Whether the WRITE instruction is being executed or has been completed normally or abnormally can be checked with the completion device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the WRITE instruction is completed and turns off at the next END processing 6 DEDICATED INSTRUCTIONS MELSEC Q b Status display device at completion D2 1 Turns on and off depending on the completion status of the WRITE instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the WRITE instruction is completed and turns off at the next END processing Operation of the local station when the WRITE instruction is being executed Sequence program WRITE instruction Send receive direction flag Completion device Status display device at completion Errors Program example OFF END END E
189. mbol condition Command __ JP RECV S D1 D2 JP RECV Command Joro S D1 D2 a GP RECV Set data Set data Description Set by Data type Network No of the local station 1 to 239 254 254 The network designated by the valid module during other station Binary 16 bits access User Start 1 O signal of the local station s Ethernet module 00 to FEn The higher 2 digits of the 3 digit I O signal Head device of the local station that stores the control data Device name Head device of the local station that stores the reception NES Local station device that is turned on for one scan by the completion of System NN D2 the instruction Bit D2 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data Jn Un Character string S The RECV instruction can be executed only when the local station is a Q QnACPU The number of steps for the RECV instruction is 8 6_ DEDICATED INSTRUCTION Control data Device Item Abnormal complete type Completion status S 2 Local station storage channel 8 3 Channel used by the transmission station 8 4 Transmission station network number S 5 Transmission station number 6 Not used Not used Arrival monitoring time Reception data length Pee fe omn 12 S 13 Clock data
190. me and password set in the FTP parameter setting area of the buffer memory File transfer to the Ethernet module is allowed when the log in name and password match and not allowed if they do not match 3 Remote password unlock Changes the status of the remote password from lock to unlock if the FTP communication port has been designated as a port subject to the password check using the remote password setting quote password unlock remote password lt ret gt If the FTP communication port has been designated as a port subject to the password check other commands cannot be used until the remote password status is unlocked 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 4 Various operation of the FTP 1 Designate an access target CPU if the QCPU is configured as a multiple CPU system The control CPU of the Ethernet module will be the access target CPU after login quote cpuchg access target CPU lt ret gt 2 Notifies file transfer to a target file without converting the file binary lt ret gt 3 Ifa password is registered in the QCPU file for file transfer sets that password in the Ethernet module quote keyword set password lt ret gt 4 Performs the file transfer operation using the FTP commands described in Section 5 6 Writing to a parameter file used in the current operation of the QCPU and to a file of the running sequence program that is stored in the QCPU program memory is performed
191. me as D1 3 The normal or abnormal write completion status is stored in the data link instruction execution result ZNWR instruction storage area address 209 If the write completion device D2 1 is on due to abnormal end read the error code stored in the area mentioned above and correct the error accordingly Functions 1 This instruction write n2 points of data from the word device designated by S of the local station to the word device of the connected station having the network number designated by Jn n1 in the Ethernet network system When writing the device data to the target station is completed the completion device designated in D2 turns on Local station Response station QCPU Ethernet module Q QnA Ethernet module S D1 Channel 2 Fixed Ethernet 2 The ZNWR instruction is executed using channel 2 fixed The data link instructions and the Ethernet instructions cannot be executed from two or more stations at the same time on the same channel If the conditions of more than one instruction to be executed match at the same time the instruction executed later is made to wait until the channel becomes available since handshaking is performed automatically 3 Whether the ZNWR instruction is currently being executed or has been completed normally or abnormally can be checked with the completion device D2 designated in the set data a Completion device D2 Turns
192. memory quote run 1 Designation example 3 To perform a forced remote run with the designation to clear all device memory except for the latch range quote run 11 The forced execution mode is only used to allow forced remote runs from another device when the QCPU cannot perform remote runs due to problems in the device which issued the remote stop for the QCPU When a normal run is designated and the system is already set to the stop or pause status by another device the system is not set to the run status Designate the clear mode of the device memory during the operation startup depending on the system configurations After the QCPU performs the clear operation the system runs according to the PLC parameter settings PLC file Initial Device value Caution 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q status Ethernet module dedicated command Function Designation format Displays the QCPU operation information is displayed This is a command to check the QCPU operation information before executing file transfer to the QCPU quote status One of the following is displayed as the execution result for a successful completion e When the QCPU is ata run status RUN e When the QCPU is ata stop status STOP When the QCPU is a pause status PAUSE stop Ethernet module dedicated command Function Designation format Caution Set the QCPU to the stop status remote st
193. mmunication request destination station b Conversion processing of the Use together system 1 When a communication request message command frame to access other station is received the communication request message is sent to the next station obtained by the table exchange system at first 2 If the IP address of the Ethernet module cannot be obtained by the table exchange system the IP address is obtained by the IP address computation system in order to send the communication request message 3 The response message response to the communication request message is returned based on the return IP address and the data in the conversion table or the stored data The relationship between the Convert Format and definition of the Ethernet module installed station is as follows 5 Ethernet module installed station definition Conversion method Communication request source station Communication relay station Communication request Relay receiving station Relay sending station destination station Automatic response system IP Address computation system Table exchange system Use together system O Can be designation X Cannot be designated x1 For the external device that completed the communication the station can be a communication request source station or a relay sending station Communication request source station Ethernet Communication relay receiving station can be set AAN
194. mpleted due to system switching occurred on the target station error code 4244 42484 If this has occurred execute the WRITE instruction again 6 When data of more than 480 words is specified a CO84H error occurs on the local station Check the write data length 1 to 480 words and execute the WRITE instruction DEDICATED INSTRUCTION oe MELSEC Q The allowable write data length S1 9 of the WRITE instruction varies depending on the version See the User s Manual Basic Section 2 7 Specifying a length value outside the setting range will cause a 4101 error OPERATION ERROR on the local station Functions 1 This instruction writes data for the device designated in S2 of the local station and succeeding devices to the word devices of the station designated with the target station network number and target station number in the control data The station must be connected to either a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system When writing device data to other station number is completed the completion device designated in D2 turns on Local station Response station QCPU Ethernet module Q QnACPU Ethernet module S2 Channel 1 D1 WRITE Channel n Channel 8 Ethernet 2 Data can be written to stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated nu
195. munication relay receive station or the next communication Relay network No 1 to 239 relay send station is connected when sending a communication request message or a response message respectively Universal model QCPU 1 to Set the station number of the target Ethernet module network module that is used as relay to the 120 network set by the Relay station No Other than Universal model QCPU 1 to 64 Relay station No 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 1 Target Network No Designate the Network No of the Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 to which the communication request destination station or the communication request source station is connected when sending a communication request message or a response message respectively 2 Relay Network No Designate the Network No of the Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 to which the next communication relay reception station or the next communication relay transmission station is connected when sending a communication request message or a response message respectively 3 Relay station No Designate the station number of the target Ethernet module network module that is used as a relay to the network set by the Relay station No The following stations require the routing parameters to be set and registered 1 The programmable controller
196. n Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the MSEND instruction is completed and turns off at the next END processing DEDICATED INSTRUCTION Operation when the MSEND instruction is being executed MSEND instruction Completion device D D 1 EEE One scan Ethernet module Mail server Mail Errors 1 When a dedicated instruction completes abnormally the abnormal completion signal D 1 turns on and the error code is stored in the completion status S1 1 See the following manuals regarding the error codes check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s manual Basic 6 DEDICATED INSTRUCTIONS MELSEC Q Program example The following example shows a program that sends e mails 1 When sending e mail as an attached file This program performs e mail transmission processing using the send command X20 When I O signals of the Ethernet module are X Y00 to X Y1F ve move HBOO D20 Designate ASCII as the send data format MOVP KI D22 Designate the send destination number MovP Kio D29 Designate the send data length Move K7 D30 Designate the subject length MOVP testma
197. n 6 2 6 3 6 5 6 6 6 7 6 10 POINT 6 11 POINT 6 12 6 13 6 14 Dec 2003 SH NA 080010 F Jun 2004 SH NA 080010 G Correction Section 6 13 POINT 6 14 POINT Correction About the Generic Terms and Abbreviations Section 1 2 Section 2 1 2 1 Section 3 2 1 2 Section 4 6 4 8 Section 5 5 5 6 Section 6 4 6 5 6 6 6 7 6 8 6 9 6 11 6 12 The manual number is given on the bottom left of the back cover Print Date Manual Number Revision Aug 2005 SH NA 080010 H C orrection SAFETY PRECAUTIONS Section 1 2 Section 2 1 2 2 7 2 8 2 9 Section 6 4 6 5 6 6 6 9 6 12 Jun 2006 SH NA 080010 I C 7 orrection Section 4 2 4 7 Section 6 4 6 7 6 10 6 11 6 12 6 13 6 14 Addition Section 6 1 Jun 2007 SH NA 080010 J Change of a term PLC was changed to programmable controller Correction About the Generic Terms and Abbreviations Section 1 2 Section 3 2 1 3 3 3 Section 4 2 4 4 4 5 2 Section 6 2 to 6 14 Nov 2007 SH NA 080010 K l Correction orrection Section 6 1 Oct 2008 SH NA 080010 L Correction SAFETY PRECAUTIONS The Manual s Use and Structure About the Generic Terms and Abbreviations Section 1 1 1 2 2 6 Chapter 3 Section 4 1 to 4 4 4 5 2 4 6 Section 5 5 1 5 2 5 5 5 6 2 5 6 4 Section 6 1 to 6 7 6 9 to 6 14 Japanese Manual Version SH 080005 P This manual confer
198. n text will be sent As a device monitoring result the data that was read from the programmable controller CPU by the Ethernet module in order to determine whether or not the conditions match will be sent For details on the correspondence between the word device values and the data format of the attached file see the figure in Section 2 7 3 The main text will be sent after converting the data read into ASCII code data If the condition for inspection is set to No conditional settings character strings send for e mail text transmission however binary code data are sent without being converted When e mail is sent after the result of the CPU status monitoring and the monitoring condition match only the Subject will be sent The attached file and main text will not be sent 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY The Ethernet network system can be in the same class as the CC Link IE controller network MELSECNET H MELSECNET 10 network system External device or Ethernet module installed QCPU station can give access to the other stations via Ethernet networks and CC Link IE controller network MELSECNET H MELSECNET 10 within the CC Link IE controller network MELSECNET H MELSECNET 10 specification range In this chapter the CC Link IE controller network MELSECNET H MELSE
199. n the send mail address settings screen Send mail subject attached file Subject consists of No of transmissions and the character data designated by the sequence program It is not converted to ASCII format The Subject should be designated in the sequence program in ASCII characters Complete bit Main text of mail There is no data for the main text of mail The send data is included in the attached file Attached file This indicates the device data designated by the MSEND instruction The attached file is sent in either one of binary format ASCII format or CSV format The transmission format for attached file is designated in the control data of the MSEND instruction See 3 1 2 USING THE E MAIL FUNCTION MELSEC Q 1 Send using the sequence program The following explains how an e mail is sent by the sequence program See Chapter 6 MSEND for detail Direction Create control data at D20 and on Create send data at D200 and on Send the e mail ZP MSEND vor D20 D200 M10 Processing program when normal completion Processing program when abnormal completion M10 M11 M11 2 Execution timing of the instruction Initial processing E mail sending Initial normal completion signal A X19 MSEND instruction MSEND instruction completion device oe i Er Abnormal completion MSEND instruction comp
200. nary data is converted to four digit ASCII code when expressed as a hexadecimal 4 bytes of ASCII code e When handling multiple word data insert comma data between each word 4 bytes of ASCII code Data designated by the MSEND instruction or data subject to the news function is sent in the following arrangement a Arrangement of data sent by the MSEND instruction 1 In addition to the data conversion and insertion described above CR code ODH and LF code OAH are inserted for each 8 words of data 2 The arrangement of data sent in CSV format is shown below DO i D1 D2 iS D7 CR LF D8 D9 D10 PAE D15 CR LF D16 D17 D18 A D23 CR LF D24 D25 D26 CR LF 8 device 8 word unit b Arrangement of data sent using the news function 1 In addition to the data conversion and insertion of comma data described above CR code ODH and LF code OAH are inserted for each setting device range 2 A maximum of 16 types of device ranges can be set for news data See Section 2 9 for details 3 The arrangement of data sent in CSV format is shown below a Cu Je PS CR LF First device 0 g A D1 g N Second device DO Third device MO to M15 M16 to M31 CR LF i X20 t0 X2F x30 to xo PA tos X70 to X7F CR LF wdevice B10 to B1F B20 to B2F B30 to B3F B60 to B6F CR LF Data section can have
201. nd contents of the parts for the status CPU module status Send contents omar Pthomal Status RUN At module warning occurrence Status RUN Warning or Status RUN Slight Abnormal Atnormal Status STOP At module warning occurrence Status STOP Warning or Status STOP Slight Abnormal During the module error or module system error During Pause Status PAUSE During STOP Status STOP Serious Fatal Error or Status STOP Abnormal 2 When monitoring a device a Once any of the results of the device monitoring matches the monitoring condition among the devices having the conditions designated on the Ethernet news setting screen the Subject and attached file or the Subject and main text will be sent b The following shows the contents for the Subject sent No Sheol eee ok Sk gt x ft conti match device eee for condition mached value monitoring value Condition match device No of transmissions 1 C All device values for the number of registered points designated on the Ethernet news setting screen are recorded in the attached file or main text The size of the data recorded in the attached file or main text is calculated as follows Information of bit devices Registered points number of bits 16 x 2 bytes Round up to a whole number Information of word devices Registered points number of devices x 2 bytes 1 The number is automatically incremented eve
202. nd receive direction flag Completion device Status display device at completion Errors Program example EEE RE completion y One scan i END END END END processing processing processing processing A o E ES ON ZNRD instruction execution i is completed OFF eee l ON e hh eye a 1 l OFF ON OFF O RE ae Abnormal i ON completion 4 Normal i OFF Normal 1 When execution of a dedicated instruction ends with an error the abnormal completion signal D2 1 turns ON and the result is stored in the data link instruction execution result ZNRD instruction storage area address 207 of the buffer memory See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic A program that reads the contents of D10 to 14 of station number 4 from D200 to 204 of station number 1 When I O signals of the Ethernet module are X Y00 to X Y1F X22 X19 Y Y 07 20D 1 Ka D10 D200 K5 MO X19 Initial normal completion signal Read command MO M1 r A H SET 30 Normal completion display RST Y31 M1 UD Mov 6207 DO Error code SET Y31 Error completion display 6 DEDICATED INSTRUCTIONS 6 14 J P ZNWR Instruction Executing symbol con
203. ne 48 0 12 630 47 00 Phone 7 495 545 3419 Irish Branch Fax 387 0 33 524 539 Fax 48 0 12 630 47 01 Fax 7 495 545 3419 Westgate Business Park Ballymount AKHNATON BULGARIA Sirius Trading amp Services st ROMANIA NPP URALELEKTRA RUSSIA Ia 4 Andrej Ljapchev Blvd Pb 21 Aleea Lacul Mori Nr 3 Sverdlova 11A Phone 353 0 1 4198800 BG 1756 Sofia RO 060841 Bucuresti Sector 6 RU 620027 Ekaterinburg es ae Phone 359 0 2 817 6004 Phone 40 0 21 430 40 06 Phone 7 343 353 2745 MITSUBISHI ELECTRIC EUROPE B V ITALY Fax 359 0 2 97 4406 1 Fax 40 0 21 430 40 02 Fax 7 343 353 2461 anana INEA CR d 0 0 CROATIA Craft Con amp Engineering d 0 0 SERBIA N A Losinjska 4 a Bulevar Svetog Cara Konstantina 80 86 es Agrate paana MI HR 10000 Zagreb SER 18106 Nis ones Phone 385 0 1 36 940 01 02 03 Phone 381 0 18 292 24 4 5 MIDDLE EAST REPRESENTATIVES Fax 39 039 60 53 312 Fax 385 0 1 36 940 03 Fax 381 0 18 292 24 4 5 EENEN ISRAEL rd SPAIN AutoCont C S s r o CZECH REPUBLIC INEA SR d 0 0 SERBIA 24 Shenkar St Kiryat Arie panish Branch Technologick 374 6 izletnicka 10 hpi Carretera de Rub 76 80 g ee IL 49001 Petah Tiqua A CZ 708 00 Ostrava Pustkovec SER 113000 Smederevo E 08190 Sant Cugat del Vall s Barcelona Phone 972 0 3 922 18 24 Phone 420 595 691 150 Phone 381 0 26 617 163 Phone 902 131121 34 935653131 Fax 972 0 3 924 0761 Fax 420 595 691 199 Fax 381 0 26 617
204. ng When sending e mails using the programmable controller CPU Register the mail address of the external device with news setting the external device Register the mail address of without news setting See Section 2 6 3 Set the news condition Reset the CPU or Stop and Run the CPU Read the CPU information 4 4 Send receive gata a gt an attached fain toe of e Mall file of e mail News condition matching See Section 2 7 See Section 2 8 1 The open and close processing of the communication line for Unmatched Matched 4 sending receiving e mails is automatically executed by the Ethernet module Send E mail news information the CPU monitoring function See Section 2 6 3 See Section 2 9 1 Performed by the Ethernet module 2 USING THE E MAIL FUNCTION MELSEC Q 2 6 E mail Setting from GX Developer This section explains the settings required by GX Developer to send and receive e mails For details on how to display each screen refer to the GX Developer Operating Manual 1 DNS setting Purpose of setting Specify the IP address of the DNS server when setting the mail server name using the domain name by the e mail setting see 2 Start procedure Network parameter setting the number of Ethernet CC IE MELSECNET cards gt Initial setting Setting screen igi Network parameter Ethernet
205. ng target station s CPU type in data link instructions 2 USING THE E MAIL FUNCTION MELSEC Q 2 USING THE E MAIL FUNCTION 2 1 E mail Function The e mail function sends and receives CPU information programmable controller CPU status and device values to from PCs or programmable controller CPUs in remote locations via the Internet The following two methods are available to send receive e mail using this function 1 Sending receiving e mail by the programmable controller CPU Executed by a sequence program using dedicated instructions 2 Sending e mail using the Ethernet module s programmable controller CPU monitor function Executed by the Ethernet module according to the Ethernet module parameter setting notification setting using GX Developer 2 1 1 E mail send and reception by the programmable controller CPU 1 Sending receiving e mail by the programmable controller CPU In sending receiving e mail by the programmable controller CPU the CPU information of a station in which an Ethernet module is installed is sent to another Ethernet modules or an external device such as a PC as the main text or attached file of e mail E mail sent from other Ethernet modules and PCs can also be received External device Sending e mail by the programmable Ethernet module Portable terminal i Remarks controller CPU MSEND instruction MRECV device that cannot handle instruction attached files Subject Binary
206. nge Abnormal completion Turns on at the END processing of the scan where the SWRITE instruction is completed and turns off at the next END processing Operation of the local station when the SWRITE instruction is being executed END END END END processing processing processing processing Sequence program OS Se gt ON Send receive OFF it c s A direction flag EN execution is completed A E A ao OFF Completion device O completion f f i f f f i Abnormal i f 1 T Normal i i 1 Status display device OFF at completion Operation of the other station when the SWRITE instruction is being executed END END END END processing processing processing processing Sequence program z gt Write completion of device data designated with the ON i OFF SWRITE instruction Completion device gt gt _ gt 5 When the instruction is executed using J SWRITE G SWRITE the next read processing is executed in succession after one read processing is completed while the read command is on When the instruction is executed using JP SWRITE GP SWRITE the read processing is executed only once when the read command switches from off to on at rise Errors 1 When a dedicated instruction ends with an error the abnormal completion signal D2 1 turns on and the error code is stored in the completion status S1 1 See th
207. ngen Phone 43 0 2252 85 55 20 Phone 373 0 22 66 4242 Phone 7 7212 50 1150 Phone 49 0 2102 486 0 Fax 43 0 2252 488 60 Fax 373 0 22 66 4280 Fax 7 7212 501150 Fax 49 0 2102 486 1120 TEHNIKON BELARUS Koning amp Hartman b v NETHERLANDS CONSYS RUSSIA MITSUBISHI ELECTRICEUROPEB V CZECH REPUBLIC Oktyabrskaya 16 5 Off 703 711 Haarlerberqweg 21 23 Promyshlennaya st 42 Czech Branch BY 220030 Minsk NL 1101 CH Amsterdam RU 198099 St Petersburg Radlick 714 113a Phone 375 0 17 21046 26 Phone 31 0 20 587 76 00 Phone 7 812 325 3653 7 158 00 Praha 5 Fax 375 0 17 210 46 26 Fax 31 0 20 587 76 05 Fax 7 812 3253653 Phone 420 0 251 551 470 Koning amp Hartman b v BELGIUM Beijer Electronics AS NORWAY ELECTROTECHNICAL SYSTEMS RUSSIA Fax 420 0 251 551 471 Woluwelaan 31 Postboks 487 Derbenevskaya st 11A Office 69 MITSUBISHI ELECTRIC EUROPE B V FRANCE BE 1800 Vilvoorde NO 3002 Drammen RU 115114 Moscow French Branch Phone 32 0 2 257 02 40 Phone 47 0 32 24 30 00 Phone 7 495 744 55 54 25 Boulevard des Bouvets Fax 32 0 2 257 02 49 Fax 47 0 32 8485 77 Fax 7 495 74455 54 ae renee a INEA BH d o o BOSNIA AND HERZEGOVINA MPL Technology Sp z0 0 POLAND ELEKTROSTILY RUSSIA one Aleja Lipa 56 Ul Krakowska 50 Rubzowskaja nab 4 3 No 8 Fax 33 0 1 55 68 57 57 BA 71000 Sarajevo PL 32 083 Balice RU 105082 Moscow MITSUBISHI ELECTRIC EUROPE B V IRELAND Phone 387 0 33 921 164 Pho
208. nk instructions ceccceeeteeseeetees 4 8 DNS Rac 4 Geka Ale GRA aa RA 2 11 DriVe name ati eddie dione 5 16 E mail sending attached file 2 15 E mail sending main text eerie 2 28 E mail setting scnsrc radarit 2 12 E mail sending and receiving 2 1 Error code Data link instructions ooooooncncnnnnnninnnon 4 41 Response code FTP 5 20 Ethernet module dedicated COMMANAS iniciada 5 2 5 27 Ethernet module support Commands FTP nesese 5 2 5 21 Index 1 F 1 M N File path 5 16 FTP CIOM cat 5 7 FTP command nienean 5 2 5 16 FTP log in name ssasasesssercsresrerrsineereisensenees 5 6 FTP operation command ooooccccccccicccccnnccninnno 5 21 FTP parameter cocida 5 5 Inquiry time intervals for checking CA 2 13 IP address computation system cee 3 9 IP address of the partner station 3 9 Monitoring function of the programmable controller CPU chit coda etica aa cha 2 3 Monitoring ValU8 ooocoonconcnccnconconconccnno 2 36 MRECV instruction for e mail 2 20 MSEND instruction for attached file e mail NO 2 15 6 8 MSEND instruction for main text e mail A A E E 2 28 6 8 Name of attached file ooooooooinnonninninn c 2 18 Net mask pattern c ceecceeeeeeeeeeeteeteneeees 3 6 Network number and station number of the destinadas 3 9 News data storage device cooococccccnncccncccnnco 2 3
209. normally or abnormally can be checked with the completion device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the SEND instruction is completed and turns off at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the SEND instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the SEND instruction is completed and turns off at the next END processing 6 DEDICATED INSTRUCTIONS Q e 3 oo D o 5 la at completion Operation of the local station when the SEND instruction is being executed END END END END processing processing processing processing Sequence program q _ ON SEND instruction execution i i f is completed Se SEND instruction CEB y 2MU uh5 ON Send receive OFF direction flag ON OFF i i Completion device _ gt _ Po r Abnormal i ON completion 4 Normal Status display device OFF 5 When the instruction is executed using JP SEND GP SEND the send processing is executed only once when the send instruction flag switches from off to on at rise Errors 1 When a dedicated instruction completes abnormally the abnormal completion signal D 1 turns on and the error code is st
210. ns 1 See Chapter 3 for details of the following when performing other station access using the data link instructions The accessible range and accessible stations of the other stations e Setting to perform other station access e Other station access procedure 2 The communication using the data link instructions on the Ethernet is performed with UDP IP When executing each data link instruction except for ZNRD and ZNWR it is recommended to designate a value greater than 1 to the number of retries setting area of the control data storage device See the CC Link IE controller network MELSECNET H MELSECNET 10 Reference Manual regarding the link data send receive processing and processing time in data communication with the programmable controller CPU of another station via CC Link IE controller network MELSECNET H MELSECNET 10 For details about data designation methods in the data link instruction see Chapter 6 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 3 Using the Data Link Instructions This section explains how to use the data link instructions when accessing other stations via the Ethernet module 1 SEND instruction 1 When performing simultaneous other station accesses from multiple communication request source stations to the same communication request destination station change the channel number of the communication request dest
211. ns Channels used for other instructions must be changed 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 2 Setting the arrival monitoring time of the control data storage device For the arrival monitoring time designation area of the control data storage device set the monitoring time that is equal to or greater than the TCP resend timer value set with the initial processing parameters When the monitoring time is equal to or less than the TCP resend timer value the TCP resend timer value is set as the arrival monitoring time 1 When the setting value is less than or equal to the TCP resend timer value the arrival monitoring timer equals the TCP resend timer value 1 Although the units of setting values for the TCP resend timer setting value units 0 5 s and the arrival monitoring timer setting value units s are different the TCP resend timer value is used as is 3 Checking the execution result of each data link instruction The execution result completion status of each data link instruction is stored in the areas shown as binary values After the execution of an instruction is completed read the execution result from the storage area and verify either normal or abnormal completion Stored value at normal completion 0 Stored value at abnormal completion Other than 0 error code When an error code that indicates abnormal completion is stored ta
212. ns via the Ethernet module using the data link instructions 1 Executing multiple instructions at one time common to the data link instructions a When simultaneously accessing multiple other stations from the own station change the channel setting of the own station for each request target Station No 3 Station No 1 Own station Other station Channel 1 md Channel 2 READ Station No 2 4 Channel 3 Channel 4 Other station Channel 1 Write to station No 1 Channel 2 Read from station No 1 Channel 3 Write to station No 2 Channel 4 Read from station No 2 YN i b When accessing other stations using the same channel number access the next station after the last access to other station is completed The completion status can be checked by the completion device of the data link instruction c When making access mutually between the own station and another station change the channel of the own station for each dedicated link instruction Station No 1 Station No 2 Own station Other station Channel 1 sending SEND Channel 1 Channel 1 RECV Channel 1 receiving Channel 3 receiving RECV Channel 3 Channel 3 SEND Channel 3 sending A maximum of eight instructions can be executed at one time as long as the channel numbers 1 to 8 designated in the control data of each instruction do not overlap d Channels used for RECV instructions cannot be used for any other instructio
213. nspection _ Set the monitoring condition ox po Monitoring value Set the monitoring value A A Notification data storage device Notif data points Set the notification data points _ _______ O Setting item X Setting not required 1 When an e mail is sent with the programmable controller status inspection only subject programmable controller CPU status is stored is sent 1 Condition for PLC inspection Sends an e mail when the programmable controller CPU is placed in the Normal STOP STOP status normally Module error Sends an e mail when an error that stops the CPU execution has occurred Module system error Sends an e mail when the programmable controller CPU is stopped by an Module warning STOP external operation etc while an error that allows to continue the CPU execution has occurred Sends an e mail when the programmable controller CPU is placed in the Normal RUN RUN status normally Sends an e mail when an error that does not allow to continue the CPU Module warning RUN execution has occurred while the programmable controller CPU is in the RUN status The programmable controller CPU is in operation PAUSE Sends an e mail when the programmable controller CPU is placed in the PAUSE status 2 USING THE E MAIL FUNCTION MELSEC Q 2 Send method Select the send method of the device monitoring results Explanation Send attached file Sends data as an attached file in the file format
214. nual Basic Program example A program that writes the contents of D300 to 303 of station number 2 to D50 to 53 of station number 3 When I O signals of the Ethernet module are X Y00 to X Y1F x22 x19 HA A 9 tr 0 K3 D50 D300 K4 m10 X19 Initial normal completion signal Write command SET Y30 Normal completion display RST Y31 M12 DON Mov G209 D10 Error code eT 131 Error completion display RST Y30 INDEX A B Accessible range CC Link IE controller network MELSECNET H MELSECNET 10 3 2 Attributes of fil6 oooooonnccinininnnnonnonnconn 5 18 Automatic response SySteM ceeeeeeeeee 3 8 Broadcast Simultaneous broadcast 4 5 CC Link IE controller network MELSECNET H MELSECNET 10 relay communication 3 1 Check receive Mail ccceeeeeeeeeeeees 2 13 Command input monitoring timer 5 6 Command list Ethernet module dedicated commanas 5 2 FTP server dedicated commanas 5 3 Commands supported by Ethernet module 5 2 Communication procedure CC Link IE controller network MELSECNET H MELSECNET 10 relay communication 3 20 D E FIP e ae A 5 7 Processing procedure of the e mail 2 9 Condition devise ooooococinccincccincccconccconcnnonnnnnno 2 35 Condition for PLC inspection 008 2 33 Conversion format 2 ccccesceesseeeeseeeeeeeees 3 8 Data li
215. o the local station s network 3 The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction DEDICATED INSTRUCTION 6 C STRUCTIONS MELSEC Q 4 Whether the REQ instruction is being executed or has been completed normally or abnormally can be checked with the complete device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the REQ instruction is completed and turns off at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the REQ instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the REQ instruction is completed and turns off at the next END processing Operation of the local station when the REQ instruction is being executed END END END END processing processing processing processing Sequence progam pp a HD3 REQ instruction ON execution is ie o OFF i i REQ instruction OA 222 ON Send receive OF
216. of data words to read Q QnACPU 1 to 32 constant Bit device digit designation 2 Word device 3 Read completion device local station Designate the device of the local station to turn on one eon aa Bit device scan when the read is complete Word device bit designation 4 OFF Incomplete ON Complete OFF Normal ON Abnormal 2 Bit device digit designation ae Word device The normal or abnormal read completion status is stored in the data link instruction execution result ZNRD instruction storage area address 207 When the read completion device D2 1 is on due to abnormal end read the error code See troubleshooting of User s Manual Basic stored in the area mentioned above and perform the necessary corrective action 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b ZNWR instruction Network number designation Write command J Execution H J ZNWR Jn n1 D1 S n2 D2 during ON Write command J Execution jf paw E 2 Ginna oro DN Setting details Setting range Target station network number 4 to 239 Designate the target station network number 1 to 64 constant Stations of station number 81H to 89H All stations of group number FFH All stations on the target network number Bit device digit designation 2 Word device 3 Target station number Designate the target station number
217. ola ecg Weal nee routing nM 4 IP address of the partner station E rl 1 cal of the destination b Conversion processing of the IP address computation system 1 When a communication request message command frame to access other station is received the IP address is calculated from the Network No and station number of the destination in the communication request message and the communication request message is sent to the next station x1 The Network No and station number of the destination in the communication request message are stored in the Ethernet module 2 The response message response for the communication request message is returned based on the return IP address and the stored data above c IP address computation example The logical sum is calculated differently depending on the class of the local station IP address An IP address is calculated as follows For class A e When the local station IP Address is 79238102H e When the CC Link IE controller network MELSECNET H MELSECNET 10 Routing Net Mask Pattern is FFO00000H When the destination Network No is 03H and the station number is 05H ii 5 Local station IP Address 7 9 2 3 8 I CO 2 EOE AMO OR E x Net Mask Pattern Logical product F E 1G 0 0 0 0 0 e A oe Re 3 i Logical product value i 7 9 0 0 0 0 0 0 Di lt rt ae ca HA nan aoe oth Network No and station No Logical sum 0 3 0 5 NL E CR IDAS 4
218. onitoring target After a news condition match occurs the Ethernet module must confirm the mismatches of other news conditions for the same monitoring target The next e mail can be sent only after the Ethernet module confirms the mismatches of these news conditions 4 The Subject of e mail which is sent when the notification conditions match is fixed data The format of the Subject is as follows see Section 2 9 2 When monitoring the CPU status Subject No of transmissions CPU model name Status Detection time e When monitoring the CPU device Subject No of transmissions Matched condition device Monitoring value The e mail transmission function of the programmable controller CPU and the communication function using the random access buffer can be used together 2 ING THE E MAIL FUNCTION L eeu MELSEC Q 2 2 Configuration and Environment of the Applicable System This section explains the environment and system configuration for using the e mail function from the Ethernet module Internet service provider Internet service provider Public line 600005000005 Router Router TA modem Ethernet Ethernet nT A af Zi Oa x Ill Proxy server DNS server SMTP POP3 Proxy server DNS server SMTP POP3 Mail server Mail server Ethernet Ethernet External device Ethernet module External device
219. op quote stop The following message is displayed as the execution result for a successful completion e Displayed message 200 Command successful e For the QCPU program file etc write this command after the QCPU is in the stop status DEDICATED INSTRUCTION ne MELSEC Q 6 DEDICATED INSTRUCTIONS The dedicated instructions are used to simplify programming for using the functions available for the intelligent function module This chapter explains the dedicated instructions for the functions that are explained in this manual among those dedicated commands available for the Ethernet module that can be used by QCPU 6 1 Dedicated Instruction List and Available Devices 1 Dedicated Instruction List The following table lists the dedicated instructions explained in this chapter bree Dedicated oat Reference Application i Functional description instruction section f e MRECV Reads received e mails 1 Section 6 2 For E mail sending receiving 7 o Section 6 3 READ Reads data from word devices of other station Section 6 4 A Reads from other station s device For reading writing SREAD Section 6 10 EAT completion device ee WRITE Writes to other station s device 2 to other station s device Writes to other station s device 2 Section 6 12 tion 6 12 i vi For Q QnA series ection Writes to other station s device For communication SWRITE Section 6 11 with completion device 2 ue
220. or Subject main text to be sent left x1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction System The programmable controller CPU stores the execution result of a dedicated instruction x2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic Functions 1 This instruction sends mails to the designated external device a When sending data as an attached file CPU module Ethernet module Mail server Transmission destination Send destination mail number mail address address Subject Main Text Attached file gt Attached file name mmddhhss bin b When sending data as main text CPU module Ethernet module Mail server MseND un s1 s2 D Transmission destination number mail address Subject Main text Send destination mail i address 2 Whether the MSEND instruction is being executed or has been completed normally or abnormally can be checked with the completion device D or completion status display flag D 1 designated in the set data a Completion device D Turns on at the END processing of the scan where the MSEND instruction is completed and turns off at the next END processing b Status display device at completion D 1 Turns on and off depending on the completion status of the MSEND instructio
221. or code reading etc 6 DEDICATED INSTRUCTIONS MELSEC Q 6 12 JP GP WRITE This instruction writes data to word devices of other stations Applicable device Link direct device Intelligent f Index register Constant JOO function module Others Zn K H device UL GH x1 T C D W ST SD or SW can be used For SD SW data can be written within the setting range allowed for the user For details on SD SW refer to the manual for the programmable controller CPU or network module of the target station Instruction Executing symbol condition JP WRITE GP WRITE Un S1 S2 D1 D2 GP WRITE The following format is applicable only when the local station is the Universal model QCPU Instruction Executing symbol condition k d omman JP WRITE JP WRITE Command GP WRITE GP WRITE Setting data Set data Description Set by Data type Network number of the local station 1 to 239 254 Jn 254 The network designated by the valid module during other station access User Binary 16 bits Start I O signal of the local station s Ethernet module 00 to FEn The higher 2 digits of the 3 digit I O signal S1 Head device of the local station that stores the control data S2 Head device of the local station that stores data to be written Em Device name D1 Head device of the target station to which data is written Local station device that is turned
222. ored in the completion status S1 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic DEDICATED INSTRUCTION SELE MELSEC Q Program example The following example shows a program that sends data to channel 5 of station number 15 When I O signals of the Ethernet module are X Y00 to X Y1F With arrival confirmation clock data setting required __ nz _ _ _ _ E AA lt gt gt gt gt 0 K3 D2 o K5 D3 O KT D4 no K15 D5 zo K5 D7 Local station usage channel Target station storage channel Target station network number Target station number Number of resend Delivery monitoring time 20 s s L O K4 D9 io K10 D100 Send data length 4 words Send data setting command e LE K20 D101 Send data s S K30 D102 kov K40 D103 X19 Initial normal completion signal AY HAU y2 sewD 37 DO D100 MO Performs error code reading etc 6 DEDICATED INSTRUCTIONS MELSEC Q 6 10 JP GP SREAD This instruction reads data in word devices of other stations Applicable device f Link direct device Intelligent f Internal device Index register Constant JOO function module KH
223. oring time it is resent for the number of resends designated in S1 7 0 to TCP resend timer value The monitoring time is reset to the TCP resend timer value TCP resend timer value 1 to 16383 The monitoring time is the designated value unit s Designate the number of request data word Word count of data stored in the request data storage device S2 Request data length 4 Remote RUN 2t04 6 3 Remote STOP 2 Clock data read 6 Clock data write Store the number of response data word Word count of data stored in the response data storage device S1 10 Response data length D1 System 4 Remote RUN 6 Clock data read 2 Clock data write Store the valid invalid status of the data in S1 12 to S1 17 S1 11 Clock set flag 0 Invalid System 1 Valid Continued to the next page Target station network number 1 to 239 254 1 to 120 81H to AOH FFu 1 5 Target station number n 0 S1 7 Number of resends Arrival monitoring time 0 to 16383 DEDICATED INSTRUCTION SESLE MELSEC Q Set data Setting range Setby S1 12 Higher 8 bits month 01 to 12 lower 8 bits last 2 digits of year 00H to 99h S1 13 Clock data set only when Higher 8 bits hour 00x to 23x lower 8 bits date 01 to 31 aa 14 errors occur 2 Higher 8 bits second 00 to 59x lower 8 bits minute 00 to 59x Higher 8 bits first 2 digits of year 00x to
224. ork MELSECNET H MELSECNET 10 relay communication function Select GX Developer Network parameter to start the Network parameters Setting the Ethernet Station No lt gt IP information screen For details on how to display this screen see the GX Developer Operating Manual E Network parameters Setting the Ethernet Station No lt gt IP info Eel Eg Station No lt gt IP information system z Net mask pattem COUOT Conversion setting Input format DEC IP address Clear Check End Cancel Setting the Station No lt gt IP information Automatic response system Station Ng E Select the Station No lt gt IP information system conversion method Paddress Gomputation sysiem information system Table exchange system Use together system e This setting is required when IP address computation system or Use together system is selected as the conversion method C0000000 to FFFFFFFF Set the mask value used in the logical product with the local station s IP address Decimal Input format Select the input format of Net mask pattern and IP address eoma A e Hexadecimal e This setting is required when Table computation system or Use together system is Network No selected as the conversion method 1 to 239 designate in decimal Set the Network No s of the communication request destination source stations This setting is required when Table computation system or Use together sys
225. own in the table indicate settings on the GX Developer Ethernet operation settings screen Set in the item Enable writing during RUN The Remote password indicates whether the instruction can be executed when the FTP communication port is designated as a port subject to the remote password check in the remote password setting parameter for the QCPU of the station to which the Ethernet module is installed See Section 5 9 of User s Manual Basic for the remote password 1 Client side user interface command list supported by Ethernet module Programmable controller CPU status Remote Remote password Command Function During During RUN While While locked Remarks STOP Write enable Write Gee unlocked ile locke Notify to transfer without converting file Disconnect and end the connection with FTP server o o m ee ie ee E E PEC e e AE ger Readfilefromacpu Oo gt _o o x Is DisplayQcPUfienames O o Delete QCPU file prdr_ Store QCPU fie e E O O 0 po Read file from QCPU CO CI A IS IS II sien Jomar a CONC A III ICI IS CI AS Pei fee lewd Display QCPU current directory QCPU current directory uit Disconnect and end the connection with FTP a server e only use Ethernet quote Send FTP server sub command module dedicated eee 2 Change QCPU file name Enter user name and password for Ethernet user O O module x1 The parameter file and the sequence program file cannot
226. r network MELSECNET H MELSECNET 10 Network module Network module Ethernet 5 Accessing remote Ethernet with the router relay Router External Ethernet External Ethernet device module device module Ethernet a 1 Accessible range 1 Routing via the Ethernet and CC Link IE controller network MELSECNET H MELSECNET 10 network systems is allowed within the range of the CC Link IE controller network MELSECNET H MELSECNET 10 specifications x Accessing other station is possible between devices indicated by 1 to 5 in the figure above 2 The only networks that can be routed are the CC Link IE controller network MELSECNET H MELSECNET 10 and Ethernet 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 2 Accessible stations communication request destination stations and relay stations communication relay stations This relay communication function allows communication with programmable controllers of other stations if the communication destination programmable controllers communication request destination stations and all the relay stations to the communication destination stations communication relay stations are configured with the modules listed below a Accessible modules communication request destination stations other stations 1 Programmable controller CPU AA oeae S O Basic model QCPU __ Q00JCPU Q00CPU
227. rammable controller CPU of another station with the Ethernet module via Ethernet or CC Link IE controller network MELSECNET H MELSECNET 10 When accessing other stations using data link instructions via Ethernet module set the parameters shown in Chapter 3 4 1 Other Station Access with the Data Link Instruction The data link instruction is an instruction to perform data send receive read write of the word device memory and other station access such as remote RUN STOP to the other station QCPU connected to the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet If the initial processing of the local station relay station and access station s Ethernet module is finished correctly it will be possible to access other stations by the data link instruction Local station ther stationacce s Other station Eth i ee ee ee Eth t acpu po es acpu neme module i module Other station Network Other station module QcPU Ethernet module Ethernet Other station access Ethernet module CC Link IE controller network MELSECNET H MELSECNET 10 Other station Other station access AAA E a ANA QCPU Network module Ethernet 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 2 Precautions for Accessing Other Stations The following describes precautions when accessing other statio
228. recommended to use the default value for this timer value as much as possible When changing the setting value determine the CPU monitoring timer value upon consulting the system administrator Designate the setting value in the range of lt 1H to 7FFFH 1 to 32767 gt The FTP connection is disconnected if an ACPU monitoring error is detected after the FTP client log in When restarting the file transfer make sure that the local station s QCPU is operating normally and then start over from the log in operation again 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 4 Procedure and Required Processing on the External Device Side FTP Client This section explains the procedure and required processing on the external device side for using the FTP server function of the Ethernet module In the explanation the FTP operation commands and input formats used for the applicable operations are shown lt ret gt indicates input using the CR Enter or Return key FTP transfer operation procedure Procedure on the external device side FTP client 1 Check the initial processing of the Ethernet module Log in to the Ethernet module 2 Log in to the Ethernet module Is the connection to be used subject to the remote password check Remote password unlock processing gt Data communication 3 Remote password unlock processing 4 Various operation of the FT
229. request source station b sending station b receiving station b destination station a Setting Neto No 1 12 1 1 2 22 2 2 value Station No Decimal IP Address 192 0 1 12 192 0 1 11 192 0 2 22 192 0 2 21 E71 module setting details when accessing from QCPU 4 to QCPU 3 destination station a Setting Network No value Station No Setting not necessary Setting not necessary Setting not necessary i Decimal The a and b in the E71 station setting details column indicate whether the value is for the communication request message transmission or response message transmission a For communication request message transmission b For response message transmission 3 12 3 12 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 4 Use together system a Overview of the Use together system 1 This method uses both the IP address computation system and the table exchange system 2 This method can be designated when accessing other station with the same Network No accessing other station in other CC Link IE controller network MELSECNET H MELSECNET 10 network system or accessing an Ethernet with different Network No and relaying from the CC Link IE controller network MELSECNET H MELSECNET 10 to the Ethernet network system 3 The set target Ethernet module can be installed either at a communication request source station communication relay station or co
230. reviation for JP READ and GP READ RECV Abreviation for JP RECV and GP RECV RECVS Abbreviation for Z RECVS A for Z RECVS A 2808 for the Q Corresponding MELSEC Communication Protocol Reference Reference Manual Manual a Abbreviation fr JRE PREG GREG and PREG Abbreviation forZP UIN A Abbreviation for the Q pen oN ee Ethernet Interface Module User s Manual User s Manual Application Application User s Manual Basic Abbreviation for the Q Corresponding Ethernet Interface Module User s Manual Basic User s Manual Web function Abbreviation for the Q Corresponding Ethernet Interface Module User s Manual Web function WRITE Abbreviation for JP WRITE and GP WRITE ZNRD Abbreviation for J ZNRD and JP ZNRD ZNWR Abbreviation for JZNWR and JP ZNWR 1 VERVIEW 2 MELSEC Q 1 OVERVIEW This manual provides information on the special functions of the MELSEC Q Series Ethernet Interface Modules 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 This chapter describes an overview of the special functions that are available for the Ethernet module 1 1 Overview 1 Send receive e mails Details are explained in Chapter 2 This function allows the transmission and reception of a maximum of 6k words of CPU information as the main text or attached file of e mail to
231. rk system When reading the device data is completed the completion device designated in D2 turns on Local station Response station QCPU Ethernet module Q QnA Ethernet module ZNRD Channel 1 Wid Ethernet 2 The ZNRD instruction is executed using channel 1 fixed The data link instructions and the Ethernet instructions cannot be executed from two or more stations at the same time on the same channel If the conditions of more than one instruction to be executed match at the same time the instruction executed later is made to wait until the channel becomes available since handshaking is performed automatically 3 Whether the ZNRD instruction is currently being executed or has been completed normally or abnormally can be checked with the completion device D2 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the ZNRD instruction is completed and turns off at the next END processing 6 DEDICATED INSTRUCTIONS MELSEC Q b Status display device at completion D2 1 Turns on and off depending on the completion status of the ZNRD instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the ZNRD instruction is completed and turns off at the next END processing Operation of the local station when the ZNRD instruction is being executed Sequence program ZNRD instruction Se
232. rnet module dedicated commands Function Designates the remote password set in the QCPU as unlocked and performs the lock processing This command is executed if the FTP communication port is designated as a port subject to the remote password check 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q Designation format quote password lock The following is displayed as the execution result for a successful completion 200 Command Okey Designation example 1 To designate the remote password 1234 quote password lock run Ethernet module dedicated command Function Sets the QCPU to the run status remote run Device memory clear can be designated when setting to the run status Designation format quote run mode clear mode Mode Designate whether to force a remote run 0 Normal run default value 1 Forced run Clear mode Designate whether to clear initialize the QCPU device memory when starting the remote run operation 0 Do not clear the device default value 1 Clear everything except for the latch range 2 Clear everything including the latch range The following message is displayed as the execution result when completed successfully Displayed message 200 Command successful Designation example 1 To perform a normal remote run with the designation not to clear the device memory quote run Designation example 2 To perform a forced remote run with the designation not to clear device
233. rograms The following binary code data is processed as control codes ODOAH Line feed code CR LF 00H End of main text Itis recommended to use 78 characters or less data when writing each line of the main text sending data Be sure to add a line feed code CR LF ODOAn at the end of the main text lines Attached file No attached file can be sent when sending data as the main text of e mail 2 USING THE E MAIL FUNCTION MELSEC Q 1 Send using the sequence program The following explains how an e mail is sent by the sequence program See Chapter 6 MSEND for detail Direction Create control data at D20 and on Create send data at D200 and on IH Send the e mail ZP MSEND uo D20 D200 M10 Processing program when normal completion Processing program when abnormal completion M10 M11 M11 2 Execution timing of the instruction Initial processing E mail sending Initial normal completion signal A X19 MSEND instruction MSEND instruction completion device oe i Er Abnormal completion MSEND instruction completion device 1 Normal completion abnormal completion 1 Start the local station programmable controller The parameters for the e mail function are stored in the Ethernet module 2 Execute the MSEND instruction The e mail designated with the MSEND instruction is sent to the mail server 3
234. ror occurrence is stored in S1 11 to S1 17 Stores the status at the completion of the instruction S1 1 Completion status 0 Normal System Other than 0 Abnormal error code 2 1 2 Channel used by the local Set the channel used by the local station 1to8 ser station 1 to 8 channel Specify the CPU type on the target station Setting value Single CPU or CPU in the system 0000H directly connected to the local station Same as O3FFH 00004 Target station s CPU type 03D0x Control system CPU 03D0 to k3 gt 03D 1 Standby system CPU 3 03D3 03D2x System A CPU O3FFH 03D3x System B CPU 03FFx Single CPU or CPU in the system directly connected to the local station Designate the network number of the target station Target station network OA number S1 4 Humber 254 When 254 is designated in Jn The network 1 to 239 254 User designated by the valid module during other station access Continued to the next page 6 58 6 58 DEDICATED INSTRUCTION SLS MELSEC Q Set data Setting range Set by Designate the target station 1 Station number specification When local station is Universal model QCPU 1 to 120 When local station is other than Universal model QCPUs 1 to 64 2 Specific group 81H to AOn All the station with the indicated group
235. rors a 8 bits second 00x to 59h System occur lower 8 bits minute a to 59H Higher 8 bits first 2 digits of year 00H to 99x S1 15 lower 8 bits day of the week 00H Sunday to 06H Saturday Ab detect Stores the network number of the station that detected S1 16 ad an abnormality 3 network number 1 to 239 Network number Stores the station number of the station that detected an abnormality 3 1 to 120 Station number 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic 3 Nothing is stored if the execution source detects an error when receiving an instruction S1 17 Abnormal detection station number DEDICATED INSTRUCTION oe MELSEC Q The following explains the reception processing on the target station by the send data length of the SEND instruction The allowable send data length S1 9 of the SEND instruction varies depending on the version See the User s Manual Basic Section 2 7 Specifying a length value outside the setting range will cause a 4101 error OPERATION ERROR on the local station lt When the target station is an Ethernet module gt Target station RECV RECVS Target station REC
236. rt with the single quotation mark indicates one argument The part with the brackets indicates that it is optional 1 Password If a password is registered in the target file for file transfer the password must be set in the Ethernet module prior to file transfer See the quote keyword set command in Section 5 6 4 2 File path a The QCPU designates the file by differentiating the drive name and file name b When designating a file in the QCPU using the FTP functions designate the file in the following manner Designation format drive name 1 file name extension Designation example 0 MAINSEQ1 QPG Extension identifier File name Drive name drive No Designation details 1 Drive name drive No e Designates the drive name for the memory used for file transfer The relationships between the QCPU memory used and drive name are as follows No designation Parameter valid drive designated with DIP switches QCPU built in program memory Memory card RAM SRAM card Memory card ROM Flash card ATA card QCPU built in standard RAM QCPU built in standard ROM 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 2 File name extension The corresponding file for the file transfer is designated The file name must be designated according to the GX Developer file name rules Alphabets uppercase numbers symbols can be used Alphabets lowercase cannot
237. ry 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 Ethernet CC IE MELSECNET Cards 4 7 Operational Settings 4 8 Self Diagnostic Tests 4 9 Maintenance and Inspection SH 080009 M 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 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 CONTROL 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
238. ry time an e mail is sent from the Ethernet module starting from 1 After the maximum number 4294967296 is reached the number starts again from 0 2 37 2 37 2 USING THE E MAIL FUNCTION MELSEC Q d The contents of the data recorded are as follows 1 When sending data as an attached file e If the data format is binary values are recorded from the lower byte L side If the data format is ASCII target values are converted to 4 digit hexadecimal ASCII codes and recorded from the higher byte H side of the values e If the data format is CSV target values are converted to 4 digit hexadecimal ASCII codes and recorded from the higher byte H side of the values If multiple word data is to be processed insert a comma between each word 4 byte ASCII code data Insert CR Code ODhH and LF Code 0An every each setting device range Example In case of M15 to MO 0001 H M31 to M16 0002n WO 001A p W1 002B n For M15 to MO M15 to M12 to M8 to M4 to MO Oo 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 For binary WO L WO H W1 L W4 H DO L DO H D1 L D1 H D8 L D8 H D9 L D9 H 1A 00 2B 00 11 00 12 00 19 00 1A 00 MO M8 M16 M24 M72 X10X18 X20 X38 B10B18 B40B48 0100 0200 0300 0400 05 00 60 00 61 00 62 00 30 00 3300 For ASCII wo W1 DO D1 D2 D3 D4 D5 D6 D7 D8 D9 001A 002B 0011 0012 00130014 0015 00160017 0018 0019 001A MO
239. s Manual Hardware Design Maintenance and Inspection C000h or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic Program example The following example shows a program that reads data from D10 to 14 of station number 4 to D200 to 204 of station number 1 When I O signals of the Ethernet module are X Y40 to X Y5F X20 ft mov H81 0 Y Clock data setting is required Control data setting mov K3 2 Channel used by local station command MOV HO 3 Y Target station s CPU type target CPU mov K20 4 Target station network number Mov Ka 5 Target station number MOV K5 7 J Number of resend HOV K20 8 Arrival monitoring time 20 s uov K5 9 Read data length 5 words X2 X59 K al UP READ J20 DO D10 D200 MO J X59 Initial normal completion command Miras N E a ds signal Processing program on read completion Mi e a A Processing program on normal completion 4 Mi peo NO ARDER RRE ronen tp Processing program on abnormal completion Performs error code reading etc mov D1 D100 I I DEDICATED INSTRUCTION E MELSEC Q This instruction reads received data Applicable device Link direct device Intelligent 7 gt i Constant File register JOO function module Index register Zn Others O 6 5 JP GP RECV for the Main Program Set data S Di O D2 K H device UGO Instruction Executing sy
240. s 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 1999 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 Please forward a copy of this manual to the end user CONTENTS This manual SAFE IY PRECAUTIONS iher ia A A A A Matte iad ets A 1 REVISIONS aie koe T iaa a a iaa A 5 CONTENT Seea i e e e o Be e o A 7 ABOUT MANUAL Sara e N A E EA Ta Ea A 11 The Manual s Use and Structure w 0 cccceccccscccesecesceeseseeceesedeecsnedacsenedeacsueeduaeevaedbecsunedbaedunedhacsunedeedhaadeedbaesvie A 12 About the Generic Terms and Abbreviations ccccecceeceeeeeeeeeeeeeeeeeneeseesaeesaeeseesaeesaeeseesieesieeseesieeneeenes A 15 1 OVERVIEW 1 1to1 5 Teal OVGWIOW 225 RT 1 1 1 2 Additional Functions in Function Version B or Late eceecceeceseeeeeeeeeeeeeeeseeeseeeseeseesieesieesieesieesieeeees 1 4 2 USING THE E MAIL FUNCTION 2 1 to 2 40 2 1 E mail Funcom aaa a a dede 2 1 2 1 1 E mail send and reception by the programm
241. s other than Q QnA AnUCPU 1 to 32 Constant Write completion device local station Designate device that is turned on for one scan by the write completion D2 D2 off Incomplete on Complete System Bit D2 1 off Normal on Abnormal setting range 1 The local devices and the file register for each program cannot be used as the device used for the setting data 2 In addition to the setting data the ZNWR instruction is executed using the following fixed values Channel used by own station Channel 2 Arrival monitoring time monitoring time until instruction completion 10 seconds Number of resends for arrival monitoring timeout 5 times 3 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction DEDICATED INSTRUCTION i MELSEC Q 1 The ZNWR instruction can be executed when the target station is a QCPU or QnACPU Access to an AnUCPU is available via MELSECNET 10 2 When writing data from the other station CPU module device with the ZNWR instruction specify the device within the range applicable to the host station CPU module Head device number to be write in other station CPU module D1 number of write points 1 lt last device number of host station CPU module gt x Last device number in host station CPU module having the same device na
242. s source O Accessible Not accessible A Accessible The number of access points etc is restricted 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 1 When performing a remote access from 1 to 2 Setting item Station that does DE not E i T Setting the number of Ethernet CC IE MELSECNET cards Setting the Ethernet CC IE x x x x x x x MELSECNET routing information Setting the Ethernet Station No lt gt x x x x x IP information Setting the Ethernet router relay x x x x x x x parameter 2 When performing a remote access from 1 to 3 Setting item Station that does Ca not or T T Setting the number of Ethernet CC IE MELSECNET cards Setting the Ethernet CC IE x x x x x MELSECNET routing information Setting the Ethernet Station No lt gt x x x x IP information Setting the Ethernet router relay x x x x x x x parameter 3 When performing a remote access from 1 to 5 Setting item Station that does ees not n F Setting the number of Ethernet CC IE MELSECNET cards Setting the Ethernet CC IE gt gt amp MELSECNET routing information Setting the Ethernet Station No lt gt x x x x IP information Setting the Ethernet router relay x x x x x x x parameter 4 When performing a remote access from 1 to 6 Setting item Station that does mies not T E Setting the number of Ethernet CC IEMPESEENET cards D0000000 MELSECNET routing
243. s stored in the completion status S 1 See the following manuals regarding the error code check the errors and take corrective actions lt Error codes gt 4FFFH or less QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection C0004 or higher Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s manual Basic Program example The following example shows a program that reads receive data from channel 5 When I O signals of the Ethernet module are X Y00 to X Y1F X20 uov 80 D20 Clock data setting required Control data setting command J po K5 D22 Local station storage channel fMov Ko D28 Arrival monitoring time 20 s 5M400 x19 ON pa dd A A ji faov 6205 pio X19 Initial normal completion signal D110 4 3P RECY 37 D20 D300 M10 y n hai 7 y ana a cn ae en or M11 1 mt Processing program when abnormal completion Performs error code reading etc mov p21 D100 RERSER RES When the data is stored in the receive station channel the bit corresponding to each channel of buffer memory RECV instruction execution request area turns on Data can be read automatically bu using this signal for the receive command The signal turns off shen the RECV instruction is completed 6 DEDICATED INSTRUCTIONS MELSEC Q 6 6 Z RECVS for Interrupt Programs This instruction reads received data Applicable device Set Link direct de
244. safe place and make it accessible when required Always forward it to the end user Design Precautions lt DANGER e For the operating status of each station after a communication failure refer to relevant manuals for the network Erroneous outputs and malfunctions may lead to accidents Not doing so can cause an accident due to false output or malfunction e To prevent the malfunction of the programmable controller system due to harmful e mails take preventive measures such as antivirus measures so that the mail server for this module does not receive harmful e mails e To maintain the safety of the programmable controller system against unauthorized access from external devices via the Internet take appropriate measures e When changing data of the running programmable controller from a peripheral connected to the CPU module or from a personal computer connected to an intelligent function module or special function module configure an interlock circuit in the sequence program to ensure that the entire system will always operate safely For program modification and operating status change read relevant manuals carefully and ensure the safety before operation Especially in the above mentioned control operations that are performed 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 To prevent this configure an int
245. scribes the parameter settings in order to monitor the status of the programmable controller CPU 3 To communicate with programmable controller CPUs of other stations via the CC Link IE controller network MELSECNET H MELSECNET 10 and Ethernet module Section 3 2 describes the accessible range and accessible stations when accessing other stations via the Ethernet modules e Section 3 3 describes the parameter settings using GX Developer in order to perform data communication with the programmable controller CPUs of other stations e Section 3 3 2 provides an overview of the processing for Station No lt gt IP information conversion 4 To use the file transfer FTP function e Section 5 3 describes the parameter settings using GX Developer in order to perform the file transfer Section 5 6 describes the FTP operation command on the FTP client external device side that is supported by the Ethernet module To know about the following items see the Ethernet Interface Module User s Manual Basic 1 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 2 Storage locations of the error codes for the Ethernet module Section 11 3 lists the error code storage locations in the buffer memory in the beginning of the section Structure of this manual 1 Setting Parameters with GX Developer a By se
246. sing program when normal completion Ln El m r eu eed O 1 Processing program when abnormal completion The following explains the types of execution that can be designated in the MRECV instruction s control data For more details on how to designate the execution types see Section 6 2 MRECV Instruction b9 b8 Complete type Type of MRECV instruction execution Designate whether or not to read the next mail after executing the MRECV instruction Setting value for designating the p D Setting type Description of processing Demerit type of execution Execute only e mail read processing The next receive mail The inquiry read processing of the m cannot be read PON a j 2 __ _ Inquiries to the mail f Do not inquire remaining receive mail information is immediately server can be less f x Do not read executed after the time set with a f t Mails tend to requent parameter of GX Developer has q accumulate on the elapsed mail server A Inquiries to the mail Execute read processing of e mails server become more After executing the MRECV Mails received by the f t requent instruction the inquiry read mail server can be 4 ae a i More processing in the processing of the remaining receive read in succession a See module affects other mail information is also executed i internal processing 2 ING THE E MAIL FUNCTION SS 2n MELSEC Q 4 Sending from a personal
247. specified in S1 5 S2 00014 Remote RUN S2 Sub request type 00021 Remote STOP Designate whether or not to forcefully execute remote RUN STOP operations 00011 Do not force execution S2 2 Mode 0003 Force execution setting at remote STOP The forced execution is a function for forcefully executing remote RUN from other station when the station that executed the remote STOP is no longer able to execute remote RUN Designate the status of the CPU s device memory only when executing remote RUN S2 Clear mode 0000 Do not clear however the local device will be cleared 00011 Clear excluding setting and latch range at remote RUN 00021 Clear including setting and latch range at remote RUN Response data All values are set by the system When all stations or a group FFH or 81H to AOH is specified in Target station No S1 5 no response data will be stored Remote RUN_ Remote STOP D1 Request type 00901 When station No is specified in S1 5 NE 00014 Remote RUN D1 1 Sub request type 00021 Remote STOP TRUCTION 6 DEDICATED INSTRUCTIONS MELSEC Q 1 Remote RUN STOP becomes valid when the RUN STOP key switch of the target station s Q QnACPU is RUN 2 Remote RUN STOP cannot be executed when the system protection is activated on the target station s Q QnACPU 3 When other station has executed a remote STOP PAUSE operation on the target station the RUN request cannot be executed
248. sponse station QCPU Ethernet module Q QnACPU Ethernet module Channel 1 Channel 8 S2 SWRITE Ethernet 2 Device data can be written to stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated numbers in addition to stations connected to the local station s network 3 The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction 4 Whether the SWRITE instruction is being executed or has been completed normally or abnormally can be checked with the send receive instruction flag corresponds to the channel used completion device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the SWRITE instruction is completed and turns off at the next END processing 6 53 6 53 DEDICATED INSTRUCTION 6 C STRUCTIONS MELSEC Q b Status display device at completion D2 1 Turns on and off depending on the completion status of the SWRITE instruction Normal completion Stays off and does not cha
249. ssigning all of the 32K points of the file register ZR to the expansion data register D Other station Host CPU module 1 CPU module DO Expansion data F ae Data register er Specify within DO to 12287 D12287 ZR12287 ZR12288 Specify within ZR12288 to 32767 ZR32767 1 File register with 32K points or more is required for the host CPU The number of steps for the WRITE instruction is 10 DEDICATED INSTRUCTION SSL MELSEC Q Control data Set data Setting range Set by b7 b15 to bO 0 2 1 1 Execution type bit 0 0 No arrival confirmation When the target station is on the same network Completed when the data is sent from the local station 1 Complete Execution source Target station When the target station is on other network Completed when the data arrives at the relay station on the network of the local station i Complete Execution source Relay station Target station Execution abnormal 0001H complete type P 0081H user 1 With arrival confirmation Completed when data is written to the target station y Complete nje Target station Execution source Relay station Target station Complete 4 O 2 Abnormal complete type bit 7 Designate whether the clock data setting is required or not at abnormal completion 0 Clock data setting not required Clock data at error occurrence is not stored in S1 11 to S1 17 1 Clock data setting required Clock data at er
250. station device that is turned on for one scan by the completion of the instruction D2 1 is turned on if the instruction execution completes abnormally System completion of the instruction Write notification device The local devices and the file register for each program cannot be used as devices used in setting data 1 The SWRITE instruction can be executed only when the target station is a Q QnACPU The SWRITE instruction cannot be executed for an ACPU connected to the MELSECNET 10 or Ethernet network system Thus the target station number should be limited to the Q QnACPU station numbers When writing data from the other station CPU module device with the SWRITE instruction specify the device within the range applicable to the host station CPU module Head device number to be write in other station CPU module D1 number of write points 1 lt last device number of host station CPU module gt x Last device number in host station CPU module having the same device name as D1 Use the file register ZR when specifying the expansion data register D or the expansion link register W that are out of area of the data register D or the link register W on the host CPU module respectively excluding the Universal model QCPU For calculating a area for the file regisger ZR refer to QCPU User s Manual Function Explanation Program Fundamentals Example When not assigning the data register D of the
251. t function module Can only use T C D W Instruction Executing symbol condition Command J ZNRD i Command 1 2 Setting data Description Setting range Set by Data type Target station network number Designates the network number of the target 1 to 239 stalon Binary 16 bits Target station number Designates the station number of the target 1 to 64 Constant station Data read storage head device target station Designates the head device of the target station that stores data to be read Data read storage head device local station Designates the head device of the local station that stores the data read Continued to the next page DEDICATED INSTRUCTION SESLE MELSEC Q Setting data DN Description Setting range Set by Data type When reading from Q QnA AnUCPU Length of data read 1 to 230 Constant Designates the number of data word count to When reading from User Binary 16 bits be read programmable controller CPUs other than Q QnA AnUCPU Read complete device local station Designate device that is turned on for one scan by the read completion System Bit D2 off Incomplete on Complete D2 1 off Normal on Abnormal x1 The local devices and the file register for each program cannot be used as the device used for the setting data 2 In addition to the setting data the ZNRD instruction is executed using the following fixed values Ch
252. t service provider of the local station s Ethernet module or the mail registration information designated by the system administrator 1 Password Designate the mail password of the local station s Ethernet module 2 Mail address Designate the mail address of the local station s Ethernet module 3 Check receive mails Select whether or not to check if receive mails have arrived and set the checking time interval when incoming mails are checked When receive mail check is designated set the time interval for inquiring the mail server whether or not there are mails addressed to the user The following table shows each setting range of the inquiry time intervals for checking receive mails 30 s to 24 h Setting range default 5 min 1 to 1440 30 to 3600 If the inquiry time interval from the programmable controller CPU or other module to the server is short because of the POP3 server specifications access may be restricted lock status on the server side Check the POP3 server specifications and set the inquiry time interval accordingly It is recommended to set the setting value of the inquiry time interval to the default 5 minutes or more b Mail server name Set the Internet service provider and the domain name or IP addresses of the mail servers designated by the system administrator used by the local station s Ethernet module 1 Designate the domain name of the mail server 2 Select the input format dec
253. t area address 205 in the buffer memory For the N W module SBA2 of the link special relay 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q b When abnormal completion 1 SEND instruction Sequence scan 0 END 70 END 0 END 470 END H0 END Send command Q QnACPU Send completion device Device designated with D 1 l Send completion device D 1 device 1 1 scan 1 a Completion status S1 1 device 2 Error code i i I I i I I i i i l Sending side i 4 i i I I 1 i Ethernet pate i module i i AP A IA a Vd mes al a AE AAA AA SR eee a Data Data Data Send error Resend when designated for twice 2 RECV instruction E O AN Na a os ge Gh a a a D E yng 7 Ethernet module i Sequence scan pl l RECV instruction execution request flag Receiving side 1 Q QnACPU i Receive completion device 1 Device designated with D2 1 i l i Receive completion device D2 1 device Completion status S 1 device Error code 1 The RECV instruction execution request flag for Channel 3 used at the receiving side Q QnACPU is as shown below For Ethernet module Bit 2 of the RECV instruction execution request area address 205 in the buffer memory For the N W module SBA2 of th
254. t in the RECV instruction execution request area address 205 of the Ethernet module buffer memory turns on The received data is read from the receive data storage channel using the ON status of the corresponding bit of the RECV instruction execution request area to time the reading operations When reading the receive data from the Ethernet module is completed the completion device designated by D2 turns on 6 DEDICATED INSTRUCTIONS Local station Response station QCPU Ethernet module Q QnACPU Ethernet module D1 Channel 1 D1 Channel 1 RECV SEND S 2 AT 4 Channel n hain Se yao Peres eal gt Channeln 4 7 Channel 8 Channel 8 iii Ethemet SS 2 The instructions for Ethernet module cannot be executed to two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction RECVS instruction for interrupt program cannot be used with the instruction for data link in cases where the same channel is used to read receive data using the instruction for data link Whether the RECV instruction is being executed or has been completed normally or abnormally can be checked with the completion de
255. t module supports the FTP File Transfer Protocol server function which uses the protocol to transfer files between external devices It functions as the file server for the files in the QCPU The FTP commands are used to direct data transfers in file units 5 The external device with the FTP client functions can easily access read write the user created files in the QCPU directly using the Ethernet module FTP server functions 1 Reading a file from the QCPU download Reading function for storing the QCPU files in the external device 2 Writing a file to the QCPU upload Writing function for registering the file in the external device to the QCPU 3 Scanning QCPU files Scanning function for checking the files registered in the QCPU from the external device x With these Ethernet module FTP server functions all user files in the ACPU parameters sequence programs and data files can be accessed using the FTP commands from the external device Programmable controller CPU FTP server External device FTP client QCPU Ethernet Parameter Program Storage file Data Read E Write M Ethernet 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 1 1 FTP server support functions of Ethernet module The FTP commands supported by Ethernet module when it serves as the FTP server are indicated below Write enable setting and Write disable setting sh
256. ta The SEND instruction can be executed only when the target station is a Q QnACPU The SEND instruction cannot be executed for an ACPU connected to an MELSECNET 10 or Ethernet network system The number of steps for the SEND instruction is 8 DEDICATED INSTRUCTION SSL MELSEC Q Control data Set data Setting range Set by 7 b7 to b0 0 2 1 1 Execution type bit 0 0 No arrival confirmation When the target station is on the same network Completed when the data is sent from the local station gt Complete Execution source Target station When the target station is on other network Completed when the data arrives at the relay station on the network of the local station o Complete Execution source Relay station Target station Execution abnormal complete type 1 With arrival confirmation Completed when the data is stored in the target station s designated channel y Complete i Target station Execution source Relay station Target station i Complete 4 O 2 Abnormal complete type bit 7 Set whether or not the clock data setting is required at abnormal completion 0 Clock data setting not required Clock data at error occurrence is not stored in S1 11 to S1 17 1 Clock data setting required Clock data at error occurrence
257. ta gt ASCII data Base64 binary data Base64 7bit 8bit CSV data i Quoted Printable 3 Flow of the e mail The following diagram illustrates the flow of e mail sent by the programmable controller CPU to its reception by the external device Programmable i Ethernet Mail server Mail server Ethernet Programmable controller CPU module 3 module controller CPU MSEND i Checks whether or not any mails were received Stores information No mail receive mail received Mails received Mail send 1 Mail send gt 4 Confirms information of 1 receive mail MRECV g Reads receive lt Request to receive mail 1 gt Stores receive mail 1 Send an e mail to the send mail server of the local station s Ethernet module 2 The send mail server of the local station s Ethernet module sends the e mail to the receive mail server of the send destination device When receiving by the Ethernet module 3 The Ethernet module checks whether or not any mails have arrived at the inquiry interval set with GX Developer and stores the results to the buffer memory 4 By executing the MRECV instruction the Ethernet module reads e mails from the e mail server to the mail buffer The programmable controller CPU reads one e mail and stores it in the mail buffer of the programmable controller CPU s devi
258. table lists the functions additionally provided for the Ethernet modules of function version B or later 1 The added changed functions shown in this section includes the functions added in the first products or later of function version B and function version D For the function version serial No and software version of the Ethernet module and related products CPU module and GX Developer that can use the added changed functions refer to Section 2 7 2 Refer to Appendix 1 1 concerning a comparison of functions in the different Ethernet module function versions 1 Functions added for function version B Reference Function Overview section Sending files in CSV Sends a file in CSV format as attachment to e mail from the format as attachment Ethernet module Sending main text Sends main text of up to 960 words from the Ethernet module The following encoding decoding is supported Chapter 2 e Encode the Subject using 7 bits encoding and send it from the Ethernet module e Decode and receive an e mail encoded with Quoted Printable by the Ethernet module cas Unlocks locks the remote password of the QCPU The unlock When using P processing enables access to the QCPU using FTP 4 check the file transfer commands FTP server The QCPU transfers files to the control CPU non control CPU Support for multiple s function of the Ethernet module when a multiple CPU system CPU systems ee configuration is used When us
259. target station number the instruction should be executed by setting the execution type to No arrival confirmation 3 When writing to a device of the same station from multiple stations make sure that the timings of the write operations do not coincide If the communication itself is normally completed when the execution type is set to No arrival confirmation the send is considered normally completed on the write source station even if the contents of the send data are abnormal In addition even if the contents of the send data are normal when the instruction is executed to the same station from multiple stations a timeout error C083H will occur on the write source station 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic 3 It can be specified when the local station has an Ethernet module of function version D or later Not available for any other case Access to the target CPU is required x4 Nothing is stored if the execution source detects an error when receiving an instruction 5 When the WRITE instruction is executed to the redundant system with a control system or standby system CPU specified the instruction may be unsuccessfully co
260. tation Programmable controller CPU D10 D11 D12 D13 D14 X22 X19 Station 4 Station 2 NE QCPU E71 instruction communication request source D300 Lec D301 1 Channel D302 A D303 Network No 1 Programmable controller CPU D50 D51 D52 D53 ZNRD station Station 3 a Program of station 1 ZNRD instruction When I O signals of Ethernet module are X Y00 to X Y1F X22 x19 H YH _ 97 zr Jl Read command MO M1 Ka DLO D200 KS MO RST DON 6207 DO b Program of station 2 ZNWR instruction When I O signals of Ethernet module are X Y00 to X Y1F 92 2000 J1 Write command M11 K3 D50 D300 K4 M10 SET RST Uo MOV G209 er RST X19 Initial normal completion signal Normal completion display Error code Error completion display X19 Initial normal completion signal Normal completion display Error code Error completion display 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 4 8 Reading Writing Clock Data Remote RUN Remote STOP REQ This section explains the format and program examples of the REQ instruction that is used to read write clock data and remote RUN remote STOP of the Q QnACPU of other stations For details see Sections 6 7 and 6 8 1
261. te password when the file transfer processing is completed x Ifthe FTP communication port is not designated as a port subject to the remote password check the operation is completed normally when the remote password unlock processing is performed The remote password is a character string registered in the QCPU with the GX Developer by user and data to allow prohibit access to the QCPU of another station via the QCPU of the station installed Ethernet module or via the station installed Ethernet module 4 Precaution when logging in to the Ethernet module FTP server Only one external device FTP client can log in to the Ethernet module at a time 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 Precautions when writing a file 1 Operation to overwrite an existing file cannot be performed Either delete corresponding file using the file delete command delete mdelete or change the file name using rename command before the file is written The sequence program file set in the parameter file currently used for the QCPU operation cannot be written Set the QCPU to the stop state then write in the file File transmission attributes change file write etc for file write can only be conducted for the QCPU program memory or the memory card RAM area Check the number of files that can be registered to the drive for the files to be stored File write cannot be performed to a drive where the number of files has
262. tem is Station No selected as the conversion method 1 to 64 designate in decimal Set the station number of the communication request destination source stations This setting is required when Table computation system or Use together system is IP address selected as the conversion method Set the IP address of the communication request destination source stations Other than 00000000 and FFFFFFFFu 3 WHEN COMMUNICATING WITH CC LINK IE CONTROLLER NETWORK MELSECNET H MELSECNET 10 RELAY MELSEC Q 1 Station No lt gt IP information system conversion method address 4H b7 b6 a There are four kinds of Station No lt gt IP information methods as shown below b Select one of them according to Section 3 3 2 and make sure to set the values on this screen using the method selected The default conversion method is the Automatic response method Parameter settings requirement Conversion method Net mask pattern Conversion setting Automatic response system IP address computation system X Table exchange system XL O O Use together system Epoca E O O Setting required X Setting not required 2 Net mask pattern address 3A9H a Designate the mask value based on the guidelines given below This pattern is used in a logical sum with the local station s IP address when calculating the IP address of the opposite device using the IP address computation system b When setting the sub
263. than the value set by the user Word device When the monitoring device value is equal to or greater than the value set by Device value gt monitoring value unsigned A A ser Device value gt monitoring value Device value gt monitoring value unsigned When the monitoring device value is greater than the value set When the monitoring device value is greater than the value set by the user the user When the monitoring device value is equal to or less than the value set by the Device value lt monitoring value signed on Device value lt monitoring value Device value lt monitoring value signed When the monitoring device value is less than the value set When the monitoring device value is less than the value set by the user the user When the monitoring device value is equal to or greater than the value set by Device value gt monitoring value signed ihe use Device value gt monitoring value Device value gt monitoring value signed Device value gt monitoring value signed _ When the monitoring device value is greater than the value set by the user the monitoring device value is greater than the value set When the monitoring device value is greater than the value set by the user the user 2 ING THE E MAIL FUNCTION 2n MELSEC Q 9 Monitoring value Designate the comparison value of the condition of comparison given in 8 above 10 Notification data storage device News data storage device T
264. tification of CPU status monitoring only the Subject that stores the programmable controller CPU status will be sent 2 The Ethernet module receives the Subject without decoding a The programmable controller CPU in the Ethernet module loaded station is monitored for every CPU inquiry time interval set by the user The following information can be registered as the notification conditions 1 Device monitoring of the programmable controller CPU e Monitoring the numeric values stored in the word device e Monitoring the bit device ON OFF status 2 Monitoring of the programmable controller CPU status e Monitoring the CPU module status RUN STOP PAUSE b The device monitoring result of the programmable controller CPU is sent by either the main text or attached file of e mail 1 The attached file is sent by converting the device monitoring data into binary ASCII CSV data format 2 The main text is sent by converting the device monitoring data into Binary or ASCII format data c As for the status monitoring result of the programmable controller CPU only the Subject that stores the programmable controller CPU status is sent d When more than one send mail address are specified in the notification setting the smallest numbered address is set in the To field of the mail header The other addresses are set into the Cc field for transmission 2 Data conversion method used by the Ethernet module The following shows the data conv
265. ting to a safety CPU is not allowed from other stations 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION MELSEC Q 1 The CC Link IE controller network MELSECNET H MELSECNET 10 network No group No and station No for the Ethernet module in the data link instruction setting data designate the network No group No and station No assigned to the Ethernet module by the Setting the number of Ethernet CC IE MELSECNET cards indicated in User s Manual Basic This is so that the Ethernet network system will be considered to be the same class as the CC Link IE controller network MELSECNET H MELSECNET 10 network system to perform other station accessing processing for the QCPU 2 For details of the data designation method for the data link instruction see chapter 6 3 A maximum of eight instructions can be performed simultaneously as long as the channel number 1 to 8 designated in each instruction control data do not overlap with each other D ANGER Precautions for data link instruction 1 In a system where AnUCPU coexist never execute the following instruction from the Q QnACPU to other station s AnUCPU The AnUCPU that has been executed such instruction results in MAIN CPU DOWN or WDT ERROR and may stop the operation 1 SEND 2 READ 3 SREAD 4 WRITE 5 SWRITE 6 REQ 2 When accessing for all Q QnACPU stations on the MELSECNET 10 including programmable
266. tion Other station Q QnACPU DO ooo a Command UDP gt DL gt Receive response Arrival 4 44 ea he ar E Read request monitoring time x1 1 Response E a a Read data Receive response oe UDP 4 Execution ____ completion 2 Communication timing when the READ instruction completed successfully when resend is performed E71 QCPU E71 Local station Other station Q QNnACPU ii alec A Command UDP Receive response Arrival 4 _ UDP 24 Ne at monitoring time 1 Mo ostras 3 C d UDP Resend gt Omman X Receive response Repeat for UDP 4 the number lt 74 AS Read request f d ae Response Read data 2 do e Receive response 2n UDP 4 Execution E ES 4 completion 1 The user designates the arrival monitoring time with the READ instruction control data S1 8 2 The user designates the number of resend with the READ instruction control data S1 7 x3 Indicates the response not returned within the arrival monitoring time The Ethernet module performs a resend of the command for the number of resend when this response is not received 4 The receive response UDP in the diagram is for the interlock between the Ethernet module and this is the response to the partner station Ethernet module from the Ethernet module OS 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE C
267. tion Normal station Ethernet Ethernet module MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station MELSECNET H MELSECNET 10 Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC Link IE controller network Control station Normal station x1 Access to programmable controller CPUs other than the QCPU and QnACPU is allowed only to stations connected to the MELSECNET 10 x2 Cannot be used if the source or target station is a safety CPU x3 Writing to a safety CPU is not allowed from other stations 4 WHEN THE QCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION USING THE DATA LINK INSTRUCTION Instruction Details Performs remote RUN STOP to other station Performs clock data read and write for other stations Ethernet module N W module PF Ethernet module N W module Q QnACPU r 4 Chapter 1 Chapter 2 Chapter 3 Chere Chapter 5 Chapter 6 Chapter 7 Chapter 8 Reads data from other station s word device Ethernet module N W module 4 ar ko Word
268. tored in D1 to y D1 n Store the valid invalid status of the clock data in S 12 to S 15 Clock set flag a Invalid System 1 Valid Higher 8 bits month 01 to 12 lower 8 bits last 2 digits of year 00x to 99h Clock data lower 8 bits date 01H to 31 System set only when abnormal Higher 8 bits second 00 to 59 lower 8 bits minute 00x to 59x Higher 8 bits first 2 digits of year 00x to 99 lower 8 bits day of the week 00 Sunday to 06x Saturday DEDICATED INSTRUCTION E oe MELSEC Q Receive data Set data Setting range Set by D1 1 D1 This stores the contents header attached file of the to Receive data System D1 n received e mail The receive data storage device D1 requires a contiguous free area equal to or greater than the receive data length S 9 maximum of 6517 words 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 The following shows a description of the processing after the MRECV instruction is executed by selecting the execution type Setting option Description of processing Execute only the read processing of e mails from the mail server Even if mails remain on the mail f No extra read As Inquire read about information O server they cannot be read Do nat inquir
269. trol data such as mail No to be read 3 Storage device of header attached file 4 Complete bit Receive mail is temporarily stored in the buffer memory shown below Address re i Item Description Remarks hexadecimal 2680H Indicates the size of received e mail header attached file data 2681H Indicates the size of the header data 2682H Mail information E Indicates the head address where the attached file data information is 2683H Head address of attached file Stored 268Aw_ Systemarea Header information maximum of p rd Indicates the content of the header designation items above 373 words Attached file maximum of 6144 words 40004 Systemarea gt O 268BH to 3FFFH Indicates the contents of the attached file data 2 ING THE E MAIL FUNCTION eee MELSEC Q x1 In the mail information storage area the following information related to the receive mail is stored in the corresponding bits Mail information storage area b15 b14 to b5 b4 b3 b2 b1 bO address 2682 9858 3 1 Indicates whether the information maximum of 128 words in the From head address storage area is valid 1 or invalid 0 2 Indicates whether the information maximum of 4 words in the Date head address storage area is valid 1 or invalid 0 3 Indicates whether the information maximum of 64 words in the Subject head address storage area is valid 1 or invalid 0 4 Indicates whether or not there is an a
270. ttached file Yes 1 or No 0 For Yes it indicates that the information maximum of 12 words stored at addresses starting from the Attached file name head address is valid 5 Indicates whether or not there is information in the Message ID head address storage area Yes 1 or No 0 6 Indicates the system information 7 Indicates whether the receive mail that has not been read to the programmable controller CPU is stored in the Ethernet module Yes 1 or No 0 x2 The value stored in each head address shown in the table indicates the offset address OH to nH from the head address of the buffer memory in which the applicable address is stored address 268BH to 3FFFH 1 The Ethernet module checks whether or not there are any incoming mails addressed to the local station in the mail server at the time interval set in the inquiry interval in the Network Parameter Ethernet e mail setting screen of GX Developer If there are incoming mails addressed to the local station the reception information is stored in the following areas of the buffer memory e Bit 15 is turned on in the mail information storage area see 1 above The number of receive mails on the mail server is stored in the receive mail count storage area address 5870 When more than one receive mails are stored on the mail server the receive mail information can be stored in the buffer memory in the same way as described above by designating Inquire in the
271. tting parameters with GX Developer the sequence programs for communicating with external devices can be simplified in the Ethernet module b In this manual parameter settings using GX Developer are explained in detail for each item displayed on the setting screens For details on the types of the setting screens objectives of the settings the setting items and an outline of the setting operation using GX Developer see Section 4 5 of the Q Corresponding Ethernet Interface Module User s Manual Basic c Set the required parameters by referring to chapters that explain the functions to be used and load the set parameters to the programmable controller CPU of the Ethernet module installed station 2 Setting screen of GX Developer This manual explains the parameter settings with GX Developer in the following format 2 6 E mail Setting from GX Developer 1 Shows how to start This section explains the setting required by GX Developer to send and receive the setting screen e mails For details on how to display each screen refer to the GX Developer Operating Manual 1 DNS setting Purpose of setting Specify the IP address of the DNS server when setting the mail server name using the domain name by the e mail setting see 2 Start procedure Network parameter setting the number of Ethernet CC IE MELSECNET cards gt Initial setting Setting screen E Network parameter Ethernet initial setting Module
272. uction at station No 3 in response to the SEND instruction from station No 1 Network No 1 O Send station Ethernet Ethernet Ethernet module module module HH SEND H Station Station Staton H RECvu2 No 1 No 2 No 3 Receive station 1 The Set by column indicates the following e User Data is set by the user before executing a dedicated instruction e System The programmable controller CPU stores the execution result of a dedicated instruction 2 For a list of error codes see Section 11 3 3 of the Q Corresponding Ethernet Interface Module User s Manual Basic x3 Nothing is stored if the execution source detects an error when receiving an instruction The allowable receive data length S 9 of the RECV instruction varies depending on the version See the User s Manual Basic Section 2 7 Specifying a length value outside the setting range will cause a 4101 error OPERATION ERROR on the local station 1 This instruction reads via the Ethernet module of the local station the data sent from a station connected to a CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet network system which is designated with the network number and station number in the control data The data is sent using the SEND instruction When data is received from the send station the receive data is stored in the channel of the local station designated with the send station and the corresponding bi
273. uction execution request area address 205 Check the send data length 1 to 480 words and execute the SEND instruction lt When the target station is a network module gt Target station RECV RECVS Target station RECV Local station Q series Q series MELSECNET H network module F QnA series MELSECNET 10 network module SEND CC Link IE controller Function version B D Function version A 480 words dl y network module 960 words 489 words 1to480 words O AO 481109860 wors OPO O Performs the processing normally x Terminates abnormally and returns an error code to the request source 6 DEDICATED INSTRUCTIONS MELSEC Q 1 The send data storage device S2 requires a continuous free area equal to or 2 greater than the send data length S1 9 maximum of 960 words In order to increase the reliability of the data it is recommended to execute the instruction by setting the execution type to With arrival confirmation when a number from one to 120 is designated for the target station number When 81h to AOH or FF is designated for the target station number the instruction should be executed by setting the execution type to No arrival confirmation When sending data to the same channel of the receive station do so after the receive station reads data using the RECV instruction If the communication itself is normally completed when the execution type is set to No arrival confirmation the send
274. uctions When the execution results of the data link instruction shown in this chapter end error the returned error code is the same error code as is shown in the following manual Q corresponding Ethernet Interface module Section 11 3 3 of User s Manual Basic The error code for data link instruction is stored in the Ethernet module error log area and the following area 1 SEND RECV RECVS READ SREAD WRITE SWRITE REQ Control data completion status S1 1 2 ZNRD Buffer memory Address 207 3 ZNWR Buffer memory Address 209 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER MELSEC Q 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER Files in the local station QCPU to which the Ethernet module is installed can be read and written from external device using the Ethernet module file transfer function In this chapter how to use command the Ethernet module FTP function from external device personal computer workstations etc is explained The access destination of files handled using the file transfer function is the local station QCPU in the station to which the Ethernet module is installed Specify an access target CPU if the local station QCPU is included in a multiple CPU system 5 1 File Transfer Functions The file transfer functions hereinafter called FTP server of the Ethernet module to perform read write to the files in the QCPU from a external device side is explained The Etherne
275. uest type f 0001 Clock data write Higher 8 bits month 01H to 12x D1 2 lower 8 bits year 00H to 99 Year Lower two digits Higher 8 bits hour 00x to 23 NDS lower 8 bits date 01H to 31H Clock data read Higher 8 bits second 00H to 59H lower 8 bits minute 00H to 59H Higher 8 bits 00x D1 5 lower 8 bits day of the week 00H Sunday to 06H Saturday D1 4 The clock data cannot be written when the system protection is activated on the target station s Q QnACPU When the clock data is read the response data storage device D1 requires a contiguous free area of six words 6 DEDICATED INSTRUCTIONS Program example MELSEC Q The following example shows a program that writes the clock data 8 30 00 to the Q QnACPU of station number 13 having network number 7 When I O signals of the Ethernet module are X Y00 to X Y1F X20 i gt fit H91 DO Control data setting command fic Ki D2 MOV H3FF D3 MOV K7 D4 ov K13 D5 MOV K5 D7 y po K20 pe Poy K6 D9 X21 Mov H11 D20 Request data setting command MOV HL D21 MOV H38 D22 ov 3008 D24 MOV BO D25 X22 x19 yT T Rf DO D20 D30 MO Write command M0 1 Processing program on instruction Processing program on abnormal i l completion mov 01 Clock data setting required Channel used by the local station Target station s CPU type target CPU Target station network number Targ
276. unication relay Z ________________Teceiving station x sending station Network No 1 i Network No 2 i Station No 12 ocPu E71 E71 Station No 21 IP Address ei 192 0 1 12 1 IP Address 192 0 2 21 a a A e e a S 7 1 1 Network No 2 l Station No 22 IP Address 192 0 2 22 4 Communication request destination station MA 1 Communication request source station a Setting Network No value Station No Setting not necessary Setting not necessary Setting not necessary Decimal IP Address 192 0 1 12 E71 module setting details when accessing from QCPU 1 to QCPU 4 1 Communication request 2 Communication relay 3 Communication relay 4 Communication request source station a receiving station b sending station a destination station b Setting Network No 1 12 1 1 2 22 2 2 value Station No Decimal IP Address 192 0 1 12 192 0 1 11 192 0 2 22 192 0 2 21 E71 module setting details when accessing from QCPU 2 to QCPU 1 destination station a value Station No Setting not necessary j Decimal IP Address 192 0 1 11 3 Communication request source station a Setting Network No 2 22 value Station No Setting not necessary Setting not necessary y Setting not necessary Decimal IP Address 192 0 2 22 E71 module setting details when accessing from QCPU 4 to QCPU 1 1 Communication request 2 Communication relay 3 Communication relay 4 Communication
277. uotation of the first argument can be omitted Set data Set data Description Set by Data ER Start I O signal of the local station s Ethernet module Un Un f os ae User stingBinary 100 16 bits 00 to FEn Higher 2 digits of the 3 digit I O signal S Head device of the local station that stores the control data Head device of the local station that stores the contents of the soned e NUS Device name e mail header attached file Local station device that is turned on for one scan by the completion of D2 1 is turned on if the instruction execution completes abnormally The local devices and the file register for each program cannot be used as devices used in setting data The MRECV instruction can be executed only when the local station is a QCPU The number of steps for the MRECV instruction is 10 DEDICATED INSTRUCTION oe MELSEC Q Control data Set data Setting range Setby b15 to b10 b9 b8 to bO 0 2 0 0 1 Complete type bit 7 Designate whether or not the setting of the clock data is required at abnormal completion 0 Clock data setting is not required The clock data at error occurrence is not set in S 11 to S 15 1 Clock data setting required The clock data at error occurrence is set in S 11 to S 15 2 Execution type bit 9 2 Designate whether or not to inquire if there are more mails on the server after reading receive mails 0 Do not inquire Do not re
278. ve forward to fill in any empty numbers and areas after each setting so the setting numbers will change 3 When sending MSEND instruction e mail by the programmable controller CPU specify these setting numbers 1 through 16 in the control data b Notification setting News designation Designate whether or not to send the news information set with the CPU monitoring function Explanation Notification setting For more details on the notification settings see Section 2 9 2 USING THE E MAIL FUNCTION MELSEC Q 2 7 Sending Receiving E mail Attached Files by the Programmable Controller CPU This section explains how to send and receive attached files of e mail using the de dicated instructions MSEND MRECV available for the Ethernet module 2 7 1 When sending data as an attached file The following explains the MSEND instruction and program for sending e mail The following illustration shows how the MSEND instruction is used to store data in an attached file and send it to an external device 1 2 3 4 LI ZP MSEND Un S1 S2 D QJ71 77777P Mail server Subject attached file Mail address Parameter setting nation 5 Main text of mail 1 O No E71 6 Attached file bin asc csv 1 O number of the Ethernet module Control data such as send mail address This indicates the mail address of the send destination device set o
279. vice D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the RECV instruction is completed and turns off at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the RECV instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the RECV instruction is completed and turns off at the next END processing Operation of the local station when the RECV instruction is being executed Sequence program RECV instruction RECV instruction execution request buffer memory address 205 Completion device D2 Status display device at completion D2 1 END END END END processing processing processing processing OFF RECV instruction ON execution is completed Sy OFF OFF OFF 5 ON Saz cas lA OY ON i i i i i EA Abnormal gt completion 4 Normal i AR i _ completion_y One scan When executing the instruction using JP RECV GP RECV the read processing is executed only once when the read instruction flag goes from off to on at rise DEDICATED INSTRUCTION 6 C STRUCTIONS MELSEC Q Errors 1 When a dedicated instruction completes abnormally the abnormal completion signal D2 1 turns on and the error code i
280. vice Intelligent Internal device 3 Constant data File register JOO function module Index register Zn Others S O device VENGO x Instruction Executing symbol condition Command __ Z RECVS Un Z RECVS 1 1 If the originating station is a Basic model QCPU function version B or later or Universal model QCPU double quotation of the first argument can be omitted Set data Set data Description Set by Data type Start I O signal of the local station s Ethernet module Un Un F ve e 00 to FEn The higher 2 digits of the 3 digit I O signal User String Binary 16 bits Head device of the local station that stores the control data D1 Head device of the local station that stores the receive data Device name System D2 Designate as dummy Bit The local devices and the file register for each program cannot be used as devices used in setting data The RECV instruction can be executed only when the local station is a QCPU The number of steps for the RECV instruction is 10 DEDICATED INSTRUCTION SSL MELSEC Q Control data S 0 Complete type Designate 0 o o Uer ee Stores the status at completion of the instruction 0 Normal System Other than 0 Abnormal error code 2 Designate the channel number that stores data to be read 1 to 8 Channel number Stores the channel number used by the send station 1 to 8 Channel number
281. ward Print Delete Previous Next Addresses From Mail address of Ethernet module e a Date To Mail address of external device Subject No 1 testmail msend e b Error Machine1 001 eee c a From Displays the e mail address of the Ethernet module By entering the mail addresses of the send destination devices in the address book the registered names display names can be displayed and it makes the management easier b Subject This indicates the No of transmissions 1 and the Subject written by a sequence program 1 The number is automatically incremented every time an e mail is sent from the Ethernet module starting from 1 After the maximum number 4294967296 is reached the number starts again from 0 c Main text of e mail This indicates the main text of e mail sent by the Ethernet module 2 USING THE E MAIL FUNCTION MELSEC Q 2 9 Sending E mails Using the Programmable Controller CPU Monitoring Function When the monitoring information read from the QCPU matches with the news conditions set by the user the Ethernet module sends an e mail to the external device 2 9 1 News setting Purpose of setting The monitoring conditions notification conditions of the programmable controller CPU can be set on the News setting screen of GX Developer The monitoring function of the programmable controller CPU can be used according to this setting Both CPU status monitoring and device monitoring can
282. will be stored and the remaining data will be ignored 3 Whether or not there are mails on the mail server can be determined by the on receive mail off no receive mail of bit 15 of the mail information area address 2682H 9858 in the buffer memory The information in the mail information area is updated when the MRECV instruction execution completes 4 Whether the MRECV instruction is being executed or has been completed normally or abnormally can be checked with the completion device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the MRECV instruction is completed and turns off at the next END processing b Status display device at completion D2 1 Turns on and off depending on the completion status of the MRECV instruction Normal completion Stays off and does not change Abnormal completion Turns on at the END processing of the scan where the MRECV instruction is completed and turns off at the next END processing Operation when the MRECYV instruction is being executed Mail information area b15 MRECV instruction completion device D2 D2 1 Ethernet module Inquiry time int Inquiry nquiry time interval Mail server Mai Mail Errors 1 When a dedicated instruction completes abnormally th
283. y card mdelete 1 QPG e See sections 5 5 and 5 6 1 delete 5 WHEN USING FILE TRANSFER FUNCTIONS FTP SERVER mdir Function Designation format Designation example Caution Similar function mget Function Designation format Designation example Caution MELSEC Q Stores the detailed information file name created date and size of the files stored in the QCPU to the FTP client side file as log data mdir transfer source drive transfer destination file path To store the detailed information of the files stored in the RAM area of memory card to S990901 LOG file mdir 1 11 S990901 LOG Always designate directly after the drive name of the transfer source When designating the transfer destination file path FTP client side always designate the transfer source drive name When the transfer destination file path is not designated the file name set by the FTP application on the FTP client side is used to save the file The transfer destination is the connected current directory of the FTP startup connection mls Reads a file from QCPU When reading multiple files the file name and extension for the file path is designated using wild cards or Receive confirmation is performed for each file transfer mget FILE PATH To read all files with extension QPG from the files stored in the RAM area of memory card mget 1 QPG The files read are stored on the FTP cl
284. ystem When reading the device data from other station is completed the completion device designated in D2 turns on Also when sending the device data designated in S2 is completed the device on other station designated in D3 turns on Response station Ethernet module Q QnACPU Ethernet module D1 4 Channel 1 S2 SREAD Channel n Channel 8 Ethernet Device data can be read from stations connected to either the CC Link IE controller network MELSECNET H MELSECNET 10 or Ethernet networks having the designated numbers in addition to stations connected to the local station s network The data link instruction and instructions for the Ethernet network system cannot be executed at two or more locations for the same channel If the execution conditions are met at two or more locations at the same time instructions to be executed later have to wait until the channel becomes available because handshaking is automatically performed at the execution of the first instruction Whether the SREAD instruction is being executed or has been completed normally or abnormally can be checked with the send receive instruction flag corresponding to the channel used completion device D2 or completion status display flag D2 1 designated in the set data a Completion device D2 Turns on at the END processing of the scan where the SREAD instruction is completed and turns off
Download Pdf Manuals
Related Search
Related Contents
StarTech.com Replacement USB Mouse to PS/2 Adapter – F/M l`écho - Ville de Courrières Salora DVP-7020-TWIN TYPE SIN 015 - Espresso Resource NW Whirlpool IEP314RQ1 User's Manual Instalar el Parrot MKi9200 USER`S MANUAL Laser distance sensors user manual Home Decorators Collection 0895300930 Instructions / Assembly Cables Direct 1.0m LC-LC 50/125 MMD OM2 Copyright © All rights reserved.
Failed to retrieve file