Home
QnUCPU User`s Manual (Communication via Built
Contents
1. Input x 9Cu The number range of a device in a CPU module Hexadecimal Output y 9D which is accessed to can be specified Hexadecimal Internal relay M 90 Decima Latch relay L 92H Decimal Annunciator F 934 Decimal Edge relay v 944 Decima Link relay B A0y Hexadecimal Data register D A8y Decima Link register w B44 Hexadecimal Contact TS Ciy Timer Coil TC CO Decimal Int devi Current value TN C2H Merna USEL CONICS The number range of a device in a CPU module Contact SS C7 which is accessed to can be specified Retenti RT TIT TI RITA T E etentive Coil SC C6 Note that the access to a local device is not possible Decimal timer Current value SN C8y Contact cs C44 o o Counter Coil CC C3H Decimal NN Nz Current value CN C5y gt 20 cv Link special relay SB Alu Hexadecimal pO Jao Link special register SW B54 Hexadecima e 3 ESSEET SS SSS Ed 2 Step relay s 98H Decimal 5 L 83 Direct input DX A2u Hexadecimal o 3 e 2 Direct output DY A3H Hexadecimal o Function input Hexadecimal Function output Cannot be accessed Hexadecimal Internal system device Function register s Decimal Special rel SM 91 Deci pecia teray H The number range of a device in a CPU module PELIS Special register SD A94 which is accessed to can be specified Decimal Note that the access to
2. Stored E Description Cause value 004 Normal E 014 Insufficient receive data The total packet size of receive data is smaller than that set in protocol data 10 Data not matched The receive data do not match the value set in protocol data 11 ASCII Binary conversion When ASCII Hexadecimal is set in Code Type data not in ASCII code are de error received 124 Data length error The received Length value exceeds 2046 bytes The Length value received from the external device does not match the 304 Data length size error actual length of received data FFy Verification not performed 55 6 3 Setting Items of Predefined Protocol Support Function 6 3 1 Communication type There are three protocol communication types Send Only Receive Only and Send amp Receive For details of the protocol communication types refer to the following Q Corresponding Ethernet Interface Module User s Manual Basic 6 3 2 Packet elements set for Packet Setting 56 The packet elements include Length Static data Non conversion Variable and Non verified Reception Up to 32 elements can be set in a single packet The protocol setting method and packet elements are the same as those of the Ethernet interface module except for some differences Q Corresponding Ethernet Interface Module User s Manual Basic The following are the differences Read the E71 Ethernet interface module as the CPU
3. TCP X 2 X SS ar Em El RM 1 7 BR 5 X er 9 7 y Eco ar 3 fe v EEE 3 ar E E 5 LM E 5 ESOS AE a Piz pM 1 o po 3 p 7MLE I1 2 15 EA a Oo IP Address and Port No will be displayed by the selected Format TU Please enter the value according to the selected number Cancel Item Setting Protocol TCP Open System Socket Communication TCP Connection Unpassive Host Station Port No 1000 Setting range 00014 to 13874 13924 to FFFEy 2 Destination IP Address Blank Setting range 0 0 0 1 to 223 255 255 254 Destination Port No Blank Setting range 00014 to FFFEy 1 When Fullpassive is selected for TCP Connection a value must be set 2 Do not specify 13884 to 13914 because these ports are used by the system 7 Page 154 Appendix 2 67 68 b Devices used in the program The following table lists the device numbers and applications used in the sample program Device number Application M3000 Send direction D3000 and D3001 SP SOCSND instruction control data M300 and M301 D300 to D303 SP SOCSND instruction completion device Send data length and send data 6 bytes of 124 344 564 784 9Ay and BCh M3002 Normal send indication M3003 Send error indication D400 to D403 SP SOCRMODE instruction control data SD1282 Open completion signal SD1286 Receive state signal
4. 3n Receive data The result of the SP SOCRCV instruction can be checked with the completion device 6240 and 62 1 e Completion device 62 0 Turns on in the END processing of the scan after completion of the SP SOCRCV instruction and turns off in the next END processing Completion device 62 1 Turns on or off according to the result of the SP SOCRCV instruction State Description When completed Remains off Turns on in the END processing of the scan after completion of the SP SOCROV instruction and turns When failed off in the next END processing The following figure shows the timing of reception processing with the SP SOCROV instruction o Data pen transmission Data read processing processing processing ON i i Open completion OFF f signal SD1282 n END END END processing processing processing Sequence program F ON i Reception status OFF signal SD1286 n d Pa idc instruction execution SP SOCRCV Completion device 62 IP instruction 1 scan Completion 63 ON OFF device i Abnormal termination ON i amp oq ee IAS 1 1 v Data read processing ACK TCP only uondeoai ejeq 89 suononJisu uonoun uoneoiunuluo 194909 PZ ADYJOS 4S Buisseooud ANF au ul ejep panreoa no Buipesy v7 4 Error A detection of an operation error turns
5. Availability eve Built in Item Description uit Ethernet port QJ71E71 100 QCPU Enables the Ethernet module to send receive data to from an external device by using the protocol for the external Data communications using the predefined protocol device The external device side protocol can be easily o O selected or created edited from the Predefined Protocol Library of GX Works2 158 1 2 3 4 5 6 7 8 9 10 11 Available commands are limited gt Page 39 Section 5 2 The quote cpuchg command cannot be used gt Page 120 Section 9 4 Only the default router can be specified Settings are fixed to the following Interval timer 5 seconds Resend timer 8 times Up to 16 devices can be connected by setting MELSOFT Connection for user connections in PLC parameter The MELSOFT transmission port corresponds to the GX Developer transmission port of QJ71E71 100 Up to 17 devices can be connected including one system connection by setting MELSOFT Connection for user connections in the network parameter For processing on the external device side refer to Page 159 Appendix 4 2 Executable with the socket communication function Refer to 3 in this section for the differences Check the versions of the CPU module and programming tool before using the function 7 gt Page 155 Appendix 3 Executable with the socket communication function Check the versions of the CPU module and p
6. 112 CHAPTER 9 FILE TRANSFER FUNCTION FTP 9 1 Setting for FTP Communication 1 Operation on the CPU module side Project window gt Parameter lt gt PLC Parameter gt Built in Ethernet Port Setting Q Parameter Setting PLC Name PLC System PLC File PLCRAS Boot File Program SFC Device t O Assignment Multiple CPU Setting Built in Ethernet Port Setting TP Address Setting Open Settine 3 pi ing Input Format DEC FTP Setting 1 IP Address 192 168 o Time Setting Subnet Mask Pattern Default Router IP Address Communication Data Code Binary Code ASCII Code 2 Era srine change FTE NC Protocol Disable direct connection to MELSOFT IT Do not respond to search for CPU Built in Ethernet port on network IP packet transfer setting IP packet transfer setting Setifitisneeded Default f Changed Print Window Print Window Preview Acknowledge XY Assignment Default check Cancel 1 Set the IP address of the CPU module 2 Select Enable online change FTP MC Protocol when data need to be written even while the CPU module is in RUN state uoneoiunululo2 dij Joj BUAS 16 113 114 3 Configure the FTP settings Built in Ethernet Port FTP Parameter Setting FTP Parameters FTP Use Login Name MELSEC Password Current New Ao Command Input 1800 Monitoring Timer X 50
7. M3002 Normal send indication M3003 Send error indication M4000 Close direction M4001 Disconnection by the other device SD1282 Open completion signal SD1284 Open request signal SD1286 Receive state signal SD1288 Connection state signal D200 and D201 SP SOCCLOSE instruction control data M200 and M201 SP SOCCLOSE instruction completion device M4002 Normal close indication M4003 Close error indication M4004 Closing flag D400 to D403 SP SOCRMODE instruction control data D5000 and D5001 SP SOCRCV instruction control data M500 and M501 SP SOCRCV instruction completion device D500 and higher Receive data length and receive data M5002 Normal receive indication M5003 Receive error indication CHAPTER 7 SOCKET COMMUNICATION FUNCTION c Sample program Fixed length mode setting SM402 3 x tt MOV KI D402 J Setting TCP receive mode to 1 MOV K6 D403 J Setting receive data size to 6 l SP SOCRMODE uo Ki D400 J Changing TCP receive mode of g T Connection No 1 lt lt Connection No 1 open processing Active gt gt M1000 SD1282 0 SD1284 0 SD1288 A J tl t ME E MOVP HO D100 J Setting Execution completion type to 0 M T SP SOCOPEN uo Ki D100 M100 J Connection No 1 open M100 M101 E
8. Sequence program ON Reception status OFF signal SD1286 n S SOCRCVS instruction execution S SOCRCVS instruction read processing ACK TCP only uondeoai geq 92 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for S is other than 1 to 16 Error code 4101 The received data size exceeds the size of the receive data storage device Error code 4101 The device number specified for D exceeds the device point range Error code 4101 An invalid device is specified Error code 4004 5 Precaution Do not use both this and SP SOCRCV instructions when reading out receive data of the same connection 6 Program example When M5000 is turned on data received from the connected device are read out Devices used Device number Application SD1282 Open completion signal SD1286 Receive state signal D5000 Receive data length and receive data storage location Program M5000 SD1282 0 SD1286 0 I I 3 S SOCRCVS uo K1 D5000 Reading receive data of Connection No 1
9. quote password lock lt ret gt bye lt ret gt 115 uoneoiunululo2 dij Joj BUAS 16 b For the QnUDE H CPU Start Start up FTP client ftp lt ret gt Y Log in to the QnUDE H CPU open IP address of the QNUDE H CPU lt ret gt NO ls the FTP communication port subject to remote password check YES Y Unlock the remote password quote password unlock Remote password lt ret gt as the fil transfer operation File write File read or file write eted YES File read k d Notify that the file will not be converted binary lt ret gt Y y YES Check the file list in the CPU dir lt ret gt or Is lt ret gt Lock the remote password quote password lock lt ret gt NO Does the read target file exist Disconnect the connection with the QnUDE H cPU Pyesret gt YES x NO End Is a file password set for the target file YES y lu Enter the file password pelis urs peni x Read the file get File name lt ret gt e Notify that the file will not be converted E Check the file list in the CPU dir lt ret gt or Is lt ret gt Does the write target file exist YES binary lt ret gt NO Is it OK to overwrite YES NO password set for the target file I YES x quote keyword set Enter the file password
10. D5000 and D5001 SP SOCROV instruction control data M500 and M501 SP SOCRCV instruction completion device D500 and higher Receive data length and receive data M5002 Normal receive indication M5003 Receive error indication D6000 and D6001 SP SOCCINF instruction control data D6010 to D6014 SP SOCCINF instruction completion device CHAPTER 7 SOCKET COMMUNICATION FUNCTION c Sample program 1 lt lt Fixed length mode setting SM402 a tt MOVP Ki D402 J Setting TCP receive mode to 1 pes ove K6 D403 J Setting receive data size to 6 SP SOCRMODE UO K1 D400 j Changing TCP receive mode of E J Connection 1 Target checking 2 SD1282 0 r n 7 i LSP SOCCINF uo K1 D6000 D6010 J Obtaining information of connected A ie 4 s device Data sending M3000 SD1282 0 d H MOVP K6 D300 J Setting send data length LMOVP H3412 D301 J MOVP H7856 D302 Setting send data MOVP HOBC9A D303 J L sP S0CSND uo Ki D3000 D300 M300 J Sending data to Connection No 1 M300 M301 4 1 H Mt SET M3002 J Normal completion M301 a SET M3003 j Error completion Data receiving SD1282 0 SD1286 0 M500 HE SP SOCRCV uo K1 D5000 D500 M500 J Receiving data M500 M501 E 7 r j SET M5002 J Normal completion M501 3 SET M5003 J Error completion END J
11. 22 PO es hace a sd Lye E a 130 Ethernet communication LLL 24 DUE eodd aed aee irem n E es 126 DWG ssh se tn e ia 126 F Q File transfer function o oooooo o o o 112 _ aaaaaaaaasaasasasasasasasasasasasasasasasass FEBR ts ede tae ee 112 Q series ciu boe vue ECL VAR 19 FTP commands l l ess 120 QnUDE H CPU 2 ee eee 19 FTP server support commands 123 Qn DVCPU oiua ts d ed 19 Fullpassive i ioi dia dns 62 GUE a ees sh tea arent Pare a eae ie 126 quote ocu a dais al eoe dle ad Odea oy 126 G R get estes ieee e BEATUM 124 oo cio 19 24 recv f riction s a 4 eoo mtd see 45 GX Developer l l 19 renamez Sere LAM MEER NONE ake ds 126 Pos as ad MISES ene dues 115 H ROUIGIS face a AM eee Eee dud E MR 30 F li ores bd deat Terrae d nietos rt Ra s 129 High speed Universal model QCPU 19 Hostname Cv rr os a la 28 S HUD esi Saks x CXAO E E pace Na 22 Searching CPU modules lilius 29 Simple connection 00005 33 Simultaneous broadcast 20 4 74 IP packet transfer function 150 SNTP client coco 109 Socket communication function instructions 79 Status s ete wee IRE ER m 129 K SIOD o ic xe nie maya RU dodgy e Fade UR RU 129 KeepAIlVe A Ra eS NE Raves 31 E tl keyword set och onl ee ii eA ot 127 162 TCP fixed length receive mode 104 TCP socket functi
12. 3 Function This instruction closes a connection specified in 6 Disconnection of a connection The result of the SP SOCCLOSE instruction can be checked with the completion device D 0 and 1 Completion device D 0 Turns on in the END processing of a scan after completion of the SP SOCCLOSE instruction and turns off in the next END processing e Completion device D 1 Turns on or off according to the result of the SP SOCCLOSE instruction State Description When completed Remains off Turns on in the END processing of a scan after completion of the SP SOCCLOSE instruction and turns When failed off in the next END processing END processing END processing END processing Program po ue instruction executed SP SOCCLOSE instruction Completion device D 0 Completion device D 1 heennecton y 1 scan when close normally completed 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for 6 is other than 1 to 16 Error code 4101 The device numbers specified for 62 and D exceed the device point range Error code 4101 suomnonJisu uonoun uoneoiunulu
13. 6 6 Operation Image and Data Structure of the Predefined Protocol Function For operation image and data structure of the predefined protocol function refer to the following Read the E71 Ethernet interface module as the CPU module Q Corresponding Ethernet Interface Module User s Manual Basic 58 6 7 1 2 3 4 CHAPTER 6 COMMUNICATION VIA PREDEFINED PROTOCOL Precautions Send receive packet When a message larger than 1460 bytes is sent from the external device using TCP a packet may be divided As a result data may not be received as one message with the predefined protocol function Keep the message less than 1460 bytes or use UDP When data is received using TCP separate data blocks that are sent successively may be combined at the receiving side Therefore handshaking is required prior to communications Predefined protocol setting Power on or reset the CPU module or turn on SM1355 Predefined protocol setting check request to enable the written protocol setting data If the written data are not enabled the data may be changed unintentionally when the CPU module is powered on or is reset Device data Data set by the predefined protocol function are communicated during the service processing Therefore if the COM instruction is executed while b15 of SD778 Refresh processing selection when the COM CCOM instruction is executed is on data communications are also performed at the execution of the
14. CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL The predefined protocol function sends and receives packets predefined by using GX Works2 enabling easy communications with external devices such as measuring instruments and bar code readers Protocols can be either selected from the prepared predefined protocol library or created and edited by users 1 Setting protocols 2 Writing protocols Protocols can be set easily using the predefined The set protocols are written to the CPU module protocol support function of GX Works2 Module Write EJ Target Memor Please save in 56 itten to tared N od CONS Send External device External device Receive A 3 Executing protocols Data communication becomes possible with the protocol corresponding to each connected device Execute protocols by dedicated instructions One dedicated instruction can execute multiple protocols Note 6 1 The predefined protocol function can only be used for the QNUDVCPU When using the predefined protocol function check the versions of the CPU module and GX Works2 3 Page 155 Appendix 3 49 6 1 50 Specifications The following table lists the specifications It
15. File password lt ret gt o SE 7 Delete the file with the same delete ps EUR name Or change the file name Name Current file name New file name lt ret gt AA Write the file put File name lt ret gt Y 116 CHAPTER 9 FILE TRANSFER FUNCTION FTP c Logging in to the CPU module The following explains the operation flow from starting an FTP session until log in to the CPU module Ex Start up the FTP from the MS DOS prompt of Microsoft Windows Command Prompt ftp 10 97 14 254 Microsoft Windows XP Version 5 1 2608 lt C gt Copyright 1985 2061 Microsoft Corp IC WINDOWS CDN T Cif to 2 ftp gt open 18 97 14 254 Connected to 10 97 14 254 228 QNUDECH gt CPU FIP server ready 3 User 10 97 14 254 none CPU 1 rd required 4 gt S logged in Start an FTP session FTP lt ret gt Open a connection to the FTP server open IP address of the CPU module lt ret gt C NN Specify the login name Login name lt ret gt 4 Specify the password Password lt ret gt d Locking and unlocking a remote password If the FTP communication port is specified as a remote password check target in the remote password settings unlock the remote password using the following command quote password unlock Remote password lt ret gt When terminating the operation lock the unlocked remote password using the follow
16. Notifies the FTP server of file transfer without conversion Neither return codes nor kanji codes are converted This command is set automatically in the CPU module binary abbreviated to bin ebye Function Disconnects the line to the FTP server and terminates the FTP session Specification format bye Identical command quit Specification format Example eclose o o Function Disconnects the line to the FTP server 5 iH Specification format close F 3 oO E S 3 Odelete 712 a6 Function Deletes a file stored in the CPU module g d 3 3 5 o o Similar command dir Function Specification format Example Similar command delete file path name When deleting a file stored in an SD memory card delete 2 MAINSEQ1 USR mdelete Displays the names creation dates and sizes of the files stored in the CPU module dir drive name When displaying the detailed information of the files stored in an SD memory card dir 2 Is 123 eget Function Specification format Example 1 Example 2 Note els Function Specification format Example Similar command mdelete Function Specification format Example Similar command mdir Function Specification format Example Note Similar command 124 Reads a file from the CPU module get source file path name destination file path name When reading a file stored
17. pA SET M1002 Normal completion M101 E SET M1003 J Error completion pl lt lt Data sending gt gt M3000 SD1282 0 Ih 1 MOVP K6 D300 Setting send data length MOVP H3412 D301 J MOVP H7856 D302 J y Setting send data MOVP HOBC9A D303 J SP SOCSND uo K1 D3000 D300 M300 J Sending data to Connection No 1 M300 M301 yl 1 M SET M3002 J Normal completion M301 SET M3003 y Error completion Data receiving SD1282 0 SD1286 0 M500 a iy AF SP SOCRCV uo K D5000 D500 m500 J Receiving data M500 M501 4 i SET M5002 Normal completion M501 el i sET M5003 j Error completion lt lt Connection No 1 close processing SP peca Bo PLS m4001 J Processing for disconnection xd by the target M4000 SD1282 0 M4004 E O f ME SPSOCCLOSE U0 KI D200 M200 y Connection No 1 close le 3 M4001 E sET M4004 Setting closing flag 3 gt M200 M201 a 3 o Je sET m4002 J Normal completion D si MU SET m4003 y Error completion c o 4 i i 2 RST M4004 Resetting closing flag a B O END U 24 There are two kinds of TCP receive modes TCP standard receive mode and TCP fixed length receive mode For fixing the data size run the program enclosed by a dotted line It can be omitted when the data size is not fixed For the TCP receive mode refer to the section for the SP SOCRMODE instruction gt Page 103 Section 7 4 8 65 66 d Precaution for Active open communication
18. 1 There are two kinds of TCP receive modes TCP standard receive mode and TCP fixed length receive mode For fixing the data size run the program enclosed by a dotted line It can be omitted when the data size is not fixed For the TCP receive mode refer to the section for the SP SOCRMODE instruction 7 gt Page 103 Section 7 4 8 2 For acquiring information of the device connected on TCP run the program enclosed by a dotted line It can be omitted when the information acquisition is not needed dO Burst uonesunwwoy 69 70 d Precaution for Passive open communication Configure an interlock circuit using the Open completion signal SD1282 and Open request signal Open completion signal ON SD1282 Open request signal ON SD1284 SD1284 in the program The following chart shows on off timings of the Open completion signal and Open request signal TCP disconnection completed by the external device OFF OFF TCP connection completed by the external device When a device establishes a connection by Passive open the IP address and port number of the connected device can be acquired using the SP SOCCINF instruction For the SP SOCCINF instruction refer to 5 Page 98 Section 7 4 6 On TCP one connection is established with one target device To communicate with multiple devices from one port number prepare the same number of connections as that of the target devices A connection that exceeds
19. At Error Occurrence Select whether to execute the time setting function upon power on or reset of the CPU module Select whether to stop or continue the time setting when an error is detected upon power on or reset of the CPU module Continue or Stop Execution Interval Select this when executing the time setting function at fixed time intervals 1 to 1440 min Execution Time Select this when executing the time setting function at a specified time in increments of 30 minutes 2 Either of these two options must be selected 110 00 00 to 23 30 8 2 1 2 3 4 CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT Precautions Communication timeout A communication timeout occurs when 20 seconds have elapsed without receiving any response after sending a time query At the time of a communication timeout the value in SD1270 is FFFFy Time information server When the time setting function is used an SNTP server time information server is required on the LAN Delay resulted from the time required for communication A delay occurs and affects the set time as a result of the time spent for communication with the SNTP server computer For a high accuracy time setting specify an SNTP server computer that is networked as close to the CPU module as possible For multiple CPU system configuration In a multiple CPU system enable the time setting function of only the Built in Ethernet
20. Parameter gt PLC Parameter gt Built in Ethernet Port Setting C OpensSeting button Built in Ethernet Port Open Setting IP Address Port No Input Format HEX HostStation Destination Port No IP Address dO Busy uonesunwwoy 7 IP Address and Port No will be displayed by the selected Format Please enter the value according to the selected number Cancel Item Setting Protocol TCP Open System Socket Communication TCP Connection Active Host Station Port No 1000 Setting range 0001 to 13874 13924 to FFFE Destination IP Address 192 168 3 40 Setting range 0 0 0 1 to 223 255 255 254 Destination Port No 1000 Setting range 0001 to FFFE 1 Do not specify 13884 to 13914 because these ports are used by the system lt gt Page 154 Appendix 2 63 64 b Devices used in the program The following table lists the device numbers and applications used in the sample program Device number Application M1000 Open direction D100 to D109 M100 and M101 SP SOCOPEN instruction control data SP SOCOPEN instruction completion device M1002 Normal open indication M1003 Open error indication M3000 Send direction D3000 and D3001 M300 and M301 SP SOCSND instruction control data SP SOCSND instruction completion device D300 to D303 Send data length and send data 6 bytes of 124 344 56y 784 9Ay and BC
21. check YES Y quote password unlock Unlock the remote password remote password lt ret gt Is file transfer YES completed NO Write files YES to the FTP server NO y File reading Y No file conversion is notified binary lt ret gt y Check the file list cr stele or Is lt ret gt Y Does the read target file exist YES Is File password 32 set for the target file YES NO Y gt quote passwd rd Enter a file password lad password lt ret gt Read the file et file name lt ret gt y File writing Does the write target file exist YES y No file conversion is notified binary lt ret gt Y dir ret Check the file list ppesecor Is lt ret gt Is the FTP communication port subject to remote password check NO YES y Lock the remote password y Disconnect from the CPU module Y End Can it be overwritten YES Is File password 32 set for the target file YES y Enter a file password Delete or rename the file NO y Write the file y quote passwd wr write password lt ret gt delete file name lt ret gt or rename current file name new file name lt ret gt put file name lt ret gt
22. lt gt gt Page 33 CHAPTER 4 The CPU module can be directly connected to a programming tool with a single Ethernet cable only without using a hub simple connection In direct connections communications can be performed simply by the transfer setup without setting IP addresses MC protocol communication gt Page 36 CHAPTER 5 From an external device such as a personal computer or HMI device data of the CPU module can be read or written and this allows CPU module operation monitoring data analysis and production control Data communications using the predefined protocol C gt Page 49 CHAPTER 6 The predefined protocol function sends and receives packets predefined by using GX Works2 enabling easy communications with external devices such as measuring instruments and bar code readers Protocol can be either selected from the prepared predefined protocol library or created and edited by users Socket communication function gt Page 60 CHAPTER 7 By using instructions dedicated to socket communication any data can be transferred from and to the external devices connected through Ethernet using TCP or UDP Time setting function SNTP client gt Page 109 CHAPTER 8 Automatic time setting of the CPU module can reduce the maintenance cost for time setting By sharing the same clock data among CPU modules connected to Ethernet via their built in Ethernet ports the order of errors between processes can be traced f
23. stored in bytes System 1 The data which were read out from the Socket to Receive data communication receive data area are stored in n ascending order of addresses 2 The Set by column indicates the following System The CPU module stores the execution result of the S SOCRCVS instruction 3 0 to 2046 for the QnUDE H CPU with a serial number first five digits of 12051 or earlier SAON2OS S uonnooexe uononyJjsul Buunp ejep poaAlo29J no Buipeay vil 91 Point P Receive data size is 2046 bytes by default To receive data over 2046 bytes change the receive data size with the SP SOCRMODE instruction Ifthe CPU module receives odd byte data invalid data is stored to the high byte of the device where the last received data is stored 3 Function This instruction reads out received data of the connection specified in S from the Socket communication receive data area CPU module Receive data length Socket communication receive data area Receive data Connection No specified by S External device S SOCRCV Receiving Reading receive data Receive data Receive data The following figure shows the timing of reception processing with the S SOCRCVS instruction Data Open reception Data read processing processing processing ON Open completion OFF f signal SD1282 n END END processing processing
24. C Host Name IP address CPU Type Label Comment y Q100UDEHCPU Clicking this button will Response Wait Time 2 sec View Only PLC Type of Project Selection IP Address Input automatically enter the Find CPU Built in Ethemet port on Network IP address of the CPU module Finds CPU Built in Ethemet port on the same network This cannot be performed when the following happens No response within a specific time period Connected via a router or subnet mask is different Do not respond to search for CPU Built in Ethemet port is checked in PLC parameter CPU modules connected to cascaded hubs are also searched and a list of them is displayed CPU modules connected via a router cannot be searched Some CPU modules connected via wireless LAN may not be found since Ethernet communication may not be stable due to packet loss If multiple CPU modules with the same IP address are found in the list check the IP address parameters for the CPU modules Starting communication with the IP address duplicated will cause a communication error Appropriate CPU modules may not be found if a heavy load for service processing is applied Increase the response waiting time value in the Find CPU Built in Ethernet port window or the service processing time value in the Service processing setting tab of PLC parameter By selecting the option shown below in the Built in Ethernet port tab of PLC parameter the Find CPU
25. Command SPSOCCLOSE f pou R ZR ae Weg umen Zn ic Others 6 o o o 62 y A 1 A 24 a E E 8 A A A B 1 File registers set for each local device or program cannot be used 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 63 Start number of the device from which control data are stored Device name Start number of the device which turns on for one scan upon System O completion of the instruction Bit D 1 also turns on when failed 12 The Set by column indicates the following User The data must be set before executing the SP SOCCLOSE instruction System The CPU module stores the execution result of the SP SOCCLOSE instruction Point When replacing the ZP CLOSE instruction Ethernet module dedicated instruction dummy argument can be used in a Built in Ethernet port QCPU instruction without rewriting 2 Control data Device Item Description Setting range Set by 6240 System area E 5 gt Completion status is stored 00004 Completed System Other than 0000 Failed Error code Completion status 1 3 The Set by column indicates the following System The CPU module stores the execution result of the SP SOCCLOSE instruction 84 CHAPTER 7 SOCKET COMMUNICATION FUNCTION
26. Configure an interlock circuit using the Open completion signal SD1282 and Open request signal SD1284 in the program The following chart shows on off timings of the Open completion signal and Open request signal When disconnected by the CPU module Open completion signal ON TCP disconnection completed upon response from the external device SD1282 OFF Open request signal ON TCP disconnection request from the CPU module SD1284 OFF SOCOPEN instruction SOCCLOSE instruction When disconnected by the external device TCP disconnection request from the external device TCP disconnection completed upon A response from the CPU module gt SOCCLOSE instruction CHAPTER 7 SOCKET COMMUNICATION FUNCTION 3 Program example for Passive open The following shows a communication flow of a Passive open Waiting for TCP connection in Passive open state Send or receive Send by the SP SOCSND instruction or receive by the SP SOCRCV or S SOCRCVS instruction a Parameter setting The following parameters are set for the sample program Project window Parameter gt PLC Parameter gt Built in Ethernet Port Setting c Open Setting button Built in Ethernet Port Open Setting IP Address Port No Input Format HEX Host Station Destination TCP Connection Port No Port No IP Address z z o
27. M100 SP SOCOPEN instruction completion device Program Mjgno D12820 8012940 eg aber i Dioo Ea completion type to OH sP S0COPEN uo Ki D100 M100 J Connection No 1 open M100 M101 SET M150 Normal completion M101 7 SET M151 1 Error completion END b Opening a connection using control data settings When M1000 is turned on connection No 1 is opened using control data Devices used Device number Application SD1282 Open completion signal SD1284 Open request signal SD1288 Connection state signal D100 SP SOCOPEN instruction control data M100 SP SOCOPEN instruction completion device Program M1000 SD1282 0 SD1284 0 SD1288 A A 2 itt AF A E MOVP H8000 pioo Jj Setting Execution completion type to 8000H Setting Application area suononJisu UONOUNY uoneoiunuJuo 194909 t N3dO920S dS uonoeuuoo e Bulysijqeysy LYZ MOVP H200 D102 to 2004 TCP IP Active open r j Setting port No of host MOVE Hi000 pos station to 4096 4 Setting target IP address DMOVP HOA614FOE D104 J to 10 97 79 14 r Setting port No of target MOVP H1000 D106 E device to 4096 LL SP SOCOPEN Uo K1 D100 M100 Connection No 1 open M100 M101 al ME SET M150 Normal completion M101 F A LSET M151 J Error completion LEND 83 7 4 2 Disconnecting a connection SP SOCCLOSE
28. Turn off and then on the SM1296 OFF _________ ______ l clear request SM1295 I I I to turn off the system during Clear error ON SM1297 OFF m I NOE the END processing I I Clear error cause SM1299 lt L 0 b Operations of special relay and special register when the operation of clearing the IP address storage area flash ROM failed Clear start Clear failed END END END END processing processing processing processing I I I Clear request o FL SM1295 OFF l l I I Clear complete ON I l SM1296 gt a A Turn off and then on the clear request SM1295 to turn off the system during the END processing Clear error ON l ERR SM1297 OPF EE Clear error cause SM1299 gt a Error cause 3 Cause of failure to clear the IP address storage area flash ROM If the processing of clearing the IP address storage area flash ROM is not completed the error cause is stored in SD1299 IP address storage area clear error factor Value in SD1299 Error cause 200 An error occurred during clearing Clearing cannot be performed since the following functions are being executed Online Program Change 3004 Export to ROM format Write to PLC flash ROM 400 Clearing is started during write processing execution CHAPTER 11 IP ADDRESS CHANGE FUNCTION 4 Program example The following shows a program example of clearing the IP address
29. function can be disabled and the system does not respond to a search request on the network Enable online change FTP MC Protocol Disable direct connection to MELSOFT 29 XIOMj9N OU uo sejnpoy ndo Buiupiees ec 3 4 Communication via Routers From the built in Ethernet port access is available via routers on a network such as a corporate LAN Router CPU module ENS Control room For some functions as shown below communications via a router are not available Searching CPU modules on the network Simultaneous broadcast in socket communication For access via a router follow the instruction in the step 1 on gt Page 25 Section 3 1 1 to set the subnet mask pattern and the default router IP address in addition to the IP address Personal computer Project window gt Parameter 2 PLC Parameter gt Built in Ethernet Port Setting IP Address Setting IP Address Input Format Open Setting DEC 192 168 39 Subnet Mask Pattern Set the subnet mask pattern and default router IP address Default Router IP Address 255 255 255 192 168 254 30 FTP Setting Time Setting 3 5 1 2 3 4 CHAPTER 3 CONNECTION O
30. me f EE Exit Data EsrametersProcram Select Ar cencet Al Setections E INC TRI pas prts 2013 11 19 144112 2013 11 16 144113 Refresh 9 write the program to the CPU module Online 2 Write to PLC Related Eunctions lt lt Execute lose Remote Operation Write THe FomatPLC ear PLCMemary Arrange PLC Memory Memory M3001 Lt ipvov K100 D5 Mov HOA D7 mov KI Da2 M3001 14 mov KT D202 ASP EOPRTAL W Ki KI DX0 MAD M200 M201 t SET MEO M201 i SET M51 MOVP D 0300 10 Execute the program written to the CPU module by using the SP ECPRTCL instruction For the protocol setting method refer to the following LA GX Works2 Version 1 Operating Manual Intelligent Function Module CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 1 Start device to store the predefined protocol operation status In the open setting set the start device where the predefined protocol operation status is to be stored The following information is stored in the area of 19 words starting from the selected device Start Device to Store Predefined Protocol Name Description offset The execution status of the predefined protocol function is stored Default 0 0 Not executed Protocol execution 1 Waiting for data to be sent status 2 Data being sent 3 Waiting for data to be received 5 Executi
31. 1 Operating Manual Common Diagnostics gt Ethernet Diagnostics lt gt Status of Each Connection Ethernet Diagnostics Target Module Setting Change IP Address Display Port No C Module No ist Module 0000 cpu P cNo 1 Y DEC HEX DEC HEX Parameter Status Error History onnection Status l Time Setting Status l E vanas Latest Remote Unlock Forced ni eae Oe parce pois Error Protocol El wa Password Error Deactivation i Code ii Status Count Status 0 0 0 0 ex era UDP MELSOFT Connection Si Invalid or Locked 0 Allowed FTP Server bur 0 0 0 0 d Sx ara Disconnected Invalid or Locked Allowed Disabled Allowed MELSOFT Direct Connection Soma 10 97 79 21 0948 4 Clear Latest Error Code Clear Unlock Error Count Disable Deactivation of Selected Row Force Deactivation of Selected Row PING Test Loop Te COM ERR Start Monito Stop Monitor Turn on the force deactivation flag of the connection in the special register SD1276 SD1277 3 Clear the REMOTE PASS FAIL error error code 2700 The remote password count SD979 to SD999 is also cleared 4 Inform your system administrator that the number of unlock processing failures exceeded the limit and take appropriate actions Point If the error is detected due to frequent incorrect typing by authorized users prevent this by the following operati
32. 36 CHAPTER 5 MC PROTOCOL COMMUNICATION 5 1 Setting Method Setting for communication using the MC protocol is described below ZO Project windowc Parameter gt PLC Parameter z Built in Ethernet Port Setting Q Parameter Setting PLC Name PLC System PLC File PLCRAS Boot File Program SFC Device 1J0 Assignment Multiple CPU Setting Built in Ethernet Port Setting IP Address Setting 3 RM Input Format DEC FTP Setting IP Address 192 168 Time Setting Subnet Mask Pattern Default Router IP Address Communication Data Code Binary Code ASCII Code 2 Pie ste ange E ic lea T Disable direct connection to MELSOFT T Do not respond to search for CPU Built in Ethernet port on network IP packet transfer setting IP packet transfer setting Setifitisneeded Defaut Changed Print Window Print Window Preview Acknowledge XY Assignment Default 1 Select Binary or ASCII code as the communication data code used for MC protocol 2 Select the Enable online change FTP MC Protocol checkbox to enable data to be written to the CPU module even in the RUN state poyan Bumes L 37 38 3 Setconnections used for MC protocol communication Project window lt gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting E OpenSeting button Built in Ethernet Port Open Setting fuor w meL
33. COM instruction Connection with different open systems Even the connection for which the open system is set to Socket Communication in parameter can be reopened as the predefined protocol after the connection is closed Similarly the connection for which the open system is set to Predefined Protocol in parameter can be reopened as the socket communication after the connection is closed However if the connection for which the open system is set to Socket Communication in parameter is reopened as the predefined protocol after completion of closing the status storage and protocol cancellation are not possible since the start device to store the predefined protocol operation status cannot be specified 59 suonneoeJd 9 CHAPTER 7 sockET COMMUNICATION FUNCTION sos The socket communication function allows data communications with the devices on Ethernet by TCP or UDP using various dedicated instructions Sending data SP SOCSND instruction Socket communication receive area Connection No 1 Connection No 2 SP SOCRCV instruction S SOCRCVS instruction Connection No 3 Program External device Reading receive data Receiving data Connection No 16 1 The area is used for storing data received from the connected open devices O For dedicated instructions used for the soc
34. D400 SP SOCCSET instruction control data Program M4000 SD1282 0 tt DMOVP HOA6155DE D402 Setting target IP address to 10 97 85 222 MOVP H2001 D404 Setting port No of target device to 8193 LSP SOCCSET uo K1 D400 Changing setting of Connection No 1 END 102 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 8 Changing the receive mode of a connection SP SOCRMODE Command SP SOCRMODE f SP SOCRMODE uo 6 62 Setti Internal device JOO Constant x pus R ZR Umen Zn onstan Others data Bit Word Bit Word K H 6 O O z O 2 s O O 5 s 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 62 Start number of the device from which control data are stored User System Device name 1 The Set by column indicates the following User The data must be set before executing the SP SOCRMODE instruction System The CPU module stores the execution result of the SP SOCRMODE instruction 2 Control data Device Item Description Setting range Set by 6240 System area Completion status is stored 4 eee 00004 Completed n u Other than 0000 Failed Error code TCP receive TCP receive mode is stored 6242 de 0 TCP standard receive mode Dor 1 mode 1
35. Functions 00000 00 c ect lese 155 Appendix 4 Specifications Comparison with Ethernet Module llle 156 INDEX 162 INSTRUCTION INDEX 164 REVISIONS iieszklereleeisde9 hi ye a ERE Pur aes ee 165 WARRANTY ener A Eur EU Cer A PO CRM Vet IRR A MD Ree et ee 167 MANUALS To understand the main specifications functions and usage of the CPU module refer to the basic manuals Read other manuals as well when using a different type of CPU module and its functions The manuals related to this product are listed below Please place an order as needed Basic manual O Other CPU module manuals Use them to utilize functions 1 CPU module user s manual Manual name RR Manual Description manual number model code type Specifications of the CPU modules power supply modules base QCPU User s Manual Hardware Design i units extension cables memory cards SD memory cards extended Maintenance and Inspection GM e SRAM cassettes and batteries information on how to establish a lt SH 080483ENG 13JR73 gt system maintenance and inspection and troubleshooting QnUCPU User s Manual Function Explanation Program Fundamentals Functions methods and devices for programming e lt SH 080807ENG 13JZ27 gt QCPU User s Manual Multiple CPU System Information on building multiple CPU systems system configurations 1 0 numbers communications between CPU
36. Item Description Setting range Set by Specify which settings are used to open a connection parameter settings configured by a programming tool or control data settings 62 2 to 6249 Execution compl 00004 00004 6240 P H User etion type Connection is opened according to the settings 80004 set in Open settings of PLC parameter 80004 Connection is opened according to the values specified for control data 62 2 to 6249 7 Completion status is stored 6244 Completion 00004 Completed System status Other than 0000 Failed Error code b15b14b13 to b10 b9 b8 b7 to b0 G2 2 3 0 tilt 0 1 Communication method protocol 0 TCP IP 1 UDP IP 2 Socket communication and predefined protocol procedure Application 1 Nonprocedural fixed As described in 2 setting area 3 Predefined protocol setting the left column 0 Predefined protocol function is not used Socket communication function is used 1 Predefined protocol function is used 4 Open system 00 Active open or UDP IP User 10 Unpassive open 11 Fullpassive open Host station port 1p to 13874 6243 Specify the port number of the host station number 13924 to FFFEy 14 to FFFFFFFF y 6244 Target device IP i FFFFFFFF 24 Specify the IP address of the target device 62 5 address Simultaneous broadcast 1H to FFFFy Target device FFFFy 62 6 4 Specify the port number of the target device port number Simultaneous broadcast 62 7 to Use prohibited Sys
37. JNIOOOS dS uoneuuojur uonoeuuoo no Buipeay 97 3 Function This instruction reads out connection information specified in 63 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for is other than 1 to 16 Error code 4101 The device numbers specified for 62 and D exceed the device point range An invalid device is specified 5 Program example Error code 4101 Error code 4004 When M5000 is turned on connection information of connection No 1 is read out Devices used Device number Application D500 SP SOCSND instruction control data D5000 Storage location of connection information Program M5000 SP SOCCINF Reading connection uo K1 D500 D5000 information of Connection No 1 END 100 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 7 Changing the target of a connection UDP IP SP SOCCSET Command SP SOCCSED ai SP SOCCSET uo 6 i Internal device JOO Sere EX MH ER ZR uo co Zn Constant others data Bit Word Bit Word K H 6 3 O Q O a 62 s O O i i 5 1 Se
38. S File register 354 324 324 524 20 Note that local devices cannot be 00004 to 1FFFy a 3 130p accessed 3 o 4420 DO to D6143 0000 to 17FF y Extended data register 344 344 324 424 204 D9000 to D9255 2 2328 to 24274 130p SD1000 to SD1255 5720 Extended link register 354 374 324 574 204 WO to WFFF 0000 to OFFF yy 130p 1 When M9000 to M9255 D9000 to D9255 are specified specify SM1000 to SM1255 SD1000 to SD1255 Make sure to check the checkbox in the A PLC Compatibility Setting field in the PLC system tab of the PLC parameters 2 Available for the CPU modules with the following serial number first five digits QnUDE H CPU 14112 or later QnUDVCPU 15043 or later 43 9 3 44 1 2 3 4 5 Precautions Number of devices Only the external devices whose open system is set to MC Protocol can be connected concurrently using MC protocol Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt button Open Setting Data communication frame The following table lists the availability of data communication frames Communication frame Availability 4E frame x QnA compatible 3E frame O A compatible 1E frame o el Available for the QnUDE H CPU with a serial number first five digits of 13102 or later Access range Only the connected CPU module can be accessed Accessing anothe
39. SP SOCSND Sending data 63 n Send data The result of the SP SOCSND instruction can be checked with the completion device 0 0 and D 1 Completion device D 0 Turns on in the END processing of the scan after completion of the SP SOCSND instruction and turns off in the next END processing e Completion device D 1 Turns on or off according to the result of the SP SOCSND instruction State Description When completed Remains off Turns on in the END processing of the scan after completion of the SP SOCSND instruction and turns off When failed in the next END processing The following figure shows the timing of reception processing with the SP SOCROwV instruction Transmission control method Dat Open ala processing transmission processing 1 ON Open completion OFF signal SD1282 n END END END processing processing processing Sequence program a SP SOCSND instruction execution SP SOCSND i scan ON i Completion D OFF RENE evige ON CORPORI Conan Completion D1 OFF f H i 1 i i instruction i i i i 1 device i Data transmission processing 1 Data transmission may continue even though the completion device turns on ACK TCP only eq UOISSIUUSUEJ A 96 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 4 Error A detection of an oper
40. When writing a large file to a memory card or SD memory card set the CPU module to STOP If writing is performed in the RUN status a communication error may occur 5 File deletion The timing for deleting files must be determined by the user considering the overall system including the CPU module and programming tool When a memory card or SD memory card is protected no files can be deleted An error occurs if a file is deleted 6 Password for FTP When you forgot the FTP password set the FTP parameters again by the following steps 1 Readoutthe parameters from the CPU module to the programming tool 2 Inthe FTP Parameter Setting window click the Default button to return all the FTP parameters to default values suonneoeJd 96 Project window gt Parameter lt gt PLC Parameter lt gt Built in Ethernet Port Setting c FiPSetins button 3 Configure the FTP parameter settings again 4 Write the parameters to the CPU module from the Write to PLC window O Online 2 Write to PLC 5 Power off and then on or reset the CPU module to enable the parameters 133 CHAPTER 10 REMOTE PASSWORD A remote password is checked when a connection is requested for the following Communication using a programming tool Communication using MC protocol File transfer FTP Point The remote password function is one of the preventive methods against unauthorized access e g destruction of data
41. a file password is registered in the file transfer target file The QnUDE H CPU checks a file password when a specified file is accessed 127 SpuEuluo dI4 t 6 spuewwo q 40 SIIE 8Q 6 128 epassword unlock Function Specification format Example Note Specify the remote password set in the CPU module to unlock the password 2 quote password unlock remote password Remote password Specify the remote password set with a parameter for the CPU module The following is displayed as an execution result upon completion 200 Command Okey The following is displayed if the entered remote password does not match the setting 556 Password Error The following is displayed if another command is requested before unlock processing of the remote password 555 Password Locked When specifying a remote password 1234 quote password unlock 1234 The remote password is locked when you log in if the remote password check is enabled for the FTP communication port By executing this command before various FTP operations the password is unlocked allowing file operations of the CPU module Unlock processing will be completed if the remote password is unlocked when the remote password check is disabled for the FTP communication port 2 Use this command only when the FTP communication port is specified as a remote password check target password lock Function Specification format Example Locks
42. a new target file if the read password has been registered in the new file Re set a read password before accessing the target file to transfer because the password that has been set using the command is initialized or cleared upon login to the CPU module epasswd wr Function Specification format 1 Specification format 2 Specification format 3 Note CHAPTER 9 FILE TRANSFER FUNCTION FTP Sets the write password file password 32 that has been registered in a target file to transfer in the CPU module Displays and clears the write password that has been set in the CPU module Use this command only when a write password has been registered in the target file to transfer The CPU module checks a password when a specified file is accessed When setting a write password in the CPU module quote passwd wr write password The following message is displayed as an execution result at the normal end 200 Command successful When displaying the write password that has been set in the CPU module quote passwd wr Any of the following messages is displayed as an execution result at the normal end When the command is executed with a write password set 200 Write password is write password When the command is executed with no write passwords set 200 Write password is not set When clearing the write password that has been set in the CPU module quote passwd wr c or quote passwd wr C The following message is displayed as
43. an execution result at the normal end 200 Command successful A write password can be set for the CPU module When the target file to transfer is changed re set a write password for a new target file if the write password has been registered in the new file Re set a write password before accessing the target file to transfer because the password that has been set using the command is initialized or cleared upon login to the CPU module 131 SpuEuluo dix t 6 spuewwo q 40 SIIEjeCd 6 9 5 1 FTP clients 132 Precautions Some FTP clients may have FTP command specifications different from those described in this manual In such a case check the functions and operation methods referring to the manuals for the FTP client An FTP operation from Microsoft Internet Explorer is not allowed If it is attempted an error will occur in Internet Explorer 2 CPU module side processing Files only in the drives of the host station CPU module can be accessed Files may be in failure Stop accessing the memory card or SD memory card before turning off the power supply resetting the module or unloading the memory card or SD memory card By using SM606 SD memory card forced disable instruction accesses to the SD memory card can be disabled at a time For details on the SD memory card forced disable instruction refer to the following QCPU User s Manual Hardware Design Maintenance and Inspection During file access
44. before cleaning the module or retightening the terminal screws connector screws or module fixing screws Failure to do so may result in electric shock or cause the module to fail or malfunction Startup and Maintenance Precautions NCAUTION Before performing online operations especially program modification forced output and operation status change for the running CPU module from the peripheral connected read relevant manuals carefully and ensure the safety Improper operation may damage machines or cause accidents O Do not disassemble or modify the modules Doing so may cause failure malfunction injury or a fire O Use any radio communication device such as a cellular phone or PHS Personal Handy phone System more than 25cm 9 85 inches away in all directions from the programmable controller Failure to do so may cause malfunction Startup and Maintenance Precautions NCAUTION O Shut off the external power supply all phases used in the system before mounting or removing a module Failure to do so may cause the module to fail or malfunction A module can be replaced online while power is on on any MELSECNET H remote l O station or in the system where a CPU module supporting the online module change function is used Note that there are restrictions on the modules that can be replaced online and each module has its predetermined replacement procedure For details refer to the relevant sections in the QCPU U
45. communication receive data area is 0 to 10238 4 System stored in bytes 6541 The data which were read out from the Socket to Receive data communication receive data area are stored in da order 3 The Set by column indicates the following System The CPU module stores the execution result of the SP SOCRCV instruction 4 0 to 2046 for the QnUDE H CPU with a serial number first five digits of 12051 or earlier Point P Receive data size is 2046 bytes by default To receive data over 2046 bytes change the receive data size with the SP SOCRMODE instruction When the SP SOCRCV instruction is executed data are read from Socket communication receive data area at END processing Therefore executing the SP SOCRCV instruction will increase the scan time O Ifthe CPU module receives odd byte data invalid data is stored to the high byte of the device where the last received data is stored CHAPTER 7 SOCKET COMMUNICATION FUNCTION 3 Function This instruction reads out received data of the connection specified in 6 from the Socket communication receive data area in the END processing after execution of the SP SOCROV instruction CPU module Receive data 63 0 length Socket communication receive data area gt 2 Connection No specified by External device SP SOCRCV Receiving Reading receive data 63 1 Receive data 63 2 Receive data
46. d Weg RZ aS Ure Zn kH Others 6 O O o amp A AC E E a A A E A A z 1 File registers set for each local device or program cannot be used 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit amp Start number of the device from which control data are specified Device name Start number of the device from which receive data are stored System Start number of the device which turns on for one scan upon completion of the instruction Bit 62 1 also turns on when failed 2 The Set by column indicates the following User The data must be set before executing the SP SOCRCV instruction System The CPU module stores the execution result of the SP SOCRCV instruction Point When replacing the ZP BUFRCV instruction Ethernet module dedicated instruction dummy argument can be used in a Built in Ethernet port QCPU instruction without rewriting 87 suononJisu UONOUNY uoneoiunuluo 194909 PZ ADYJOS 4S Buisseooud ANF au ul ejep panreoa no Hulpesy v7 88 2 Control data Device Item Description Setting range Set by 6240 System area 2 Completion status is stored Qa Completion 9900 Completed status Other than 0000 Failed Error code Receive data The length of the data which were read out from iv 65 0 length the Socket
47. data via TCP connection 1Sending UDP data from port No C of the CPU Module to port No N of external device 3 External device 3 IP address ww ww ww ww Q Port No C Sending UDP data from port No N of 1 1external device 3 to port No C of the CPU 1 Port No N 1 61 7 1 Communication Using TCP TCP Transmission Control Protocol establishes a connection to a device with a port number and performs reliable data communications To perform socket communication using TCP confirm the following in advance P address and port number of the target device P address and port number of the CPU module Which side will open a connection the target device or CPU module Active open or Passive open 1 TCP connection There are two types of open operation for TCP connection Active open and Passive open Firstly the device waiting for a TCP connection performs a Passive open at the specified port The other device performs an Active open by specifying the port number of the device which is waiting in Passive open state Through the above process a TCP connection is established and communication is available a Active open Active open is a TCP connection method which actively opens a connection to the device that is passively waiting for a TCP connection b Passive open The following two types o
48. flow Store the value to be changed in Example When storing the IP address 192 168 3 40 C0A80328H to SD1292 to SD1297 SD1292 and SD1293 IP address 1 Convert the IP address to be changed from decimal 192 168 3 40 to Subnet mask pattern hexadecimal C0A80328H Default router IP address 2 Store the IP address converted to hexadecimal in the SD Store the lower 2 bytes of the Turn off than on the IP address storage area IP address write request SM1292 SD1292 0328H SDp1203 CoAsn eles Bune Store the upper 2 bytes of the IP address Execute writing to the IP address storage Store the subnet mask pattern and default router IP address in the same way area flash ROM Confirm the write completion Confirm the write failed Write complete SM1293 is turned on Write complete SM1293 is turned on Write error SM1294 is turned off Write error SM1294 is turned on Error cause is stored in SD1298 Powered off and then on or reset the Perform writing again CPU module When values in the IP address storage area flash ROM are not set or are invalid Setting the IP address of the built in Ethernet port Setting the IP address of the built in Ethernet port Set values in the IP address storage area Set values in the built in Ethernet port on the flash ROM to the IP address of the built in PLC parameter to the IP address of the built in Ethernet port Ethernet port IP address IP address Subnet mas
49. in the standard RAM and saving it under the same file name get 3 MAINSEQ1 QDR When reading a file stored in the standard RAM and saving it under a different file name get 3 SEQ1BAK QDR SEQ SEQ10LD QDR When no destination file path name FTP client side is specified the file is saved in the FTP client using the same source file name CPU module side The transfer destination is on the current directory where FTP is started up and connected to the server Displays the names of the files stored in the CPU module Is drive name When displaying the names of the files stored in an SD memory card Is 21 dir Deletes a file stored in the CPU module To delete multiple files specify the file name and extension within the file path name using a wild card character or mdelete file path name abbreviated to mdel When deleting all the files whose extensions are QPG from the program memory mdelete 0 QPG delete Saves detailed information file names creation dates and sizes of the files stored in the CPU module as log data into a file on the FTP client side mdir source drive name destination file path name When saving detailed information of the files stored in an SD memory card into the S990901 LOG file mdir 24 S990901 LOG Type immediately after the source drive name Specify a source drive name when specifying a destination file path name FTP client side Without a destination file pa
50. is returned CHAPTER 11 IP ADDRESS CHANGE FUNCTION 4 Functions that cannot be performed during write processing and clear processing The following functions cannot be executed during the write or clear processing to the IP address storage area Do not execute the functions before the processing is completed Doing so may cause an error If operation of writing to or clearing the IP address storage area flash ROM is executed during the execution of the following functions the write or clear operation is processed as an error Online Program Change Export to ROM format Write to PLC flash ROM 5 Execution timing of write processing and clear processing Since the status on SM1292 IP address storage area write request and SM1295 IP address storage area clear request are checked in the END processing processing of writing to or clearing the IP address storage area flash ROM cannot be executed if a contact is turned off and on or turning on and off in one scan If SM1292 IP address storage area write request is turned off and on again while writing to the IP address storage area flash ROM the write processing executed earlier is completed properly and the processing executed later is ignored The same occurs for the clear operation If SM1295 IP address storage area clear request is turned off and on while writing to the IP address storage area flash ROM the clear operation is processed as an error The same o
51. is returned C070 The device memory extension cannot be specified for the target Read data from or write data to the device memory without H station specifying the extension Cc t th t data COB5H The CPU module cannot handle the data specified uere Pc Stop the current request C2004 Theremote password isincoiredt Correct the remote password and unlock and lock the remote password function again 46 CHAPTER 5 MC PROTOCOL COMMUNICATION Error code Hexadecimal Description Corrective action The port used for communication is locked with the remote password C201H Or because of the remote password lock status with Unlock the remote password before communication Communication Data Code set to ASCII Code the subcommand and later part cannot be converted to a binary code C204 The connected device is different from the one that requested for From the device that requested the unlock processing request for H unlock processing of the remote password lock processing of the remote password 47 UONedIUNWWOD o2010Jd DN ui sapos jJeuuougqe pue sapos pue sepoo JOU t G 2 When A compatible 1E frame is used An end code and abnormal code are added to a response in MC protocol communication that uses A compatible 1E frames When the end code is a value other than 5BH Response format Subheader End code 0000H Wh
52. name when specifying a destination file path name FTP client side Without a destination file path name the file is stored using a file name determined by the FTP application on the FTP client side The transfer destination is on the current directory where FTP is started up and connected to the server mdir Writes a file to the CPU module To write multiple files specify the file name and extension within the file path name using a wild card or When writing multiple files transmission is checked for each file transfer mput source file path name When writing all the files whose extensions are USR mput USR The storage destination file name is the same as that on the FTP client side The transfer destination is the memory in which current parameter files are stored Connects to the FTP server by specifying the host name or IP address and port number of the FTP server open host name port number open IP address port number Host name Host name set in the Microsoft Windows hosts file IP address CPU module IP address Port number Port number to be used When connecting to the FTP server by specifying a host name open HOST When connecting to the FTP server by specifying an IP address open 192 0 1 254 Connection is also possible by specifying an IP address at startup of FTP 125 SpuEuluo dI4 t 6 SPUBWLWOS q 40 SIIE 8Q 6 eput Function Specification format Exam
53. of the CPU module and GX Works2 when using the IP packet transfer function for the QnUDE H CPU gt Page 155 Appendix 3 150 CHAPTER 12 IP PACKET TRANSFER FUNCTION 1 How to use For the settings of IP packet transfer function or how to use the function refer to the following Manual for the CC link IE Controller Network module used Manual for the CC link IE Field Network module used 2 Precautions The data that are communicated using the IP packet transfer function are communicated separately by the following processing Service processing by a sequence scan of a CPU module Link scan on CC Link IE Controller Network Link scan on CC Link IE Field Network The above processing causes communication speeds to be slower than Ethernet lines Manuals for the CC Link IE Controller Network module or CC Link IE Field Network module describe targeted communication speeds when the IP packet transfer function is used Broadcast communication and multicast communication cannot be performed with the IP packet transfer function Perform unicast communication communication with one request destination specified If the application time out of the request source device occurs due to a heavy communication load on the path that an IP packet takes measure the response time using the ping command from the request source device and adjust the application timeout time Data size must be within 1460 bytes when the ping command is
54. used Device number Application SD1282 Open completion signal SD1286 Receive state signal D400 S SOCRDATA instruction control data D4000 Storage location where data are read out K1 Number of read data one word Program ur RES EL due SSOCRDATA uo Ki D400 D4000 Ki eng of Conecon o END CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT The CPU module collects time information from a time information server on LAN and automatically sets its own time With this time setting function the CPU module queries the server for time information at the specified timing and can set the time information sent from the server as its own clock data The time setting can performed at the following timing When the CPU module is powered off and then on or is reset At the specified time intervals Execution interval At the specified clock time Execution time According to the special relay state 1 Time is set when SM1270 is turned on for one scan Time query LAN CPU module Setting server time in the CPU module Ethernet Personal computer Point P O Confirm the connection of the hub or the interfacing device in
55. 0 0 Module for Debugging Protocol No T PotxolName Packet Type Send Packet Element List AA Element Type C Header C Non conversion Variable C Terminator C Conversion Variable G Length C Check Code C Static Data Element Name 4 Code Type ASOT Hexadecimal z Data Length Pn Data Flow Calculating Range Start Calculating Range End 52 Set the items required for data communications In the Protocol Detailed Setting window set the communication parameters for the protocol X Protocol Setting window gt Select protocol gt Edit gt gt Protocol Detailed Setting Set the packet configuration In the Packet Setting window set the configuration of packets to be sent or received X Protocol Setting window gt Variable Unset or Element Unset CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 6 write the protocol setting data to the CPU module In the Writing Protocol Setting window specify the Ele Edit Module Read Debugging Support Function Window 3x ALE S Read fror write target drive in the CPU module and write the A Write to Module Protocol Mal T module Verification e ion Type Hoed Packet Name Packet Setting o protocol setting data lt A Error response lt p fa vanes D B ai SOBs Module Read Write lt gt Write
56. 0ms 1 32767 Default Check Cancel Description Item FTP Select Used Set a log in name used for file transfer login request from an external device Login Name Default value QnUDVCPU MELSEC QnUDE H CPU QNUDECPU Set an FTP password used for file transfer request from an external device To change the password enter both the current password and a new password for confirmation Password Command Input Monitoring Timer Default value QnUDVCPU MELSEC QnUDE H CPU QNUDECPU Set a time for monitoring command input performed by the CPU module When no command is input within the set period of time the FTP connection is disconnected Setting range 1 to 32767 x 500ms Set a time value larger than the time required for file transfer CHAPTER 9 FILE TRANSFER FUNCTION FTP 2 Operation on the connected device FTP client side The following describes the procedure and processing on the connected device side which is required for using the FTP server function of the CPU module Various FTP commands and how to enter each of them are also shown lt ret gt indicates an input of the CR Enter or Return key a For the High speed Universal model QCPU Start Y Start the FTP client ftp lt ret gt Y ls the FTP communication port subject NO Login to the CPU module open CPU module s IP address lt ret gt to remote password
57. 118 9 3 Files That Can Be Deleted Using FTP 0 0 c ccc ccc ence ene eens 119 94 FLP COMMANA S aes Sci Er ead a EE RE Rueda ETUR pa eae 120 9 4 1 Listof FTP commands issssssssssssss n 120 9 4 2 How to specify an FTP command 0 000 cee cece s 122 9 4 3 Details of FIP Commands ias nc zibPIS praia dad BUMP read 123 9 5 Precautions nu ea DLE bx SMS Ad NF pe ier Ns 132 CHAPTER 10 REMOTE PASSWORD 134 10 1 Communication Using Remote Password o ooococccccccccc r arauen 135 10 2 Remote Password Setting ooocococccccncco n 136 10 3 Preca utions ce eee hie ee EU EIAS eb REEL EC 138 10 4 Detection of Unauthorized Access and Actions 00 00 cee tees 139 CHAPTER 11 IP ADDRESS CHANGE FUNCTION 140 11 1 IP Address of the Built in Ethernet Port llle 141 11 2 How to Use the Function 0 an 142 11 24 Writecoperati n e e eC Rue SATA E PUR Che etie RR TELE Viera ds 142 11 2 2 Clear operation i 4 82008 WG Ben Pls e eoi ebbe ela b A Imi 145 11 3 Checking th IP Address nic ia P pedexdpnp RR LM 148 11 4 Precalitionsz i hore de e wr Ebr ig b e UL e ERU ERR 148 11 12 CHAPTER 12 IP PACKET TRANSFER FUNCTION 150 APPENDICES 152 Appendix 1 Operation Processing Time for Each Instructi0N o oooococooccoooo oo 152 Appendix 2 Port Numbers Used by Built in Ethernet Port QCPU oooococococcocoo o 154 Appendix 3 Added and Changed
58. 44 a a a a a apa je Point When all MELSOFT devices start communicating at the same time devices may fail to communicate because of the congestion of communications In such a case schedule the timing for when each device starts communicating so that the communication congestion will not occur When using GOTs for example set different rise time and time out values in the GOTs 6 Sampling trace When the function has been executed using the programming tool via a built in Ethernet port stop the function before powering off or resetting the CPU module 7 Remote STOP or remote PAUSE When remote STOP or remote PAUSE has been executed using the programming tool via a built in Ethernet port perform the following operations before powering off or resetting the CPU module Remote RUN Remote RESET 32 CHAPTER 4 DIRECT CONNECTION TO PROGRAMMING TOOL SIMPLE CONNECTION CHAPTER 4 DIRECT CONNECTION TO PROGRAMMING TOOL SIMPLE CONNECTION The CPU module can be directly connected to the programming tool with an Ethernet cable without using a hub simple connection For direct connection the IP address and host name need not be specified in the connection target setting Simultaneous broadcast is used CPU module Ethernet cable Programming tool Point An Ethernet cable used for direct connection will be longer compared with the case of using a USB cable This ca
59. CPRTCL instruction for the Ethernet interface module except for some differences For the GP ECPRTCL instruction refer to the following Q Corresponding Ethernet Interface Module User s Manual Basic The following are the differences Item Differences UO dummy needs to be specified Setting data Un Since this is a dummy no change is required when replacing from the GP ECPRTCL instruction of the Ethernet interface module The connection No set in the Open Setting of the Built in Ethernet Port Setting tab Setting data n1 need to be specified The protocol execution status can be checked by Start Device to Store Predefined Protocol in the Open Setting of the Built in Ethernet Port Setting tab Protocol execution status suononJisu uonoun J ODOJOJ peullepeld Y9 The pairing open setting is not available in the CPU module The CPU module sends Pairing open and receives data using one connection Protocol execution can be cancelled by Start Device to Store Predefined Protocol Cancellation of protocol execution offset 18 set in the Open Setting of the Built in Ethernet Port Setting tab s Page 55 Section 6 2 1 10 1HdO3 aS 1020101d peuyjepeud ey Bunnoax3 1 y 9 57 6 5 Execution Conditions of Predefined Protocol Function The predefined protocol function can be executed when the protocol setting data is enabled and SM1354 Predefined protocol ready is on The writ
60. CPU support for the serial number first five digits of 11082 and later Model addition Q50UDEHCPU Q100UDEHCPU Correction SAFETY PRECAUTIONS MANUAL PAGE ORGANIZATION GENERIC TERMS AND ABBREVIATIONS Section 1 1 CHAPTER 2 CHAPTER 3 Section 3 1 2 3 1 4 3 1 5 3 2 3 2 1 3 2 2 3 3 3 3 3 3 3 4 3 3 5 3 4 3 4 1 3 4 2 3 4 3 3 5 3 5 1 3 5 2 3 6 3 6 1 3 6 2 3 6 3 3 6 5 3 6 6 3 7 2 CHAPTER 4 Section 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 Appendix 1 Appendix 2 Appendix 3 Addition Section 3 1 3 3 8 3 8 1 3 8 2 3 8 3 3 8 4 Revision on the new functions of the Universal model QCPU with a serial number first 5 digits of 12052 or later Correction SAFETY PRECAUTIONS CHAPTER 2 Section 3 6 2 3 6 6 4 3 4 4 4 5 4 8 4 9 Appendix 1 Appendix 2 Correction SAFETY PRECAUTIONS CHAPTER 2 Section 3 3 1 3 3 3 3 4 1 3 4 2 3 4 3 4 1 4 6 Appendix 1 Addition Appendix 4 Revision on the new functions of the Universal model QCPU with a serial number first five digits of 13102 or later Correction MANUAL PAGE ORGANIZATION Section 3 1 1 3 1 2 3 1 4 3 2 1 3 3 2 3 3 3 3 3 4 3 3 5 3 4 1 3 4 2 3 6 4 3 7 4 3 8 CHAPTER 4 Appendix 1 Appendix 2 Revision on the new functions of the Universal model QCPU with a serial number first 5 digits of 14022 or later Section 1 1 CHAPTER 3 Section 3 3 5 Appendix 1 Appendix 2 A
61. CSND instruction Point P When replacing the ZP BUFSND instruction Ethernet module dedicated instruction dummy argument can be used in a Built in Ethernet port QCPU instruction without rewriting 94 2 Control data CHAPTER 7 SOCKET COMMUNICATION FUNCTION Device Item Description Setting range Set by 6240 System area Completion status is stored Qa Completion 0000 Completed System status Other than 0000 Failed Error code 63 0 Send data length The length of send data is specified in bytes 1 to 10238 4 631 User to Send data Send data are specified G3 n 3 The Set by column indicates the following User The data must be set before executing the SP SOCSND instruction System The CPU module stores the execution result of the SP SOCSND instruction 4 1 to 2046 for the QnUDE H CPU with a serial number first five digits of 12051 or earlier Point For TCP set the send data length within the maximum window size of the target device receive buffer of TCP Data whose size exceeds the maximum window size cannot be sent 95 QNSOOS dS elep Buipues S suononJisu uonoun uoneoiunuluo 194909 t 3 Function This instruction sends data set in to the target device of the connection specified by 63 CPU module Send data N 63 0 length 63 1 Send data 63 2 Send data gt External device Y
62. Error when Remote Password Mismatch Count Reaches Upper Limit End Cancel a E Upper Limit of Mismatch 10 Count Iv Clear Mismatch Count when Remote Password Matches When the remote password is enabled write the parameter to the PLC and reset the PLC or tum off the power and turn on the power again End Cancel Item Description Setting range Up to four Password Setting Enter a remote password to be set for the CPU module characters Password Select a CPU model to enable the remote password for the built in Ethernet Built in Active Model Name Ethernet port of the CPU module CPU Module Only one CPU model is selectable Setting Condition Click this to display the Remote Password Detail Setting window User Select one of them when the remote password is to be enabled for the built in Ethernet port Connection c tion 1 to 16 5 LL Setting of an unused connection or MELSOFT connection is No ignored H 9 MELSOFT Transmission Port TCP IP Select the System MELSOFT Transmission Port UDP IP 2 Select one of them when the remote password is to be enabled for GHBERDOKOS Connection e FTP Transmission Port TCP IP the built in Ethernet port appropriate to mig target connection Direct Connection of MELSOFT Select this when enabling this operation Useful for detecting unauthorized access gt Page 139 Section 10 4 Regard as Error when Remote Password Mismatch Count Reaches Upper Lim
63. Example 2 When changing the attribute of the file stored in the standard RAM ekeyword set Function Specification format quote change 3 MAINSEQ1 QDR r Sets a file password registered in the file transfer target file into the Built in Ethernet port QCPU Or displays clears the password set for FTP settings in parameter quote keyword set File password File password Specify the file password registered in the Built in Ethernet port QCPU file To clear the set file password specify One of the following is displayed as the execution result upon normal completion When setting a file password 200 Command successful When displaying a file password 200 Keyword is File password When clearing a file password 200 Command successful Example 1 When setting the password 1234 quote keyword set 1234 Example 2 When displaying the password currently set for FTP settings in parameter quote keyword set Example 3 When clearing the password currently set for FTP settings in parameter quote keyword set Note One file password can be set for the FTP settings in Built in Ethernet port QCPU parameter When the file targeted for file transfer changes re set the file password of the target file when a file password is also registered for the change target file When logging in to the Built in Ethernet port QCPU the file password is initialized cleared to This command is used only when
64. F PROGRAMMING TOOLS AND GOT Precautions IP address duplication Check that the IP address is not duplicated when configuring a network or connecting a new device to a network If the IP address is duplicated a device may communicate with the wrong device Check for the IP address duplication in the following ways Check for the IP address duplication with the find CPU function Disconnect the device from the line and send ping to the IP address of the disconnected device Having a response means the IP address duplication KeepAlive check When the protocol is set to TCP KeepAlive check is performed Checking for a response to a KeepAlive ACK message An alive check message is sent five seconds after reception of the last message from the connected device to check if the device returns a response or not If no response is received the alive check message will be resent at intervals of five seconds When no response is received for 45 seconds the connected device is regarded as non existent and the connection is disconnected If the connected device does not support the TCP KeepAlive function the connection may be disconnected Connections exceeding the setting Do not exceed the number of connections set for the open settings parameters Establishing too many TCP connections from a personal computer may cause the following states depending on the application Time before timeout error detection is increased An unexpected timeout e
65. F f m sPSoccNF uo 6 6 sent R ZR UGG Zn pis Others 6 o z O o i o i i 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 62 Start number of the device from which control data are stored Start number of the device from which connection information System Device name is stored 1 The Set by column indicates the following User The data must be set before executing the SP SOCCINF instruction System The CPU module stores the execution result of the SP SOCCINF instruction 98 2 Control data CHAPTER 7 SOCKET COMMUNICATION FUNCTION Device Item Description Setting range Set by 6240 System area z Completion status is stored Qua Completion 0000 Completed status Other than 0000p Failed Error code 0 Target device IP 2 14 to FFFFFFFFy IP address of the target device is stored O address 4 5 Target device 2 1p to FFFFy 2 Port number of the target device is stored port number 4 6 1H to 13874 Host station port A 3 Port number of the host station is stored 1392 to FFFEy number 3 4 System b15b14b13 to b10 b9 b8 b7 to bo ml 0 Ag 0 1 Communication method protocol 0 TCP IP Application 1 UDP IP 4 setting area 2 Socket communic
66. FEy 1 to 4999 5010 to 65534 Destination IP Address Set the IP address of the external device Setting range 0 0 0 1 to 223 255 255 254 Destination Port No Set the port number of the external device Setting range 0001 to FFFEy 1 to 65534 for TCP Setting range 0001 to FFFE FFFF 1 to 65534 65535 for UDP Start Device to Store Predefined Protocol Set the start device number for storing the protocol execution status received data verification result number of protocol executions and protocol cancellation status gt Page 55 Section 6 2 1 The area of 19 words starting from the specified device is used Available devices D W R ZR 1 Do not specify 1388 to 13914 5000 to 5009 because these ports are used by the system 7 gt Page 154 Appendix 2 53 54 M3001 r3 M3001 PERA uo Ki K100 HoAB K1 SET MovP SET 0201 D5 D7 D22 Da M51 0300 8 Createa program for starting data communications In the case of Active open create the program in which SP SOCOPEN instruction is used to establish a connection L gt Page 80 Section 7 4 1 To activate the predefined protocol the SP ECPRTCL instruction is used 7 gt Page 57 Section 6 4 1 Connection Channel tist mision D PiCModule f inteicentFuncton Module ExecutonTargetData No Yes
67. FFF i i H H Errors occurred in other than MC protocol communication RA QCPU User s Manual Hardware Design Maintenance and Inspection 0055 Although online change is disabled the connected device Before enabling online change write the data requested the RUN state CPU module for data writing Change the CPU module state to STOP and write the data Select Binary Code for Communication Data Code and restart CO50 When Communication Data Code is set to ASCII Code ASCII the CPU module A code data that cannot be converted to binary were received Correct the send data of the connected device and resend the data Cc t th ber of read it int d d the data t C051 to CO54y The number of read or write points is outside the allowable range e O or WIRE poris ee eset ix the CPU module Correct the start address or the number of read or write points and C056u The read or write request exceeds the maximum address resend the data to the CPU module The maximum address must not be exceeded CO58 The request data length after ASCII to binary conversion does not Check and correct the text data or the request data length of the match the data size of the character area a part of text data header and resend the data to the CPU module The command and or subcommand are specified incorrectly Check the request C059u The CPU module does not support the command and or Use commands and or subcommands supported by the CPU subcommand mo
68. FFF 0000 to OFFF yy 130p DO to D6143 4420 D9000 to D9255 0000 to 17FF Data register 344 344 324 424 204 SD1000 to SD1255 2328 to 24274 130p Note however that local devices cannot be accessed 5720 Link register 354 374 324 574 204 WO to WFFF 0000 to OFFF yy 1304 42 CHAPTER 5 MC PROTOCOL COMMUNICATION Device code Classification Device Device range Device number ASCII Binary 5453 Contact 354 34 H 35H 544 534 133p 5443 TO to T2047 Timer Coil 354 344 34 amp 544 434 Note however that local devices 0000 to O7FFy 133p cannot be accessed 544E Current value 354 344 344 54y 4Ey 145p Contaci Retentive timer Coil Cannot be accessed Current value internal user 4353 device Contaci 34H 33H 35H 434 534 33 4343 CO to C1023 Counter Coil 34 334 344 434 43 Note however that local devices 0000 to O3FF 133p cannot be accessed 434E Current value 34H 33H 34H 434 4Ey 454 Link special relay Link special register Step relay g Direct input Direct output Function input Cannot be accessed Function output an Int syst NN j Lis 2 Function register N z device gt S Special rela lt pecial y v DO Special register e amp DQ Index register o 9 20 5220 RO to R8191
69. For error codes refer to the following LJ QCPU User s Manual Hardware Design Maintenance and Inspection suononJisu UO OUNY uoneoiunuluo 194909 t 79 7 4 1 Establishing a connection SP SOCOPEN Command SPSOCOPEN f SP SOCOPEN H Settin Internal device JOO Constant M R ZR uoco Zn Others data Bit Word Bit Word K H 6 E O O O amp A A E z A AO Ed File registers set for each local device or program cannot be used 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 62 Start number of the device from which control data are stored User system Device name Start number of the device which turns on for one scan upon O completion of the instruction System Bit D 1 also turns on when failed 12 The Set by column indicates the following User The data must be set before executing the SP SOCOPEN instruction System The CPU module stores the execution result of the SP SOCOPEN instruction Point When replacing the ZP OPEN instruction Ethernet module dedicated instruction dummy argument can be used in a Built in Ethernet port QCPU instruction without rewriting 80 2 Control data CHAPTER 7 SOCKET COMMUNICATION FUNCTION Device
70. M1296 is on Clear complete SM1296 is on Clear error SM1297 is off Clear error SM1297 is on SD1292 to SD1297 are cleared The error cause has been stored in SD1299 Perform clearing again Power off and then on or reset the CPU module Setting the IP address of the built in Ethernet port Set values in the built in Ethernet port on the PLC parameter to the IP address of the built in Ethernet port IP address Subnet mask pattern Default router IP address Storing the used IP address Store the IP address subnet mask pattern and default router IP address which are used in the built in Ethernet port in SD1260 to SD1265 Confirm the IP address Confirm in the special register a The IP address subnet mask pattern and b A default router IP address are stored in C4 CPU operation SD1260 to SD1265 C User operation uoneJedo Jeal Z Z Ll uonoun y SN o1 MOH Z LL 145 146 2 Operations of special relay and special register The following shows the operations of special relay and special register during the operation of clearing the IP address storage area flash ROM a Operations of special relay and special register during the operation of clearing the IP address storage area flash ROM Clear start Clear complete END END END END processing processing processing processing I I I Clear request ON l SM1295 e l Clear complete ON
71. MITSUBISHI Mitsubishi Programmable Controller MISI o Ee series QnUCPU User s Manual Communication via Built in Ethernet Port Q03UDVCPU QOGUDEHCPU Q26UDVCPU QO3UDECPU QTOUDEHCPU Q26UDEHCPU Q04UDVCPU Q13UDVCPU Q50UDEHCPU QO4UDEHCPU Q13UDEHCPU Q100UDEHCPU Q06UDVCPU Q20UDEHCPU SAFETY PRECAUTIONS O Read these precautions before using this product Before using this product please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly In this manual the safety precautions are classified into two levels A WARNING and AN CAUTION WARNING Indicates that incorrect handling may cause hazardous conditions resulting in death or severe injury Indicates that incorrect handling may cause hazardous conditions NCAUTION resulting in minor or moderate injury or property damage Under some circumstances failure to observe the precautions given under ANCAUTION may lead to serious consequences Observe the precautions of both levels because they are important for personal and system safety Make sure that the end users read this manual and then keep the manual in a safe place for future reference Design Precautions NWARNING O Configure safety circuits external to the programmable controller to ensure that the entire system operates safely even when a fault occurs in the external power supply or the programmable cont
72. P communications Point O The target device can be changed without closing the connection by using the SP SOCCSET instruction O The set values take effect at the following SP SOCCSET instruction execution timing When data exist in the socket communication receive data area After execution of the SP SOCRCV or S SOCROVS instruction only once after execution of the SP SOCCSET instruction When no data exists in the socket communication receive data area After execution of the SP SOCCSET instruction 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for 6 is other than 1 to 16 Error code 4101 The device number specified for 62 exceeds the device point range Error code 4101 An invalid device is specified Error code 4004 5 Precaution Do not change the target device using the SP SOCCSET instruction during execution of the SP SOCSND instruction 6 Program example When M4000 is turned on the connection destination IP address and port number of the target device of connection No 1 which is open is changed Devices used Device number Application SD1282 Open completion signal
73. Point LEND O To avoid receiving large amounts of data the volume of received data can be limited by setting the receive data size using the SP SOCRMODE instruction O Data reception can be speeded up by placing a receive processing program at the beginning of multiple programs 93 suotnonJisu UO OUNY uoneoiunuluo 19X4909 t SAON2OS S uonnooexe uononyJjsul Buunp ejep paAlo29J JNO Buipeay vil 7 4 5 Sending data SP SOCSND Command SPSOCSND L FE SP SOCSND uo amp 63 D H Settin Internal device JO O Constant ey R ZR uoco Zn Others data Bit Word Bit Word K H 6 z O O E O D AU A 63 O O s A A i E E 1 File registers set for each local device or program cannot be used 1 Setting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 62 Start number of the device where control data are specified System Device name 63 Start number of the device from which send data are stored User Start number of the device which turns on for one scan upon O completion of the instruction System Bit D 1 also turns on when failed 2 The Set by column indicates the following User The data must be set before executing the SP SOCSND instruction System The CPU module stores the execution result of the SP SO
74. SND S P SOCRCV S S P SOCRDATA instructions LF Page 60 CHAPTER 7 A compatible IE frame for communication using the MC protocol L3 Page 44 Section 5 3 IP packet transfer function Available for CC Link IE Field Network gt Page 150 CHAPTER 12 IP packet transfer function Available for CC Link IE Controller Network lt _ Page 150 CHAPTER 12 File registers available for the A compatible 1E frame in the MC protocol Page 42 Section 5 2 2 2 Predefined protocol function Page 49 CHAPTER 6 Corresponding function version The first five digits of the corresponding serial number 11012 or later The corresponding version of the programming tool GX Works2 1 11M or later GX Developer 8 78G or later 11082 or later 12052 or later 13102 or later 14022 or later 1 77F or later 1 98C or later 3 15103 or later 1 501X or later 4 This function cannot be used for some models For the availability of the function refer to each reference 2 For the versions of the intelligent function modules that support the function refer to the manual for the intelligent function module used 3 Available for the CPU modules with the following serial number first five digits QnUDE H CPU 14112 or later QnUDVCPU 15043 or later 155 suonoun4 peBueu pue peppy e xipueddy Appendix 4 Specificat
75. Set the numberof points assigned to each sio Page 74 Section 7 14 Start XY Specify a start VO number for each slot Page 74 Section 7 1 5 pmem Configure the switch setting ofthe built in LO or inteligent function modules Page 74 Section 7 18 Sethe folowing Error Time Output Mode Deed sete Ser Genus coe as Page 78 Section 7 17 IO Response Time Setting Start X Y enables modification on the start VO numbers assigned to connected modules range of an input module is changed to X1000 to X100F ils refer to the following KA MELSEC L CPU Module Users Manual Function Explanation Program Fundamentals Point Ex fvhen 1000 is specified in Start X Y to the slot where a 16 point module is connected the assignment Setthe type of the module in Type Setting a C 30 Section 42 2 connected different type results in SPUNIT LAY ERR intelligent function module the I O points must also be the same in addition to the I O assignment setting When an intelligent module is connected I O assignment can be omitted by selecting connected modules from Intelligent Function Module in the Project window 73 1 The mouse operation example is provided below For GX Works2 Menu bar XZ Online gt gt Write to PLC Select Online on the menu bar and then select Write to PLC A window selected in the view selection area is displayed O Project window 5 gt Param
76. TCP fixed length receive mode User Receive data size in the socket communication E 6243 Receive data size 1 to 10238 4 is stored in bytes suononJisu UONOUNY uoneoiunuluo J9NDOS t 2 Invalid for connections in UDP communications o The Set by column indicates the following User The data must be set before executing the SP SOCRMODE instruction System The CPU module stores the execution result of the SP SOCRMODE instruction 4 1 to 2046 for the QnUDE H CPU with a serial number first five digits of 12051 or earlier 3GO0WH20S dS uonoeuuoo e jo pow enie2e1 ay Bubuey gy 103 104 3 Function This instruction changes the TCP receive mode and receive data size of the connection specified in 6 The mode is changed as specified in 62 2 This instruction is invalid for UDP connections a TCP standard receive mode When data are received they are stored in the Socket communication receive data area and SD1286 turns on If data are received exceeding the specified receive data size the excess data are read out the next time Ex The receive data size is set to 300 bytes and 500 byte data are received i SP SOCRCV or SP SOCRCV or Reading receive data S SOCRCVS S SOCRCVS instruction instruction Socket communication receive data area SD1286 ON OFF Data reception 500 bytes Data stored 300 bytes C wo Data reading b TCP fixe
77. TION Do not install the control lines or communication cables together with the main circuit lines or power cables Keep a distance of 100mm 3 94 inches or more between them Failure to do so may result in malfunction due to noise When a device such as a lamp heater or solenoid valve is controlled through an output module a large current approximately ten times greater than normal may flow when the output is turned from off to on Take measures such as replacing the module with one having a sufficient current rating O After the CPU module is powered on or is reset the time taken to enter the RUN status varies depending on the system configuration parameter settings and or program size Design circuits so that the entire system will always operate safely regardless of the time Installation Precautions NCAUTION O Use the programmable controller in an environment that meets the general specifications in the QCPU User s Manual Hardware Design Maintenance and Inspection Failure to do so may result in electric shock fire malfunction or damage to or deterioration of the product To mount the module while pressing the module mounting lever in the lower part of the module fully insert the module fixing projection s into the hole s in the base unit and press the module until it snaps into place Incorrect mounting may cause malfunction failure or drop of the module When using the programmable controller in an enviro
78. U Q50UDEHCPU and Q100UDEHCPU Network module CC Link IE module A generic term for the CC Link IE Controller Network module and CC Link IE Field Network module MELSECNET H module The abbreviation for the MELSECNET H network module Ethernet module The abbreviation for the Ethernet interface module CC Link module The abbreviation for the CC Link system master local module Network CC Link IE A generic term for CC Link IE Controller Network and CC Link IE Field Network MELSECNET H The abbreviation for the MELSECNET H network system Software package Programming tool A generic term for GX Works2 and GX Developer GX Works2 GX Developer The product name of the software package for the MELSEC programmable controllers Others GOT A generic term for Mitsubishi Graphic Operation Terminal GOT A series GOT F series and GOT1000 series 19 CHAPTER 1 OVERVIEW 1 1 The features specific to the Built in Ethernet port QCPU are described below 20 1 2 3 4 5 6 Features Connection of programming tools and GOTs gt Page 24 CHAPTER 3 The Find CPU function makes it possible to find the Built in Ethernet port QCPU connected to the same hub as programming tool and displays a list MELSOFT connection allows access through routers in an environment such as a corporate LAN Direct connection to a programming tool simple connection
79. a local device is not possible z Index register Z CCy Decima O R AF The number range of a device in a CPU module Decima 9 ZR BOH which is accessed to can be specified Decimal Binary Within the device number range of the Extended data register D A8H CPU module accessed Decimal ASCII 000000 to 999999 up to 976 6K points Th b f a device in a CPU module dendea ink regeer BL A a 1 This is a code specified in MC protocol messages When communicating data in ASCII code specify the code in two characters If the code consists of only one character add ASCII code 2A4 or a space ASCII code 204 after the character 2 Devices of DX DY1000 or later are not available Use X Y devices to access devices of X Y1000 or later 41 2 When A compatible 1E frame is used Classification internal user device i Device code y Device Device range Device number ASCII Binary 5820 Input 354 384 324 584 204 XO to X7FF 0000 to 07FF y 130p 5920 Output 354 394 324 594 204 YO to Y7FF 0000 to O7FFy 130p MO to M8191 4D20 M9000 to M9255 f 0000 to 1FFF Internal relay 344 444 324 4Dy 204 SM1000 to SM1255 2328 to 24274 304 Note however that local devices cannot be accessed Latch relay Cannot be accessed 4620 Annunciator 344 364 324 46 20 FO to F2047 0000 to 07FF yy 130p Edge relay Cannot be accessed 4220 Link relay 344 324 324 424 204 BO to B
80. acilitating problem solving Since the automatic time setting is enabled upon power on of the CPU module operations can be started based on accurate clock data 7 8 9 CHAPTER 1 OVERVIEW File transfer function FTP gt Page 112 CHAPTER 9 Each of the files stored in the CPU module can be read or written from the interfacing device with the FTP client function and a large amount of data can be easily transferred Remote password gt Page 134 CHAPTER 10 Remote password setting can prevent unauthorized access from the outside and enhance the security of the system IP address change function gt Page 140 CHAPTER 11 The IP address of the built in Ethernet port can be changed from a GOT not in the Built in Ethernet Port Setting of the PLC Parameter 10 IP packet transfer function gt Page 150 CHAPTER 12 Communications can be performed with a device which supports the following IP addresses which have been specified via a CC Link IE Controller Network module or CC Link IE Field Network module using a protocol such as the FTP or HTTP via a built in Ethernet port from an Ethernet device such as a personal computer External devices on CC Link IE Controller Network or CC Link IE Field Network External devices on the Ethernet network which are connected through the built in Ethernet ports Point Some functions have been added by the upgrade of the serial numbers of CPU modules or the progra
81. advance when setting time at the timing of CPU module power on or reset O The time setting results can be checked with the special register SD1270 to SD1275 O During execution of the time setting function other time setting operations are ignored nora REESE Access through routers is also available When configuring the settings for it set the subnet mask pattern and default router IP address gt Page 30 Section 3 4 109 8 1 Setting Method Configure the time settings in the Built in Ethernet port tab of the PLC parameter window Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting Time Setting button Built in Ethernet Port Time Setting Time Setting SNTP Function Setting Use se SNTP Server IP Address 192 168 o 200 Input Format DEC m Time Zone GMT 9 00 pe Execute time setting at turn ON reset On error Action Continue _y C Execution Interval finut Execution Time 12 wj joo v Default Check Cancel Item Description Setting range SNTP Function Setting Select whether to use this function or not Used or Not used SNTP Server IP Address Time Zone Specify the IP address of the SNTP server Specify a time zone in which the time is to be synchronized Japan Standard Time GMT 9 00 is set by default 0 0 0 1 to 223 255 255 254 GMT 12 00 to GMT 13 00 Execute time setting at turn ON reset
82. ame abbreviated to ren When renaming a file stored in the standard RAM rename 3 MAINSEQ1 QDR 3 SEQ10LD QDR Either of the following response codes is displayed upon completion 350 Need more info 250 Rename successful Inputs the user name and password of the connected FTP server user user name FTP password User name Login name set with a CPU module parameter FTP password FTP password set with a CPU module parameter When specifying a user name user CPU When specifying a user name and password user CPU CPU CHAPTER 9 FILE TRANSFER FUNCTION FTP 2 CPU module dedicated subcommands The CPU module dedicated subcommands affixed to an FTP command quote are described below echange Function Specification format 1 Specification format 2 Displays or changes the attribute of a file stored in the CPU module When displaying the file attribute quote change file path name Either of the following is displayed as an execution result upon completion When the specified file is read only R When the specified file is writable and readable Ww When changing the file attribute quote change file path name attribute Use either of the following to specify the attribute To change it to a read only file r To change it to a writable and readable file w Example 1 When displaying the attribute of the file stored in the standard RAM quote change 3 MAINSEQ1 QDR
83. an be consecutively read out by connecting the completion device of the SP SOCRCV instruction to the execution command at the normally closed contact 90 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 4 Reading out received data during instruction execution S SOCRCVS Command S SOCRCVS S SOCRCVS uo D Setti Internal device JO O Constant Ud R ZR unco Zn onstan Others data Bit Word Bit Word K H O O O 8 O O 1 Setting data Setting data Description Set by Data type UO Dummy Character string S Connection number Setting range 1 to 16 User BIN 16 bit Start number of the device from which received data are System Device name O stored 1 The Set by column indicates the following User The data must be set before executing the S SOCROVS instruction System The CPU module stores the execution result of the S SOCROVS instruction Point When replacing the Z BUFRCVS instruction Ethernet module dedicated instruction dummy argument can be used in a Built in Ethernet port QCPU instruction without rewriting 2 Control data Device Item Description Setting range Set by The length of the data which were read out from Receive data eer D 0 the Socket communication receive data area is 0 to 10238 suononJisu uonoun uoneoiunuluo 194909 t length
84. an be used On the falling edge During off On the falling edge Setting Internal device system user data Applicable device Bit Word XY ML T ST C SM F B D W SD SB FX SW FD FY Qu File register R ZR Link direct device Jo o Bit Word JOX JOY JE JOB JO sw JONSB Intelligent function module unico ULhGLI Index register Zn Con Others stant 5 5 P I J U K H Fidi Ee TR BL S V 1 For details on each device refer to the following T QnUCPU User s Manual Function Explanation Program Fundamentals 2 FX and FY can be used for bit data only and FD for word data only 3 When T ST and C are used for instructions other than the following instructions they can be used for word data only but cannot be used for bit data Instructions available for bit data LD LDI AND ANI OR ORI LDP LDF ANDP ANDF ORP ORF OUT and RST 4 Available for CC Link IE MELSECNET H and MELSECNET 10 5 In the Constant and Others columns a device s that can be set for each instruction is shown The following data types can be used Data type Description Bit Bit data or the start number of bit data BIN 16 bit 16 bit binary data or the start number of word device BIN 32 bit 32 bit binary data or the start number of double word device BCD 4 digit Four digit binary coded decimal data BCD 8 digit Eigh
85. an external device Correct the start address within the setting exceeds the setting range range for each processing 58 The file register R cannot be specified Check the device H A word device is specified in a command for bit devices e A Correct the command or the specified In a command for word devices the start number of a bit device is specified by a value devico other than a multiple of 16 1 Identif locati ding to th 5Bu The CPU module cannot process requests from an external device E E abnormal code and correct the error b Abnormal codes If the end code is 5By an abnormal code is attached immediately after the code The following table lists the abnormal codes to be attached error details and required actions Abnormal code Description Corrective action 4000 Refer to the following manual CPU detected error Error that occurred in other than communication using the MC to protocol QCPU User s Manual Hardware 4FFFy Design Maintenance and Inspection Specify the PC ber of tati C080 PC number of another station 01 to 804 is specified pai NS Lion UL H The communication target port is in the remote password locked status Or when the Porom remate password unloak C2014 communication data code setting is set to ASCII code any data of subcommands and P later cannot be converted to binary code since the remote password is locked processing before communication 48
86. and programs from external devices However this function cannot completely prevent unauthorized access Other preventive measures should be taken at users discretion if security of the programmable controller system needs to be maintained against unauthorized access from external devices We cannot be held responsibility for any problems caused by unauthorized access Examples of measures against unauthorized access Install a firewall Setup a personal computer as a relay station and control the relay of communication data using an application program Setup an external device that can control access rights as a relay station For devices that can control access rights please consult your network service provider or networking equipment vendors 134 CHAPTER 10 REMOTE PASSWORD 10 1 communication Using Remote Password Communication is performed in the order described below when a remote password is set for the CPU module 1 Allowing access unlock processing On a communication device such as a personal computer unlock the remote password set for the CPU module If it is not unlocked an error will occur on the connected device because the CPU module will prohibit any access 2 Access processing Access the CPU module after completion of the remote password unlock processing 3 Prohibiting access lock processing When terminating access from the personal computer lock the remote password to prohibit an access
87. ation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for 6 is other than 1 to 16 Error code 4101 The device numbers specified for 62 63 and D exceed the device point range Error code 4101 An invalid device is specified Error code 4004 5 Program example When M3000 is turned on data 1234 5678 and 8901 are sent to the target device using the socket communication function Devices used Device number Application 7 SD1282 Open completion signal D3000 SP SOCSND instruction control data D300 Send data length and send data storage location M300 SP SOCSND instruction completion device Program M3000 SD1282 0 IN MOV K6 D300 Setting send data length MOV K1234 D301 MOV K5678 D302 Setting send data MOV K8901 D303 Sending data to QNSOOS dS elep Buipues S y suononJisu uonoun uoneoiunuluo 194909 t r i in LSP SOCSND UO K1 D3000 D300 M300 A Connection Now M300 M301 gt PAS LSET M302 J Normal completion M301 E F H LSET M303 J Error completion END 97 7 4 6 Reading out connection information SP SOCCINF Command SPSOCCIN
88. ation procedure 4 1 Nonprocedural fixed 3 Open system 00 Active open or UDP IP 10 Unpassive open 11 Fullpassive open 2 The Set by column indicates the following 3 4 5 6 System The CPU module stores the execution result of the SP SOCCINF instruction Using 0400 to 1387 and 13924 to EFFF is recommended because the host station port numbers 00014 to O3FF are assigned for generally reserved port numbers WELL KNOWN PORT NUMBERS and F000 to FFFE are used for other communication functions Do not specify 13884 to 13914 because these ports are used by the system K 37 Page 154 Appendix 2 When the item is performed by the unopened connection Oy is returned When the instruction is performed to the connection set the target device IP address to FFFFFFFF y simultaneous broadcast the source IP address of the received data is returned In this case perform the instruction when Receive state signal SD1286 is on When the instruction is performed before the data are received FFFFFFFF y is returned When the instruction is performed to the connection set the target device port number to FFFF simultaneous broadcast the source port number of the received data is returned In this case perform the instruction when Receive state signal SD1286 is on When the instruction is performed before the data are received FFFF y is returned 99 suononJisu UONOUNY uoneoiunuluo 194909 t
89. ations even if no close request is sent from the connected device the Open completion signal will turn off to close the connection in the following cases Alive check is timed out Forced close is received from the connected device Elements for TCP connection The following four elements control TCP connections and only one connection can be established with a unique setting for these elements To use multiple TCP connections at the same time at least one of the four elements must be different P address of the CPU module Port number of the CPU module P address of the target device Port number of the target device Reestablishment of the same connection Allow eight seconds or more before reestablishing a connection of the same target IP address the same host station port number and the same target port number after closing it If the reestablishment is time critical itis recommended to change the host station port number on the Active open side Precautions for file access during communication The CPU module will perform file access processing prior to Ethernet communication processing Because of this processing of the socket communication function may be delayed if a file is accessed by FTP or a programming tool during the processing When accessing a file while response time monitoring is performed on the connected device with the socket communication function add the time required for file access to the monitorin
90. bi In units m Writes bit devices in units of 16 points 640 Beli o O of words Writes word devices in units of one point 256 points In Mns 04 Sets resets bit bind in PL of one point by 80 points of bits randomly specifying a device or device number Test Device are ee Sets resets bit davies in aniis of 16 points by 40 wards o o memory randomly specifying a device or device number 640 points write of words 05H 4 Writes word devices in units of one points by a 40 points randomly specifying a device or device number In units 06 Registers bit devices to be monitored in units of 40 points of bits one points Monit Pee di Registers bit devices to be monitored in units of 20 words o In units 16 point 320 points o O o registration ot words 07g 4 Registers word devices to be monitored in units 20 points of one point In unis 08 of bits Number Monitor In units Monitors devices with monitor data registered wei points O O O of words 094 1 Devices such as TS TC CS and CC cannot be specified in units of words If specified an error 4032 occurs during monitoring 40 CHAPTER 5 MC PROTOCOL COMMUNICATION 5 2 2 Available devices The following table lists the devices available in the commands used for MC protocol communication 1 When QnA compatible 3E frame is used WN 7 Device code Classification Device Device number range ASCII Binary
91. cal 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 167 Microsoft Windows Windows Vista Windows NT Windows XP Windows Server Visio Excel PowerPoint Visual Basic Visual C and Access are either registered trademarks or trademarks of Microsoft Corporation in the United States Japan and other countries Intel Pentium and Celeron are either registered trademarks or trademarks of Intel Corporation in the United States and other countries Ethernet is a registered trademark of Xerox Corp The SD and SDHC logos are either registered trademarks or trademarks of SD 3C LLC All other company names and product names used in this manual are either trademarks or
92. ccurs when the write operation is executed during the clear processing execution If SM1292 IP address storage area write request and SM1295 IP address storage area clear request are turned off and on in one scan the write operation is prior to be executed and the clear operation is processed as an error suonnesald YLL 149 CHAPTER 12 iP PACKET TRANSFER FUNCTION ro 12 Communications can be performed with a device which supports the following IP addresses which have been specified via a CC Link IE Controller Network module or CC Link IE Field Network module using a protocol such as the FTP or HTTP via a built in Ethernet port from an Ethernet device such as a personal computer External devices on CC Link IE Controller Network or CC Link IE Field Network External devices on the Ethernet network which are connected through the built in Ethernet ports Ethernet device source Network No 1 Ethernet IP packet transfer Network No 2 CC Link IE Field Network IP packet transfer Network No 3 CC Link IE Field Network IP packet transfer Network No 4 Ethernet lt Access path from an Ethernet device source to an Ethernet device destination Ethernet device destination Point This function is supported only by GX Works2 It is not supported by GX Developer Note 12 1 Check the versions
93. ce information x x x x x x x 5 Drive heading x x x x x x x QN DAT Device data storage file x x x x x x x DEVSTORE QST Module error log file x x x x x x x IERRLOG QIE Boot setting file x x x x x x x AUTOEXEC QBT Remote password x x x x x x x 00000000 QTM Latch data backup file x x x x x x x LCHDATOO QBP Backup data file x x x x x x x MEMBKUPO QBP LOGCOM QLG Data logging setting file x x x x x x x LOGO01 QLG to LOG10 QLG Data logging file x x x x x x O CSV Predefined protocol setting file x x x x ECPRTCL QPT 1 The SP FWRITE or SP FREAD instruction in the program will write or read the file respectively For details refer to the following manual 1 MELSEC Q L Programming Manual Common Instruction 2 Files can be written to the program memory only when the CPU module is in the STOP state 3 Write destination is the program cache memory The user should back up files using the pm write command as required gt Page 120 Section 9 4 1 4 The following number of files can be stored using FTP Maximum number of files storable on the drive 1 5 Except for the High speed Universal model QCPU file names are SRCINF1M CAB and SRCINF2M CAB for Simple projects with labels and SRCINF11 CAB and SRCINF2I CAB for Structured projects For the High speed Universal model QCPU file names are SRCINF1M C32 and SRCINF2M C32 for Simple projects with labels and SRCINF11 C32 and SRCINF21 C32 for S
94. ch as wire chips from entering the module during wiring Do not remove the film during wiring Remove it for heat dissipation before system operation Wiring Precautions NCAUTION When disconnecting the cable from the module do not pull the cable by the cable part For the cable with connector hold the connector part of the cable For the cable connected to the terminal block loosen the terminal screw Pulling the cable connected to the module may result in malfunction or damage to the module or cable O Mitsubishi programmable controllers must be installed in control panels Connect the main power supply to the power supply module in the control panel through a relay terminal block Wiring and replacement of a power supply module must be performed by maintenance personnel who is familiar with protection against electric shock For wiring methods refer to the QCPU User s Manual Hardware Design Maintenance and Inspection Startup and Maintenance Precautions NWARNING Do not touch any terminal while power is on Doing so will cause electric shock or malfunction O Correctly connect the battery connector Do not charge disassemble heat short circuit solder or throw the battery into the fire Also do not expose it to liquid or strong shock Doing so will cause the battery to produce heat explode ignite or leak resulting in injury and fire O Shut off the external power supply all phases used in the system
95. cket Communication Function Instructions The socket communication function instructions are provided for the CPU module to use the socket communication function This section explains the socket communication function instructions The following is a list of the instructions Instruction Description Reference SP SOCOPEN Establishes a connection Page 80 Section 7 4 1 SP SOCCLOSE Closes a connection Page 84 Section 7 4 2 SP SOCRCV Reads out received data in END processing Page 87 Section 7 4 3 S SOCRCVS Reads out received data upon instruction execution Page 91 Section 7 4 4 SP SOCSND Sends data Page 94 Section 7 4 5 SP SOCCINF Reads out connection information Page 98 Section 7 4 6 Changes the target of the connection for UDP IP Page 101 Section SP SOCCSET au communication 7 4 7 Page 103 Section SP SOCRMODE Changes receive mode of the connection 748 Reads out data from the socket communication receive data Page 107 Section S P SOCRDATA MM 749 Point For configuration of data communication using the socket communication function refer to 7 Page 62 Section 7 1 Page 71 Section 7 2 O If the instruction has a completion device do not change any data such as control data and request data that are specified for the instruction until the execution of the instruction is completed Do not execute any socket communication function instruction in an interrupt program O
96. connection open Received data within the time specified by the monitoring timer value NO Check the received data size Sufficient receive data size Processing for the response message Was the entire received message processed End Error handling NO Point For Ethernet communication TCP socket functions are used inside personal computers The functions do not have boundary concept Therefore if the sender sent data by calling the send function once the receiver needs to call the recv function once or more times to read out the data send does not correspond to recv on the one to one basis For this reason the processing shown above is always required on the program of the receiving device Note that if the recv function is used in blocking mode data may be read by calling the function once 45 suonneoeld G 9 4 Error codes end codes and abnormal codes in MC protocol communication When an error occurs during MC protocol communication an error code is sent from the CPU module to the external device The following table lists error codes error descriptions and corrective actions 1 When QnA compatible 3E frame is used Error code Hexadecimal Description Corrective action Errors detected by the CPU module Refer to the following manual 4000 to 4
97. ction c Built in Ethernet Create a new file File 2 New gt Add In the Add Protocol window select Predefined Protocol Library or Add New When Predefined Protocol Library is selected select a desired protocol from the library registered in GX Works2 Select User Protocol Library in the Add Protocol window to read the protocol stored by the user For details of the user protocol library refer to the following GX Works2 Version 1 Operating Manual Intelligent Function Module 51 poyan Bumes z 9 p Connected Device Information Manufacturer Type Model 5 Version 0000 0000 to FFFF Explanation am m Protocol Setting Information Protocol No 1 Protocol Name Communication Type ISend amp Receive Receive Setting Clear OS area receive data area before protocol execution C Enable Disable Receive Wait Time x 100ms Setting Range 0 to 30000 0 Infinite Wait r Send Setting Number of Retries fe Times Setting Range 0 to 10 Retry Interval 0 x l ms Setting Range 0 to 30000 Standby Time 0 x 10ms Setting Range 0 to 30000 Monitoring Time 0 x 100ms Setting Range 0 to 3000 0 Infinite Wait Communication Parameter Batch Setting Communication Type Hz Receive Packet Setting Protocol in Predefined Protocol Library acket Line Receive Packet Line Packet Data Ares Usage
98. d check target in the remote password setting For remote passwords refer to gt Page 134 CHAPTER 10 3 On the next page subcommands available with the quote command are shown 4 Each of these commands can include a folder name in the file specification 5 This command is set automatically in the CPU module Therefore a file transfer is coded in binary regardless of the Communication Data Code of the Built in Ethernet Port Setting in PLC Parameter 6 The command cannot be used for access control target files in the file access control by security key 120 CHAPTER 9 FILE TRANSFER FUNCTION FTP The following table lists the subcommands available with the command quote O Available x N A CPU module state Remote password Subcommand Function BON STOP write Write Unlocked Locked enabled disabled change Displays or changes the CPU module file attribute O O x O x 3 Sets displays clears the Built in Ethernet port QCPU file access keyword set password O O O x password lock Locks an unlocked remote password O O O O x1 password unlock Unlocks an locked remote password O O O O O status Displays the operation information of the CPU module O O O O x run Changes the CPU module state to RUN O O Oo O x stop Changes the CPU module state to STOP O O O x pm write Writes data to the program memory O x x O x passwd rd 4 Sets displays or clears file passw
99. d length receive mode Data stored 200 bytes Data reading x E When data are received they are stored in the Socket communication receive data area and SD1286 Receive state signal turns on However if the size of the data does not reach the specified receive data size SD1286 does not turn on Data reception is repeated and once the data size reaches to the specified size SD1286 turns on If data are received exceeding the specified receive data size the excess data are read out the next time Ex The receive data size is set to 300 bytes and 200 byte data are consecutively received Data cannot be read out because the receive data size is not reached Reading receive data Socket communication receive data area Data stored 200 bytes ON SP SOCRCV or S SOCRCVS instruction Data stored Data reading 300 bytes 1 SD1286 OFF 1 Data reception 200 bytes Data reception 200 bytes The remaining 100 bytes will be stored at the next data reception 200 bytes _ CHAPTER 7 SOCKET COMMUNICATION FUNCTION Point O Effective use of devices Devices can be effectively used by setting the receive data size to less than 1024 words while the default size of the receive data storing devices for the SP SOCRCV and S SOCRCVS instructions is 1024 words O Prevention of receive data fragmentation Data from the con
100. data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 BIN 16 bit 62 Start number of the device from which control data are stored User Device name D Start number of the device where read data are stored n Number of read data 1 to 5120 words BIN 16 bit 1 The Set by column indicates the following User The data must be set before executing the S P SOCRDATA instruction 2 1 to 1024 for the QnUDE H CPU with a serial number first five digits of 12051 or earlier 2 Control data suomnonJisu uonoun uoneoiunuluo 194909 t Device Item Description Setting range Set by 6240 System area 2 E l Completion status is stored ompletion 00004 Completed System 1 status Other than 00004 Failed Error code 2 The Set by column indicates the following System The CPU module stores the execution result of the S P SOCRDATA instruction WLVGYOOS d S pees ejep enieoe uoneoiunuiuoo J8490S 67 107 3 Function This instruction reads out the data of the amount specified for n from the Socket communication receive data area of which connection is specified in and stores them in the device specified in or higher No processing is performed when the number of read data n is O Point Data of the receive data length can be read out by setting the number of read data to one word This allows change of the device st
101. do not operate the file from a peripheral such as a programming tool Also do not perform online operations such as online change scam time measurement registration of the step number set for a monitoring condition If the file is operated during operation of the FTP function an error may occur in the peripheral Perform the processing suspended due to an error again after performing the FTP function An error will occur if an FTP client tries to connect while the backup or restoration using a memory card is being performed for the CPU module change function Execute the connection again after the end of the backup or restoration An error will also occur if the backup or restoration is performed while an FTP client is being connected Execute the backup or restoration again after disconnecting the FTP client 3 Communication processing If a timeout error occurs during file transfer the TCP connection will be closed disconnected To restart the file transfer log in to the CPU module once again from the FTP client For each FTP connection the existence of the target device is checked For details refer to 7 gt Page 31 Section 3 5 The processing time for file transfer depends on the factors such as the Ethernet line congestion the number of connections simultaneously used communication processing of other connections and the system configuration Only one FTP client can log in to a CPU module at the same time If another FTP client a
102. dule CO5By The ped medula cannot read data from or write data to the Gheckihe device taba read 6r written specified device CO5C The request data is incorrect e g reading or writing data in units of Correct the request data and resend it to the CPU module H bits from or to a word device e g subcommand correction C05Du No monitor registration Perform monitor registration before monitoring Correct the network number PC number request destination module I O number or request destination module station CO5FH The request cannot be executed to the CPU module number Correct the read write request data The request data is incorrect ex incorrect specification of data for C060H i Correct the request data and resend it to the CPU module bit devices C061 The request data length does not match the number of data in the Check and correct the text data or the request data length of the B character area a part of text data header and resend the data to the CPU module The CPU module received a request message in ASCII format om MEM Send arequest message that matches the Communication Data when Communication Data Code is set to Binary Code or Code setting CO6F ived it in bi f t when th tting is set to ASCII Code i receve ud maly ome i MUN 9 ds Change the Communication Data Code setting so that it will This error code is only registered to the error history and no A match the request message abnormal response
103. e Joo Consta Oshows the devices Sena on wort S an f wora bs applicable to the instruction 8 o o o e z as a EE 5 at at 1 File registers set for each local device or program cannot be used Setting side Descriptions of 1 9 Setting data and data Woe E User Device value is set by the user 9 yp e pa sew E System Device value is set by 8 Connection number Setting range 1 to 16 User BIN 165 the CPU module amp Start number of the device from which control data are stored Device name er number ofthe eveewichtumsonfronescanupn syatem a completion of the instruction Bit a 1 also tums on when failed b gE Hey Descriptions of 2 Control di Es control data if any Device Hem Description Setting range i a0 System area PE ga Completion o a o EH situs Other than 0000 Failed Error code E ES 3 Detailed descriptions of the instruction Conditions for the error and error codes For the errors not described in this manual refer to the following LL QCPU User s Manual Hardware Design Maintenance and Inspection Simple program example s and descriptions of the devices used 63 on closes a connection specified in Disconnection of a connection The result of the SP SOCCLOSE instruction can be checked with the completion device 0 and 1 Completion device 0 Tums on in the END processing of a scan after completion of the SP SOCCLOSE inst
104. e programming tool Page 25 Section 3 1 Writing to the CPU module Write the configured parameters to the CPU module Power it on again or reset it for the parameters to take effect gt Page 26 Section 3 1 2 Connecting cables and external devices Connect cables and devices required for Ethernet communication Setting the connection target Set a connection target by the programming tool Page 27 Section 3 2 End For the GOT setting refer to the following manual GOT1000 Series Connection Manual Mitsubishi Products 24 CHAPTER 3 CONNECTION OF PROGRAMMING TOOLS AND GOT 3 1 Setting for the CPU Module 1 PLC parameter setting Select the Built in Ethernet Port Setting tab and set the parameters XW Project window gt Parameter lt gt PLC Parameter lt gt Built in Ethernet Port Setting Q Parameter Setting PLC Name PLC System PLCFie PLCRAS Boot File Program SFC Device 110 Assignment Multiple CPU Setting Built in Ethernet Port Setting IP Address Setting 2 Open Setting a Input Format DEC FTP Setting 1 IP Address 192 168 gt Time Setting Subnet Mask Pattern Default Router IP Address Communication Data Code Binary Code C ASCII Code Enable online change FTP MC Protocol Disable direct connection to MELSOFT Do not respond to search for CPU Built in Ethernet po
105. ecified IP Other than FF FF FF FFy Other than FFFFy address and port No among the entire data sent to the host station port No Receives the data sent from all ports of the specified Other than FF FF FF FFY FFFFy IP address among the entire data sent to the host N A station port No Receives the data sent from the specified port No of Sends data to the port No FF FF FF FFy Other than FFFF yy all the IP addresses among the entire data sent to the specified in the settings for host station port No simultaneous broadcast FEFFFFFF FEES Receives all data that have sent to the host station N A port No 74 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 3 Precautions a Use of UDP Data may be lost or may arrive out of order Consider the application of TCP if any problem is expected b Sending and receiving data Data sending process may be terminated even if the communication line between the CPU module and target device is not connected due to a reason such as cable disconnection To avoid this it is recommended to provide communication procedures at the user s discretion c Changing the target Use the SP SOCCSET instruction to change the target device For the SP SOCCSET instruction refer to 2 gt Page 101 Section 7 4 7 d Open completion signal and Open request signal Once UDP is selected for a connection the Open completion signal and Open request signal of the connection are always o
106. eive state signal is not on in the TCP fixed length receive mode the data received at the point can be read out with the SP SOCRDATA instruction This allows you to check whether the data sent from the connected device is adequate in size 105 suononJisu uonoun uoneoiunuluo2 194909 t 3GOWH20S dS uonoeuuoo e jo pow euie2e ay Burbueu gy 106 5 Program example When M4000 is turned on connection No 1 is set to the TCP fixed length receive mode and the receive data size is set to 256 bytes After execution of the instruction and when the receive data size of connection No 1 reaches 256 bytes the Receive state signal is turned on Device used Device number Application D400 SP SOCRMODE instruction control data Program MOVP Ki D402 Setting TCP receive mode to 1 MOVP K256 D403 Setting receive data size to 256 SP SOCRMODE Uo K1 D400 Changing receive mode of Connection No 1 LEND CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 9 Socket communication receive data read S P SOCRDATA Command S SOCRDATA S SOCRDATA Command SP SOCRDATA f E sesocR Tw amp O s H ud R ZR _ unco Zn pa Others 6 o o o 62 o O s o O n o O O 7 1 Setting data Setting
107. em Description Protocol setting data Number of protocols Up to 128 Number of packets Up to 256 Packet area data size Up to 12288 bytes Available connection Connection No 1 to No 16 Protocol execution method SP ECPRTCL instruction Communication data code Binary code Length of data that can be sent or received at a time Up to 2046 bytes 4 Number of protocols specified as the protocol setting data 2 Total number of packets set to each protocol 3 Size as a sum of all packets 6 2 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL Setting Method The setting required for using the predefined protocol function is described below 1 Edit Module Read Write Tool Debugging Support Function Window Editable Protocol 4 Protocol in Predefined Protocol Library EE Send Packet Line Receive Packet Line Adds new protocol Selection of Protocol Type to Add Type Predefined Protocol Library Reference lect from Predefined Protocol Library Sel Please select manufacturer model and protocol name from Protocol to Add Protocol to Add Protocol No Protocol Name Manufacturer Model General purpose i 1 protocol lg MODBUS TOP Eo Cae Point Open the Predefined Protocol Support Function window x Tool gt Predefined Protocol Support Fun
108. en the end code is 5BH Response format Subheader End code Abnormal code L 5BH An abnormal code is stored a End codes End code Description Corrective action 004 Data is communicated successfully 54 When the communication data code setting is set to ASCII code in the Built in Ethernet Correct the send data on the external port QCPU ASCII code data that cannot be converted to binary code was received device side When the setting for online change is disabled on the Built in Ethernet port tab of PLC Enable online change and write data 55H parameter in GX Developer an external device requested online change to the CPU Change the status of the CPU module to module STOP and write data 56H An external device specified the incorrect device Specify the device correctly The number of points for a command specified by an external device exceeds the i ber of i int ber of point b d HIM num er of processing poin s number of points can be processed per ne red communication for each processing ES the start address start device number 574 The number of points specified from the start address start device number exceeds iCheckcihe sommand the maximum address maximum device number for each processing The length of a command message is too short to analyze Monitoring was requested without monitor data being registered Register the monitor data The start address start device number of a command specified by
109. ers 3 Unlocking or locking the remote password The remote password is unlocked or locked from an external device such as a personal computer as described below a When using MELSOFT connection Enter a remote password in the following window that appears during communication When the remote password is entered the programming tool performs unlock processing and then accesses the CPU module Enter remote password Please enter remote password Execute Cancel Remote password poem unes p1OMsSeg 9jouloH ZOL b When using MC protocol Use commands dedicated to MC protocol 3 Page 39 Section 5 2 1 c When using the FTP function Use the password lock and password unlock commands 2 gt Page 120 Section 9 4 1 137 1 0 3 Precautions 1 When a remote password is set for UDP connections Determine a target device before data communication The communication target needs to be determined because after unlocking of the remote password communication is available with any other devices Atthe end of data communication always lock the remote password If the lock processing is not performed the unlock state is held until a timeout occurs No communication for 10 minutes causes a timeout and the CPU module automatically performs lock processing To prevent unauthorized access using the remote password setting it is recommended to set all connection protocols to TCP IP and disable direct connect
110. eter View selection area lt gt PLC Parameter Select Project from the view selection area to open the Project window In the Project window expand Parameter and select PLC Parameter poupu Banos FTZ ponen umes 12 The chapter of the current page is shown The section of the current page is shown Point Pshows notes that requires attention Remark shows useful information EF MELSOFT Series GX Works2 Unset Project PRG MAIN Project Edit Find Replace Compile Parameter sd Intelligent Function Module Global Device Comment Program Setting POU D Program he MAIN 2 Local Device Comment Device Memory Device Initial Value Connection lly connection Destination View Online Debug Diaeno Unlabeled 15 Icon Universal model QCPU Description 16 Icons indicate that specifications described on the page contain some precautions Pages describing instructions are organized as shown below The following page illustrations are for explanation purpose only and are different from the actual pages Instruction name 6 4 2 Disconnecting a connection SP SOCCLOSE Execution condition of the instruction Command SPSOCCLOSH f H sesocciose uo s e Structure of the instruction in the ladder mode Internal devic
111. f Passive open methods are available for TCP connection Type of TCP RAV Description connection Allows a connection regardless of the IP address and port number of the connected device Unpassive The IP address and port number of the device connected can be acquired using the SP SOCCINF instruction Allows a connection to the device only when the specified IP address and port number are met Fullpassive A connection made by another device that does not have the specified IP address and port number is automatically disconnected before communication The expressions of Active and Passive opens may vary according to the device Active open TCP connection initiating device client connecting side etc Passive open TCP connection waiting device server listening side etc 62 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 2 Program example for Active open The following shows a communication flow of an Active open Specify the port number of the external device waiting for TCP connection and open a connection by Active open Open processing SP SOCOPEN instruction Was data transfer YES Completed or disconnected by the external device completed Send by the SP SOCSND Close processing instruction or receive by the SP SOCCLOSE instruction SP SOCRCV or S SOCRCVS instruction a Parameter setting The following parameters are set for the sample program Project window 2
112. from any other personal computers Accessing the CPU module on the host station a Unlock processing Ethernet Accessing the CPU module on another station a Unlock processing a erem Ethernet piomssed ajoway Buisp uoneoiunuiulo LOL letwork such as CC Link IE Controller Networl NEN CE 1 Remote password Remote passwor Check ________ parameter 135 10 2 Remote Password Setting 1 Setting a remote password Set a remote password and a target connection in the programming tool and write the data to the CPU module O Project window gt Parameter gt Remote Password Remote Password Setting Remote Password Detail Setting Password Setting recle rv User Connection No Password A parodi Numba AZ v Connection Connection2 Connection 3 Connection 4 a z Special characters Connection5 J Connection 6 I Connection 7 Connection 8 Password Active Module Setting Connecting J Comnection10 Connection Connection 12 Connection 13 Connectoni4 J Connectioni5 Connection 16 System Connection MELSOFT Transmission Port TCP IP MELSOFT Transmission Port UDP IP FTP Transmission Port TCPAP I Direct Connection of MELSOFT Necessary Setting No Selling Already Sel v Regard as
113. g of CPU module operation data analysis and production control are available on a personal computer or HMI by these device data reading and writing Besides the remote password function can prevent unauthorized access from outside of the system 2 gt Page 134 CHAPTER 10 CPU module Communication using MC protocol Point From the peripheral device such as a personal computer or HMI only the CPU module connected can communicate using MC protocol An access to a CPU on another station via CC Link network is not allowed To start MC protocol communication perform the following steps Start Connect cables and devices required for MC protocol communication Connecting cables and external devices NE EN Setting parameters Configure PLC parameters by the programming tool L gt Page 37 Section 5 1 Write the configured parameters to the CPU module Power it on again or reset it for the parameters to take effect Writing to the CPU module End MC protocol communication is available For the MC protocol communication refer to the following manual MELSEC Q L MELSEC Communication Protocol Reference Manual Access through routers is also available When configuring the settings for it set the subnet mask pattern and default router IP address 2 gt 7 Page 30 Section 3 4 0 0e 0 60606000000000 0000000000000000000000000000000000000000000000000990 9
114. g time Tf uonoun uomneoiunululo2 18490 eui 10 SUOIMBISIA EL 7 Checking receive data length Since no delimiter is provided for TCP communication data on the receiving end separate data blocks that are sent continuously may be combined or data sent all at once may be segmented The receive data length must be confirmed on the receiving side as necessary When data are received on the CPU side and the data length is determined the fixed length mode is recommended When receiving data on the target device side confirm the receive data length as shown below Receive processing on the other device side Received message receive processing NO Is TCP connection open Receive the rest of the message TCP connection is closed Received data within the time specified by the monitoring timer value Check the received data size NO Sufficient receive data size Processing for the received message Was the entire received message processed End Error handling 8 If an error error code 41A0y has occurred In TCP communications if an error error code 41404 occurs at the sender part of send data may have been sent Therefore if the data are sent again after the error error code 41A0 j close the connection to discard the data Then open a connection again and send the data again 78 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 So
115. he parameters CHAPTER 3 CONNECTION OF PROGRAMMING TOOLS AND GOT 3 2 Setting for the Programming Tool Configure the settings in the Transfer Setup window Connection Destination window c Connection Transfer Setup Connection1 PC side I F NETII PLC Board Board NetwokNo Station No Protocol PLC side I F CCIE Cont CC Link Ethemet GOT CCIEField CCIE Field NET 10 H M Modul Master Local Communication lodule odule Module Module Head Module PLC QCPU Q mode 1 2 0 0 0 0 IP Address Host Name L E i3 Connection Channel List No Specification Other Station Other Station yt Single Network Co esistence Network PLC Direct Coupled Setting Connection Test 3 Time Out Sec 30 Retry Times 0 m mm mm CCIE Cont CCIEField Ethernet CCUnk C24 NET 10 H System Image Phone Line Connection C24 CCIE Cont CCIE Field Ethemet NET 10 H Cancel Accessing Host Station Multiple CPU Setting 3 3 3 3 Target PLC Not Specified PRO 1 Select Ethernet Board for PC side I F In the PC side IF Ethernet Board Setting window select a TCP or UDP protocol Select the same protocol as the one set in the Open Setting window gt Page 25 Section 3 1 PC side I F Ethernet Board Setting Network No Station No Cancel This setting is an assignment for Ethernet board Please execute the following settings Network No Netw
116. ications among programmable controllers and networked devices this protocol establishes a connection between port numbers of the two devices to perform reliable data communications UDP User Datagram Protocol This is a connectionless protocol and thereby its speed is faster than that of TCP However the reliability in data communications is low Data may be lost or not be received in correct order Note that simultaneous broadcast is available Select an appropriate protocol considering the specifications of the external device and the characteristics of the above protocols 0e 06 060000000000000000000000000000000000000000000000000000000000990 23 CHAPTER 3 CONNECTION OF PROGRAMMING TOOLS AND GOT This chapter explains how to connect the CPU module to a programming tool or GOT CPU module CPU module Ethernet Programming Programming GOT tool tool Point A CPU module can be directly connected with the programming tool using one Ethernet cable In direct connection simple connection the module and the tool can communicate with each other without each other s IP address in mind lt gt Page 33 CHAPTER 4 To start Ethernet communication perform the following steps Setting parameters Configure PLC parameters by th
117. ilway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User Aircraft or Aerospace Medical applications Train equipment transport equipment such as Elevator and Escalator Incineration and Fuel devices Vehicles Manned transportation Equipment for Recreation and Amusement and Safety devices handling of Nuclear or Hazardous Materials or Chemicals Mining and Drilling and or other applications where there is a significant risk of injury to the public or property Notwithstanding the above restrictions Mitsubishi may in its sole discretion authorize use of the PRODUCT in one or more of the Prohibited Applications provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail safe redundant or other safety features which exceed the general specifications of the PRODUCTS are required For details please contact the Mitsubishi representative in your region INTRODUCTION This manual describes the function of the Universal model QCPU using Ethernet communication Before using this product please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly When applying the program examples introduced in
118. ing Use the Ping Checks the connection status of an external device by sending a Ping message ICMP Echo to an external device Closes the corresponding connection if no response message is received Check with KeepAlive Use the KeepAlive Checks the connection status of an external device by sending an ACK message which notifies an open status of the connection opened using the TCP protocol to an external device Pairing open Enables data communications using two connections with opening of one port by pairing the receiving connection with the sending connection Communication using automatic open UDP port setting Enables communications without performing open close processing after the station in which an Ethernet module is mounted is started up Remote password check Prevents unauthorized access to the CPU module by users in remote locations Simultaneous broadcast Connection to MELSOFT products or GOT Enables simultaneous broadcast to all Ethernet module mounted stations within the same Ethernet network when fixed buffer communications are performed without procedure on the condition that UDP IP is used Enables the connection to a MELSOFT product such as a programming tool and MX Component or GOT A0 Find CPU function Finds the CPU modules connected to the same hub as GX Developer and displays a list Time setting function SNTP client Collects time informati
119. ing carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user 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 lo
120. ing command quote password lock ret Point If the FTP communication port is specified as a remote password check target any other commands cannot be used until the remote password is unlocked uoneoiunululo2 dl Joj BUS 16 e Entering a file password When a file password has been set in the target file the file password has to be entered using the following command before accessing the file CPU module Command Write password quote passwd wr write password lt ret gt QnUDVCPU Read password quote passwd rd read password lt ret gt QnUDE H CPU File password quote keyword set file password lt ret gt 117 9 2 Files Transferable Using FTP The following table lists the files that can be transferred using the file transfer function O Available x N A Program SD E Standard Standard SRAM Flash memory 4 ATA card memory File name or File type pas RAM ROM card card m j 2 3 card extension Drive 0 Drive 3 Drive 4 Drive 1 Drive 2 Parameter O x x x x x x PARAM QPA Intelligent functi dul ntelligent function module E E x IPARAM QPA parameter Program O x x x x x x QPG Device comment O x x x x x x QCD Device initial value O x x x x x x QDI File register x x O O x x QDR Local device x x x x x x x QDL Sampling trace file x x x x x x x QTD Programmable controller user M x x O x x O O Any file name data Sour
121. ing of PLC Module window select the Ethernet Port Direct Connection checkbox as shown below PLC side I F Detailed Setting of PLC Module PLC Mode CPU Q mode y Connection via HUB Cancel Please select Connection via HUB when you use HUB even if the equipments to be communicated is one PAddress The load hangs to the line when Ethemet Port Direct SHEET Connection is selected with other equipment connected with IP Input Eormat o EC v HUB and it communicates and there is thing that influences the communication of other equipment Host Name 3 Complete setting of Other Station Setting Select an item appropriate to the operating environment 34 CHAPTER 4 DIRECT CONNECTION TO PROGRAMMING TOOL SIMPLE CONNECTION 4 2 Precautions 1 Connection to LAN line When connecting the CPU module to a LAN line do not set direct connection Doing so will apply a load to the LAN line and adversely affect communications with other external devices 2 Indirect connection Do not set up direct connection when a CPU module is connected to an external device in a one to one basis using a hub as shown below CPU module Ethernet cable Hub nuum 0000 0000 ODO 0000 nena Programming tool When two or more Ethernet ports are enabled in the network connections setting on the personal computer communication by direct c
122. ion with the parameter 2 When a TCP IP connection is closed before lock processing The CPU module automatically performs lock processing 3 Remote password valid range The remote password is valid only for access from the Built in Ethernet port QCPU for which the parameter settings were made When multiple CPU modules are used in a multiple CPU system set a remote password for each setting target CPU module respectively Ethernet mum Remote password D Check Remote passwor parameter A A i No remote password i Parameter 1 Remote password is checked in access 1 and 2 but not checked in access 3 and 4 138 CHAPTER 10 REMOTE PASSWORD 1 0 4 Detection of Unauthorized Access and Actions When the remote password mismatch count reaches the upper limit in unlock processing REMOTE PASS FAIL error code 2700 is detected If this occurs unauthorized access from the outside of the system can be considered as a cause of the error Take the following actions as needed 1 Monitor the Remote password count SD979 to SD999 and identify the connection of which remote mismatch count has reached the upper limit in unlock processing 2 Stop the communication by disabling the connection as shown below Select the connection in the Ethernet diagnostics window and force it to be deactivated LLI GX Works2 Version
123. ions Comparison with Ethernet Module 1 Specifications comparison with the Ethernet module The following table lists the comparison of specifications betwe en the Built in Ethernet port QCPU and the Ethernet module QJ71E7 1 100 O Available A Available but partially restricted x Not available Availability Item Description Built in Ethernet port QJ71E71 100 QCPU Reads writes data in the CPU module from to an external device 4E frame r i O A frame format that can receive multiple request messages at a time Reading Writi bon oe Reads writes data device in the CPU module from to an 498 MC protocol QnA external device 9 P communication compatible memory 3E frame Reads writes data file in the CPU module from to an Other x O external device Reads writes data in the CPU module from to an A compatible 1E frame external device A O A frame format that is compatible with A series E71 With procedure Procedure Fixed buffer exist Sends receives any data between the CPU module and an x O MON external device using the fixed buffer of the Ethernet communication Without procedure No module A procedure xy Reads writes data from in the random access buffer of the Random access buffer communication t x O Ethernet module from to multiple external devices Sends receives data by e mail Sending receiving e mail by the CPU module E mail function Sending recei
124. it Upper Limit of Mismatch Specify the maximum number of mismatches 1 to 65535 Clear Mismatch Count when Remote Password Matches Select the checkbox when this operation is to be performed 136 CHAPTER 10 REMOTE PASSWORD 1 One byte alphanumeric and special characters can be used for remote password entry Case sensitive 2 To enable the remote password for the port for which the open system is set to MELSOFT Connection in PLC Parameter select the following checkbox When Protocol is set to TCP gt MELSOFT Transmission Port TCP IP When Protocol is set to UDP gt MELSOFT Transmission Port UDP IP 3 When connecting the CPU module and a GOT via Ethernet do not select MELSOFT Transmission Port UDP IP 4 Select this checkbox to enable the remote password for the CPU module that is directly connected to the programming tool using the built in Ethernet port gt Page 33 CHAPTER 4 5 User connection is for users for communications such as MC protocol communications and communications using fixed buffers 6 System connection is used by the system for communications such as FTP communications and MELSOFT communications TCP IP UDP IP 2 Writing to the CPU module Write the remote password to the CPU module from the Write to PLC window O Online lt gt Write to PLC After writing the parameters to the CPU module power off and then on or reset the CPU module to enable the paramet
125. k pattern Subnet mask pattern Default router IP address Default router IP address Storing the used IP address Store the IP address subnet mask pattern and default router IP address which are used in the built in Ethernet port in SD1260 to SD1265 Writing to the IP address storage area flash ROM When values in the IP address storage area flash ROM are valid Confirm the IP address Confirm in the special register a The IP address subnet mask pattern E CPU operation and default router IP address are stored O User operation in SD1260 to SD1265 j 142 CHAPTER 11 IP ADDRESS CHANGE FUNCTION 2 Operations of special relay and special register The following shows the operations of special relay and special register during the operation of writing to the IP address storage area flash ROM a Operations of special relay and special register during the operation of writing to the IP address storage area flash ROM Write start Write complete END END END END processing processing processing processing I I Write request SM1292 Write complete ON SM1293 Write error ON SM1294 OFF Write error cause l O 7 sem l OFF l 9 _ Turn from off to on write l request SM1292 to turn l off the system in the END I processing I I SM1298 b Operations of special relay and special register when the operatio
126. ket communication function refer to 7 5 Page 79 Section 7 4 Access through routers is also available except for simultaneous broadcast When configuring the settings for it set the subnet mask pattern and default router IP address gt Page 30 Section 3 4 Note 7 1 Before using the socket communication function for the QnUDE H CPU check the versions of the CPU module and programming tool Page 155 Appendix 3 60 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 1 Port numbers In socket communication port numbers are used to identify respective communications and thereby multiple communications are available both on TCP and UDP For sending Specify the port number of the CPU module from which data are sent and the port number of the destination device For receiving Specify the port number of the CPU module and read out the data sent to the port CPU module IP address xx xx xx xx Ethernet L Sending UDP data from port No A of the CPU 1module to port No L of external device 1 1 External device 1 IP address yy yy yy yy O Port No A Sending UDP data from port No L of 1external device 1 to port No A of the CPU module Sending data via TCP connection External device 2 IP address zz zz zz zz Q Port No B Sending
127. mask pattern 255 255 255 0 Peebles 1210330 Default router IP address 192 168 3 254 Subnet mask pattern 255 255 255 0 Default router IP address 192 168 3 254 IP address storage area flash ROM IP address 192 168 3 40 The IP address in the IP address Subnet mask pattern 255 255 255 0 storage area flash ROM is set Default router IP address 192 168 3 254 1 Write and clear operation to the IP address storage area flash ROM Write a value of IP address to the IP address storage area flash ROM The special relay and special register are used to perform the write and clear operations IP address storage area Special register flash ROM SD1292 Pad SD1293 pdas pides SD1294 Subnet mask Subnet mask SD1295 pattern pattern SD1296 Default router Write execution Default router SD1297 IP address SM1292 ON IP address 2 Execution timing of writing to and clearing the IP address storage area flash ROM Write and clear processing are executed in the END processing Therefore the scan time is increased during execution 141 Hog JOUJOY F urmng eui jo SSSIPPY dl VLL 11 2 How to Use the Function 11 2 1 Write operation This operation can be performed by storing the IP address to be changed in SD1292 to SD1297 and turning off and on SM1292 IP address storage area write request 1 Operating procedure The following shows the write operation
128. memories and drive names refer to 2 gt Page 118 Section 9 2 b Folder name file name and extension Specify a folder name and a file name according to the rules described in the following manual QnUCPU User s Manual Function Explanation Program Fundamentals e Set an extension predetermined by the CPU module 5 Page 118 Section 9 2 Foran FTP command which can be used for multiple files specify the file name and extension using a wild card character or s Indicates all files having any characters including no character from the position where is used Indicates all files having any characters including no character at the position where is used Multiple can be used Some FTP clients have other restrictions on the characters that can be used for file names Point The part enclosed with brackets in the specification format can be omitted 122 CHAPTER 9 FILE TRANSFER FUNCTION FTP 9 4 3 Details of the FTP commands on the FTP client side which are supported by the CPU module and how to use each of them are described below Details of FTP commands Point Note that some FTP commands may not function as described in this manual depending on the FTP application used on the FTP client side Check the functions and operation methods referring to the manual s for the FTP client 1 FTP server support commands ebinary Function Specification format
129. mming tool For the list of functions added by the upgrade refer to Page 155 Appendix 3 sejymeej p 21 CHAPTER 2 COMMUNICATION SPECIFICATIONS The following are the communication specifications of the built in Ethernet port of the CPU module Item Specification Data transfer speed 100 or 10 Mbps Communication mode Full duplex or half duplex Transmission method Base band Transmission Maximum distance between hub specifications and node 100m Maximum 10BASE T Cascade connection Up to four number of I nodes connection 100BASE TX Cascade connection Up to two Numbers TCP IP Total of 16 for socket communication MELSOFT connection MC protocol and ind predefined protocol VERF One for FTP 4 10BASE T Ethernet cable of category 3 or higher STP UTP cable Connection cable 100BASE TX Ethernet cable of category 5 or higher STP cable 1 2 3 Hubs with Straight cables can be used When the CPU module is directly connected to GOT with Ethernet cable a cross cable of Category 5e or lower can also be used This number applies when a repeater hub is used When using a switching hub check the number of cascaded stages with the manufacturer of the hub to be used Use of STP cables is recommended in an environment with noise 10BASE T or 100BASE TX ports can be used Up to 16 external devices can access one CPU module at the same time 4 Point The
130. module in the manual Buffer memory cannot be set as a data storage area for non conversion variable CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 6 4 Predefined Protocol Function Instructions The predefined protocol function instructions are provided for the CPU module to use the predefined protocol function This section describes the predefined protocol function instructions Instruction Description Reference Establishes a connection with the external device If an Active open is performed by the CPU module the Page 62 Section 7 1 SP SOCOPEN He SP SOCOPEN instruction is used to establish a connection with Page 80 Section 7 4 1 the external device SP SOCCLOSE Closes a connection with the external device Page 84 Section 7 4 2 SP SOCCINF Reads out connection information Page 98 Section 7 4 6 Changes the target of the connection for UDP IP Page 101 Section SP SOCCSET o communications 7 4 7 SP ECPRTCL Executes the configured predefined protocol Page 57 Section 6 4 1 Point If the instruction has a completion device do not change any data such as control data and request data specified for the instruction until the execution is completed 6 4 1 Executing the predefined protocol SP ECPRTCL This instruction sends and receives packets set by the predefined protocol support function of GX Works2 Usage of the SP ECPRTCL instruction is the same as that of the GP E
131. modules and O lt SH 080485ENG 13JR75 gt communications with I O modules and intelligent function modules QnUDVCPU LCPU User s Manual Data Logging Function Detailed description of the data logging function of the CPU module O lt SH 080893ENG 13JZ39 gt 2 Programming manual Manual name US Manual Description manual number model code type MELSEC Q L Programming Manual Common Usage of common instructions such as sequence instructions basic Instruction me e instructions and application instructions lt SH 080809ENG 13JW10 gt MELSEC Q L QnA Programming Manual SFC System configuration specifications functions programming and o lt SH 080041 13JF60 gt error codes for SFC MELSAP3 programs MELSEC Q L Programming Manual MELSAP L System configuration specifications functions programming and o lt SH 080076 13JF61 gt error codes for SFC MELSAP L programs MELSEC Q L Programming Manual Structured Text System configuration and programming using structured text o lt SH 080366E 13JF68 gt language MELSEC Q L QnA Programming Manual PID Control Instructions Dedicated instructions for PID control O lt SH 080040 13JF59 gt MELSEC Q Programming Structured Programming Manual Process Control Instructions Dedicated instructions for process control O lt SH 080316E 13JF67 gt 13 3 Operating manual Manual name ee Manual Description lt manual number model code g
132. mote password to lock the 0000 unlocked state o o o 1 Devices TS TC SS SC CS and CC cannot be specified in units of words Specifying any of these for monitor registration will cause an error 40324 at the time of monitoring execution 2 For monitor registration monitoring conditions cannot be set 3 Do not execute monitor registration from multiple devices If executed the last monitor registration takes effect 4 Set the number of processed points so that the following condition is satisfied Number of word access points x 12 Number of double word access points x 14 lt 1920 For bit devices one point is regarded as 16 bits in word access and 32 bits in double word access For word devices one point is regarded as one word in word access and two words in double word access 39 js pueuuo LCG spuewwop 090 O0Jd OW Z S 2 When A compatible 1E frame is used O Available x N A Status of CPU module Command Number of RUN Function response Description processed STOF type points Write Write enabled disabled l it ven 0g Reads bit devices in units of one point 256 points of bits Batch read 128 word adim In units T Reads bit devices in units of 16 points EROS O e O of words Reads word devices in units of one point 256 points l it n S 02 Writes bit devices in units of one point 256 points of bits Batch writ 40 word x
133. n 58 6 17 Precautions rgen a copa ida 59 10 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 60 7 1 Communication Using TCP 0 00 ccc ras 62 7 2 Communication Using UDP eis xe ca REDI USER AN E re afa aes 71 7 3 Precautions for the Socket Communication Function 00 00 cece eee eee eee 77 7 4 Socket Communication Function Instructions llle 79 7 4 1 Establishing a connection SP SOCOPEN 00 000 cece cece ence nnan 80 7 4 2 Disconnecting a connection SP SOCCLOSE 0000s ccc cece eee n 84 7 4 3 Reading out received data in the END processing SP SOCRCV 0 0005 87 7 44 Reading out received data during instruction execution S SOCROVS 91 74 5 Sending data SE SOCSND s las 94 7 4 6 Reading out connection information SP SOCCINF oo oooooocoooooonoooo oo 98 7 4 7 Changing the target of a connection UDP IP SP SOCCSET ooo oooooooooo 101 7 48 Changing the receive mode of a connection SP SOCRMODE 22 103 7 4 9 Socket communication receive data read S P SOCRDATA issues 107 CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT 109 8 1 Setting Method s noi operc b peg reb d Ri E dI NR 110 8 2 Preciado 111 CHAPTER 9 FILE TRANSFER FUNCTION FTP 112 9 1 Setting for FTP Communication llliiiislessssls 113 9 2 Files Transferable Using FTP 1 0 0 0 ccc ccc cence een s
134. n e SP SOCCLOSE instruction 7 Do not execute the SP SOCCLOSE instruction in the program Doing so will disable data transfer since the Open completion signal and Open request signal of the corresponding connection turn off for close processing To reopen the closed connection execute the SP SOCOPEN instruction For the SP SOCOPEN instruction refer to gt Page 80 Section 7 4 1 f Simultaneous broadcast targets With simultaneous broadcast data can be sent to the devices which are connected to the same hub of the CPU module and to those connected to the cascaded hub s Data cannot be received from the devices connected through routers g Receiving data using simultaneous broadcast When data are received through a connection of simultaneous broadcast the IP address and port number of the sender can be acquired by the SP SOCCINF instruction For the SP SOCCINF instruction refer to gt Page 98 Section 7 4 6 dan Buisn uonesunwwoy g z h Connection of simultaneous broadcast Data cannot be sent when FFFF y is specified for the port number of the transmission target To send data specify a value other than FFFFy 15 i Destination IP address of the message transferred by simultaneous broadcast Use a CPU module IP address of which all the bits corresponding to the host address are on When the subnet musk pattern is specified apply the pattern before using the above mentioned IP address Ex IP address
135. n cause an unauthorized connection from a remote location Unauthorized connections can be prevented by selecting the following option in the Built in Ethernet port tab of the PLC parameter window Enable online change FTP MC Protocol Do not respond to search For CPU Built in Ethernet port on network 33 4 1 Setting Method Set the items on the Transfer Setup window W Connection Destination window c Connection1 Transfer Setup Connection PC side I F 0 CCIE Cont CC Link Ethemet CCIE Fit Q Series NET II PLC NETZ1OIH Board Board Board Bus Board Board Board Network No Station No Protocol UDP S5 B 8 CC IE Cont CCLink Ethemet GOT CCIE Field CCIE Field NET 10 H Module Module Master Local Communication Module Module HeadModule 1 PLC IQCPU 8 mode S 2 IP Address Host Name Ethemet Port Direct Connection E gt comen N Other Station Other Station Single Network Co existence Network PLC Direct Coupled Setting 3 Time Out Sec 30 Retry Times D PLC Type Detail CCIE Cont CCIE Field Ethemet CCLink C24 NET 10 H System Image Phone Line Connection C24 CCIE Cont CCIE Field Ethemet CC Link C24 NET 10 H Accessing Host Station Cancel Multiple CPU Setting 3 j g g Target PLC i at Not Specified ee D Select Ethernet Board for PC side I F 2 Select PLC Module for PLC side I F In the PLC side IF Detailed Sett
136. n of writing to the IP address storage area flash ROM failed END processing NEN processing Write request oN FL 2 SM1292 OFF Write complete ON SM1293 Write error SM1294 ON Write error cause Write start Write failed OFFLL L LL END processing END processing Turn on and then off the write request SM1292 to turn off the system during the END processing SM1298 Error cause 3 Cause of failure to write to the IP address storage area flash ROM If the processing of writing to the IP address storage area flash ROM is not completed the error cause is stored in SD1298 IP address storage area write error factor Value in SD1298 Error cause 100 The value in SD1292 to SD1297 is outside the setting range 2001 An error occurred during writing Writing cannot be performed since the following functions are being executed Online Program Change 300 Export to ROM format Write to PLC flash ROM 400 Writing is started during clear processing execution 143 uogejedo IUM L Z Ll uonounJ eui esr o1 MOH Z LL 4 Program example The following shows a program example of writing to the IP address storage area flash ROM a Devices used in programs Device number Application Device number Application M100 Write Instruction SM1293 IP address storage area write c
137. n the next END processing END processing END processing END processing Program AAA JAN instruction executed SP SOCOPEN instruction Completion device D 0 ON When failed _ Completion device D 1 Connection i open 1 scan when normally completed A connection with no parameters no protocol is specified can be opened In this case specify 8000 for 62 0 and configure open settings in 62 2 to 629 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for is other than 1 to 16 Error code 4101 The device numbers specified for 62 and exceed the device point range Error code 4101 An invalid device is specified Error code 4004 82 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 5 Program examples a Opening a connection using parameter settings When M1000 is turned on connection No 1 is opened using the parameters set in Open settings of PLC parameter Devices used Device number Application SD1282 Open completion signal SD1284 Open request signal SD1288 Connection state signal D100 SP SOCOPEN instruction control data
138. nary 9 Notifies the FTP server of file transfer without conversion O O O O x bye Di connecis the line to the FTP server and terminates the o o o o o session close Disconnects the line to the FTP server O O e O O delete Deletes a file in the CPU module O 9 O x dir Displays file information of the CPU module 4 O O O O i get Reads a file from the CPU module O O O O Is Displays file names of the files stored in the CPU module O O 9 O S mdelete 9 Deletes file s stored in the CPU module 4 O O eS O ii mdir Stores file information of the CPU module into a file O O O O 7 mget Reads file s from the CPU module 4 O O O O mls Stores CPU module s file names into a file O O O O x mput Writes file s to the CPU module O O x Oo x open Connects to the FTP server O O O O O put 8 Writes a file to the CPU module O O x O x pwd Displays the current directory of the CPU module O O O O x 3 Disconnects the line to the FTP server and terminates the quit connection o e o o 3 quote Sends an FTP server subcommand 2 O Oo O O O rename Changes a CPU module file name O O O x user Inputs the user name and password of the CPU module O O O O O 4 Whether the online change settings is enabled or not is indicated in the Built in Ethernet Port tab in the PLC Parameter window 12 These indicate whether the remote password can be used or not when the FTP communication port is specified as a remote passwor
139. nder Timer setting of GX Developer Fixed to one second A request message is discarded if the next part of the split message cannot be received within one second If each part of the split request message is not sent within one second a response message is not returned and a communication timeout occurs in the external device Retry communication from the external device If a communication timeout frequently occurs reduce the load of the external device or Ethernet network Operation when request messages are consecutively sent to one connection Even when one connection consecutively receives request messages each request message can be processed When one connection receives another request message before responding a request message the second message is discarded If request messages are consecutively sent to one connection response messages are not returned and a communication timeout may occur in the external device Check that the external device receives a response message before sending next request message Do not consecutively send request messages from the external device 159 e npo N 1euJeu 3 uir uosueduio suoneoyioeds y xipueddy 3 Differences between the socket communication and the nonprocedural communication using a fixed buffer of the Ethernet module Built in Ethernet port Consequence of a communication with Item QJ71E71 100 Ac
140. nected device may be fragmented depending on the line type To prevent this the receive data size can be specified in the TCP fixed length receive mode O Prevention of receive data binding Separately sent data may be combined depending on the interfacing device due to a delay in receive processing of the program To prevent this the receive data size can be specified in the TCP fixed length receive mode The set values will take effect at the following timing of the SP SOCRMODE instruction execution Before opening Values take effect after opening a connection When there are data in the Socket communication receive data area Values take effect after execution of the SP SOCROV or S SOCROVS instruction once after the S SOCRMODE instruction When there is no data in the Socket communication receive data area Values take effect after the SP SOCRMODE instruction is executed 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for 6 is other than 1 to 16 Error code 4101 The device number specified for 62 exceeds the device point range Error code 4101 Invalid device is specified Error code 4004 Even when the Rec
141. nment of frequent vibrations fix the module with a screw Tighten the screw within the specified torque range Undertightening can cause drop of the screw short circuit or malfunction Overtightening can damage the screw and or module resulting in drop short circuit or malfunction When using an extension cable connect it to the extension cable connector of the base unit securely Check the connection for looseness Poor contact may cause incorrect input or output When using a memory card fully insert it into the memory card slot Check that it is inserted completely Poor contact may cause malfunction When using an SD memory card fully insert it into the SD memory card slot Check that it is inserted completely Poor contact may cause malfunction Securely insert an extended SRAM cassette into the cassette connector of a CPU module After insertion close the cassette cover to prevent the cassette from coming off Failure to do so may cause malfunction Shut off the external power supply all phases used in the system before mounting or removing a module Failure to do so may result in damage to the product A module can be replaced online while power is on on any MELSECNET H remote I O station or in the system where a CPU module supporting the online module change function is used Note that there are restrictions on the modules that can be replaced online and each module has its predetermined replacement procedure For details refer t
142. o 194909 t An invalid device is specified Error code 4004 Do not use Passive open for execution of the SP SOCCLOSE instruction Doing so will turn off the Open completion signal and Open request signal of the connection and cause close processing which disables data transfer 38019908 dS uonpoeuuoo e Dunoeuuoosiq Z v7 85 86 5 Program example When M2000 is turned on or when the connected device disconnects connection No 1 connection No 1 is disconnected by the following program Devices used Device number Application SD1282 Open completion signal SD1284 Open request signal D200 SP SOCCLOSE instruction control data M200 SP SOCCLOSE instruction completion device Program SD1282 0 SD1284 0 lA _ __ P Ls M161 Processing for disconnection of Connection No 1 by the target M2000 SD12820 M210 ME SP SOCCLOSE uo K1 D200 M200 Connection No 1 close M161 z Setting SP SOCCLOSE LSET M210 executing flag M200 M201 At LSET M202 Normal completion M201 a LSET M202 Error completion os Resetting SP SOCCLOSE LRST M210 executing flag END CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 3 Reading out received data in the END processing SP SOCRCV Command SPSOCROV f spsocrcv uo amp amp 2 Settin Internal device JOO Constant
143. o the relevant sections in the QCPU User s Manual Hardware Design Maintenance and Inspection and in the manual for the corresponding module Do not directly touch any conductive parts and electronic components of the module memory card SD memory card or extended SRAM cassette Doing so can cause malfunction or failure of the module When using a Motion CPU module and modules designed for motion control check that the combinations of these modules are correct before applying power The modules may be damaged if the combination is incorrect For details refer to the user s manual for the Motion CPU module Wiring Precautions NWARNING O Shut off the external power supply all phases used in the system before installation and wiring Failure to do so may result in electric shock or damage to the product O After wiring attach the included terminal cover to the module before turning it on for operation Failure to do so may result in electric shock Wiring Precautions NCAUTION O Individually ground the FG and LG terminals of the programmable controller with a ground resistance of 1000 or less Failure to do so may result in electric shock or malfunction Use applicable solderless terminals and tighten them within the specified torque range If any spade solderless terminal is used it may be disconnected when the terminal screw comes loose resulting in failure Check the rated voltage and terminal layout before wiring to
144. of the CPU moduleside 64 168 3 39 Subnet mask pattern None IP address of simultaneous 64 255 255 255 broadcast Ex IP address of the CPU module side 64 168 3 39 Subnet mask pattern 255 255 255 0 IP address of simultaneous 64 168 3 255 broadcast 7 3 CHAPTER 7 SOCKET COMMUNICATION FUNCTION Precautions for the Socket Communication Function This section provides other precautions for the socket communication function 1 2 3 4 5 6 Port number Host station port number 0001 y to O3FFy are assigned for reserved port numbers WELL KNOWN PORT NUMBERS and F000 to FFFE y are for other communication functions Therefore using 0400y to 1387 and 13924 to EFFF y is recommended Do not specify 13884 to 13914 because these ports are used by the system 2 gt Page 154 Appendix 2 Do not specify 00144 and 0015 for the socket communication function when using the FTP function Do not specify 007B y for the socket communication function when using the time setting function SNTP Do not specify F000 to FFFEy for the socket communication function when using the data logging file transfer function Reading out received data Read out received data when the Receive state signal SD1286 has turned on Communication via the built in Ethernet port may be affected if a considerable amount of received data have not been read out for a long time Conditions for closing In TCP communic
145. omplete D100 to D103 IP address to be changed SM1294 IP address storage area write error D104 to D107 Subnet mask pattern to be changed M101 Normal write completion indication D108 to D111 Default router IP address to be changed M102 Abnormal write completion indication SD1292 to SD1297 IP address setting SD1298 IP address storage area write error factor SM1292 IP address storage area write request D100 Write error factor display 1 Set as follows Example When setting the IP address 192 168 3 40 in D100 to D103 D100 40 D101 3 D102 168 D103 192 b Sample program M100 1292 BTOW D100 SD1292 SET SM1292 SM1293 SM1294 SET SM1294 SET MOV SD1298 RST 144 K12 SM1292 M101 M102 D100 SM1292 END IP address is set to SD1292 to 1297 Write start Normal completion indication Error completion indication Error cause read Write complete CHAPTER 11 IP ADDRESS CHANGE FUNCTION 11 2 2 Clear operation This operation can be performed by turning off and on SM1295 IP address storage area clear request 1 Operating procedure The following shows the clear operation flow Turn off and then on the IP address storage area clear request SM1295 Clearing the IP address storage area flash ROM Perform the IP address storage area clearing flash ROM Confirm the clear completion Confirm the clear failed Clear complete S
146. on completed Received data The verification result of received packet No 1 is stored Default 0 7 gt Page 55 1 verification result Section 6 2 1 a b0 to b7 Element No where the verification result did not match received packet No 1 b8 to b15 The cause of mismatch verification result code Received data verification result M F 2 to 16 The bit configuration is the same as the received packet No 1 received packet No 2 to 16 The number of protocol executions is stored Default 0 Number of protocol 17 0 No execution executions i 1 to 65535 Number of executions The value remains the same after 65535 The protocol cancellation request status is stored Default 0 18 Protocol cancellation 0 No cancellation requested specification 1 Cancellation requested set by users 2 Cancellation completed set by the system 1 Even after data communications by the predefined protocol function executed by the SP ECPRTCL instruction is completed the stored values are held a Received data verification result The following information is stored in the Received data verification result poyan Bumes z 9 Element No where the verification result did not match bO to b7 Stored value Description 0 Verification matched 1 to 32 Element No where the verification result did not match FFy Verification not performed The cause of mismatch verification result code b8 to b15
147. on from the time information server and sets time in the CPU module automatically User connection Connection which is used by user during communications using the MC protocol or the fixed buffer Can be used as MELSOFT communication port of system connection by setting parameters Up to 16 connections can be used System connection Auto open UDP port FTP transmission port MELSOFT transmission port UDP IP MELSOFT transmission port TCP IP HTTP port MELSOFT direct connection Connection which is used by the system only Or O 6 7 IP packet transfer function Communicates data using FTP or HTTP through the built in Ethernet ports from an Ethernet device such as a personal computer to the following IP compatible devices connected via a CC Link IE Controller Network or CC Link IE Field Network module External devices on CC Link IE Controller Network or CC Link IE Field Network External devices on the Ethernet network which are connected through the built in Ethernet ports Communications using SLMP Enables an external device to read write data from to the SLMP compatible device connected to the shared network with the Ethernet module In addition enables an external device to read write data from to a device in the CPU module connected to the Ethernet module 157 e npo N 1euJeu13 uir uosueduio suoneoyioeds y xipueddy
148. on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for is other than 1 to 16 Error code 4101 The received data size exceeds the size of the receive data storage device Error code 4101 The device numbers specified for 62 and exceed the device point range An invalid device is specified 5 Program example Error code 4101 Error code 4004 When M5000 is turned on data received from the connected device are read out Devices used Device number Application SD1282 Open completion signal SD1286 Receive state signal D5000 SP SOCRCV instruction control data D500 Receive data length and receive data storage location M500 SP SOCRCV instruction completion device Program M5000 SD1282 0 SD1286 0 M500 I Reading receive AF SP SOCRCV Uo Ki D5000 D500 M500 j data of Connection No 1 M500 M501 Jt SET M502 J Normal completion M501 SET M503 Error completion END Point O To avoid receiving large amounts of data the volume of received data can be limited by setting the receive data size using the SP SOCRMODE instruction Consecutively sent data c
149. onnection is not possible In the setting leave only one Ethernet port enabled for direct connection and disable other Ethernet ports 3 Conditions that disallow direct connection When any of the following conditions is met communication by direct connection may not be available In that case check the setting of the CPU module and or personal computer ES In the CPU module IP address bits the bits corresponding to 0 in the personal computer subnet mask are Bi all ON or all OFF g S 5 Ex CPU module IP address l 64 64 255 255 a Personal computer IP address 64 64 1 1 Personal computer subnet mask 255 255 0 0 In the CPU module IP address bits the bits corresponding to the host address of the class in the personal computer IP address are all ON or all OFF Ex CPU module IP address 64 64 255 255 Personal computer IP address 192 168 0 1 Personal computer subnet mask 255 0 0 0 O The IP address pattern for each class is as follows Class A 0 x x x to 127 x x x Class B 128 x x x to 191 x x x Class C 192 x x x to 223 x x x The host address for each class is the part shown with O Class A 255 0 0 O Class B 255 255 0 0 Class C 255 255 255 0 35 CHAPTER 5 wc PROTOCOL COMMUNICATION The built in Ethernet port allows MC protocol communication From an peripheral device such as a personal computer or HMI device data of the CPU module can be read or written using MC protocol Monitorin
150. ons o o oooooooo 45 TCP standard receive mode 104 Time setting function oooo o o oooo 109 UDP Ls adhere ct kee tah eral a athe wl mash A da 23 Universal model QCPU ooo o oooo ooo 19 Unlock processing l l sess 135 Unpassive o 62 USO am tact let A Ad ad cta qa 9 AY B 126 WINE CAG a i bd ou dh boe be erbe 122 163 S SOCRCVS S P SOCRDATA SP ECPRTCL SP SOCCINF SP SOCCLOSE SP SOCCSET SP SOCOPEN SP SOCRCV SP SOCRMODE SP SOCSND 164 INSTRUCTION INDEX REVISIONS The manual number is given on the bottom left of the back cover Print date December 2008 SH NA 080811ENG A First edition March 2009 April 2010 August 2010 July 2011 October 2011 February 2012 May 2012 SH NA 080811ENG B SH NA 080811ENG C SH NA 080811ENG D SH NA 080811ENG E SH NA 080811ENG F SH NA 080811ENG G Revisions involving function addition to the Built in Ethernet port QCPU support for the serial number first five digits of 11012 and later Correction SAFETY PRECAUTIONS MANUAL PAGE ORGANIZATION GENERIC TERMS AND ABBREVIATIONS Section 1 1 CHAPTER 2 3 Appendix 1 Addition Section 3 4 CHAPTER 4 Appendix 2 3 Change of section No Section 3 4 Section 3 5 Section 3 5 Section 3 6 Section 3 6 gt Section 3 7 Revisions involving function addition to the Built in Ethernet port Q
151. ons Enable Clear Mismatch Count when Remote Password Matches in the Remote Password Detail Setting window Clear the accumulated count of remote password mismatches using the special relay SM1273 139 suonoy pue sseooy pezuouineuf jo uopoeieq FOL CHAPTER 11 iP ADDRESS CHANGE FUNCTION 9 The IP address of a built in Ethernet port can be changed without changing the built in Ethernet port settings of PLC parameters by storing the values in special relays and special registers 2 Store the IP address of the special register SD to the IP address storage area flash ROM by turning the special relay SM on 1 Store the IP address in the special i IP address storage area register SD by the device write Special register SD flash ROM operation D1292 IP address IP address SD1293 IsD1294 Subnet Subnet mask mask ISD1295 pattern Write pattern execution ISD1296 Default SM1292 ON Default router router ISD1297 IP address IP address connection GOT 3 Power off and 4 Operate with the IP address stored in the then off or reset IP address storage area flash ROM the CPU module Point This function can also be used by changing values for special relay and special register from GOT For details of the special relay and special register used for this f
152. ord 32 read password O O O O x passwd wr 4 Sets displays or clears file password 32 write password O O O O x 1 Even if the subcommand is executed the remote password remains locked with no error occurred 2 This command can include a folder name in the file specification 3 The subcommand cannot be used for the QnUDVCPU 4 The subcommand cannot be used for the QnUDE H CPU 5 The subcommand cannot be used for access control target files in the file access control by security key SpuEuluo dI4 t 6 spu amp euluo9 d143JO1S Lv 6 121 9 4 2 How to specify an FTP command This section explains how to specify a file with an FTP command on the FTP client connected device which is supported by the CPU module 1 File specification A file can be specified for an FTP command on the FTP client side as follows For CPU modules each file is specified using a drive name and a file name 2 When specifying a file in the CPU module using the FTP function specify the target file in the following order Specification format Drive name Folder name File name Extension Example 3 MAINSEQ1 QDR other than drive 2 2 LOGGING LOG01 00000001 LOG01_00000001 CSV drive 2 Specification details Refer to a and b below 1 Only for a file in drive 2 the folder name can be specified 2 Use as a delimiter a Drive name drive No Specify the drive name of the file transfer target memory For the CPU module s
153. oring receive data upon execution of the SP SOCROV or S SOCROVS instruction O In the following order based on the data currently received the size of the data received the next time can be specified 1 Check the data currently received using the S P SOCRDATA instruction 2 Specify the size of the data to be received the next time using the SP SOCRMODE instruction 3 Read out the data currently received using the SP SOCRCV or S SOCROVS instruction O Evenifthe S P SOCRDATA instruction is executed the next receive data will not be stored in the Socket communication receive data area because the area is not cleared and the Receive state signal does not change To update the receive data read out the data using the SP SOCRCV or S SOCRCVS instruction 4 Error 108 A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when The instruction is executed in the QnUDE H CPU with a serial number first five digits of 11011 or earlier or a CPU module other than the Built in Ethernet port QCPU Error code 4002 The connection number specified for is other than 1 to 16 Error code 4101 The device numbers specified for 62 D and n1 exceed the device point range Error code 4101 An invalid device is specified Error code 4004 5 Program example When M4000 is turned on the receive data length of connection No 1 is read out Devices
154. ork No of Ethernet madule set in parameter Station No Station No that does not overlap on the same loop Protocol TCP y Tce 27 joo BuruuueJ80Jg 24 104 Bumes z 28 2 Select PLC Module for PLC side I F Enter the IP address or host name of the CPU module in the PLC side I F Detailed Setting of PLC Module window as shown below For the host name enter the name set in the Microsoft Windows hosts file PLC side 1 F Detailed Setting of PLC Module 3 Set Other Station Setting Select an item appropriate to the operating environment 3 3 CHAPTER 3 CONNECTION OF PROGRAMMING TOOLS AND GOT Searching CPU Modules on the Network In a configuration using a hub clicking Find CPU Built in Ethernet port on Network in the PLC side I F Detailed Setting of PLC Module window will start searching for CPU modules connected to the hub where the programming tool is also connected and display a list of them PLC side 1 F Detailed Setting of PLC Module PLC Mode QCPU Q mode y C Ethemet Port Direct Connection Connection via HUB Cancel a Please select Connection via HUB when you use HUB even if the equipments to be communicated is one IP Add The load hangs to the line when Ethemet Port Direct di Connection is selected with other equipment connected with IPInputFormat DEC HUB and it communicates and there is thing that influences N the communication of other equipment
155. ormat 3 Note 130 Transfers program cache memory to the program memory quote pm write The following message is displayed as an execution result upon completion 200 Command successful Before writing data set the CPU module to STOP Set the read password file password 32 that has been registered in a target file to transfer in the CPU module Displays and clears the read password that has been set in the CPU module Use this command only when a read password has been registered in the target file to transfer The CPU module checks a password when a specified file is accessed When setting a read password in the CPU module quote passwd rd read password The following message is displayed as an execution result at the normal end 200 Command successful When displaying the read password that has been set in the CPU module quote passwd rd Any of the following is displayed as an execution result at the normal end When the command is executed with a read password set 200 Read password is read password When the command is executed with no read passwords set 200 Read password is not set When clearing the read password that has been set in the CPU module quote passwd rd c or quote passwd rd C The following message is displayed as an execution result at the normal end 200 Command successful A read password can be set for the CPU module When the target file to transfer is changed re set a read password for
156. ould be used only to force remote RUN to the CPU module from another device when a device that executed remote STOP to the CPU module have a problem and cannot perform remote RUN With Normal RUN the CPU module state cannot be changed from STOP PAUSE to RUN if the previous state is set by a different device Specify the clear mode at the start of an operation according to the system arrangement After completing the specified clear processing the CPU module runs in accordance with the PLC parameter settings Initial Device value setting on the PLC file tab Displays information of the CPU module operation This command is used to check the information on the CPU module operation before transferring a file to the CPU module quote status One of the following is displayed as an execution result upon completion When the CPU module is in RUN state RUN When the CPU module is in STOP state STOP When the CPU module is in PAUSE state PAUSE Changes the CPU module state to STOP remote STOP quote stop The following message is displayed as an execution result upon completion 200 Command successful Before writing data to the program memory set the CPU module into the STOP state using this command 129 SpuEuluo dI4 t 6 SPuBuwulos q 40 SIIE 8Q 16 epm write Function Specification format Note epasswd rd Function Specification format 1 Specification format 2 Specification f
157. ple 1 Example 2 Note epwd Function Specification format Note equit Function Specification format Identical command quote Function Specification format Example Note erename Function Specification format Example Note euser Function Specification format Example 1 Example 2 126 Writes a file to the CPU module put source file path name destination file path name When writing the MAINSEQ1 QDR file to the standard RAM with the same file name put MAINSEQ1 QDR 3 MAINSEQ1 QDR When writing the MAINSEQ QDR file to the standard RAM with a different file name put MAINSEQ QDR 3 MAINSEQ1 QDR If no directory is specified for the source file path name FTP client side the file on the current directory where FTP is started up and connected to the server is written When no destination file path name FTP server side is specified the file is saved in the memory in which current parameter files are stored Displays the current directory name of the CPU module pwd Y is displayed as the execution result of the pwd command Disconnects the line from the FTP server and terminates the FTP session quit bye Sends an FTP server subcommand a subcommand dedicated to CPU modules quote quote password lock Only CPU module dedicated subcommands can be specified Refer to 2 Renames a CPU module file rename old file path name new file path n
158. pletion 7 M501 a R 1 H SET M5003 Error completion END 1 For changing the target device run the program enclosed by a dotted line It can be omitted when the communication target is not changed For details refer to the section of the SP SSOCCSET instruction gt Page 101 Section 7 4 7 2 For acquiring information of the target device connected on UDP run the program enclosed by a dotted line It can be omitted when the information acquisition is not needed dan Burst uonesunwwoy z 7 73 2 Simultaneous broadcast For simultaneous broadcast using UDP set the parameters as follows e Destination IP Address FF FF FF FF y Destination Port No FFFF y CPU module IP address xx xx xx xx Subnet mask 255 255 255 0 Ethernet Sending data from port No A of the i i CPU module to each port No N of all 1 Port No A O External device 1 IP address xx xx xx yy external devices External device 2 IP address xx xx xx zz External device 3 IP address xx xx xx ww Port No N Destination IP Destination Port Receiving Sending Address No Sends data from the host station port No to the specified IP address and port No Receives only the data sent from the sp
159. pletion device SD1282 Open completion signal SD1286 Receive state signal SD1288 Connection state signal M3001 Target change direction D500 and higher Receive data length and receive data M5002 Normal receive indication M5003 Receive error indication D400 to D404 D450 to D451 SP SOCCSET instruction control data SP SOCCINF instruction control data D460 to D464 SP SOCCINF instruction connection information CHAPTER 7 SOCKET COMMUNICATION FUNCTION c Sample program f M Target changing M3001 SD12820 l f n N DMOVP HOA6155DE D402 Setting target IP address MOVP H2001 D404 J Setting target port No O SP SOCCSET Uo Ki D400 F Changing setting of i Connection No 1 lt lt Data sending gt gt M3000 SD12820 SD1288A 2 itt f ub 1MOVP K6 D300 J Setting send data length MOVP H3412 D301 MOVP H7856 D302 Setting send data MOVP HOBC9A D303 i sP s0CSND uo K1 D3000 D300 M300 Sending data to Connection No 1 M300 M301 E Xt SET M3002 Normal completion M301 A SET M3003 Error completion lt lt Data receiving gt gt 4 32 SD1282 0 SD1286 0 M500 dl ee Jt SP SOCCINF uo K1 D450 D460 J Obtaining information of target device A SP SOCRCV uo K1 D5000 D500 M500 J Receiving data M500 M501 2 Mr SET M5002 Normal com
160. port QCPU No 1 When a CPU module other than the Built in Ethernet port QCPU No 1 is enabled the clock data of the Built in Ethernet port QCPU No 1 is automatically set 111 suonneoeJld Z9 CHAPTER 9 FILE TRANSFER FUNCTION FTP The CPU module supports the server function for FTP File Transfer Protocol which is a protocol designed for file transfer to or from the connected device The device with the FTP client function can directly access any files located in the CPU module CPU module FTP server Target device FTP client Parameters Programs Storage files Data Read Write Ethernet The following operations can be performed between the connected device with the FTP client function and the CPU module a Reading files from the CPU module download The files in the CPU module can be stored in the connected device b Writing files to the CPU module upload The files stored in the connected device can be registered to the CPU module c Browsing the names of the files in the CPU module The files registered to the CPU module can be checked from the connected device Point In a multiple CPU system only the CPU module connected with an Ethernet cable can transfer files Access through routers is also available When configuring the settings for it set the subnet mask and default router IP address gt Page 30 Section 3 4
161. ports must comply with the IEEE802 3 10BASE T or IEEE802 3 100BASE TX standards When connected to a hub the CPU module determines the cable used 10BASE T or 100BASE TX and the communication mode full duplex or half duplex according to the hub Set the hub into the half duplex mode if the hub that does not have the auto negotiation function The operation of commercial devices used for the following applications is not guaranteed Check the operation before using the module Internet general public line Internet access service offered by an Internet service provider or a telecommunications carrier Firewall device s Broadband router s Wireless LAN If Ethernet communication is performed with Specify service process execution counts selected for Service processing setting in the PLC system tab of PLC parameter a scan time increases by time for service processing approximately 500ms To reduce it to 500ms or less select an item other than Specify service process execution counts Example Select Specify service process time and then enter a time value If broadcast storm occurs in the network scan time may be increased If the destination device of the CPU module does not respond due to power off or other reasons Ethernet communication of the CPU module may delay up to 500ms 22 CHAPTER 2 COMMUNICATION SPECIFICATIONS TCP and UDP are defined as follows TCP Transmission Control Protocol In commun
162. ppendix 4 Addition Section 3 9 SH NA 080811ENG H Correction Section 4 2 165 Print date Manual number Revision February 2013 SH NA 080811ENG I September 2013 SH NA 080811ENG J Overall revision due to addition of the Universal model QCPU and the changed manual layout QO3UDVCPU Q04UDVCPU QOGUDVCPU Q13UDVCPU Q26UDVCPU Revision on the new functions of the Universal model QCPU with a serial number first 5 digits of 15043 or later Correction Section 5 2 2 8 1 8 2 8 4 1 Appendix 3 January 2014 SH NA 080811ENG K February 2014 H NA 080811ENG L Revision on the new functions of the Universal model QCPU with a serial number first five digits of 15103 or later Partial correction Section 1 1 Chapter 2 Section 7 3 7 4 1 9 2 9 3 Chapter 10 Section 11 4 Appendix 1 Appendix 3 Appendix 4 Addition Chapter 6 Lr OE correction Lr OE 7 4 1 Japanese manual version SH 080806 N This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual O 2008 MITSUBISHI ELECTRIC CORPORATION 166 WARRANTY Please confirm the following product warranty details before using this product 1 Grati
163. r module will cause an error Ina multiple CPU system other CPU modules not connected to Ethernet cannot be accessed Accessing a CPU module on another station in CC Link IE MELSECNET H Ethernet or CC Link via a connected CPU module is not possible When UDP is selected for Protocol If a new request message is sent to a UDP port after the previous request message is sent to the same port and before no response is returned the new request message will be discarded Setting the same host station port number for multiple UDP connections is regarded as one setting For communication with multiple devices using the same host station port number select TCP File access during MC communication The CPU module will perform file access processing prior to Ethernet communication processing Because of this processing of the MC protocol function may be delayed if a file is accessed by FTP or a programming tool during use of the MC protocol function When accessing a file while response time monitoring is performed on the connected device with the MC protocol function add the time required for file access to the monitoring time CHAPTER 5 MC PROTOCOL COMMUNICATION 6 Receiving a response message The following shows an example of receive processing on the other device side Communication processing on the other device side Request message send processing Response message receive processing NO Is TCP
164. registered trademarks of their respective companies 1 68 SH NA 080811ENG L QnUCPU User s Manual Communication via Built in Ethernet Port MODEL QNUDEHCPU U ET E MODEL 13JZ29 SH NA 080811ENG L 1402 MEE s MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 om 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
165. rnet ihe OFEN using the ZP OPEN device cannot be address is automatically acquired for instruction specified communication instruction Serial number first 5 digits is 12051 Maximum ae b ne communication data 2046 bytes y size Serial number first 5 digits is 12052 or later 10238 bytes 160 APPENDICES Memo Appendix 4 Specifications Comparison with Ethernet Module 161 INDEX A L Active oper o s dotes a ears E 62 Lock processing llle 135 A a teeta ake aah etapa owe dads act Sotte 124 B M binaria eee EAS NE 123 Built in Ethernet port QCPU 19 MC protocol lllllllll sss 36 Dye bead eon put Oei dcs e C Ara au 123 mdelete 222522555222 bala rr Sanne 124 mdi 5 on a ieee NUES ER ete be Gas her be 124 mgetz su dtes sdi bee gustos 125 c mls i vL a OnE ee be ahs 125 echange MR MOTOR Cn 127 IMPURE cuius b eco ue dont Seeds 125 Clas decks tee nce euge feet Sce euo eee 35 COSC sic ie O 123 N CPU module llle 19 CPU module dedicated subcommands 127 NAK message llle 38 D O Data communication frame 44 e oe o A A n RD EIE death a eta 125 delete iia Ded ER ee es 123 MM MERC da 20d 123 P Direct connection 0 0 0 0 ccc eee es 33 PaSSive OPEN 62 E password lock 0 0 0 000s e eee eee 128 SS password unlock 2 0 0 0 cece eee eee 128 Ethernet Cable o ooooooooooo
166. rogramming tool before using the function 7 gt Page 155 Appendix 3 Check the versions of the CPU module and programming tool before using the function 7 gt Page 155 Appendix 3 For Ethernet modules refer to the following LLL Q Corresponding Ethernet Interface Module User s Manual Basic 090 006000000000000000000000000000000000000000000000000000000000099 9 APPENDICES 2 Differences on MC protocol functions between the Built in Ethernet port QCPU and Ethernet module Item QJ71E71 100 Built in Ethernet port QCPU Consequence of a communication with the Built in Ethernet port QCPU Action Data sending method on TCP when the response message size exceeds 1460 bytes TCP Maximum Segment Size Option transmission Data sending method is selectable Default Disable TCP Maximum Segment Size Option transmission Data sending method is fixed to Enable TCP Maximum Segment Size Option transmission and cannot be changed If the response message size exceeds 1460 bytes the message split by the external device may not be read correctly Perform the procedure described in Page 45 Section 5 3 6 so that the external device can process split data Wait time for receiving entire message from the first message to the last message when a request message is split and sent 1 to 16383 5 seconds Default 30 seconds The time value can be changed in Response monitoring timer u
167. roller Failure to do so may result in an accident due to an incorrect output or malfunction 1 Configure external safety circuits such as an emergency stop circuit protection circuit and protective interlock circuit for forward reverse operation or upper lower limit positioning 2 The programmable controller stops its operation upon detection of the following status and the output status of the system will be as shown below Overcurrent or overvoltage protection of the power supply module is activated All outputs are turned off All outputs are turned off The CPU module detects an error such as a All outputs are held or turned off watchdog timer error by the self diagnostic function according to the parameter setting All outputs are turned off All outputs may turn on when an error occurs in the part such as I O control part where the CPU module cannot detect any error To ensure safety operation in such a case provide a safety mechanism or a fail safe circuit external to the programmable controller For a fail safe circuit example refer to Appendix 8 General Safety Requirements in the QCPU User s Manual Hardware Design Maintenance and Inspection Outputs may remain on or off due to a failure of an output module relay or transistor Configure an external circuit for monitoring output signals that could cause a serious accident Design Precautions NWARNING O n an output module when a load current exceeding
168. rror occurs in any of the communicating devices Retransmission on TCP connection If no ACK response is returned from the other end of a TCP connection the ACK will be resent six times starting in 0 3 seconds after the first transmission and then 0 6 1 2 2 4 4 8 and 9 6 seconds When no TCP ACK response is returned within 19 2 seconds after the last retransmission the device is regarded as faulty and the connection is disconnected As a result the connection is disconnected in total of 38 1 seconds 31 suonneoeJd S E 5 MELSOFT connection over TCP or UDP For TCP or UDP communications with multiple MELSOFT devices set the same number of protocols as that of the connected MELSOFT devices in the setting of the PLC parameter CPU module Ethernet See e5xesccb ree22222202n2282 x MELSOFT device MELSOFT device MELSOF Tdevics Built in Ethernet Port Open Setting IP Address Port No Input Format DEC Host Station Destination Destination Protocol Open System TCP Connection Port No IPs Port No Set the same number of protocols as that of MELSOFT devices UDP y MELSOFT Connection uo y MELSOFT Connection UDP v MELSOFT Connection y ufo en eo ro 44 a paffa a a
169. rt on network IP packet transfer setting IP packet transfer setting Setifitisneeded Default Changed Print Window Print Window Preview Acknowledge XY Assignment Default Check Cancel 1 Setthe IP address of the CPU module BINPOW ndo eur Joy Bulnes L E 25 26 2 Set MELSOFT connection Project window gt Parameter gt PLC Parameter z Built in Ethernet Port Setting 2 gt Open Setting button Built in Ethernet Port Open Setting mns L EN IP Address Port No Input Format DEC TC P 4 7 Hc f li re Socket Communication ICP v Peon omen y TCP v MELSOFT Connection IMELSOFT Connection TCP v MELSOFT Connection TCP v MELSOFT Connection TCP y MELSOFT Connection TCP y MELSOFT Connection TCP y MELSOFT Connection TCP e MELSOFT Connection TCP y MELSOFT Connection MELSOFT Connection SAEI SI 4 Aja la aaa 4 IP Address and Port No will be displayed by the selected Format Please enter the value according to the selected number a Item Setting Select TCP or UDP depending on the connected device Select MELSOFT Connection Protocol Open System 2 Writing to the CPU module From the Write to PLC window write the parameter settings to the CPU module ZX Online lt gt Write to PLC After writing the parameters to the CPU module power off and on or reset the CPU module to enable t
170. ruction and tums off in the next END processing Completion device 1 Turns on or off according to the result of the SP SOCCLOSE instruction State Description When completed Remains off Tums on in the END processing of a scan after completion of the SP SOCCLOSE instruction and tums off Wren falied in the next END processing 05 ction of an operation error tums on the Error flag SMO and a corresponding error code is stored in SDO when The connection number specified for E is other than 1 to 16 Error code 4101 The device numbers specified for amp and exceed the device point range Error code 4101 An invalid device is specified WEN W200 TS METON or when the connected device disconnects connection No 1 connection No 1 is disconnected by the following program Device used Device number S501282 501284 D200 M200 Program Error code 4004 Open completion signal Open request signal SPSOCCLOSE instruction control data SP SOCCLOSE instruction completion device soleo soppes Press decoracion of Cormecson No toy fatur wg pma p p l upo p Pe Comecson Na dose Sutry SPSOCCLOSE cr ta oral compo E coro usan SPSOCCLOSE ces tag 17 18 Instructions can be executed under the following conditions Execution condition Symbol Any time During on The following devices c
171. s 37 900 66 700 243 400 259 100 the socket Maximum data volume 10238 bytes 149 100 190 400 1168 600 1185 300 communication LL Minimum data volume 1 byte 14 200 36 500 12 800 30 100 function UDP Maximum data volume 2046 bytes 38 100 69 100 243 400 259 100 Maximum data volume 10238 bytes 153 800 191 800 1167 600 1185 300 Minimum data volume 1 byte 11 700 34 500 18 900 43 100 TCP Maximum data volume 2046 bytes 41 100 75 900 290 000 313 700 SPSODERB Maximum data volume 10238 bytes 177 600 235 800 1367 600 1407 300 Minimum data volume 1 byte 11 400 35 400 18 900 43 100 UDP Maximum data volume 2046 bytes 41 800 76 800 290 000 313 700 Maximum data volume 10238 bytes 189 800 235 900 1367 600 1407 300 SP SOCCINF 4 900 20 800 12 700 32 200 SP SOCCSET 4 200 19 200 10 700 29 200 BSOCRMODE Standard mode Fixed length mode 8 500 19 400 9 700 27 200 Fixed length mode Standard mode 8 300 19 400 9 700 27 200 Minimum data volume 1 word 4 400 19 200 9 700 27 200 SP SOCRDATA Maximum data volume 1024 words 28 100 51 800 241 700 258 200 Maximum data volume 5120 words 144 200 173 800 1168 600 1184 300 152 APPENDICES Processing time us Type Instruction Condition QnUDVCPU QnUDE H CPU Minimum Maximum Minimum Maximum Instruction for the predefined SP ECPRTCL 15 900 50 300 5 protocol function 153 uononuisu y9ey Joy au BuisseooJg uonesado
172. s Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company However if repairs are required onsite at domestic or overseas location expenses to send an engineer will be solely at the customer s discretion Mitsubishi shall not be held responsible for any re commissioning maintenance or testing on site that involves replacement of the failed module Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty 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 handl
173. s is 192 168 3 39 C0A80327 y Store the lower 2 bytes of the SD1260 03274 IP address SD1261 _C0A84 SD1261 COASH Store the upper 2 bytes of the IP address 1 1 4 Precautions 148 The following describes precautions for the IP address change function 1 Power off and reset operations Do not power off and reset the CPU module while writing to or clearing the IP address storage area flash ROM Values may not be reflected to the IP address storage area flash ROM Check that SM1293 IP address storage area write complete and SM1296 IP address storage area clear complete are started before powering off and resetting the CPU module 2 IP address of parameters For IP address of the built in Ethernet port values in the IP address storage area flash ROM take priority over values of parameters To use the IP address specified by parameters clear the value in the IP address storage area flash ROM 3 Duplicated IP addresses When changing an IP address check that the changed IP address is not the same as that of other devices If IP addresses are duplicated communication may be performed with a wrong device The duplicated status can be checked by either of the following methods By using the Find CPU function By disconnecting an external device from the network and performing a PING test to the IP address of the disconnected external device The IP address is duplicated if a response message
174. ser s Manual Hardware Design Maintenance and Inspection and in the manual for the corresponding module After the first use of the product do not mount remove the module to from the base unit and the terminal block to from the module and do not insert remove the extended SRAM cassette to from the CPU module more than 50 times IEC 61131 2 compliant respectively Exceeding the limit of 50 times may cause malfunction After the first use of the product do not insert remove the SD memory card to from the CPU module more than 500 times Exceeding the limit may cause malfunction Do not drop or apply shock to the battery to be installed in the module Doing so may damage the battery causing the battery fluid to leak inside the battery If the battery is dropped or any shock is applied to it dispose of it without using Before handling the module touch a grounded metal object to discharge the static electricity from the human body Failure to do so may cause the module to fail or malfunction Disposal Precautions NCAUTION When disposing of this product treat it as industrial waste When disposing of batteries separate them from other wastes according to the local regulations For details of the battery directive in EU member states refer to the QCPU User s Manual Hardware Design Maintenance and Inspection Transportation Precautions NCAUTION When transporting lithium batteries follow the transportation regula
175. sorT Connection v maur AMC Protocol vw msmjuoe wF mcpratocol y ala i IP Address and Port No will be displayed by the selected format Please enter the value according to the selected r ooa Item Description Protocol Select TCP or UDP depending on the target device Open System Select MC Protocol Host Station Port No Set the port number of the host station Setting range 04014 to 13874 13924 to FFFE 1 Do not specify 1388 to 13914 because these ports are used by the system 7 5 Page 154 Appendix 2 Point When the Enable online change FTP MC protocol setting is disabled if the CPU module in the RUN state receives a data write request from the target device data will not be written and an NAK message will be returned 9 2 MC Protocol Commands 9 2 1 Command list The following commands are executable for MC protocol communication of the CPU module 1 When QnA compatible 3E frame is used CHAPTER 5 MC PROTOCOL COMMUNICATION O Available x N A CPU module state Number of s Command pee RUN Function Sub d Description processed STEP ubcomman F points Write Write enabled disabled In units 0401 j ASCII 3584 points Reads bit d ts of t ofbits 0001 SUB Dee vere ine OUS ORE BIN 7168 points BIS fond In units 0401 Reads bit devices in units of 16 points edm o o o of words 0000 Reads
176. storage area flash ROM a Devices used in programs Device number Application Device number Application M200 Clear instruction M201 Normal clear completion indication SM1295 IP address storage area clear request M202 Abnormal clear completion indication SM1296 IP address storage area clear completion SD1299 IP address storage area clear error factor SM1297 IP address storage area clear error D200 Clear error factor display b Sample program M200 SM1295 ___S5 ___ sEt SM1295 Clear start SWI295 SM1206 SMI297 SET M201 Normal completion indication SM1297 p MOV SD1299 D200 Error cause read RST SM1295 Clear complete uoneJedo Jeal Z Z LL uonoun4 y SN o1 MOH Z LL 147 11 3 Checking the IP Address 1 Checking using the Ethernet diagnostics The IP address of the built in Ethernet port can be checked with the Ethernet diagnostics For details of the Ethernet diagnostics refer to the following LLLI GX Works2 Version 1 Operating Manual Common 2 Checking by the special relay and special register The IP address of the built in Ethernet port can be checked using the special relay and special register P address SD1260 to SD1261 Subnet mask pattern SD1262 to SD1263 Default router IP address SD1264 to SD1265 1 Stored as follows Example When IP addres
177. t PLC Parameter gt Built in Ethernet Port Setting C Open Setting button Built in Ethernet Port Open Setting IP Address Port No Input Format HEX Host Station Destination 7 Port No IP Address iy O o 3 2 IP Address and Port No will be displayed by the selected Format 2 Please enter the value according to the selected number o S Cancel o 5 c o 2 Q c Item Setting g Protocol UDP Open System Socket Communication TCP Connection Blank Host Station Port No 10004 Setting range 00014 to 13874 and 13924 to FFFE Destination IP Address 192 168 3 40 Setting range 0 0 0 1 to 223 255 255 254 255 255 255 255 Destination Port No 1000 Setting range 0001 to FFFEy FFFFy 1 Do not specify 13884 to 13914 because these ports are used by the system gt Page 154 Appendix 2 71 12 b Devices used in the program The following table lists the device numbers and applications used in the sample program Device number Application M3000 Send direction D3000 and D3001 M300 and M301 SP SOCSND instruction control data SP SOCSND instruction completion device D300 and D303 M3002 Send data length and send data 6 bytes of 124 344 56y 784 9Ay and BCh Normal send indication M3003 Send error indication D5000 to D5001 SP SOCRCV instruction control data M500 to M501 SP SOCRCV instruction com
178. t type GX Works2 Version 1 Operating Manual Common System configuration parameter settings and online operations of GX e lt SH 080779ENG 13JU63 gt Works2 which are common to Simple projects and Structured projects GX Developer Version 8 Operating Manual Operating methods of GX Developer such as programming printing o lt SH 080373E 13JU41 gt monitoring and debugging 14 MANUAL PAGE ORGANIZATION In this manual pages are organized and the symbols are used as shown below The following page illustration is for explanation purpose only and is different from the actual pages is used for Screen names and items 1 shows operating procedures XC shows mouse operations is used for items in the menu bar and the project window shows setting or operating examples LU shows reference manuals gt shows reference pages CHAPTER 7 VARIOUS SETTINGS 7 1 1 setting method 1 Settin rameters jeratingiprocedure 1 Open th PLC Parameter ialog box O Project windows Parameter C parameter Select the O Assignment tab we T e fe brane C m 3ensmm IUE eem HERES Em a cee hae cn a artes ye bd atr a e e Hem Description Reference Type Select the type of the connected module Page 74 Section 7 12 Model Name Select the model name ofthe connected module Page 74 Section 7 13 Ponts
179. t digit binary coded decimal data Real number Floating point data Character string Character string data Device name Device name data TERMS Unless otherwise specified this manual uses the following generic terms and abbreviations O represents the model or version Example Q33B Q35B Q38B Q312B gt Q3LIB Generic term abbreviation Description Series Q series A generic term for the Mitsubishi MELSEC Q series programmable controller CPU module type CPU module A generic term for the Universal model QCPU Universal model QCPU A generic term for the QOOUJCPU QOOUCPU Q01UCPU Q02UCPU QO3UDCPU QO3UDVCPU QOSUDECPU Q04UDHCPU Q04UDVCPU Q04UDEHCPU QO6UDHCPU QO6UDVCPU QO6UDEHCPU Q10UDHCPU Q10UDEHCPU Q13UDHCPU Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q26UDHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU and Q100UDEHCPU Built in Ethernet port QCPU High speed Universal model QCPU A generic term for the QOS3UDVCPU QO3UDECPU Q04UDVCPU Q04UDEHCPU QO6UDVCPU Q06UDEHCPU Q10UDEHCPU Q13UDVCPU Q13UDEHCPU Q20UDEHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU and Q100UDEHCPU A generic term for the QO3UDVCPU Q04UDVCPU Q06UDVCPU Q13UDVCPU and Q26UDVCPU CPU module model QnUDVCPU A generic term for the QOS3UDVCPU Q04UDVCPU Q06UDVCPU Q13UDVCPU and Q26UDVCPU QnUDE H CPU A generic term for the QOSUDECPU Q0O4UDEHCPU QO6UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCP
180. tem 62 9 3 4 5 The Set by column indicates the following User The data must be set before executing the SP SOCOPEN instruction System The CPU module stores the execution result of the SP SOCOPEN instruction For the Unpassive open the IP address and port number of the target device are ignored Using 0400 to 13874 and 13924 to EFFFy is recommended because the host station port numbers 0001 to O3FFy are assigned for generally reserved port numbers WELL KNOWN PORT NUMBERS and F000 to FFFE are used for other communication functions Do not specify 1388 to 13914 because these ports are used by the system 5 Page 154 Appendix 2 81 suononJisu UONOUNY uoneoiunuluo 194909 t N3dO920S dS uonoeuuoo e Bulysijqeysy pY 3 Function This instruction opens a connection specified in 6 The set values used for the open processing is selected in 62 0 The result of the SP SOCOPEN instruction can be checked with the completion device 0 and D 1 Completion device D 0 Turns on in the END processing of the scan after completion of the SP SOCOPEN instruction and turns off in the next END processing Completion device D 1 Turns on or off according to the result of the SP SOCOPEN instruction State Description When completed Remains off Turns on in the END processing of the scan after the SP SOCOPEN instruction is completed and turns off When failed i
181. ten protocol setting data will be enabled when the CPU module is powered on or is reset or SM1355 Predefined protocol setting check request is turned on SM1354 is used as an interlock signal to execute the protocol 1 Operation of SM1354 SM1354 Predefined protocol ready is turned on when the protocol setting data is normal and remains off when the protocol setting data is abnormal or not written If the protocol setting data is abnormal the following occurs The error details are stored in SD1359 to SD1362 Predefined protocol setting data error information The error code is stored in SD1381 Predefined protocol function error code Registration of the protocol setting data can be checked in the following special register areas SD1363 Number of protocols registered SD1365 to SD1372 Protocol registration status 2 Changing the protocol setting data without powering off or resetting the CPU module The protocol setting data can be changed by turning on SM1355 Predefined protocol setting check request After SM1355 turns on the following occurs SM1354 Predefined protocol ready turns off If the protocol setting data is normal SM1354 turns on and SM1355 turns off If the protocol setting data is abnormal SM1354 does not turn on and SM1355 turns off The error information is stored in SD1359 to SD1362 Predefined protocol setting data error information and SD1381 Predefined protocol function error code
182. ternal device may not correctly read split data Perform the procedure indicated in Page 78 Section 7 3 7 so that the external device can process split data Connection information acquisition and setting methods Performed by reading from or writing to the buffer memory Performed using socket function instructions Replace the information acquisition and setting methods with the SP SOCCINF or SP SOCCSET instruction Activation of an interrupt program in data receiving An interrupt program can be activated during data receiving An interrupt program cannot be activated during data receiving Program the data receiving processing at the beginning of the scan program Host station port number The following numbers cannot be used as host station port number 1388 to 138A 5000 to 5002 The following numbers cannot be used as host station port number 1388 to 1391 5000 to 5009 Change the port number Specification of alive check Select whether to perform alive check of TCP IP and UDP IP using parameters Alive check for TCP IP is performed by default Alive check for UDP IP is not available As described in the left columns Ethernet address specification using Ethernet address MAC address of the external device can be specified Ethernet address MAC address of the external Specify 0 for the Ethernet address No specification is required The Ethe
183. ters 0 0 0 0 0 ct teen eee 30 A A ep t CBE el b dei se Uo bible Robe b v LN d 31 CHAPTER 4 DIRECT CONNECTION TO PROGRAMMING TOOL SIMPLE CONNECTION 33 44 Setting Method i oou aos RC Ede 34 4 2 o Precautions soon se E ec aed eo te o EN e oca ete a beled e ed ed 35 CHAPTER 5 MC PROTOCOL COMMUNICATION 36 SA Setting Metliod our dia 37 5 2 MC Protocol Commands omas eco ti beer edt oot re editt eat 39 5 274 Command lista e te Gobo la tals ta on eim betae Stee Send rs ike ME 39 5 22 4 Available devices e repe eei be de dee UAR UM 41 5 3 Precautions zc en erected ine De ecco T ERE acce re ortae v ae CASI 44 5 4 Error codes end codes and abnormal codes in MC protocol communication 46 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 49 6 1 Specifications 1 2 2 o d uec er A reside MU LR ue d DAE deae do 50 6 2 SettingMethod isse ure a DR EL PR genes ee 51 6 3 Setting Items of Predefined Protocol Support Function o ooococoocooccoccoo ooo 56 6 3 1 Communication type ien eea EEEE EEEE ANAE eeee 56 6 3 2 Packet elements set for Packet Setting n leslie 56 6 4 Predefined Protocol Function Instructions lesse 57 6 4 1 Executing the predefined protocol SP ECPRTCL ssliisissssssss llle 57 6 5 Execution Conditions of Predefined Protocol Function llle eee esses 58 6 6 Operation Image and Data Structure of the Predefined Protocol Functio
184. th name the file is saved using a file name determined by the FTP application on the FTP client side The transfer destination is on the current directory where FTP is started up and connected to the server mis mget Function Specification format Example Note emis Function Specification format Example Note Similar command emput Function Specification format Example Note open Function Specification format Example 1 Example 2 Note CHAPTER 9 FILE TRANSFER FUNCTION FTP Reads out a file from the CPU module To read out multiple files specify the file name and extension within the file path name using a wild card and or When reading multiple files reception is checked for each file transfer mget file path name When reading all the files whose extensions are USR among the files stored in an SD memory card mget 2 USR The file read out is saved on the FTP client side under the same file name The storage destination is on the current directory where FTP is started up and connected to the server Stores the names of the files in the CPU module as log data into a file on the FTP client side mls source drive name destination file path name When storing the names of the files in an SD memory card into the S990901F LOG file mls 2 S990901F LOG Type immediately after the source drive name Specify a source drive
185. the module and connect the cables correctly Connecting a power supply with a different voltage rating or incorrect wiring may cause a fire or failure Securely connect the connector to the module Failure to do so may cause malfunction Connectors for external connection must be crimped or pressed with the tool specified by the manufacturer or must be correctly soldered Incomplete connections could result in short circuit fire or malfunction Do not install the control lines or communication cables together with the main circuit lines or power cables Keep a distance of 100mm or more between them Failure to do so may result in malfunction due to noise Place the cables in a duct or clamp them If not dangling cable may swing or inadvertently be pulled resulting in damage to the module or cables or malfunction due to poor contact Check the interface type and correctly connect the cable Incorrect wiring connecting the cable to an incorrect interface may cause failure of the module and external device Tighten the terminal screw within the specified torque range Undertightening can cause short circuit fire or malfunction Overtightening can damage the screw and or module resulting in drop short circuit or malfunction Prevent foreign matter such as dust or wire chips from entering the module Such foreign matter can cause a fire failure or malfunction A protective film is attached to the top of the module to prevent foreign matter su
186. the preset number of connections will be disconnected immediately Do not accept a connection from a device until the CPU module is placed in the wait for open state If a TCP connection request is received before entering the wait for open state after completion of CPU startup the request will be recognized as an error and a forced close message for the connection will be returned to the interfacing device In this case wait until the CPU state is changed to the wait for open state and then retry the connection from the device Do not execute the SP SOCCLOSE instruction in a program Doing so will disable data transfer since the Open completion signal and Open request signal of the corresponding connection turn off for close processing To reopen a closed connection execute the SP SOCOPEN instruction For the SP SOCOPEN instruction refer to gt Page 80 Section 7 4 1 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 2 Communication Using UDP UDP User Datagram Protocol is a simple protocol that does not perform data sequencing and retransmission To perform socket communication using UDP confirm the following in advance IP address and port number of the target device IP address and port number of the CPU module 1 Program example This section provides a program example for communication using UDP a Parameter setting The following parameters are set for the sample program Project window gt Parameter g
187. the rated current or an overcurrent caused by a load short circuit flows for a long time it may cause smoke and fire To prevent this configure an external safety circuit such as a fuse Configure a circuit so that the programmable controller is turned on first and then the external power supply If the external power supply is turned on first an accident may occur due to an incorrect output or malfunction For the operating status of each station after a communication failure refer to relevant manuals for the network Incorrect output or malfunction due to a communication failure may result in an accident 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 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 when a remote programmable controller is controlled by an external device immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure To prevent this configure an interlock 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 NCAU
188. the remote password set in the CPU module quote password lock The following is displayed as an execution result upon completion 200 Command Okey When locking the remote password quote password lock 3 Use this command only when the FTP communication port is specified as a remote password check target erun Function Specification format Example 1 Example 2 Example 3 Note estatus Function Specification format estop Function Specification format Note CHAPTER 9 FILE TRANSFER FUNCTION FTP Changes the CPU module state to RUN Remote RUN At this time device memory clear can be specified quote run mode clear mode Mode Specify whether to force remote RUN or not 0 Normal RUN default 1 Forced RUN Clear mode Specify the CPU module device memory clear initialization processing performed when the operation starts by executing remote RUN 0 Do not clear device default 1 Clear other than the latch range 2 Clear all including the latch range The following message is displayed as an execution result upon completion 200 Command successful When executing remote RUN with Normal RUN and Do not clear device specified quote run When executing remote RUN with Forced RUN and Do not clear device specified quote run 1 When executing remote RUN with Forced RUN and Clear other than the latch range specified quote run 1 1 Forced RUN sh
189. this manual to the actual system ensure the applicability and confirm that it will not cause system control problems Relevant CPU module CPU module Model QO3UDVCPU QOIUDECPU Q04UDVCPU Q04UDEHCPU Q06UDVCPU Built in Ethernet port QCPU QOGUDEHCPU Q10UDEHCPU Q13UDVCPU Q13UDEHCPU Q20UDEHCPU Q26UDVCPU Q26UDEHCPU Q50UDEHCPU Q100UDEHCPU mar REESE This manual does not describe any functions other than the functions of CPU module using Ethernet communication For details of functions other than the functions of CPU module using Ethernet communication refer to the following manual QnUCPU User s Manual Function Explanation Program Fundamentals Memo CONTENTS SAEETYGSPRECAUTIONSI Er area ETUR ERE TRE COITU TISSUES 1 CONDITIONS ORUSE FORMTHE PRODUCTES E A 7 INTRODUCTION E EN cat A S A a edu A a Rl Perce ah AEA en a 8 MANUALS AEA eee Mache rae A IE A E ES A r ee pine EETA EEL EE DE 13 MANUAISPAGEOSRGANIZATIGONMS T eee wee rr ert E ne ee T E E E EE 15 TERMS EAA IAAT E ndi E ee EA A A E pia se a el PA EAA EEA 19 CHAPTER 1 OVERVIEW 20 14 F aturBSu i sere E dee es ER EH DP EEEE Gah S EE Tae EREE A 20 CHAPTER 2 COMMUNICATION SPECIFICATIONS 22 CHAPTER 3 CONNECTION OF PROGRAMMING TOOLS AND GOT 24 3 1 Setting for the CPU Module 0 0 ce cc ms 25 3 2 Setting for the Programming Tool lille elles 27 3 8 Searching CPU Modules on the Network 0 0 6 0 00 cece cette 29 3 4 Communication via Rou
190. ting file x x O x x x O ECPRTCL QPT E o 1 The SP FWRITE or SP FREAD instruction in the program will write or read the file respectively a For details refer to the following manual J 3 T MELSEC Q L Programming Manual Common Instruction 2 Files can be written to the program memory only when the CPU module is in the STOP state 3 Write destination is the program cache memory The user should back up files using the pm write command as required 7 7 Page 120 Section 9 4 1 4 The following number of files which can be written using FTP can be stored Maximum number of files storable on the drive 1 5 Except for the High speed Universal model QCPU file names are SRCINF1M CAB and SRCINF2M CAB for Simple projects with labels and SRCINF11 CAB and SRCINF2I CAB for Structured projects For the High speed Universal model QCPU file names are SRCINF1M C32 and SRCINF2M C32 for Simple projects with labels and SRCINF 11 C32 and SRCINF21 C32 for Structured projects 6 For the QnUDE H CPU this file cannot be stored Point When the online change settings is disabled in the Built in Ethernet Port Setting tab of PLC Parameter deleting a file in RUN state will cause an error 119 9 4 FTP Commands 9 4 1 List of FTP commands O Available x N A CPU module state Remote password RUN Command Function STOP Write Write Unlocked Locked enabled disabled 2 E 1 1 bi
191. tion QCPU the Built in Ethernet port QCPU ZP OPEN SP SOCOPEN ZP CLOSE SP SOCCLOSE Instruction name ZP BUFRCV SP SOCRCV Replace the instruction name Z BUFRCVS S SOCRCVS ZP BUFSND SP SOCSND Pairing open not necessary When sending or receiving data using one connection two connections are occupied by the paring open setting When sending or receiving data using one connection paring setting is not used Set only one connection by parameter When connection No of the instruction is the same as the second connection No of paring open replace it with the first connection No Automation of UDP and TCP Full Unpassive open Select whether UDP and TCP Full Unpassive open is performed by the initial timing setting parameter automatically or by an instruction UDP and TCP Full Unpassive open is automatically performed Delete the instructions for open and close for UDP and TCP Full Unpassive Data sending method on TCP when the message size exceeds 1460 bytes TCP Maximum Segment Size Option transmission Select whether to enable TCP Maximum Segment Size Option transmission in the buffer memory Default Disable TCP Maximum Segment Size Option transmission Enable TCP Maximum Segment Size Option transmission When communications with the QJ71E71 100 are used for a CPU module which performs TCP communications with an external device with the message size over 1460 bytes the ex
192. tions For details of the regulated models refer to the QCPU User s Manual Hardware Design Maintenance and Inspection OQ CONDITIONS OF USE FOR THE PRODUCT 1 Mitsubishi programmable controller the PRODUCT shall be used in conditions i where any problem fault or failure occurring in the PRODUCT if any shall not lead to any major or serious accident and ii where the backup and fail safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem fault or failure occurring in the PRODUCT The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY INCLUDING BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT WARRANTY TORT PRODUCT LIABILITY FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS PRECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND OR SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT Ra
193. to Module at gt E Protocol Line IL E Line C Send Packet Line Receive Packet Line Receive Packet Line Protocols 2 128 Packets 6 256 Packet Data Area Usage 2 196 Module for Debugging 1 The written protocol setting data will be enabled when the CPU module is powered on or is reset or SM1355 Predefined protocol setting check request is turned on Point To enable the written protocol setting data without powering off or resetting the CPU module turn on SM1355 Predefined protocol setting check request Before enabling the protocol setting data stop the CPU module and check that no instruction is being executed Depending on the on timing of SM1355 Predefined protocol setting check request the instruction being executed may end abnormally 7 Set the connection for connecting the predefined NA protocol Lis Address PortNo Predefined Protocol je E E KO PLC Parameter Built in Ethernet Port Setting mea gt Open Setting pue epe ros 5 ES N Item Description gt 2 Protocol Select TCP or UDP E o Open System Select Predefined Protocol S o TCP Connection When Protocol is TCP select the connection method lt Page 62 Section 7 1 Host Station Set the port number of the CPU module Setting range 0001 to 13874 1392 to FF
194. tructured projects 118 9 3 CHAPTER 9 FILE TRANSFER FUNCTION FTP Files That Can Be Deleted Using FTP The following table lists the files that can be deleted using the file transfer function O Deletable A Not deletable only in RUN state x Not deletable Not writable Program SD Standard Standard SRAM Flash memory ATA card memory File name or File type 123 RAM ROM card card 4 card extension Drive 0 Drive 3 Drive 4 Drive 1 Drive 2 Parameter A o 8 Oo Oo O O O PARAM QPA Intelligent function module 6 IPARAM QPA parameter B o o o Q Program A o O O O O Oo QPG Device comment A o O Oo O O Oo QCD Device initial value A o Oo O Oo Oo Oo QDI File register O O O E QDR Local device O O QDL Sampling trace file O g O E QTD Programmable controller user 4 O O O Any file name data Source information A O O O O O O 5 Drive heading A 0 O O O O O QN DAT Device data storage file A DEVSTORE QST Module error log file x IERRLOG QIE Boot setting file o O O O O O AUTOEXEC QBT O Remote password A o O O O O O 00000000 QTM d dl Latch data backup file J O E z LCHDAT00 QBP Do Backup data file O Oo O Oo MEMBKUPO QBP z LOGCOM QLG 9 Data logging setting file O O LOG01 QLG to E LOG10 QLG o e Data logging file Oo CSV 2 T Predefined protocol set
195. ttempts to connect to a CPU module that is already in the logged in state the connection cannot be established resulting in an error An attempt to execute another communication MELSOFT connection or MC protocol using UDP during file transfer using FTP may cause an error such as a timeout error Execute it after completion of the file transfer or use TCP CHAPTER 9 FILE TRANSFER FUNCTION FTP 4 File writing An existing file cannot be overwritten and saved Either delete a file with the file delete command delete or mdelete or rename the file with the file rename command rename and then write the file Writing is not allowed to read only files and files locked by a function other than FTP If attempted a write error occurs When a memory card or SD memory card is protected a file cannot be transferred written into the card If the file transfer is executed an error occurs When a file is written a temporary file FTP_I TMP is created automatically This file is renamed to the destination file name upon completion However if power failure or reset of the CPU module occurs during the file writing this temporary file may remain If this occurs delete the temporary file Before writing or deleting data to the file register in the standard RAM set the CPU module to STOP When the file register in the standard RAM is set as an auto refresh device do not perform any writing or deletion to the corresponding drive
196. tting data Setting data Description Set by Data type UO Dummy Character string 6 Connection number Setting range 1 to 16 User BIN 16 bit 62 Start number of the device from which control data are stored User System Device name 1 The Set by column indicates the following User The data must be set before executing the SP SOCCSET instruction System The CPU module stores the execution result of the SP SOCCSET instruction 2 Control data 2 The Set by column indicates the following User The data must be set before executing the SP SOCCSET instruction System The CPU module stores execution result of the SP SOCCSET instruction SIM ACR a 95 Device Item Description Setting range Set by s 9 6240 System area s a B Sax Completion status is stored a 8 oe Q Completion poop Completed System 29 status En Other than 0000p Failed Error code B og 1p to FFFFFFFFy o o 6242 Target device IP n FFFFFFFFy 25 IP address of the target device is specified og 43 address Simultaneous aS ca broadcast Oo User UR 1H to FFFFy Bs Target device FFFF y T 6244 b Port number of the target device is specified U port number Simultaneous o broadcast Q O mn m Fas 101 3 Function This instruction changes the IP address and port number of the target device of which connection is specified in Note that this instruction is available only for UDP I
197. unction refer to the lists of the special relay and special register in the following 1 QCPU User s Manual Hardware Design Maintenance and Inspection Note 11 1 To use the IP address change function for the QnUDE H CPU check the version of the CPU module lt gt Page 155 Appendix 3 140 CHAPTER 11 IP ADDRESS CHANGE FUNCTION 11 1 iP Address of the Built in Ethernet Port For IP address of the built in Ethernet port a value of the built in Ethernet port setting of the PLC Parameter is set at the initial processing of the CPU module When this function is used the value stored in the IP address storage area flash ROM will be set to the IP address of the built in Ethernet port which is set during the initial processing of the CPU module instead of the value set in the parameter When using parameters Parameter file Built in Ethernet port Built in Ethernet port setting IP address 192 168 3 39 IP address 192 168 3 39 Subnet mask pattern 255 255 255 0 Subnet mask pattern 255 255 255 0 Default router IP address 192 168 3 254 Default router IP address 192 168 3 254 The IP address in the parameter file is set When using the IP address change function Parameter file __ 4 Built in Ethernet port setting i 3 el IP address 192 168 3 39 Built in Ethernet port vis Subnet
198. used UDP provides less reliable data communications compared with TCP and thus data may be lost or arrive out of order Use TCP communications if a problem occurs with the UDP communications 151 APPENDICES Appendix 1 Operation Processing Time for Each Instruction The following table lists the processing time of instructions described in this manual For details on the processing time refer to the following MELSEC Q L Programming Manual Common Instruction Processing time us Type Instruction Condition QnUDVCPU QnUDE H CPU Minimum Maximum Minimum Maximum Active 14 900 34 800 18 500 40 900 SPSOCOPEN TCP Unpassive 14 900 32 500 18 400 40 900 Fullpassive 14 900 32 400 18 400 40 900 UDP 14 900 34 600 18 400 40 900 From the host CPU 14 600 34 100 18 500 40 100 SP SOCCLOSE s From the connected device 14 600 34 000 18 500 40 000 UDP 14 600 33 400 18 900 40 100 Minimum data volume 1 byte 6 400 25 000 17 000 39 100 TCP Maximum data volume 2046 bytes 6 300 24 900 17 500 39 100 spsocHey Maximum data volume 10238 bytes 6 200 24 700 17 500 39 100 Minimum data volume 1 byte 6 200 25 000 17 100 39 100 UDP Maximum data volume 2046 bytes 6 300 25 000 17 500 39 100 Maximum data volume 10238 bytes 6 300 24 900 17 500 39 100 Minimum data volume 1 byte 14 000 36 600 12 300 29 100 Instructions for TCP Maximum data volume 2046 byte
199. ving e mail using the CPU module x O monitoring function the automatic notification function of the Ethernet module A v Reads writes data in the CPU module on another station Communication using data link instructions ME i x O via Ethernet using data link instructions Reads writes data in the CPU module in file units from to 12 File transfer FTP server function i O O an external device using FTP commands Communicates CPU module information a state of the CPU module or a device value with a personal computer Web function a x or a programmable controller in remote locations through Internet Communicates data over multiple networks in the system Sormmunicanons telayed throug Ce e where an Ethernet network and other networks co exist or Network SE Link IE Field Newer ME LSESNETIA where data are communicated over multiple Ethernet o and or MELSECNET 10 B networks Communicates data via a router or gateway The router Router relay function relay function is not a function by which the Ethernet o O module works as a router Ethernet V2 0 Sends data using the frame format selected for the O O IEEE802 3 Ethernet header of the data link layer Send frame setting 156 APPENDICES Item Description Availability Built in Ethernet port QCPU QJ71E71 100 Alive check function alive check of an external device Check with P
200. word devices in units of one point 960 points In units 1401 ASCII 3584 points Writes bit devices i its of int of bits 0004 rites bit devices in units of one poin BIN 7168 points Batch write 960 words O O x In units 1401 Writes bit devices in units of 16 points 15360 points of words 0000 Writes word devices in units of one point 960 points Reads bit devices in units of 16 or 32 Random In units 0403 points by randomly specifying the target 192 points 5 Device read of words 0000 Reads word devices in units of one or two memory points by randomly specifying the target In units 1402 Sets or resets bit devices in units of one EM 188 points of bits 0001 point by randomly specifying the target Test Sets or resets bit devices in units of 16 or Random In units Ja 32 points by randomly specifying the O O x write ofwords 0000 target 4 rites word devices in units of one or two 4 Wri d devices i its of points by randomly specifying the target Registers bit devices to be monitored in Monitor In units 0801 units of 16 or 32 points registration 192 points O O O ei of words 0000 Registers word devices to be monitored in units of one or two points In units 0802 Number of Monit Monitors the devi istered dod of words 0000 i cb d E registered points o 9 O 1630 Specifies a remote password to unlock the Unlock 0000 O O O Remote ocked state password Lock 1631 Specifies a re
201. xipueddy Appendix 2 Port Numbers Used by Built in Ethernet Port 154 QCPU Do not specify the following port numbers because these numbers are used by the system Port number Application 13884 5000 For future extension For Ethernet modules this port number is used for Auto Open UDP Port 1389 5001 For future extension For Ethernet modules this port number is used for MELSOFT application transmission port TCP UDP data link instructions 138A 5002 For future extension For Ethernet modules this port number is used for MELSOFT application transmission port TCP IP 138B 5003 to 138D 5005 For future extension 138E 5006 MELSOFT communication port UDP IP 138F y 5007 MELSOFT communication port TCP IP 1390 5008 13914 5009 MELSOFT direct connection port For future extension Appendix 3 Added and Changed Functions APPENDICES The following table lists added or modified functions in the CPU module and programming tool for built in Ethernet port communications and the corresponding serial numbers of CPU modules and software versions of GX Works2 software x Not available A function not related to the programming tool Added function Socket communication function 7 5 Page 60 CHAPTER 7 IP address change function L3 Page 140 CHAPTER 11 Data up to 10238 bytes can be exchanged with the SP SOC
Download Pdf Manuals
Related Search
Related Contents
Partie 1 - Alterre Bourgogne Axis Q6032-E P-Series Reference Manual.indd Knürr® DCL User Manual - Emerson Network Power e+p T 24/3 telephony cable Etalon de tensions continues CANONES · BAVARIAE · ROMANICI Primeiros Passos com o GNOME no openSUSE 11.0 Philips HR7641 Food Processor Copyright © All rights reserved.
Failed to retrieve file