Home
MELSEC-L CPU Module User`s Manual (Built-In
Contents
1. Programming Programming GOT tool tool To start Ethernet communication perform the following steps Set PLC parameters using the programming tool Setting parameters E Page 25 Section 3 1 1 Write the set parameters to the CPU module Power off and on or reset the CPU module to enable the parameters E Page 26 Section 3 1 2 Connecting cables and external gevices Connect cables and devices required for Ethernet communication Set a connection target by the programming tool Page 27 Section 3 2 Setting the connection target For the GOT setting refer to the following LAManual for the GOT used 24 CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL AND GOT 3 1 Setting Required for the CPU Module 1 PLC parameter setting Select the Built in Ethernet Port Setting tab and set the parameters TT Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting paar comes Sa PLC Name PLC System PLCFie PLCRAS Boot File Program SFc Device 1 0 Assignment Built in Ethernet Port Setting Built in I O Function Setting Adapter Serial Setting IP Address Setting l Open Setting T Set Open Setting in Ethernet Configuration window pa Input Fo
2. MELSOFT device MELSOFT device MOSS l Ethernet configuration Built in Ethernet Port i Ethernet Configuration Edit view Close with Discarding the Setting Close with Reflecting the Setting Detect Now PLC fi Sensor Device No Model Name Protocol al IP Address Port No MAC Address Host Name HO ation g 65 3 Set the same number General MELSOFT Connection Module 192 168 3 39 General MELSOFT Connection Module 192 168 3 39 of proto cols as that of General MELSOFT Connection Module 192 168 3 39 MELSOFT devices Built in Ethernet Port Open Setting IP Address Port No Input Format DEC Host Station Destination Destination Protocol Open System TCP Connection Ai Pe Ci foe y mersoFT connection e v i iF _ EEC e G 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 r
3. oo 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 module on another station via CC Link network is not allowed To start MC protocol communication perform the following steps Connecting cables and extemal Connect cables and devices required for MC protocol devices communication Set PLC parameters using the programming tool Page 37 Section 5 1 Write the set parameters to the CPU module Power As off and on or reset the CPU module to enable the parameters MC protocol communication is available n For the MC protocol communication refer to the following manual LTIMELSEC 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 E Page 30 Section 3 4 36 CHAPTER 5 MC PROTOCOL COMMUNICATION 5 1 Setting Method Setting for communication using the MC protocol is described below O Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting L Parameter Setting ES PLC Name PLC System PLC File PLC RAS Boot File Program SFc Device 1 0 Assignment Built in Ethernet Port Setting Built in I O Function Setting Adapter Serial Setting IP Address Setting Ge Et
4. acy device MAA Constant Setting data UO GO K H Others 9 a CI e peor orto O r Except mi 1 1 O for T ST O C d 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 D completion of the instruction System Bit D 1 also turns on when failed suononsuj UONOUN4 UOIEDIUNWWOD 3920S Z 1 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 TT 78 2 Control data 62 0 62 1 62 2 62 3 62 4 62 5 62 6 62 7 to 62 9 Execution completion type Completion status Application setting area Host station port number Target device IP address 2 Target device port number 2 Specify which settings are used to open a connection parameter settings configured by a programming tool or control data settings 62 2 to 62 9 0000 Connection is opened according to the settings set in Ethernet Conf or Open Setting of PLC parameter 8000p Connection is opened accord
5. sending UDP data from port No N of 1external device 3 to port No C of the CPU module CHAPTER 7 SOCKET COMMUNICATION FUNCTION 1 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 e IP address and port number of the target device e IP address and port number of the CPU module e 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 of Passive open methods are available for TCP connection TCP connection ee Description method Allows a connection regardless of the IP address and port number of the connected device The Unpassive IP address and port number of the device connecte
6. 1 Setting data 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 Device name 4 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 me ama Completion status is stored Completion 6D 1 a 0000 Completed normally System Other than 0000y Failed Error code 1h to l FFEFFFFFy 62 2 Target device IP a m IP address of the target device is specified FFFFFFFF 6 3 address An Simultaneous broadcast User 1h to FFFFy Target device oo e FFFF y 62 4 Port number of the target device is specified port number Simultaneous broadcast 4 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 100 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 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 IP communications Point O The target device can be changed without closing the connection by using the SP SOCCSET instruction O After the SP SOCCSET instruction is executed
7. 3 sr morenos 1 When editing an e mail address issue the SP ULGETADR instruction to obtain the e mail address 2 Edit the obtained e mail address 3 When registering an e mail address issue the SP MLOPEADR instruction to register the target e mail address 4 When deleting an e mail address issue the SP ULOPEADR instruction to delete the target e mail address The send destination e mail address edit function uses the following instructions Instruction Description Reference SP MLOPEADR Registers or deletes a send destination e mail address Page 206 Section 15 4 3 Stores a send destination e mail address in the specified SP IMLGETADR device Page 209 Section 15 4 4 Operation for changing the e mail address aaa bbb ne jp of e mail address setting No 1 Step Operation E mail address of setting No 1 Send an e mail with the MC protocol command to instruct the CPU module to aaa bbb ne jp write the e mail address to the device Execute the e mail receive instruction SP MLRECV aaa bbb ne jp The MC protocol command writes the e mail address to the specified device 3 Execute e mail address table registration deletion instruction SP MLOPEADR aaa bbb ne jp ccc bbb ne jp Execute e mail address table registration deletion instruction SP MLOPEADR l ccc bbb ne jp Deletes the old e mail address aaa bbb ne jp remaining in setting No 1 196 CHAPTER 15 E MAIL SEND RECEIVE FUNCTI
8. 230 SH NA 080891ENG O SH NA 080891ENG O 1503 MEE MODEL LCPU U NE E MODEL CODE 13JZ37 MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
9. Completed normally status Other than 0000p Failed Error code D 0 Target device IP e 1H to IP address of the target device is stored he D 1 address FFFFFFFF yy Target device o 346 D 2 Port number of the target device is stored 14 to FFFFy port number 14 to 1387 y Host station port D 3 Port number of the host station is stored 13924 to number FFFE 2 System b15b14b13 to b10 b9 b8 b7 to bO O w 1 o m o0 1 Communication method protocol 0 TCP IP 1 UDP IP 2 Socket communication procedure 1 Nonprocedural fixed 3 Open system 00 Active open or UDP IP 10 Unpassive open Application setting area 11 Fullpassive open The Set by column indicates the following System The CPU module stores the execution result of the SP SOCCINF instruction Because host station port numbers 0001 to O3FF are assigned for generally reserved port numbers WELL KNOWN PORT NUMBERS and F000 to FFFEy are used for other communication functions using 0400y to 13874 and 13924 to EFFFy is recommended Do not specify 13884 to 13914 because these ports are used by the system Page 214 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 FFFFFFFFy simultaneous broadcast the source IP address of the received data is returned In this case perform the instruction when Receive state
10. Device number Application 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 e Program M3000 D1282 0 AN MOV K6 D300 MOV K1234 D301 MOV K5678 D302 MOV K8901 D303 SP SOCSND uo K1 D3000 D300 M300 M300 M301 SET M302 M301 tT M303 END Setting send data length gt Setting send data 2 Sending data to Connection No 1 Normal completion Error completion CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 6 Reading out connection information SP SOCCINF Command SP SOCCINF f m Internal device JO O Constant a popo ft et 000 IE IO a O o J o eo gt 1 Setting data Setting data Description Set by Data type Character string UO Dummy 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 97 suononsuj UONOUN4 UOIEDIUNWWOD 3920S Z 98 2 Control data sw swore Y Completion status is stored 4 2 3 4 5 4 62 1 cempleton 0000
11. 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 O Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button Built in Ethernet Port Open Setting Ethernet Selection Find Module My Favo 4 gt MEGANE IP Address Port No Input Format DEC X Host Station Destination Destination Protocol Open System TCP Connection IP Address Socket Communication x unpassive v 40 ane A een A jeneral HC i D 4 wm I ATUL cement Sensor IP Address and Port No will be displayed by the selected format Please enter the value according to the selected number coc dol Bulsq uonesiunwwod e For the Ethernet Conf drag and drop the General Socket Fullpassive Module or General Socket Unpassive Module from Module List to the left side on the window Set port numbers and IP address as mentioned below Item Description 4096 Setting range 1 to 4999 5010 to 65534 PLC Port No Do not specify 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 Blank IP Address When General Socket Fullpassive Module is selected a value must be set Setting range 0 0 0 1 to 223 255 255 254 Sensor Device Blank Port No When General Socket Fullpassive Module is se
12. a M4004 SP SOCCLOSE U0 Ki D200 M200 Connection No 1 close M4001 SET M4004 Setting closing flag M200 M201 M4002 Normal completion M4003 Error completion M4004 Resetting closing flag dol Buisn uoneoiunwwog END 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 Page 102 Section 7 4 8 61 62 d Precaution for Active open communication 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 lt When disconnected by the CPU module gt da h response from the external device SD1282 OFF oa SD1284 OFF t SOCOPEN instruction SOCCLOSE instruction lt When disconnected by the external device gt e na TCP disconnection request from the external device TCP disconnection completed upon E A response from the CPU module t 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
13. monitoring and debugging 4 1 0 module and intelligent function module manual Manual name Description lt manual number model code gt MELSEC Communication Protocol Reference Manual Details of MELSEC communication protocol MC protocol that is used lt SH 080008 13JF89 gt for data communication between a target device and a CPU module 10 Memo 11 CONTENTS SARNA RESCATE e coi os sE NC CoE eee ee 1 CONDIMONSOFUSERORTAEERODUE TT e A ESE 8 INTRODUCTION EA A E eee tc cee chines SS A Me ch DR A 9 REPEVANTIMANUO A ES OR EN Os oa OA a sara cats AOS NA EOS 10 MANUAL PAGE ORGANIZATION e a e Ne datos das 16 TERMS eee epee eee eee a a ee oer See E A Se ser E 19 CHAPTER 1 OVERVIEW 20 CHAPTER 2 COMMUNICATION SPECIFICATIONS 22 CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL AND GOT 24 3 1 Setting Required for the CPU Module 0 0 0 ees 25 3 2 Setting Required for the Programming Tool 0 00 eee eee 27 3 3 Searching CPU Modules on the Network 00 eee 29 3 4 Communication via Routers 0 0 0 ce eee eee eens 30 O90 PIECAUNIONS cnc c en oor eo bee oe wee eee ee o A O O T 31 CHAPTER 4 DIRECT CONNECTION TO PROGRAMMING TOOL SIMPLE CONNECTION 33 4 1 Setting Method cd ee eee ee eae ee eee ei wee noel oe o 34 4 2 PREC AUT OMS ssc dio sce ees eo rac wae a rd ede ei ae a oi edb eee eae dia ee ae eee 35 CHAPTER 5 MC PROTOCOL COMMUNICATION 36 Bal Setting Methods cd a e Been it
14. Anything other than the start end and command headers and footers can be written in any format Only alphanumeric characters and one byte spaces can be input between the command header and footer Only one command can be stated in a single command mail The maximum size of one command is 1024 bytes The data code is fixed to ASCII and the Communication Data Code in the built in Ethernet port setting is ignored 193 sjeaq uonouny E S 2 Response mail format normal response If the content of the received e mail satisfies the request e mail format the following message is written as a normal response a Subject Re is automatically added to the beginning of the command e mail received by the CPU module If adding Re causes the command e mail to exceed 128 one byte characters 64 two byte characters the last three one byte characters two two byte characters are deleted b Message body State a response message by enclosing it with the following start header and end footer Header footer name Header Footer Description Start end lt MELRET gt lt MELRET gt Indicates the start and end of MC protocol response message c Data format The frame format of the response mail is shown below e Ended normally Header Network Request Request Sub header eae Beaune destination destination Response module I O module station data length number number DO00y 00y FFy O3FFy 00h Variable 0000 Varia
15. CHAPTER 6 Simple PLC communication p l 16042 or later 1 513K or later Page 155 CHAPTER 12 function Support by F series FX3 File transfer function FTP client Page 128 CHAPTER 10 16112 or later 1 525X or later E mail send receive function Page 185 CHAPTER 15 4 For the versions of the intelligent function modules that support the function refer to the manual for the intelligent function module used suonouny paBueyo pue peppy xipueddy 215 Appendix 4 Performance List of Simple PLC 216 Communication Function This section shows the performance of the execution interval simple PLC communication function The execution interval varies depending on the number of settings the number of communication points the scan time of the CPU module The interval is also affected by the execution conditions of other functions or Ethernet communication condition 1 Condition 1 Communication Setting Fixed Interval Destination device MELSEC Q L Built in Ethernet Function L26CPU BT Sequence scan time host station 1ms the period before the execution of simple PLC communication function Sequence scan time destination device 1ms The destination device means both the transmission source and transmission destination for data transfer Device data Bit device M Word device D Number of settings The number of destination devices Double the number for data transfer The retry of communication is n
16. Check that it is inserted completely Poor contact may cause malfunction Do not directly touch any conductive parts and electronic components of the module or SD memory card Doing so can cause malfunction or failure of the module Wiring Precautions NWARNING O Shut off the external power supply all phases used in the system before wiring Failure to do so may result in electric shock or cause the module to fail or malfunction O After installation and 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 CAUTION O Individually ground the FG terminal 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 a terminal block screw comes loose resulting in failure Check the rated voltage and terminal layout before wiring to 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 O Connectors for external devices must be crimped or pressed with the tool specified by the manufacturer or must be correctly soldered Incomplete connections may cause short circuit fire or malfunction
17. E O cee Bs A treet A rai E E A RA A A A A rr 7 wa o UC ES E Remote Password Setting I kar Required Settings Unset Set Optional Settings Unset f Set Check Cancel 152 CHAPTER 11 REMOTE PASSWORD 1 1 3 Precautions 1 When a remote password is set for UDP connections e Determine the external device to communicate with and exchange the data The communication target needs to be determined because after unlocking of the remote password communication is available with any other devices e 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 connection with the parameter 2 When a TCP IP connection is closed before lock processing The CPU module automatically performs lock processing SUOIINEDOId 1 153 11 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 nee
18. Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when e 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 e An invalid device is specified Error code 4004 80 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 Ethernet Conf or Open Setting of PLC parameter e Devices used Device number Application D1282 Open completion signal SD1284 Open request signal SD1288 Connection state signal D100 SP SOCOPEN instruction control data M100 SP SOCOPEN instruction completion device e Program M1000 SD1282 0 SD1284 0 SD1288 A l MOVP HO D100 Setting Execution completion type to OH SP SOCOPEN U0 K1 D100 M100 Connection No 1 open M100 M101 SET M150 Normal completion M101 HA SET M151 Error completion SUOIJONIJSU UONOUN4 UOIEDIUNWWOD JONgOS y 81 82 b Opening a connection using control data settings When M1000 is turned on connection No 1 is opened using control data e 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 SOCO
19. and batteries information on how to establish a system maintenance and inspection and troubleshooting MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection lt SH 080890ENG 13JZ36 gt MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals Functions and devices of the CPU module and programming lt SH 080889ENG 13JZ35 gt The general purpose l O function interrupt input function pulse catch function positioning function and high speed counter function of the CPU module MELSEC L CPU Module User s Manual Built In I O Function lt SH 080892ENG 13JZ38 gt QnUDVCPU LCPU User s Manual Data Logging Function The data logging function of the CP lt SH 080893ENG 13JZ39 gt e data logging function of the CPU module 2 Programming manual Manual name Description lt manual number model code gt MELSEC Q L Programming Manual Common Instruction lt SH 080809ENG 13JW10 gt Detailed description and usage of instructions used in programs 3 Operating manual Manual name Description lt manual number model code gt GX Works2 Version 1 Operating Manual Common System configuration parameter settings and online operations of GX 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 lt SH 080373E 13JU41 gt
20. 5 or higher STP cable 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 One setting of FTP client or e mail uses two consecutive connections Hubs with 10BASE T or 100BASE TX ports can be used Up to 16 external devices can access one CPU module at the same time 5 The ports must comply with the IEEE802 3 10BASE T or IEEE802 3 100BASE TX standards Point 22 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 e Internet general public line Internet access service offered by an Internet service provider or a telecommunications carrier e Firewall device s e Broadband router s e 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 paramet
21. Available X N A Program Standard Standard SD memory ROM 4 card 4 File name or extension File type memory 2 Parameter PARAM QPA peer lala module IPARAM QPA QPG QCD QDI QDR QDL QTD Program Device comment Device initial value File register Local device Sampling trace file Programmable controller user e Any file name data Source information 5 QN DAT DEVSTORE QST Le E Lo A A EN B M Drive heading OO z Device data storage file m Module error log file CO A ES AUTOEXEC QBT MEE 00000000 QTM Y LCHDATOO QBP MEMBKUPO QBP LOGCOM QLG LOG01 QLG to LOG10 QLG CSV MENUDEF QDF ECPRTCL QPT CPRTCL QPT Boot setting file Remote password Latch data backup file Backup data file Data logging setting file Data logging file Menu definition file Predefined protocol setting file System file for the Q Sensor Solution function data backup restoration SSBRINF QSI Backup data file for the Q Sensor Solution function data backup restoration QBR 4 The SP FWRITE or SP FREAD instruction in the program will write or read the file For details refer to the following LAMELSEC 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 ro Write destination is the program cache memory The user should back up files using the pm write command as required 1 g
22. CCIE Fier Q Series NET IM USB NET 10 H Board Board Board Rus Boan Board Network No Station No Protocol UDP J y OT CCIE Cont CC Link Ethernet C24 GOT CCIE Field CCIE Field NET 10 H Module Module Master Local Communication Module Module Head Module o 1 2 Pc fLcru 7 a IP Address Host Name 0 0 0 0 E i Ez Connection Channel List Em No Specification Other Station Other Station 7 y Single Network Co existence Network PLC Direct Coupled Setting Connection Test Time Out Sec 30 Retry Times 0 Comeciontes PLC Type CCIE Cont CCIE Field Ethernet CC Link C24 NET 10 H System Image 3 Phone Line Connection C24 EEHEHE E CCIE Cont CCIE Field Ethernet CC Link C24 NET 10 H Cancel Ao Accessing Host Station EENE r PLC side I F a Select Ethernet Board for PC side I F 2 Select PLC Module for PLC side I F In the PLC side IF Detailed Setting of PLC Module window select the Ethernet Port Direct Connection checkbox as shown below PLC side I F Detailed Setting of PLC Module Ethernet Port Direct Connection Connection via HUB IN SA SIME RU iS Ne ENS Me ti Cancel Please select Connection via HUB when you use hub HUB even if the equipments to be communicated is one fF 1p Address D 0 D 0 The load hangs to the line when Ethernet Port Direct ei PN a Connection is selected with other equipment connected with IP Input Format DEC hub
23. 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 Ping Use the Ping Alive check function alive check of an external device A O Checks the connection status of an external device by Check with KeepAlive Use the sending an ACK message which notifies an open status of KeepAlive the connection opened using the TCP protocol to an external device O ES O Enables data communications using two connections with Pairing open opening of one port by pairing the receiving connection with the sending connection Enables communications without performing open close Communication using automatic open UDP port setting processing after the station in which an Ethernet module is mounted is started up Prevents unauthorized access to the CPU module by users Remote password check in remote locations O Enables simultaneous broadcast to all Ethernet module connected stations within the same Ethernet network when fixed buffer communications are performed without procedure on the condition that UDP IP is used Simultaneous broadcast gt O Enables the connection to a MELSOFT product such as a tion to MELSOFT t T Connection to SOFT products or GO programming tool and MX Component or GOT Searches the CPU modules connected to the same hub as Find CPU fu
24. Device cannot be specified overlapped with the following devices Request Contact Request Contact Device to Stop Fixed Interval Communication Source device when the host station is a transmission destination device Request Contact that is used for other setting No Request Contact Device to Stop Fixed Interval Communication that is used for other setting No Execution Status Flag Device that is used for other setting No Source device when the host station is a transmission destination device which is used for other setting No Point For examples of how to use this device refer to Page 169 Section 12 2 poyan Bumas L Z 165 166 8 Status Save Destination Device Select the device from D D extended data register W W extended link register R ZR and specify itas a device to store the communication status The values listed below indicate the communication status Setting and description Item Communication Communication Description status setting When waiting for the latency time to pass or during the time Fixed is set until communications start after the CPU module is powered off and on or reset 1H Preparing When waiting for the latency time to pass or during the time until communications start after the CPU module is powered On Request is set l ale off and on or reset including the waiting time of check if the hub is connected or not Waiting for the P np When waiting for the
25. E Completion status is stored 00004 Completed normally System Other than 0000 Failed Error code Completion 62 1 status 4 The Set by column indicates the following System The CPU module stores the execution result of the S P SOCRDATA instruction 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 S and stores them in the device specified in or higher No processing is performed when the number of read data n is 0 105 Point O 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 storing receive data upon execution of the SP SOCRCV or S SOCRCVS 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 SOCRCVS instruction O Even if the 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 O To update the receive data read out the data using the SP S
26. 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 CHAPTER 7 SOCKET COMMUNICATION FUNCTION CHAPTER 7 SOCKET COMMUNICATION FUNCTION 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 External device Reading receive data Receiving data a as Program el Pm 1 The area is used for storing data received from the connected open devices O For dedicated instructions used for
27. HUB and it communicates and there is thing that influences the communication of other equipment f 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 e 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 i Hub o000 OOOO 0000 Oo Oo Ethernet cable Programming tool e When two or more Ethernet ports are enabled in the network connections setting on the personal computer communication by direct connection 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 E e In the CPU
28. No might be stopped for 1000ms Errors at the destination device If an error related to this function occurs following errors might be detected at the destination device e When the destination device is Q L series Remote password mismatch error e When the destination device is A series Device number specification error Also an error might be detected depending on the settings of the destination device or the conditions of Ethernet communication CHAPTER 13 IP ADDRESS CHANGE FUNCTION CHAPTER 13 ip ADDRESS CHANGE FUNCTION This function changes the IP address of a built in Ethernet port without changing the built in Ethernet port settings in PLC parameter by storing the values in the special relay and special register 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 IP address storage area register SD by the device write Special register SD flash ROM operation SD1292 IP address IP address SD1293 SD1294 Subnet Subnet mask mask SD1295 pattern Write pattern Defaul execution Default sp1296 Pefault sm1292 ON efau router router SD1297 IP address IP address 4 Operate with the IP address stored in the IP address storage area flash ROM connection 3 Power off and then off or reset the CPU module Point This function can also be used by cha
29. PUB COn ER CUT n ON Completion device D OEE OFF ON Completed with an error e S j Completion device D 1 BEE EN N File transfer AN 4 3 FTP client connection status SM1298 Total number of files to be processed SD1256 Number of files processed SD1257 1 The total number of files to be processed is stored 2 When transfer is completed successfully the number of completely processed files is incremented 3 When all files have been transferred completely this status turns off e SM1298 FTP client connection status turns on during connection to the FTP server and turns off when the connection is released e During execution of the SP FTPGET instruction SM721 file accessing flag turns on 4 Error Each of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is used in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 e A device which cannot be specified is specified Error code 4004 e One of the following types of data is specified Error code 4100 e Data which cannot be handled by the instruction is specified in 62 or 63 The number of characters of the string stored in the device specified by 63 exceeds 246 e The total number of characters of individual file name parts in the character strings specified in 63 and 62 exceed 255 e Two
30. Program example When M5000 is turned on data received from the connected device are read out e Devices used Device number Application SD1282 Open completion signal SD1286 Receive state signal D5000 Receive data length and receive data storage location e Program M5000 SD1282 0 SD1286 0 Reading receive AA S S00ROVS vo KI D5000 data of Connection No 1 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 O Data reception can be speeded up by placing a receive processing program at the beginning of multiple programs 92 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 5 Sending data SP SOCSND Command SP SOCSND f PA etting data ers pe Sr 8 en bate gt ee 62 6 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 i Character string 6 Connection number Setting range 1 to 16 BIN 16 bit Start number of the device from which control data are 62 a System specified Device name 63 Start number of the device from which send data are stored Start number of the device which turns on for one scan upon D completion of the instruction System Bit D 1 also turns on when failed 1 The Set by column indicates the following User The data must be set before executing the SP SOCSND
31. Remote Password Detail Setting window Clear the accumulated count of remote password mismatches using the special relay SM1273 154 CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION When using the simple PLC communication function check the versions of the CPU module and GX Works2 Page 215 Appendix 3 This function allows data communications between specified devices at the specified timing just by doing simple settings from a programming tool Specify one device transmission source to one device transmission destination The communications are performed between the specified devices The communications using this function are not possible when a stop error occurs in the CPU module where the parameters are set Set the parameters Device data are communicated between the CPU modules in which parameters are not set In this case the CPU module in which parameters are set relays the device data Ethernet Q L series CPU module A series CPU module Ethernet module Ethernet module Point The communications using this function are possible only for the CPU modules connected over Ethernet The following communications are not possible e Communication with a CPU module on other stations via CC Link network e Communication with a CPU module except the connected Built in Ethernet port ACPU when multiple CPU system is configured e Com
32. SD1660 190 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 15 3 Function Details 15 3 1 Function to read write device when e mail is received Writing an MC protocol command in the message body of incoming mail enables device reading and writing After command execution e mail is returned to the send address to report the result of reading When using this function check Enable MC Protocol Command in the built in Ethernet port setting of the PC parameter 1 gt Page 188 Section 15 2 1 2 a Password ld E mail Address OUEN CO jp Check Received Mail Inquiry Interval E Minute d Check also Enable online change FTP MC Protocol XG Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting Disable direct connection to MELSOFT Do not respond to search for CPU Built n Ethernet port on network sjle 9q uonouny E S 191 1 Request e mail format To aaa ne fe a Subject Test command MELMAIL gt b Reads the word device D100 gt lt CMD gt 5000 00 FF 03FF 00 0018 0000 0401 0000 D 000100 0001 lt CMD gt lt MELMAIL gt A c a Subject Specify any subject b Message body State the start end of e mail and the start end of a command by enclosing the relevant item with the following header and footer Header footer name Header Description Indicates the start and end of command e mail Anything stated b
33. Setting window specify the write target drive in the CPU module and write the protocol setting data W Module Read Write gt Write to Module Protocol in Predefined Protocol Library y Editable Protocol Protocols 2 128 Packets 6 256 Packet Data Area Usage 2 1 Module for Debugging 4 The written protocol setting data will be enabled when e the CPU module is powered on or is reset or e SM1355 Predefined protocol setting check request is turned on Point O 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 protocol A IS Ce IES y MELSOFT Connection v A ee E y MELSOFT Connection y AA NAAA y MELSOFT Connection y AAA NAAA y MELSOFT Connection AAA AAA RA TCP MELSOFT Connection A srce Sw MELSOFT Connection A AAA Gasfiter vy mesorrCommect n AA RA Gaos free v MELSOFT Connection A ar y MELSOFT Connection y AAA RA 1125 Tce y MELSOFT Connection y AA NAAA isre CS MELSOFT Connection vi eal Tce v mesorrcome
34. Subnet mask pattern None IP address of simultaneous broadcast 64 255 255 255 Ex CPU module IP address l 64 168 3 39 Subnet mask pattern 255 255 255 0 IP address of simultaneous broadcast 64 168 3 255 dan 6buisn uonesiunwwoy ZZ 13 7 3 74 Precautions for the Socket Communication Function This section provides other precautions for the socket communication function 1 2 3 4 5 Port number Host station port number 00014 to O3FFy are assigned for reserved port numbers WELL KNOWN PORT NUMBERS and FO00 to FFFE y are for other communication functions Therefore using 0400y to 13874 and 13924 to EFFF y is recommended Do not specify 13884 to 13914 because these ports are used by the system Page 214 Appendix 2 Do not specify 00144 and 0015 for the socket communications function when using the file transfer function FTP server Do not specify 007B y for the socket communication function when using the time setting function SNTP Do not specify FOO0y to FFFEy for the socket communication function when using the data logging file transfer function Do not specify BOB5y and FO00y to FFFE y for the socket communication function when using the iQ Sensor Solution 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 re
35. TR BL S V 4 For details on each device refer to the following LA MELSEC L CPU Module 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 In the Constant and Others columns a device s that can be set for each instruction is shown e 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 Eight 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 terms Term Branch module Built in Ethernet port LCPU CPU module Display unit END cover Extension cable Extension module External device FTP GX Works2 GX Developer LCPU MC protocol Power supply module Programming tool SD memory card SNTP Description The abbreviation for the MELSEC L series branch module A generic term for the LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT and L26CPU PBT The abbreviation for the MELSEC L series CPU module A liquid crystal display to be attached to the CPU module A cover to be attached to the right side of the ri
36. This function enables a remote mobile phone or personal computer to change the send destination e mail address lt Page 196 Section 15 3 2 When using the e mail send receive function check the versions of the CPU module and GX Works2 Page 215 Appendix 3 185 15 1 E mail Specifications 186 The e mail specifications are listed below Item Specifications Attachment Not permitted Data size Message body 4096 words 8192 bytes Sending message body Data transfer method Receiving message body Incoming mail format Text format only Subject Us ASCIl or ISO 2022 JP Base 64 format MIME Version 1 0 e Subject 7 bits e Message body 7 bits e Subject 7 bits e Message body 7 bits Send encode Receive decode Encryption None Compression None SMTP send server Communication with e mail server POP3 receive server Operation check mailer Microsoft Outlook 2010 32 bit version Japanese edition Authentication function Provided SMTP authentication or POP before SMTP CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 15 2 Setting Method 15 2 1 Parameter setting 1 Open setting Set the connections to be used by the e mail send receive function O Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Open Setting IP Address Port No Input Format DEC eS E E ES 7 E Tcr E mail y 2 roer JEmal IP Address and Port No will be d
37. Version 1 Operating Manual Common The connection number in which the states and errors of the connections used by this function are stored is the one with the smaller number of the two connections that are set in FTP Client in the open setting Change IP Address Display Port No DEC HEX C DEC HEX Target Module Setting C Module No ist Module YOAddress ooo0 e gu fpicno 1 Parameter Status Error History Status of Each Connection Connection Status Time Setting Status Simple PLC Communication Status PING Test sonsoubelq y 0L 147 1 0 5 Precautions 148 This section provides precautions on using this function 1 Precautions on the file transfer function FTP client a FTP server connection When a connection is set up with the FTP server KeepAlive is used to verify the connection An alive check message is sent five seconds after reception of the last message from the FTP server to check if the FTP server returns a response or not If no response is received alive check messages are sent at 5 second intervals If no response is received for 45 seconds the FTP server is assumed as not alive and the connection is disconnected If the FTP server is not compatible with the TCP KeepAlive function responding to KeepAlive ACK messages the connection may be disconnected b Communication error during file acquis
38. When completed Remains off normally When failed Turns on in the END processing of the scan after completion of the SP SOCSND instruction and turns off in the next END processing 94 CHAPTER 7 SOCKET COMMUNICATION FUNCTION The following figure shows the timing of reception processing with the SP SOCRCV instruction lt Transmission control method gt Open Data processing transmission processing ON Open completion OFF i signal SD1282 n END END END processing processing processing Sequence program SP SOCSND instruction execution SP SOCSND instruction ON Completion D OFF device ON 4 E di Qeesee oes eseoo Completion D 1 OFF device Data transmission 1 Data transmission may continue processing even though the completion device turns on eyed ACK TCP only UOISSIWSUBJ 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when e The connection number specified for is other than 1 to 16 Error code 4101 e The device numbers specified for 62 63 and exceed the device point range Error code 4101 e An invalid device is specified Error code 4004 SUOIJONIJSU UONOUN4 UOIEOIUNWWOD e490S p 95 96 5 Program example When M3000 is turned on data 1234 5678 and 8901 are sent to the target device using the socket communication function e Devices used
39. 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 from any other personal computers Accessing the host CPU a Unlocking Enable Disable A ea aes sy ee eee ae ett Se Accessing a CPU on another station a Unlocking Ethernet Enable Disable A ee a ere a es eee 150 CHAPTER 11 REMOTE PASSWORD 11 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 Setti ng Remote Password Detail Setting User Connection No m Password setting Characters that can be used Y Connection 1 Connection 2 Connection 3 Connection 4 HHN In password I Connection5 Connection 6 I Connection 7 Connection 8 4 characters Numbers 4 2 M Connection9 J Connection10 Connection Connection 12 l az Special characters T Connection13 J Connection14 7 Connection15 J Connection 16 Password Active Module Setting Password System Co
40. added to the beginning of the received command e mail If adding Re causes the command e mail to exceed 128 one byte characters 64 two byte characters the last three one byte characters two two byte characters are deleted b Message body The following description is sent as response mail Response mail The command was not able to be executed due to the following errors Check the contents of e mail and send it again e Format error e Data size error e Data count error e Unsupported command error Since communications using the MC protocol was not permitted the command was not able to be executed Check the parameters and send e mail again c Precautions If one of the following command mails is received an error mail is sent e The start and end header and footer of a command or e mail are unpaired e An abnormal value is stored in the frame subheader e The command size exceeds the maximum size 1024 bytes e Two or more commands exist in one mail e An incompatible command is received sjlejeq uol jouny G 195 1 5 3 2 Send destination e mail address edit function This function can edit register and delete e mail addresses in the e mail address table stored in the internal memory of the CPU module Point Separately from the send e mail address setting registered by PC parameters this function targets 16 storage areas in the internal memory of the CPU module 1 se mcenaor Device
41. an error an error code is stored in the completion status of 6 1 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT e The SP FTPPUT instruction runtime operation is as follows I I Instruction execution SP FTPPUT instruction N ON Completion device D FE OFF ON Completed with an error pp a gs Completion device D 1 Gee pa bv N ile transfer lt lt FTP client connection status SM1298 Total number of files to be processed SD1256 Number of files processed SD1257 1 The total number of files to be processed is stored 2 When transfer is completed successfully the number of completely processed files is incremented 3 When all files have been transferred completely this status turns off e SM1298 FTP client connection status turns on during connection to the FTP server and turns off when the connection is released e During execution of the SP FTPPUT instruction SM721 file accessing flag turns on 4 Error Each of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is used in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 e A device which cannot be specified is specified Error code 4004 e One of the following types of data is specified Error code 4100 e Data which cannot be handled by the instruction is specified in 62
42. and symbols Select this item to periodically query whether e mail has reached the server When e mail has Check Received Mail reached SM1662 received mail presence flag Check or do not check for received mail General turns on so that the CPU module can confirm that there is received mail Set the query time interval with the time unit for the receive mail server Do not allow to Allow or do not allow to receive MC receive MC protocol command mail protocol command mail 1 to 2 byt i SMTP Server Name Set the destination SMTP server name 0 250 ONGOY Alphanumerig characters and symbols tthe IP f the destination SMTP setthe IF adaress of Ihe destination SMTP server ggi io223255255254 IP Address The IP address can be specified with decimal or 00 00 00 01 to DF FF FF FE Do not check for received mail The command is executed if an MC protocol command is stated in the message body of received mail Enable MC Protocol Command hexadecimal numbers Port No No Set the port No used to control the SMTP server the Set the port No used to control the SMTP server No used to control the SMTP server 1 to 11065535 Send Mail Select whether t ble th thenticati Eh a Authenticate E E ES Enable or disable authentication Authenticate Setting function e Use SMTP Authentication Use SMTP Authentication system Select the authenticati tem 1 to 64 byte alph i Account Name Set the account nam
43. communication is locked with the remote password Or because of the remote password lock status with C201 Unlock the remote password before communication Communication Data Code set to ASCII Code the subcommand p 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 j unlock processing of the remote password lock processing of the remote password 43 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 Target Memory Execute Please save in 56 written to tared fap NUDO TT MORADA En Non written di Manufacturer Packet Name Protocol Detailed Setting Type Packet Settine Element Name Protocols 3 128 Packets 9 256 Packet Data Area Usage 3 2 GX Works2 External device External device Receive Data communication becomes possible with t
44. completion device Normal close indication Close error indication Closing flag SP SOCRMODE instruction control data SP SOCRCV instruction control data SP SOCRCV instruction completion device Receive data length and receive data Normal receive indication Receive error indication CHAPTER 7 SOCKET COMMUNICATION FUNCTION c Sample program 1 lt lt Fixed length mode setting gt gt SM402 1 MOV KI D402 Setting TCP receive mode to 1 MOV K6 D403 Setting receive data size to 6 SP SOCRMODE U0 K1 D400 Changing TCP receive mode of A Connection No 1 lt lt Connection No 1 open processing Active gt gt Mee SD1282 0 SD1284 0 SD1288 A 4 4 n HO D100 Setting Execution completion type to 0 D100 M100 Connection No 1 open M100 M101 l SET M1002 Normal completion M101 HA SET M1003 Error completion lt lt Data sending gt gt dre SD1282 0 K6 D300 Setting send data length H3412 D301 H7856 D302 Setting send data HOBC9A D303 SP SOCSND uo D300 M300 Sending data to Connection No 1 M300 M301 SET M3002 Normal completion M301 EP SET M3003 Error completion lt lt Data receiving gt gt D1282 0 a A M500 HAY SP SOCRCOV uo K1 D5000 D500 M500 Receiving data M500 M501 SET M5002 Normal completion M501 SET M5003 Error completion lt lt Connection No 1 close processing gt gt ee SD1284 0 f PLS M4001 Processing for disconnection by the target ah
45. data that cannot be converted to binary were received e Correct the send data of the connected device and resend the data Correct the number of read or write points and resend the data to C051 y to C054 Th f it ints i tside the all H H e number of read or write points is outside the allowable range the CPU module Correct the start address or the number of read or write points and C056 The read or write request exceeds the maximum address resend the data to the CPU module The maximum address must not be exceeded The request data length after ASCIl to binary conversion does not Check and correct the text data or the request data length of the C058 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 e Check the request C059 e The CPU module does not support the command and or e Use commands and or subcommands supported by the CPU subcommand module CO5B The ORY Module cannot read data from or write data to the A specified device COSC 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 e g y bits from or to a word device subcommand correction CO5Dy No monitor registration Perform monitor registration before monitoring e Correct the network number PC number request destination module I O number or request
46. double word access 39 SPUBWLUOYD 090J01d DN Z S Y Applicable devices The following table lists the devices applicable in the commands used for MC protocol communication Device code Internal system device Index register File register Extended data register Extended link register Link register Link register Retentive timer Coil Current value T Z C Internal user device CN ET EN CC Oy C2y focus 0 a Function input Function output Function register Special relay ee Special register Device number range The number range of a device in a CPU module which is accessed to can be specified The number range of a device in a CPU module which is accessed to can be specified Note that the access to a local device is not possible The number range of a device in a CPU module which is accessed to can be specified Cannot be accessed The number range of a device in a CPU module which is accessed to can be specified The number range of a device in a CPU module which is accessed to can be specified Note that the access to a local device is not possible The number range of a device in a CPU module which is accessed to can be specified Hexadecimal Hexadecimal Decimal Decimal Decimal Decimal Hexadecimal Decimal Hexadecimal Decimal Decimal Decimal Hexadecimal Hexadecimal Decimal Hexadecimal Hexadecimal Hexadecima
47. every time processing of a file is completed CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 1 0 3 File Transfer Function Instruction 10 3 1 FTP client file transmission SP FTPPUT Command SAA PU ay SP FTPPUT 9 CEE e Ee e popop e l oa peoiopoapoo 1 File registers set for each local device or program cannot be used 1 ria data O 6 Start number of the device from which control data are stored Device name w TI String data of the transfer source file path or start number of the device D 62 rs User Character string 4 in which string data is stored 3 mD String data of the transfer source directory path or start number of the E ee 63 has ve User Character string D device in which string data is stored T Start number of the device which turns on for one scan upon 2 D completion of the instruction System Bit o gt D 1 also turns on when the instruction is completed with an error 5 7 2 D gt 135 2 Control data ee Setting Device Description Set by range b15 or b4 b3 b2 b1 0 ee IT 1 File overwrite setting Specify the operation to be performed if a file with the same name exists in the transfer destination Sd 0 Execution type e 00 Do not overwrite 00004 to 000A User e 01 Overwrite all e 10 Overwrite only updated file 2 Specification of measures in case of power off Specify whether to take measures against power
48. for 7 A Type Applicable device communications Bit device X Y M L B SB SM MELSEC Q L Built in Ethernet Function 9 MELSEC Q L Ethernet Module Wad deuce D D extended data register 4 W W extended link register 7 R ZR SW SD Bit device X Y M L B SB SM MELSEC QnA Ethernet Module Word device D W R ZR SW SD Bit device X Y M B Word device D W R MELSEC A Ethernet Module Bit device X Y M9 MELSEC FX3 Ethernet Block Adapter 4 Word device D R 4 The size of a bit device and a word device can be specified in units of 16 points and one point respectively Use O or multiples of 16 to specify the device number of a bit device 2 The devices are compatible with the following modules Universal model QCPU with a serial number first five digits of 09042 or later except the QOODUJCPU Built in Ethernet port LCPU 3 Use M9000 multiples of 16 when specifying the device of M9000 or later 4 When B W is specified for the device the FX3 side gets an error disabling communication Point O Do not write any data to the special relay and the special register that are set on the system side Doing so may cause a system failure or communication failure poyan Bu S L Z O For I O processing when X and Y are specified as transmission destination refer to the following LAMELSEC L CPU Module User s Manual Function Explanation Program Fundamentals 163 c Timing of
49. function Before using the function check the versions of the CPU module and programming tool Page 215 Appendix 3 Before using the function check the versions of the CPU module and programming tool Page 215 Appendix 3 Executable with the E mail send receive function E mail cannot be sent by the CPU module monitoring function For Ethernet modules refer to the following y MELSEC L Ethernet Interface Module User s Manual Basic APPENDICES APPENDIX 2 Differences on MC protocol functions between the Built in Ethernet port LCPU and Ethernet module Item Data sending method on TCP when the response message size exceeds 1460 bytes TCP Maximum Segment Size Option transmission Wait time for receiving entire message from the first message to the last message when a request message is split and sent Operation when request messages are consecutively sent to one connection LJ71E71 100 Data sending method is selectable Default Disable TCP Maximum Segment Size Option transmission 1 to 16383 5 seconds Default 30 seconds The time value can be changed in Response monitoring timer under Timer setting of GX Developer Even when one connection consecutively receives request messages each request message can be processed Built in Ethernet port LCPU Data sending method is fixed to Enable TCP Maximum Segment Size Option transmission and cannot
50. mask pattern and default router IP address which are used in the built in Ethernet port in SD1260 to SD1265 Write error SM1294 is turned off UOIOUN 3U 3SN 0 MOH ZEL Confirm the IP address Confirm in the special register a The IP address subnet mask pattern C CPU operation and default router IP address are stored f in SD1260 to SD1265 C User operation 175 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 meets END wee END er Sac eth xs eee MAEA DOO eee Write request pe SM1292 OFF l l l Write complete ON l l SM1293 OFF _________ request SM1292 to turn l off the system in the END l processing Turn from off to on write Write error ON SM1294 OFF Write error cause SM1298 gt lt 0 b Operations of special relay and special register when the operation of writing to the IP address storage area flash ROM failed Write failed END END END END processing processing processing processing Write request A SM1292 OFF l Write complete ON l f _ Turn on and then off the SM1293 OF gt AKAL write request SM1292 Write error ON i l PEN
51. name in the transfer destination cannot be specified e When using the FTP server function of the CPU module in place of the FTP server specify the character string beginning from the drive number e Use one byte or for the delimiters of directory names The delimiter at the end of string can be omitted If the delimiter is omitted is assumed at the end e Up to 32 one byte characters can be used in the specified string However by specifying with a device number up to 255 characters including the file name of 62 up to 254 characters if the trailing delimiter is omitted can be set The characters that can be used are the same as 62 Up to 32 characters gt CPUData LOG01 1 2 1 Use or for the delimiters of directory names 2 The delimiter at the end of string can be omitted The character string specified in 63is the relative path from the home directory of the FTP server If NULL is specified or only 00 is specified for the device it shows directly under the home directory of the FTP server For details follow the FTP server specifications e If the same file exists in the transfer destination operation is performed according to the settings in bO and b1 of 69 0 If the same file exists in the transfer destination while Do not overwrite is specified the SP FTPPUT instruction is completed with an error Point O Two byte characters of file name When
52. of data the volume of received data can be limited by setting the receive data size using the SP SOCRMODE instruction O Consecutively sent data can be consecutively read out by connecting the completion device of the SP SOCRCV instruction to the execution command at the normally closed contact 89 SUOI JONIJSU UONOUN4 UOIEDIUNWWOD e490S p 1 4 4 Reading out received data during instruction execution S SOCRCVS Command S SOCRCVS S SOCRCVS Internal device acs C tant E ICI IC EN S a a a gt 1 1 cc data Dummy Character string 4 The Set by column indicates the following User The data must be set before executing the S SOCRCVS instruction System The CPU module stores the execution result of the S SOCRCVS instruction 2 Control data The length of the data which were read out from Receive data a D 0 the Socket communication receive data area is O to 2046 length stored in bytes System D to The data which were read out from the Socket Receive data communication receive data area are stored in O n ascending order of addresses 1 The Set by column indicates the following System The CPU module stores the execution result of the S SOCRCVS instruction Point If the CPU module receives odd byte data invalid data is stored to the high byte of the device where the last received data is stored 90 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 3 Fu
53. off 0 Take measures against power off 1 No measures against power off Completion status is stored 6144 Completion status e 0000 Completed normally System e Other than 0000y Completed with an error error code Total number of files j The total number of files to be processed is stored System to be processed Number of files The number of files processed completely is stored NN System processed 3 Function e The SP FTPPUT instruction sends the specified file from the CPU module to the FTP server The function connects to the FTP server specified by FTP Client Setting and sends the file specified by 62 to the directory specified by 3 The function releases the connection from the FTP server after file transfer e The function stores the total number of transfer files in Total number of files to be processed of 6 2 and the number of files which have been transferred completely in Number of files processed of 9 3 Point If the values of S 2 and 6 3 are not the same at completion of the instruction the file transfer failed Re execute the instruction 136 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT a 6 transfer file path In 62 specify the character string beginning from the drive No 0 2 3 or 4 through to the file name including an extension Use one byte or for the delimiters of directory and file names Up to 32 one byte characters can be used in the specified strin
54. on at the END processing of scan in which the SP MLRECV instruction is completed and turns off at the next END processing e Completion device 63 1 Turns on or off depending on the state in which the SP MLRECV instruction is completed State Description When completed Remains off normally Turns on at the END processing of scan in which the SP MLRECV instruction is completed and turns off at the next END When processing leted with See d When completed with an error an error code is stored in the completion status of S 1 Also when bit 7 of S 0 is on clock data is stored in S 12 to S 15 e The SP MLRECV instruction runtime operation is as follows Received mail presence flag ON ON SM1662 OFF MC protocol command being processed flag SM1659 MC protocol command error flag SM1660 MC protocol command error code SD1660 O T7 T OH Instruction execution L SP MLRECV instruction OFF Completion device OFF Completion device 03 1 off CPU module Query time interval Query Mail server y Only when a received mail is MC protocol command mail 1 MC protocol command mail processing completed 2 This relay turns on when the MC protocol command is completed with an error CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 4 Error Each of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is us
55. or 63 e When a wild card is used in the file name specified in 62 the number of characters making up the storage path of a matching file excluding the file name exceeds 246 e The number of characters of the string stored in the device specified by 62 exceeds 255 e The number of characters obtained by subtracting those of the file name from the string stored in the device specified by62 exceeds 246 e Two or more asterisks are used in the file name before the period or extension specified in 62 UOHONIJSU UONOUNS JOJSUBI 3H SOL e and are both used in the file name before the period or extension specified in 62 e The character string specified in 63includes the number of characters outside the specification range The delimiter of the drive number of 62 is neither nor The file name specified by62 has a file extension not permitted for file transfer e No file name is specified in 62 e The device specified by amp or O exceeds the range of the number of device points Error code 4101 e 00 does not exist in the range from the device number specified by 62 or 63 to the relevant device Error code 4101 e The SP FTPPUT instruction is executed with FTP client not set in the open method of the PC parameter Error code 4160 139 5 Precautions e When executing the SP FTPPUT instruction turn on SM721 file accessing flag for interlocking When SM721 is on the SP FTPPUT instru
56. or more asterisks are used in the file name before the period or extension specified in 62 UOHONIJSU UONOUNS JOJSUBI 3H SOL and 2 are both used in the file name before the period or extension specified in 62 e The character string specified in 63 includes the number of characters outside the specification range The delimiter of the drive number of 63 is neither nor The file name specified by 62 has a file extension not permitted for file transfer e No file name is specified in 62 e The device specified by 6 or exceeds the range of the number of device points Error code 4101 e 00 does not exist in the range from the device number specified by 62 or 63 to the relevant device Error code 4101 e The SP FTPGET instruction is executed with FTP Client not set in the open method of the PC parameter Error code 4160 145 5 Precautions e When executing the SP FTPGET instruction turn on SM721 file accessing flag for interlocking When SM721 is on the SP FTPGET instruction performs no processing e When executing the SP FTPGET instruction by specifying an SD memory card as the transfer source or transfer destination turn on SM606 SD memory card forced disable instruction for interlocking When SM606 is on the SP FTPGET instruction performs no processing e When access is restricted by file password 32 the SP FTPGET instruction is completed with an error e The SP FTPPUT and SP F
57. server Pee or ETP E NO YES File reading File writing Lock the remote password quote password lock lt ret gt No file conversion is notified f binary lt ret gt No file conversion is notified binary lt ret gt Disconnect from his cies the CPU module by Check the file list ir lt ret gt Check the file list gl rele OF or Is lt ret gt Is lt ret gt End NO Does the read NO Does the write target file exist target file exist YES YES Is File NO password 32 set for the Can it be overwritten target file YES YES quote passwd rd Enter a file password un Is File read password lt ret gt password 32 set for the target file Read the file get file name lt ret gt quote passwd wr write password lt ret gt Enter a file password delete file name lt ret gt or rename current file name new file name lt ret gt Delete or rename the file Write the file put file name lt ret gt 112 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER a Logging in to the CPU module The following describes 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 cx Command Prompt ftp ojx Microsoft Windows XP Version 5 1 2666 lt C gt Copyright 1985 2661 Microsoft Corp 1 E eer Settings ZBO3341 gt ftp weak 2 ISO EA Connec
58. single CPU module at the same time e When CPU modules and a programming tool are connected to the same hub these CPU modules can be searched from the programming tool Displayed search results include IP addresses so that any of them can be specified e MELSOFT connection allows access through routers in an environment such as a corporate LAN Direct connection to programming tool simple connection 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 For direct connection the IP address and host name need not be specified in the transfer setup MC protocol communication 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 Communications using the predefined protocol Page 44 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 Page 55 CHAPTER 7 By using instructions dedicated to socket communication any data can be transferred from and to the external devic
59. state Y Write destination is the program cache memory The user should back up files using the pm write command as required Page 116 Section 9 4 1 4 The following number of files can be stored using FTP Maximum number of files storable on the drive 1 D File names are SRCINF1M C32 SRCINF2M C32 for Simple projects with labels and SRCINF11 C32 SRCINF21 C32 for Structured projects 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 115 d4 Buisn pajejeq og ued Jey 1 Sally 6 9 4 FTP Commands 9 4 1 List of FTP commands O Available x N A Remote password Locked x STOP binary Notifies that the file will be transferred without conversion WEN bye Closes and ends the connection with the FTP server MEN close Closes the connection with the FTP server ea OJO quote Sends an FTP server subeommand pee ee rename Changes a CPU module file name Ele ore user Inputs the user name and password for the CPU module eet ee 4 Whether the online change settings is enabled or not is indicated in the Built in Ethernet Port tab of PLC parameter 2 These indicate whether the remote password can be used or not when the FTP communication port is specified as a remote password check target in the remote password setting For details on the remote password refer to Page 14
60. status cos The pairing open setting is not available in the CPU module The CPU module amp sends 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 Page 50 Section 6 2 1 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 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 written protocol setting data will be enabled when e the CPU module is powered on or is reset or e 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 e The error details are stored in SD1359 to SD1362 Predefined protocol setting data error information e 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 e SD1363 Number of protocols registered e SD1365 to SD1372 Protocol
61. the message body in ASCII code in the sequence program Use ODOA and 0000 as control codes ODOA return code CR LF 0000 end of message body One byte katakana characters cannot be used The number of characters of the data written to one line of the message body should be 78 or less Setting range See the left column 1 to 4469 0 to 373 Be sure to attach return code CR LF ODOA to the end of a line of the message body Set by User System User System User User System System CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 3 Function e Sends e mail to the specified external device e When E mail address set by PC parameter is specified in the destination e mail address specification in 9 0 e mail is sent to the e mail address registered in e mail address setting No S 2 of the PC parameter Destination e mail address Subject Message body sPmiseno vo s1 s2 0 PC parameter e mail address setting No Destination No 61 2 Destination e mail address e When E mail address stored in CPU internal memory is specified in the destination e mail address specification in 6 0 e mail is sent to the e mail address registered in e mail address send destination No 6 2 stored in CPU internal memory SPMSEND vo siso Destination e mail address Subject Message body E mail address table e mail address setting No D
62. the occurrence of the error if the conditions are restored for proper communications data communications are re started at the following timing e When Fixed is set for Communication Setting At the timing of the execution interval e When On Request is set for Communication Setting At the rising off to on of Request Contact uonouny UOIEDIUNWWOD D 1d ajduis ay 0 pajejay SOW p Z 171 1 2 5 Precautions 172 This section provides precautions for the simple PLC communication function 1 2 3 4 5 6 The timing when the settings are enabled The settings for this function are enabled at the following timing e When powering off and on the CPU module e When resetting the CPU module Even if the values of the settings are changed and the CPU module state is changed from STOP to RUN during execution of this function the CPU module keeps operating with the previous settings Note that if the Device setting of PLC parameter is changed and the parameters are written to the CPU module an error error code 4900p occurs while the parameters are being written Communications with other CPU modules The communications are possible only between the CPU modules connected over Ethernet Communications with the other CPU modules cannot be performed through the CPU module connected over Ethernet Device data If the COM instruction is used not only the data in the END processing but also the data during s
63. the set parameters to the CPU module X Online gt Write to PLC 5 Power off and then on or reset the CPU module to enable the parameters 127 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT The CPU module becomes an FTP client and can execute file transfer with the FTP server connected to Ethernet using the file transfer function instruction 12 File transfer function instruction sP FTPPUT SP FTPGET END Retrieving a specified file CPU module FTP client External device FTP server 1 Sending a specified file SP FTPGET instruction Ethernet SP FTPPUT instruction 1 4 An FTP server is required for using the file transfer function FTP client For details of servers refer to server manuals 2 The FTP server of which the operation is ensured by Mitsubishi Electric Corporation are shown below FTP server Compatible OS Microsoft Internet Information Services IIS Microsoft Windows 7 When using the file transfer function FTP client check the versions of the CPU module and GX Works2 Page 215 Appendix 3 128 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 10 1 Transferrable Files The following table lists the files that can be transferred using the file transfer function O Available x N A Program Standard Standard SD memory File type memory RAM ROM card File name or extension O Parameter o o PARAM QPA Intelligent function module para
64. to 4096 e 0 Follow the data length of the received e mail e 1 to 4469 Data length of the received e mail that can be stored 4 to 4469 User When instruction is completed The data length header message body of the e mail stored in 0 to n is stored e 1 to 4469 Data length of the received e mail that can be stored When instruction is executed Specify the header data length of the e mail that can be stored in 0 to n e 0 Follow the header data length of the received mail S 10 Header length 1 to 373 Header data length of the stored received mail 0 to 373 User When instruction is completed The header data length of the e mail that can be stored in 0 0 to0 n is stored e 1 to 373 Header data length of the stored received mail The valid invalid status of the clock data in S 12 to S 15 is stored S 11 Clock setting flag 0 Invalid e 1 Valid Upper 8 bits Month 014 to 124 S 12 Lower 8 bits Two lower bits of Year 00 to 99 Upper 8 bits Hour 00y to 234 S 13 Clock data Lower 8 bits Day 014 to 314 Set only when System abnormal Upper 8 bits Second 00 to 594 4 Lower 8 bits Minute 00y to 594 Upper 8 bits Two upper bits of Year 00y to 991 15 Lower 8 bits Day of the week 00y Sun to 06 Sat 3 Function e Reads received e mail from the mail server The received mail is deleted from the mail server Receive data 9 length System e If e mail longer t
65. turn OM reset At Error Occurence Stop Execution Interval Minute 1 1440 f Execution Time h2 00 gt Default Check i Cancel Item Setting range SNTP Function Setting Used or Not used 0 0 0 1 to SNTP Server IP Address 223 255 255 254 Time Zone Specify a time zone in which the time is to be synchronized Japan GMT 12 00 to Standard Time GMT 9 00 is set by default GMT 13 00 Execute time setting at turn Select whether to execute the time setting function upon power on or reset E ON reset of the CPU module Select whether to stop or continue the time setting when an error is At Error Occurrence Continue or Stop detected upon power on or reset of the CPU module Execution Interval Select this when executing the time setting function at fixed time intervals 1 to 1440 min Select this when executing the time setting function at a specified time in increments of 30 minutes Execution Time 00 00 to 23 30 4 Either of these two options must be selected 108 CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT 8 2 Precautions 1 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 2 Delay resulted from the time required for communication A delay occurs and affects the set time as a result of the time spe
66. write request from the target device data will not be written and an NAK message will be returned 30 CHAPTER 5 MC PROTOCOL COMMUNICATION 5 2 MC Protocol Commands 5 2 1 Command list The following commands are executable for MC protocol communication of the CPU module O Available x N A CPU module status Command Number of RUN Function Subcommand Description processed aoe 4 points Write Write enabled disabled its of 0401 te oo ae Reads bit devices in units of one point Batch 960 word A Reads bit devices in units of 16 points a gt In units of 0401 15360 points 0000 ices i it oleate Writes bit devices in units of 16 points J09 words In units of 1401 15360 points 0000 Device Random memory read Test Random write Monitor 2 3 4 In units of 0802 Number of Monit Monitors the devi istered 1630 Specifies a remote password to unlock Unlock Remote 0000 the locked state password re 1631 Specifies a remote password to lock the 0000 unlocked state 4 ce 3 4 5 Registers bit devices to be monitored in ee In units of 0801 units of 16 or 32 points a registration int 9 0000 points ASCII 3584 points BIN 7168 points words Reads word devices in units of one 960 points point itsof 1401 aia de 0001 Writes bit devices in units of one point ASCII 3584 points BIN 7168 points words Writes word devices in uni
67. 0 Take measures against power off e 1 No measures against power off Completion status is stored Completion status e 0000y Completed normally e Other than 0000 Completed with an error error code Total ber of files t Ree ee etn eee The total number of files to be processed is stored be processed Number of files The number of files processed completely is stored processed Set by User System System System CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 3 Function e The SP FTPGET instruction gets the specified file from the FTP server to the CPU module The function connects to the FTP server specified by FTP Client Setting and gets the file specified by 62 to the directory specified by 63 The function releases the connection from the FTP server after getting the file e The function stores the total number of transfer files in Total number of transfer files of S 2 and the number of files which have been transferred completely in Number of transferred files of 6 3 a amp transfer file path e In 62 specify the character string beginning from the home directory of the FTP server to the file name including an extension e When using the FTP server function of the CPU module in place of the FTP server specify the character string beginning from the drive number e Use one byte or for the delimiters of directory and file names e Up to 32 one byte characters can be used in the sp
68. 00001 CSV drive 2 Specification Refer to a and b below details 4 The file name can be specified only when specifying a file stored in drive 2 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 memory and drive names refer to Page 114 Section 9 2 b Folder name file name and extension e Specify a folder name and a file name according to the rules described in the MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals e Set an extension predetermined by the CPU module Page 114 Section 9 2 e Foran FTP command which can be used for multiple files specify the file name and extension using a wild card character or All files with the arbitrary character string including none are targeted from the position specified with Weil All files with the arbitrary character string including none are targeted from the position specified with 2 2 can be used multiple times Depending on the FTP client there may be additional restrictions to the characters that can be used for the file name Point The section enclosed in square brackets in the specification format can be omitted 118 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 9 4 3 Details of FTP commands This section describes the FTP commands on the FTP client side supported by the CPU module and the methods of using those c
69. 4 MITSUBISHI MY Wa ELECTRIC Mitsubishi Programmable Controller MELSEC L MELSEC L CPU Module User s Manual Built In Ethernet Function LO2CPU L26CPU BT L26CPU PBT SAFETY PRECAUTIONSO 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 A CAUTION NWARNING Indicates that incorrect handling may cause hazardous conditions resulting in death or severe injury Indicates that incorrect handling may cause hazardous conditions N CAUTION resulting in minor or moderate injury or property damage Under some circumstances failure to observe the precautions given under N CAUTION 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 controller Failure to do so may result in an accident due to an incorrect output or malfunction 1 Emergency stop circuits
70. 9 CHAPTER 11 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 in the Built in Ethernet Port Setting tab of PLC parameter Cs COE Se SK A AO x x x O 116 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 1 Subcommands usable with the quote command O Available x N A m module status Remote password Subcommand STOP E Write Locked Even if the subcommand is executed the remote password remains locked with no error occurred This command can include a folder name in the file specification Dh NO 117 SPURWWOD d 3 v6 9 4 2 How to specify an FTP command This section describes 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 e For CPU modules each file is specified using a drive name and a file name 2 e When specifying a file in the CPU module using the FTP function specify the target file in the following order Specification A Drive name Folder name File name Extension format Example 3 MAINSEQ1 QDR other than drive 2 2 LOGGING LOG01 00000001 LOG01_000
71. CP General MELSOFT Connection Module TCP General MELSOFT Connection Module TCP General MELSOFT Connection Module TCP General MELSOFT Connection Module TCP General MELSOFT Connection Module TCP 9 General MELSOFT Connection Module TCP 10 General MELSOFT Connection Module TCP 11 General MELSOFT Connection Module TCP 12 General MELSOFT Connection Module TCP 13 General MELSOFT Connection Module TCP 14 General MELSOFT Connection Module TCP 15 General MELSOFT Connection Module TCP General MELSOFT Connection Module 192 168 3 39 EA 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 192 168 3 39 DAD yn l Output Bb Pe Ba 1 2 El General Ethernet Module Port No E Ethernet Device COGNEX El COGNEX Vision System El Ethernet Device Panasonic Industria El Laser Displacement Sensor IP Address Port No Input Format DEC z Prea opensystem TcP Comection Hasian Destpaton Deanar uo y EN e AAN 2 frcr y MC Protocol po e Err ed a Socket Communication he Sa preur Comecon w MELSOFT Connection MELSOFT Connection w MELSOFT Connection w MELSOFT Connection w MELSOFT Connection w MELSOFT Connection MELSOFT Connection MELSOFT Connection v MELSOFT Connection gt CP MELSOFT Connection v MELSOFT Connec
72. 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 229 TRADEMARKS Microsoft Windows Windows Vista Windows NT Windows XP Windows Server Visio Excel PowerPoint Visual Basic Visual C and Access are either registered trademarks or trademarks of Microsoft Corporation in the United States Japan and other countries Intel Pentium and Celeron are either registered trademarks or trademarks of Intel Corporation in the United States and other countries Ethernet is a 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 registered trademarks of their respective companies gt DP
73. FE for communication with FX3 Network No Set the network No of the device host station 1 to 239 Station No Set the station No of the device 1 to 64 If a remote password is set for the destination tee 4 characters or less one byte Remote Password device the communication is possible by entering alphanumeric and special characters the password 04014 to 13874 13924 to EFFFy Host Station Port No Set the port No of the host station 0401 y to 15ACy 15B0y to EFFF y for communication with FX3 Host Station No Set the station No of the host station 1 1 to 64 4 Set the station number not to overlap the numbers set for other devices on the same Ethernet network such as Ethernet module programming tool and GOT CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION Point If the L Q QnA series modules are used for the simple PLC communication FO00 to FFFE is automatically selected for the port No of the host station Therefore when using the simple PLC communication function do not set FOO0 y to FFFE to Host Station Port No for the establishing a connection instruction SP SOCOPEN of the socket communication function If set the instruction may not be completed properly b Module Type list The following table shows the communication devices and specifications applicable to each module er Communication Module type Device for communications IA specification MELSEC Q L Built in Ethern
74. FUNCTION 11 Comment Comment can be set by entering up to 32 one byte characters 16 double byte characters 12 Latency Time By setting the latency time the start timing in the communications can be switched in the following cases e To prevent an error due to the overlap of the start timing in the communications e To start communications after the destination device is ready for the communications During the latency time Preparing is indicated in Communication status Setting item Description Setting range Set the time required to start communications after ac Latency Time Os to 255s in increments of 1s completion of the CPU module startup Point Communications at a specified execution interval when Fixed is set for Communication Setting or communications at the rising off to on of Request Contact when On Request is set for Communication Setting are ignored during the latency time 12 2 Program to Check Communications This section shows the program used to check communications when On Request is set for Communication Setting 1 Devices used in programs Device Application MO Request Contact for setting No 1 M100 Execution Status Flag Device for setting No 1 M200 Flag to check if Request Contact turns on when the status is Communicating D1000 Status Save Destination Device for setting No 1 2 Program example SUONEOIUNLUWOD YOOUD O WBIBOIA ZZ fs i A MO Processing if icati f g if co
75. Fy Other than FFFF y address and port No among the entire data sent to the host station port No station port No to the specified IP address and port No Receives the data sent from all ports of the specified Other than PF FF FF FFy 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 FFH Other than FFFF all the IP addresses among the entire data sent to specified in the settings for the host station port No simultaneous broadcast FF FRFF FF FFFFi ean all data that have sent to the host station N A port No 11 dan 6buisn uonesiunwwoy z 12 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 Page 100 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 on
76. In addition enables an external device to read write data from to a device in the CPU module connected to the Ethernet module x 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 selected or created edited from the Predefined Protocol Library of GX Works2 O O 219 220 2 3 4 9 6 7 8 Y 10 11 12 Available commands are limited 1 gt Page 39 Section 5 2 The quote cpuchg command cannot be used Page 116 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 LJ71E71 100 Up to 17 devices can be connected including one system connection by setting MELSOFT Connection for user connections in network parameter For processing on the external device side refer to Page 221 Appendix 5 2 Executable with the socket communication function Refer to Page 222 Appendix 5 3 for the differences Before using the function check the versions of the CPU module and programming tool Page 215 Appendix 3 Executable with the socket communication
77. Internet Explorer 2 Processing on CPU module side Files only in the drives of the host station CPU module can be accessed Do not power off or reset the CPU module or do not remove the SD memory card during file access Doing so may corrupt the file Stop accessing to the SD memory card before performing these operations All of SD memory card operations can be disabled by SM606 SD memory card forced disable instruction For the forced disablement of the SD memory card refer to the following LAMELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection During file access 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 the FTP function execution is completed If an access is attempted from an FTP client during backup or restoration for the CPU module change function using the SD memory card an error will occur Reexecute it after completion of the backup or restoration An error will also occur if backup or restoration is performed during access from an FTP client In that case reexecute it after disconnecting the FTP client 3 Communication processing If a timeout error occurs
78. LCPU SP SOCOPEN SP SOCCLOSE SP SOCRCV S SOCRCVS SP SOCSND When sending or receiving data using one connection paring setting is not used UDP and TCP Full Unpassive open is automatically performed Enable TCP Maximum Segment Size Option transmission Performed using socket function instructions An interrupt program cannot be activated during data receiving The following numbers cannot be used as host station port number 13881 to 13914 5000 to 5009 Alive check for TCP IP is performed by default Alive check for UDP IP is not available Ethernet address MAC address of the external device cannot be specified e Serial number first 5 digits is 12051 or earlier 2046 bytes e Serial number first 5 digits is 12052 or later 10238 bytes Consequence of a communication with the Built in Ethernet port LCPU When communications with the LJ71E71 100 are used for a CPU module which performs TCP communications with an external device with the message size over 1460 bytes the external device may not correctly read split Action Replace the instruction name 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 Delete the instructions for open and close for UDP and TCP Full Unpassive Perform the procedure described in Page 75 Section 7 3 7 so th
79. ND processing e Completion device 2 1 Turns on or off depending on the state in which the SP MLGETADR instruction is completed State Description When completed Remains off normally When Turns on at the END processing of scan in which the SP MLGETADR instruction is completed and turns off at the next END completed with Processing an ETON When completed with an error an error code is stored in the completion status of D 4 Error Each of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is used in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 e A device which cannot be specified is specified Error code 4004 62 is other than 1 to 16 Error code 4101 e The device specified by or 62 exceeds the range of the number of device points Error code 4101 5 Program example This sample program stores control data in D100 and gets the e mail address of destination setting No 10 of the parameter setting to D200 Specifying destination e mail address i MOVP K1 D100 as E mail address registered in CPU module internal memory MOVP K501 D102 Specifying device data length Acquiring e mail address of SP MLGETADR Uo K10 D200 M100 HONA Destination No 10 END 210 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 15 5 Diagnostics The communication status of the
80. NUMBERS and FO000y to FFFEy are used for other communication functions using 0400p to 13874 and 13924 to EFFF y is recommended Do not specify 13884 to 13914 because these ports are used by the system Page 214 Appendix 2 19 SUOIJONIJSU UONOUN4 UOIEDIUNWWOD e490S p 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 0 1 e 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 e Completion device D 1 Turns on or off according to the result of the SP SOCOPEN instruction State Description When completed Remains off normally Turns on in the END processing of the scan after completion of the SP SOCOPEN instruction and turns When failed off in the next END processing END processing END processing END processing Program gq FAA instruction executed SP SOCOPEN instruction Completion device D 0 A ON When failed I I I e eee eee L L l OFF Completion device D 1 Connection y i Tscan when open normally completed e A connection with no parameters no protocol is specified can be opened In this case specify 8000y for 62 0 and configure open settings in 62 2 to 63 9 4
81. Network No 2 a Network No 3 a CC Link IE Field Network IP packet transfer i Ethernet lt gt Access path from an Ethernet device source to an Ethernet device destination Network No 4 Ethernet device destination Point This function is supported only by GX Works2 It is not supported by GX Developer 183 184 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 Field Network module used 2 Precautions e 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 Field Network The above processing causes communication speeds to be slower than Ethernet lines Manuals for the CC Link IE Field Network module describe targeted communication speeds when the IP packet transfer function is used e Broadcast communication and multicast communication cannot be performed with the IP packet transfer function Perform unicast communication communication with one request destination specified e 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 adj
82. O Tighten the terminal block screws 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 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 Prevent foreign matter such as dust or wire chips from entering the module Such foreign matter can cause a fire failure or malfunction O A protective film is attached to the top of the module to prevent foreign matter such as wire chips from entering the module during wiring Do not remove the film during wiring Remove it for heat dissipation before system operation O To use the high speed counter function ground the shield cable on the encoder side relay box Always ground the FG and LG terminals to the protective ground conductor Failure to do so may cause malfunction 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 qualified maintenance personnel with knowledge of protection a
83. OCRCV or S SOCRCVS 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 e The connection number specified for S is other than 1 to 16 Error code 4101 e The device numbers specified for 62 and n exceed the device point range Error code 4101 e An invalid device is specified Error code 4004 e When the value of the device designated by n exceeds 1024 Error code 4100 5 Program example When M4000 is turned on the receive data length of connection No 1 is read out e Devices 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 e Program M4000 SD12820 SD1286 0 Reading receive data t S SOGRDATA UO Ki D400 D4000 K1 length of Connection No 1 END 106 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 e When the programmable
84. ON 15 4 E mail Send Receive Function Instructions 15 4 1 Send e mail SP MLSEND Command SP MLSEND ee o 0 eo popopo 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 Start number of the device from which control data are stored User system Device name Start number of the device in which the content of the send e mail 62 User Device name Subject message body is stored 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 suo 9n4 su UOIOUN y SAIBDOY PUBS Ie u 3 p s 197 198 2 Control data Device Sd 0 ED Sd 2 61 3 to S 8 Sd 9 61 10 6 11 6 12 6 13 6 14 Sd 15 Completion type send data format and destination e mail address specification Completion status Destination number System area Sent data length Subject length Clock setting flag Clock data Set only when abnormal Description b15 b14b13b12b11 1 Completion type Set whether clock data setting is required at completion with an error e 0 Clock data setting not required b8 b7 b6 6y 0 ts o rap o mp o bO Clock data at occurrence of an error is not set in 6 11 to 61415 e 1 Clock data setting required Clock data at occur
85. P SOCRCV instruction will increase the scan time O If the 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 6 from the Socket communication receive data area in the END processing after execution of the SP SOCRCV instruction CPU module Receive data length a Socket communication Receive data receive data area i Connection rt No specified by S External device SP SOCRCV Receiving Reading receive data Receive data The result of the SP SOCRCV instruction can be checked with the completion device 2 0 and 3 1 e Completion device 63 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 e Completion device 62 1 Turns on or off according to the result of the SP SOCRCV instruction State Description When completed Remains off normally Turns on in the END processing of the scan after completion of the SP SOCRCV instruction and turns When failed off in the next END processing 8 SUOIJONIJSU UONOUN4 UOIEDIUNWWOD e490S p 88 The following figure shows the timing of reception processing with the SP SOCRCV instruction Open completion signal SD1282 n Sequence program Reception status signal SD1286 n SP SOCRCV instruction Comp
86. PEN instruction completion device e Program we D1282 0 SD1284 0 SD1288 A pe MOVP H8000 D100 Setting Execution completion type to 8000H Setting Application area MOVP H200 D102 to 200H TCP IP Active open MOVP H1000 D103 Setting port No of host station to 4096 Setting target IP address DMOVP HOA614F0E D104 to 10 97 79 14 MOVP H1000 D106 Setting port No of target device to 4096 K1 D100 M100 Connection No 1 open M100 M101 SET M150 Normal completion M101 HAR SET M151 Error completion END CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 2 Disconnecting a connection SP SOCCLOSE Command SP SOCCLOSE f Internal device JO O Constant o pop e ft e a gt gt O Except 1 1 _ O for T ST O C 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 BIN 16 bit 62 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 completion of the instruction Bit D 1 also turns on when failed 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 2 Control d
87. Page 74 Secon 7 12 Page 74 Section 7 13 Set the number of points assigned to each slot Page 74 Section 7 1 4 Specify a start VO number for each slot Page 74 Section 7 1 5 Confgure the switch setting of the built in 1 0 or intelligent function modules Page 74 Section 7 1 8 Set the following Error Time Output Mode a P Sh Detaled Setting PLC Operation at HAN Error age 75 Section 7 1 7 VO Response Time Setting Start X Y enables modification on the start I O numbers assigned to connected modules ret E Leong thes setting DLINK wil net cause ON TOF tO OCD The section of the current page is shown poyu Dunas bb s Poyew Bumes 12 shows setting or as ED 1000 is specified in Start X Y to the slot where a 16 point module is connected the assignment operati ng exam ples range of an input module is changed to X1000 to X100F For details refer to the following LO shows reference CA WELSEC L CPU Module Users Manual Function Explanation Program Fundamentals manuals Point P Set the type of the connected module in Type Setting a different type results in SP UNIT LAY ERR P intelligent function module the I O points must also be the same in addition to the 1 0 assignment setting a c shows AAA Point7 shows notes that reference pages requires attention When an intelligent module is connected I O assignment can be omitted by selecting connected modules from Intelligent Function Module in
88. 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 e 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 e Railway 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 e 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 i
89. Specifications Comparison with Ethernet Module 1 Specifications comparison with the Ethernet module The following table lists the comparison of specifications between the Built in Ethernet port LCPU and the Ethernet module LJ71E71 100 Availability Item Description Built in Ethernet LJ71E71 1 port LCPU i ES e Reads writes data in the CPU module from to an external device A frame format that can receive multiple request messages at a time 4E frame A O Reading Writing data in device Reads writes data device in the CPU module from to an external device MC protocol QnA e O communication compatible memory 3E frame Reads writes data file in the CPU module from to an Others external device Reads writes data in the CPU module from to an external device e A frame format that is compatible with A series E71 A compatible 1E frame With procedure Procedure Fixed buffer exist Sends receives any data between the CPU module and an O aN external device using the fixed buffer of the Ethernet communication Without procedure No cada O procedure e Reads writes data from in the random access buffer of the Random access buffer communication Ethernet module from to multiple external devices Sends receives data by e mail e Sending receiving e mail by the CPU module E mail function e Sending receiving e mail using the CPU module monitoring function the automatic notification functio
90. TE ret re a neral Si Fullpa Eo dede leida IEX Vision System E Ethernet Devi ice Panasonic Industria Built in Ethernet Port Open Setting IP Address Port No Input Format DEC Protocol opensystem Te connection Me ect migen eect q UDP v MELSOFT Connection TCP MC Protocol 3 Emo UDP v MC Protocol J o pR RM o e Ea E E kE E 10 Ems EE EA KA EA 16 IP Address and Port No will be displayed by the selected format Please enter the value according to the selected number coc e For the Ethernet Conf drag and drop the General MC Protocol Module from Module List to the left side on the window Select a protocol from Protocol depending on the target device Set the port number of the host station in Port No Setting range 1025 to 4999 5010 to 65534 Do not specify 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 e For the Open Setting Item Protocol Open System Host Station Port No Description Select TCP or UDP depending on the target device Select MC Protocol Set the port number of the host station Setting range 0401 y to 13874 13924 to FFFEy 1025 to 4999 5010 to 65534 4 Do not specify 13884 to 13914 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 Point When the Enable online change FTP MC protocol setting is disabled ifthe CPU module in the RUN state receives a data
91. TOCOL Point When using the predefined protocol function open setting in the Ethernet configuration window is not available Do not select the Set Open Setting in Ethernet Configuration Window checkbox in Built in Ethernet Port Setting tab al 8 Create a program for starting data communications DMOV K100 D5 In the case of Active open create the program in which SP SOCOPEN instruction is used to establish a MOV HOAS D MoV K10 D8 M3001 ae ee es connection 5 Page 77 Section 7 4 1 a ee ua ma To activate the predefined protocol the SP ECPRTCL M200 M201 instruction is used L Page 52 Section 6 4 1 SET 250 M201 i o MOVP D201 D300 9 Write the program to the CPU module m Connection Channel List Simulation System Image W Online gt Write to PLC Write C Verify C Delete PLC Module E Intelligent Function Module Execution Target Data No Yes Title Edit Data lo Module Name Data Name Sur aja ml MAIN dG PLO Network Remote Password Switch Setti COMMENT fe m AMAN m Refresh Execute Close O N D 10 Execute the program written to the CPU module by N DMOV K100 D5 D using the SP ECPRTCL instruction MOV HO4S D O lt MOV K10 DS D a gt ali MOV KI D202 a SP ECPRTCL uo K1 K1 D200 1200 M200 M201 SET M250 M201 LU MOVP D201 D300 For the protoco
92. TPGET instructions cannot be executed simultaneously A subsequent instruction is ignored and not executed until the execution of the preceding instruction is completed 6 Program example When XC is turned on this sample program gets the ABCD CSV file in the CPUData ALine13G2 FileRegister 20120530 directory to the standard ROM e Devices used Device number Application D100 SP FTPGET instruction control data D1000 Start number of the device in which string data of the get destination directory path is stored M100 SP FTPGET instruction completion device M101 SP FTPGET instruction completion device when completed with an error M150 Successful completion indication bit M151 Unsuccessful completion indication bit SM1298 FTP client connection status e Program XRC MOVP Ki D102 Setting the directory MOVP CPUData ALine13G2 FileRegister D1000 Setting the directory and file name SMOVP 20120530 ABCD CSV D1016 SP FTPGET UO D100 D1000 4 M100 Executing acquisition processing M100 M101 l SET M150 Normal completion M101 a S El M151 Error completion D1010 END 146 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 10 4 Diagnostics The communication status of the simple PLC communication function can be checked in the Status of Each Connection tab in the Ethernet Diagnostics window Xo Diagnostics gt Ethernet Diagnostics For details on Ethernet diagnostics refer to the following LAGX Works2
93. 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 103 The set values will be enabled at the following timing of the SP SOCRMODE instruction execution e Before opening Values will be enabled after opening a connection e When there are data in the Socket communication receive data area Values will be enabled after execution of the SP SOCRCV or S SOCRCVS instruction once after the S SSOCRMODE instruction e When there is no data in the Socket communication receive data area Values will be enabled 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 e The connection number specified for is other than 1 to 16 Error code 4101 The device number specified for 62 exceeds the device point range Error code 4101 e An invalid device is specified Error code 4004 Even when the Receive 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
94. Wait Time fo x 100ms Setting Range 0 to 30000 0 Infinite Wait Send Setting Number of Retries fo Times Setting Range 0 to 10 Retry Interval jo x 10ms Setting Range 0 to 30000 Standby Time jo x 10ms Setting Range 0 to 30000 Monitoring Time jo x 100ms Setting Range 0 to 3000 0 Infinite Wait Communication Parameter Batch Setting Cancel 5 Set the packet configuration In the Packet Setting window set the configuration of packets to be sent or received O Protocol Setting window gt Variable Unset or Element Unset Protocol in Predefined Protocol Library Editable Protocol Protocol Line FEE Protocol Line EE Send Packet Line Send Packet Line Receive Packet Line E Receive Packet Line 1 Protocols 1 128 Packets 2 256 Packet Data Area Usage 0 0 Module for Debugging Protocol No ff Protocol Name Packet Type Send Packet Packet Name Element List ET poyan Bumnes z 9 Element Type Header C Non conwersion Variable C Terminator Conversion Variable Leneth Check Code Static Data i Cancel Element Name Code Type asc Hexadecimal h Data Length Data Flow FO Calculating Range Start oo Calculating Range End o 4 48 6 Write the protocol setting data to the CPU module ok Write to Module E re feces In the Writing Protocol
95. a 300 bytes 200 bytes l l ON f f SD1286 OFF l Data reception 500 bytes b TCP fixed length receive mode 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 af 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 SP SOCRCV or Reading receive data S SOCRCVS instruction Socket communication Data stored Data stored Data reading The remaining 100 receive data area 200 bytes 300 bytes ae M l reception 200 bytes l ON SD1286 OFF A A L l l Data reception Data reception 200 bytes 200 bytes SUOIJONIJSU UONOUN y uoneoiunwwog 3920S p Point 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 connected device may be fragmented depending on the line type
96. a file whose file name contains a two byte character or two byte code character is transferred set the kanji code type of the FTP server to Shift JIS If the kanji code types do not match between the FTP server and client file names may not be identified To prevent this problem assign a file name with one byte ASCII code characters to the file transferred to the FTP client by the SP FTPGET instruction Do not change the name of the file which has been transferred to the FTP server using the SP FTPPUT instruction in the FTP server O Distinction of upper case and lower case characters The FTP client CPU module does not distinguish between one byte upper case and lower case letters and therefore the specification with lower case characters is handled the same as the specification with upper case characters c Instruction execution e The result of the SP FTPPUT instruction can be checked with the completion device D 0 and D 1 e Completion device D 0 Turns on at the END processing of scan in which the SP FTPPUT instruction is completed and turns off at the next END processing e Completion device D 1 Turns on or off depending on the state in which the SP FTPPUT instruction is completed State Description When completed Remains off normally When Turns on at the END processing of scan in which the SP FTPPUT instruction is completed and turns off completed with an error at the next END processing When completed with
97. adequate in size 0000000000000000000000000000000000000000000000000000000000000000000000000000900O96 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 e Devices used Device number Application D400 SP SOCRMODE instruction control data e Program M4000 i 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 END 104 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 9 Socket communication receive data read S P SOCRDATA Command S SOCRDATA a SP SOCRDATA f o SP SOCRDATA uo E O n me e device a Constant 9 EJER TERE EAE 2 a ee o peopop f ne eo fe o gt 1 Setting data 6 Connection number Setting range 1 to 16 BIN 16 bit 62 Start number of the device from which control data are stored D ser n Device name SUOIJONIJSU UONOUN4 uoneoiunwwog 3920S y Start number of the device where read data are stored Number of read data 1 to 1024 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 Control data mo samme CI
98. aking is required prior to communications Predefined protocol setting a To use two predefined protocol functions simultaneously Ethernet or RS 232 422 485 Store the predefined protocol setting files in the same drive If the settings files are stored separately in the SD memory card and the standard ROM the setting stored in the SD memory card is enabled while the setting stored in the standard ROM is disabled To enable the predefined protocol setting stored in the standard ROM format the SD memory card or delete the predefined protocol setting stored in the SD memory card Then enable the setting The predefined protocol setting can be checked and deleted by operating the PLC user data O Online gt PLC User Data gt Read or Delete b After writing the predefined protocol setting 3 4 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 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 COM instruction Connection with different open systems
99. ameter is not applicable e The execution type specified in 61 0 specifies whether to register or delete an e mail address e To either register or delete an e mail address with the SP MLOPEADR instruction the e mail address needs to be specified in 63 e The data from the device number specified in 63 to the device number in which 00 is stored is registered as an e mail address e The characters that can be used for the e mail address are 204 to 7E However 2C comma is excluded If any other character is used the instruction is completed with an error e The e mail address table allows multiple e mail addresses to be registered in one setting number If another e mail address is registered in the setting number in which an e mail address is already registered a one byte comma is automatically inserted as a delimiter between the e mail addresses Up to 500 one byte characters can be registered e If delimiter exists in the string specified in 63 the instruction is completed with an error Two or more e mail addresses cannot be registered or deleted simultaneously Point Note that if an already registered e mail address is registered during e mail address registration two or more identical e mail addresses come to exist Same e mails by the number of registered e mail addresses are delivered e If the number of characters that can be registered is exceeded when registering the e mail address the ins
100. an 1 to 16 Error code 4101 The device numbers specified for 62 and exceed the device point range Error code 4101 e 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 84 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 5 Program example When M1000 is turned on connection No 1 is opened using the parameters set in Ethernet Conf or Open Setting of PLC parameter e Devices used Device number Application D1282 Open completion signal SD1284 Open request signal D200 SP SOCCLOSE instruction control data M200 SP SOCCLOSE instruction completion device e Program SD1282 0 SD1284 0 l m TS M161 Processing for disconnection of Connection No 1 by the target M2000 SD1282 0 M210 o __ SP SOCCLOSE UO K1 D200 M200 Connection No 1 close M161 Setting SP SOCCLOSE SET M210 executing flag M200 M201 SET M202 Normal completion M201 be SET M203 Error completion Resetting SP SOCCLOSE executing flag RST M210 END SUOIJONIJSU UONOUN4 UOIEDIUNWWOD e490S p 85 7 4 3 Reading out received data in the END processing SP SOCRCV Command SP SOCRCV f na 9 KO E a etela e po g oleje o O q Except A 1 1 O for T ST a C 4 File registers set for each lo
101. anual Hardware Design Maintenance and Inspection 6 Outputs may remain on or off due to a failure of a component such as a transistor in an output circuit Configure an external circuit for monitoring output signals that could cause a serious accident O In an output circuit when a load current exceeding 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 O 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 O For the operating status of each station after a communication failure refer to relevant manuals for each network Incorrect output or malfunction due to a communication failure may result in an accident O To prevent the malfunction of the programmable controller system due to harmful e mails take preventive measures such as antivirus measures so that the mail server for this module does not receive harmful e mails O To maintain the safety of the programmable controller system against unauthorized access from external devices via the Internet take appropriate measures _ N N Design Precautions NWARNING O When changing data from a peripheral device connected to the CPU module during operation configure an inte
102. at the external device can process split data Replace the information acquisition and setting methods with the SP SOCCINF or SP SOCCSET instruction Program the data receiving processing at the beginning of the scan program Change the port number As described in the left columns Specify 0 for the Ethernet address No specification is required The Ethernet address is automatically acquired for communication APPENDICES APPENDIX Memo Appendix 5 Specifications Comparison with Ethernet Module 223 INDEX A LOCK PIOCESSING ins wai asda eels chars 150 _ _ _ _ rrr Susa ao ado colo ss ls aa 120 ACIVE OPEN e AD 57 M B MC protocol communication 36 A A eae ee dee te 119 mdsleto comidas Bet eee Be eee te 120 A yt coe te ween Be ck bed E te 119 Mpc casera TO EE 120 GS eae en ase sees 120 VUES os ste et at eno ele thi as ccm ek Ge a eae 121 c MO bitadir e eco ad 121 o O A eee 123 CASS tl ts ena ee Ide inicia cda 35 N COS Ch E RN 119 CPU module caidas 19 NAK message Ghose etait au geet ada 38 CPU module dedicated subcommands 123 O D A 121 Data communication frame 41 delete ooo 119 p 0 Re ea eee ea a a A en ee IE E E 119 Direct connection naaa a 000 cee ee ees 33 Passive Open 0c cece cece eeeeeees 57 Pass WEI fg ese tees ia ase dada a 125 E DASSWC Wr 1 125 PasswWord l0CkK o o o oooooooooooo ee 124 E mail send re
103. ata Eo asomar Completion status is stored 62 1 peo 00004 Completed normally System Other than 0000 Failed Error code 4 The Set by column indicates the following System The CPU module stores the execution result of the SP SOCCLOSE instruction SUOIJONIJSU UONOUN4 UOIEDIUNWWOD e490S Z 83 3 Function This instruction 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 D 1 e 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 normally Turns on in the END processing of a scan after completion of the SP SOCCLOSE instruction and turns off in the next END processing When failed END processing END processing END processing Program aa Ple ats instruction executed SP SOCCLOSE instruction Completion device D 0 0 ON When failed Completion device D 1 1 scan when normally completed Y Connection j close 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 connection number specified for is other th
104. ations re start when Request Contact Device to Stop Fixed Interval Communication turns off The on off status is confirmed in the END processing This stop request is enabled when the communication status is Communicating or Error 1 Request Contact cannot be specified overlapped with the following devices Request Contact Execution Status Flag Device Source device when the host station is a transmission destination device Request Contact that is used for other setting No Execution Status Flag Device that is used for other setting No Source device when the host station is a transmission destination device which is used for other setting No Point When communications are stopped by the request to stop fixed interval communication the data communications at a specified execution interval which is performed when Fixed is set for Communication Setting is ignored The stop time by the request to stop fixed interval communication is not counted as Execution Interval Current Value O ifthe communications are stopped by the request to stop fixed interval communication during retry of communication the retry count is reset to 0 7 Execution Status Flag Device Select the device from X M B and specify it as a device to store the execution status The on off status below indicate the execution status e ON Communicating the state of Status being 3H e OFF Communication stop 4 Execution Status Flag
105. ay not be identified To prevent this problem assign a file name with one byte ASCII code characters to the file transferred to the FTP client by the SP FTPGET instruction Do not change the name of the file which has been transferred to the FTP server using the SP FTPPUT instruction in the FTP server O Distinction of upper case and lower case characters The FTP client CPU module does not distinguish between one byte upper case and lower case letters and therefore the specification with lower case characters is handled the same as the specification with upper case characters c Instruction execution e The result of the SP FTPGET instruction can be checked with the completion device 0 and D 1 e Completion device D 0 Turns on at the END processing of scan in which the SP FTPGET instruction is completed and turns off at the next END processing e Completion device D 1 Turns on or off depending on the state in which the SP FTPGET instruction is completed State Description When completed Remains off normally When Turns on at the END processing of scan in which the SP FTPGET instruction is completed and turns off completed at the next END processing with an error When completed with an error an error code is stored in the completion status of Sd 1 144 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT e The SP FTPGET instruction runtime operation is as follows Sequence scan 0 END 0 END 0 END SP FTPGET instruction
106. be changed Fixed to one second A request message is discarded if the next part of the split message cannot be received within one second When one connection receives another request message before responding a request message the second message is discarded Consequence of a communication with the Built in Ethernet port LCPU If the response message size exceeds 1460 bytes the message split by the external device may not be read correctly 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 If request messages are consecutively sent to one connection response messages are not returned and a communication timeout may occur in the external device Action Perform the procedure described in Page 42 Section 5 3 6 so that the external device can process split data Retry communication from the external device If a communication timeout frequently occurs reduce the load of the external device or Ethernet network Check that the external device receives a response message before sending next request message Do not consecutively send request messages from the external device 221 3 NPO N 19U I9U13 YM UOSIIEdWOD suonesinoads q xipueddy 3 Differences between the socket communication and the nonprocedural communication using a fixed buffer of the Eth
107. ble Fixed value Fixed value Fixed value Fixed value Fixed value value Fixed value value e Ended with an error Response End code data part number Header Error information part Som o Sh ee eas fe 2 hil ees 2 o O O O a O O O Q amp O O E Q 5 5 5 o Q c 5 lt Uv Q c 5 o o O Q 5 Lo E Q 5 5 G c c E Y 2 oO 4 fo 5 m 0 El a o T S o 3 5 o 3 E z 0 o o n o Do D E o D Q D 0 O E gt a 5 o o ul x a o 5 2 0 O 5 D gt 5 gt 5 gt 5 gt r a a e a 7 x x e zZ D0004 Variab Variable Variable Variable Fixed 4 le value value value value value 1 An error code is stored in the end code For details of errors refer to the following gt Page 43 Section 5 4 d Command examples A response mail is returned in response to the request mail requesting to read word device D100 e Ended normally 19954 is assumed stored in D100 Subject Message body Re Test command lt MELRET gt D000 00 FF O3FF 00 0014 0000 1995 lt MELRET gt e Ended with an error Subject Message body Re Test command lt MELRET gt D000 00 FF O3FF 00 0014 C051 00 FF O3FF 00 0401 0000 lt MELRET gt 194 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 3 Response mail format abnormal response If the content of the received e mail fails to satisfy the request e mail format the following message is written as an abnormal response a Subject Re is
108. cal device or program cannot be used 1 Setting data Setting data Description Set by Data type UO Dummy Character string 61 Connection number Setting range 1 to 16 BIN 16 bit 62 Start number of the device from which receive data are stored Start number of the device which turns on for one scan upon completion of the instruction Start number of the device from which control data are specified Device name System 62 1 also turns on when failed 4 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 86 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 2 Control data mo asomar l Completion status is stored 62 1 Sompieugn 00004 Completed normally status Other than 0000p Failed Error code sida The length of the data which were read out from 09 0 endi the Socket communication receive data area is 0 to 2046 System E stored in bytes O 1 to The data which were read out from the Socket Receive data communication receive data area are stored in n order 1 The Set by column indicates the following System The CPU module stores the execution result of the SP SOCRCV instruction Point O When the SP SOCRCV instruction is executed data are read from Socket communication receive data area at END processing Therefore executing the S
109. cation TCP Connection Active Host Station Port No 1000 Setting range 00014 to 13874 13924 to FFFE 1 to 4999 5010 to 65534 A Destination IP Address 192 168 3 40 Setting range 0 0 0 1 to 223 255 255 254 Destination Port No 1000p Setting range 00014 to FFFEy 1 to 65534 d Do not specify 13884 to 13914 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 dol Buisn uoneoiunwwog 59 60 b Devices used in programs The following table lists the device numbers and applications used in the sample program Device number M1000 D100 to D109 M100 and M101 M1002 M1003 M3000 D3000 and D3001 M300 and M301 D300 to D303 M3002 M3003 M4000 M4001 SD1282 SD1284 SD1286 SD1288 D200 and D201 M200 and M201 M4002 M4003 M4004 D400 to D403 D5000 and D5001 M500 and M501 D500 and higher M5002 M5003 Application Open direction SP SOCOPEN instruction control data SP SOCOPEN instruction completion device Normal open indication Open error indication Send direction SP SOCSND instruction control data SP SOCSND instruction completion device Send data length and send data 6 bytes of 124 34y 56y 784 9Ay and BC Normal send indication Send error indication Close direction Disconnection by the other device Open completion signal Open request signal Receive state signal Connection state signal SP SOCCLOSE instruction control data SP SOCCLOSE instruction
110. ce point range Manual Common Instruction AO is Error code 4004 Program example When M2000 is tumed on or when the connected device disconnects connection No 1 connection No 1 is disconnected by the following program Device used Simple program example s and descriptions of the devices used UOHONJSU VOUN 4 LONEOUNWLUOD JAPOS y 3SO01090S dS uonoeuuos e buyoeuuoos id SP SOCCLOSE instruction control data SP SOCCLOSE instruction completion device Program S012820 eye gs Processing far dscormectan of Comecton No tby the target mpo SDjap2o MpO i sPsoccLose Uo Cormecton No 1 dose Mi61 Set ng SP SOCCLOSE m executing f lag M M201 yf Noenal competion Err competion Resetting SPSOCCLOSE executing fag Execution condition of the instruction Structure of the instruction in the ladder mode Setting side User Device value is set by the user System Device value is set by the CPU module 17 18 e Instructions can be executed under the following conditions Execution condition Anytime Duringon On the rising edge During off On the falling edge O CI a a a e The following devices can be used Internal device Link direct device Intelligent Ta Setting system user File JO O function module 3 3 register Constant Others data register device Zn UO GO P I J U Applicable DX DY N R ZR UO Go Z K H E AS device BL
111. ceive function 185 password UNNOCK o ooo 123 Ethernet cable o ooooooooooooo o 22 DIO aora coed suce ane red dio BS Gia des 125 Ethernet communicati0N 24 Predefined protocol o o o o ooooooo 44 Extemal device sa de a a 19 Programming tool o ooooooo oo 19 Ollas a ata rd et ra pica tasa Un 121 F OWO isa olas 121 File transfer function 110 128 Q FTP CHOI ia ria ae ta 128 A FIP COMMANIS usais al bl 116 O een ee attend ese 122 UE SONO pat da diles 110 A ON 122 FTP server support commandsS 119 FUIDISSIVO era n a a we aca ea a 57 R G recv function ooo 42 FORGING vnc Kare ace A ee 122 OE Ss A ceca vee E teste anaes ee EE 119 E A A E O and ach areas 112 GOTA ren dira goa pci hb easy see 24 Router 0 ce eee eee eee eas 30 A A eE oa aA 124 H S HostName ada aaa ties E L E A 28 DE Hosts TGs csi ereen aa A eck R a 28 SD m m ry Card oeu nh cues aw da e aa 19 PUD to loa gas 22 Searching CPU modules 29 Simple connection a aaaea aaa 33 K Simultaneous broadcast 71 a SNTP eaa a hehe cca aia ete 19 KeepAlive oe deed ta eae ee seas ee ee as 31 SNTP CHEN rta al 4 ee ee we de eet Se eh ey 107 Socket communication function instructions 76 A eect Soe Oa eee ee 124 L o A O aera aa ee 124 OPO a em nuns alate 19 SECS LEMME rane tat a apa ahae ah Anas iyo 117 TCP fixed length receive
112. ceived data have not been read out for a long time Conditions for closing In TCP communications 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 e Alive check is timed out e 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 e IP address of the CPU module e Port number of the CPU module e IP address of the target device e 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 it is recommended to change the host station port number on the Active open side CHAPTER 7 SOCKET COMMUNICATION FUNCTION 6 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 ora programming tool during the processing When accessing a file while response time
113. col is UDP To execute the simple PLC communication function when the CPU module destination device for communications is in RUN state turn on this switch If Ethernet module is in Automatic startup mode turn on this switch To execute the simple PLC communication function when the CPU module destination device for communications is in STOP state or in stop error state turn on the bits The module cannot communicate regardless of the setting if a stop error occurs in it CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 5 Applicable devices The devices that can be specified as transmission source and transmission destination vary depending on the destination device for communications Bit device and word device can be set together for each setting No a Number of device points Set the number of device points to the total number of setting No 1 to 64 4096 words maximum The maximum number of points for each setting No may differ depending on the communication destination For the MELSEC FX3 Ethernet Block Adapter Transmission source 96 words maximum word device 64 points bit device 512 points Transmission destination 74 words maximum word device 64 points bit device 160 points For the cases other than the above Transmission source destination 512 words maximum word device 256 points bit device 4096 points b Devices that can be specified The following devices can be specified Destination device
114. communication request by Request 2H On Request is set request Contact When device data communications at a specified execution Fixed is set o interval are possible 3H Communicating When device data are communicated according to the states On Request is set of Request Contact Communication When the simple PLC communication function is stopped by Ay Fixed is set l l Sen fe stop the request to stop fixed interval communication Error Code No The corresponding error code is stored 4 Status Save Destination Device cannot be specified overlapped with the following devices Status Save Destination Device Execution Interval Current Value Save Destination Device Source device when the host station is a transmission destination device Status Save Destination Device that is used for other setting No Execution Interval Current Value Save Destination Device that is used for other setting No Source device when the host station is a transmission destination device which is used for other setting No Point For examples of how to use this device refer to Page 169 Section 12 2 CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 9 Execution Interval Current Value Save Destination Device Select the device from D D extended data register W W extended link register R ZR and specify itas a device to store Execution Interval Current Value Item Description If Fixed is set for Communication Setting the a
115. connected SP SOCCLOSE 18 90 56 60 16 60 43 80 device UDP 1 byte 2046 bytes 16 90 50 70 15 40 39 20 1 byte 2046 bytes Standard mode Fixed length mode SP SOCRMODE 16 00 39 60 13 70 29 30 Fixed length mode gt Standard mode SP SOCRDATA 1024 words 500 00 521 60 389 70 404 30 Instruction for the predefined SP ECPRTCL 54 00 123 00 43 50 90 50 protocol function Condition Type SP SOCRCV Instructions for the socket a S SOCRCVS communication T T function T CP UDP CP UDP CP SP SOCSND UDP 212 APPENDICES APPENDIX Processing time us LO6CPU LO6CPU P LO2CPU LO2CPU P L26CPU L26CPU P L26CPU BT L26CPU PBT Condition Type Maximum File name server path string File transfer SP FTPPUT 251 000 256 000 234 000 244 000 E 32 characters function File name server path string instructions SP FTPGET 248 000 252 000 214 000 224 000 32 characters SP MLSEND Send data length 16 words 55 800 60 000 44 300 48 500 Receive data length 16 E mail SP IMLRECV taras 54 600 58 700 43 800 47 100 send receive E mail address registration deletion 51 200 58 700 39 300 45 400 function SP IMLOPEADR instructions registration 32 characters SP MLGETADR E mail address acquisition 40 900 51 700 33 900 41 700 uonon su y9e3 104 au Buissadoly vonelado xipuaddy 213 Appendix 2 Port Numbers Used by Built in Ethernet Port 214 LCPU Do not specify the follow
116. controller is powered off and on or the CPU module is reset e At the specified time intervals Execution interval e At the specified clock time Execution time e According to the special relay state 4 Time is set when SM1270 is turned on for one scan LAN om 7 ERE elg Ethernet Personal computer Point O Confirm the connection of the hub or the interfacing device in 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 Access through routers is also available When configuring the settings for it set the subnet mask pattern and default router IP address Page 30 Section 3 4 107 8 1 Setting Method Configure the time settings in the Built in Ethernet port tab of PLC parameter Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Time setting button Built in Ethernet Port Time Setting m Time Setting SNTP Function Setting Used SNTP Server IF Address 192 168 o 200 Input Format DEc Time Zone e Execute time setting at
117. ct n A AAA sar gt jwasortcoecion v A A AAA A A AAA v MELSOFT Connection v IP Address and Port No will be displayed by the selected format Please enter the value according to the selected number r eee Item Protocol Open System TCP Connection Host Station Destination IP Address Destination Port No Start Device to Store Predefined Protocol O PLC Parameter gt Built in Ethernet Port Setting gt Open Setting Description Select TCP or UDP Select Predefined Protocol When Protocol is TCP select the connection method Page 57 Section 7 1 Set the port number of the CPU module Setting range 0001 y to 1387 y 13924 to FFFEy 1 to 4999 5010 to 65534 Set the IP address of the external device Setting range 0 0 0 1 to 223 255 255 254 Set the port number of the external device e Setting range 00014 to FFFEy 1 to 65534 for TCP e Setting range 0001 y to FFFEy FFFFy 1 to 65534 65535 for UDP Set the start device number for storing the protocol execution status received data verification result number of protocol executions and protocol cancellation status Page 50 Section 6 2 1 The area of 19 words starting from the specified device is used Available devices D W R ZR 4 Do not specify 13884 to 13914 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PRO
118. ction System Bit 62 1 also turns on when failed 2 Control data i e Setting Device Description Set by range b15 m b10 b9 b8 b7 b6 gt b2 b1 bO Orolo fof n 1 Completion type Set whether clock data setting is required at completion with an error e 0 Clock data setting not required Clock data at occurrence of an error is not set in S 11 to S 15 E ti 1 i i xecu a 1 Clock data setting required See the left S 0 type completion type User Clock data at occurrence of an error is set in S441 to S 15 column 2 Execution type Specify whether to query server storage e mail after reading the received mail e 0 Do not query Received mail information is not read e 1 Query Received mail information is read 3 Received mail type Specify the combination type of received mail e 11 Receive only message body Completion status is stored S 4 Completion status 00004 Completed normally System e Other than 0000 Failed Error code 202 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION i AEN Setting Device Description Set by range Specify the number of the e mail to be read when multiple e mails are aroan 0 to 65535 User e O First e mail e 1 to 65535 Specified e mail 31 8 When instruction is executed Specify the data length header message body of the e mail that can E mail number to S 2 be read be stored in0d 0 to0 n Header 1 to 373 Message body 1
119. ction performs no processing e When executing the SP FTPPUT instruction by specifying an SD memory card as the transfer source or transfer destination turn on SM606 SD memory card forced disable instruction for interlocking When SM606 is on the SP FTPPUT instruction performs no processing e When access is restricted by file password 32 the SP FTPPUT instruction is completed with an error e The SP FTPPUT and SP FTPGET instructions cannot be executed simultaneously A subsequent instruction is ignored and not executed until the execution of the preceding instruction is completed 6 Program example When XC is turned on this sample program sends the file register MAIN QDR stored in the standard RAM to the CPUData ALine13G2 FileRegister 20120530 directory in the FTP server e Devices used Device number Application D100 SP FTPPUT instruction control data D1000 Start number of the device in which string data of the transfer destination directory path is stored M100 SP FTPPUT instruction completion device M101 SP FTPPUT instruction completion device when completed with an error M150 Successful completion indication bit M151 Unsuccessful completion indication bit SM1298 FTP client connection status e Program ae MOVP CPUData ALine13G2 FileRegister D1000 Setting the directory SMOVP 20120530 D1016 Setting the directory SP FTPPUT UO D100 3AMAIN QDR D1000 M100 Executing sending processing M100 M101 SET M150 Normal comp
120. ction 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 e 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 Page 77 Section 7 4 1 6 do Bulisp uonesiunwwoy 1 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 e IP address and port number of the target device e 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 OS Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button Built in Ethernet Port Open Setting IP Address Port No Input Format EC y Host Station Destination Destination Protocol Open System TCP Connection i aide Socket Communication 4096 192 168 3 40 Z TD E A AO dell IP Address a
121. ctual execution interval of the Execution Interval Current a o ae communications is stored If the communications have never been performed properly 0 Value is stored 4 Execution Interval Current Value Save Destination Device cannot be specified overlapped with the following devices Status Save Destination Device Execution Interval Current Value Save Destination Device Source device when the host station is a transmission destination device Status Save Destination Device that is used for other setting No Execution Interval Current Value Save Destination Device that is used for other setting No Source device when the host station is a transmission destination device which is used for other setting No Point For examples of how to use this device refer to Page 169 Section 12 2 poyan Bumas L Z 167 10 Time out Time and Retry Count Set the time interval until an error is detected or the Communication Time out retry of communication is performed when the 10ms to 65535ms in increments of Time destination device for communications does not 1ms respond or communications fail Set the number of communication retry to be performed when the destination device for communications does 0 to 255 2 not respond or communications fail Communication Retry Count 4 When the destination device for communications is MELSEC A Ethernet Module MELSEC FX3 Ethernet Block Adapter the value is
122. cution result of the SP SOCRMODE instruction 2 Control data me sume o oo lo Completion status is stored 62 1 A 0000 Completed normally System status Other than 0000 Failed Error code TCP receive TCP receive mode is elle 62 4 2 de 0 TCP standard receive mode 0 1 e 1 TCP fixed length receive mode User Receive data size in the socket communication Receive data size 1 to 2046 is stored in bytes 4 Invalid for connections in UDP communications 2 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 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 102 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 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 Data stored Data reading Data stored Data reading receive data are
123. d instruction SP FTPPUT the file data being transferred to the FTP server is possibly damaged CHAPTER 11 REMOTE PASSWORD CHAPTER 11 REMOTE PASSWORD A remote password is checked when a connection is requested for the following e Communication using a programming tool e Communication using MC protocol e File transfer FTP Point The remote password function is one of the preventive methods against unauthorized access e g destruction of data 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 e Install a firewall e Setup a personal computer as a relay station and control the relay of communication data using an application program e 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 149 11 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
124. d 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 A Fullpassive 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 e Active open TCP connection initiating device client connecting side etc e Passive open TCP connection waiting device server listening side etc of dd Buisn uonesiunwwoy 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 completed YES Completed or disconnected by the external device 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 xO Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button rat Ethernet configuration Built in Ethernet Port lt Built in Ethernet Port Open Setting Ethernet Configuration Edit View Close with Discard
125. d for the built in Ethernet port Direct Connection of MELSOFT 4 Regard as Error when Remote Password Mismatch Count Select this when enabling this operation Useful for detecting Reaches Upper Limit unauthorized access Page 154 Section 11 4 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 4 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 1 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 151 Bulnes piomssed ajouay z 1 2 Writing to the CPU m
126. d in the system before mounting or removing a module Failure to do so may cause the module to fail or malfunction Tighten the terminal block screws within the specified torque range Undertightening can cause drop of the component or wire short circuit or malfunction Overtightening can damage the screw and or module resulting in drop short circuit or malfunction After the first use of the product module display unit and terminal block the number of connections disconnections is limited to 50 times in accordance with IEC 61131 2 Exceeding the limit may cause malfunction After the first use of the SD memory card do not insert remove the memory card 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 conducting object such as a grounded metal to discharge the static electricity from the human body Failure to do so may cause the module to fail or malfunction Before testing the operation by the positioning function set a low speed value for the speed limit parameter so that the operation can be stopped immediately upon occurrence of a hazardous condition Disposal Precautions CAUTION O When disposing of this product treat it as ind
127. data communications can be performed with the changed target device 4 Error A detection of an operation error turns on the Error flag SMO and a corresponding error code is stored in SDO when e The connection number specified for S is other than 1 to 16 Error code 4101 The device number specified for 62 exceeds the device point range Error code 4101 e 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 e Devices used Device number Application D1282 Open completion signal D400 SP SOCCSET instruction control data e Program M4000 SD1282 0 DMOVP HOA6155DE D402 Setting target IP address to 10 97 85 222 MOVP H2001 D404 Setting port No of target device to 8193 U0 K1 D400 Changing setting of Connection No 1 101 SUOIJONIJSU UONOUN4 UOIEOIUNWWOD e490S y 7 4 8 Changing the receive mode of a connection SP SOCRMODE Command SP SOCRMODE f SP SOCRMODE Internal device C tant 1 clama data Dummy Character string 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 exe
128. ddress registration deletion SP MLOPEADR Command SP MLOPEADR f A Setting data UO GO Others 9 p po ee as e eo pol o jo ojo _ _ p gt 4 File registers set for each local device or program cannot be used 1 oe data 6 Start number of the device from which control data are stored Device name 62 Destination e mail address setting No 1 to 16 BIN 16 bit E mail address string or start number Number of characters specified for e mail address 1 to 500 one byte characters of the device in which User Character string the string is stored Start number of the device which turns on for one scan upon D completion of the instruction System Bit D 1 also turns on when failed 2 Control data ee Setting Device Description Set by range Specify the operation processing b15 vt b2 b1 b0 0 Operation processing 1 Specify the execution type See the left U 6 0 ser setting area 0 Register column e 1 Delete 2 Enable disable backup e 0 Enable backup e 1 Disable backup Completion status is stored C Completion status e 00004 Completed normally System e Other than 0000p Failed error code 206 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 3 Function e Registers deletes the e mail address specified in 63 in the destination e mail address setting number specified in 62 of the e mail address table The destination e mail address setting number of the PC par
129. de I F RIE CCIE Cont CC Link Ethernet C24 GOT CCIE Field CCIE Field Module NET 10 H Module Module Master Local Communication Module Module Head Module Ao 1 Pc fLcPu 7 IP Address Host Name 0 0 0 0 N Other El Station a Connection Channel List Setting aT No Specification Other Station Other Station 3 3 3 Single Network Co existence Network PLC Direct Coupled Setting a E Connection Test Time Out Sec 30 Retry Times 0 Comecionzes Network PLC Type Communication Route CCIE Cont CCIE Field Ethemet CC Link C24 NET 10 H System Image Ao Phone Line Connection C24 Co existence cot EE E Route CCIE Cont CCIE Field Ethernet CC Link C24 NET 10 H Cancel Ao Accessing Host Station System Baan al 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 Ethernet Conf or Open Setting window Page 25 Section 3 1 This setting is an assignment for Ethemet board Please execute the following settings Network No Network No of Ethemet module set in parameter Station Mo Station No that does not overlap on the same loop Network No and station No are not necessary for communication with Communication with Ethemet port of CPU builtin Ethemet Communication via GOT Transparent Communication via lE Field Ethemet adapte
130. ded 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 e Select the connection in the Ethernet diagnostics window and force it to be deactivated LLIGX Works2 Version 1 Operating Manual Common Stop the communication by disabling the connection as shown below O Diagnostics gt Ethernet Diagnostics gt Status of Each Connection Ethernet Diagnostics Target Module Setting Connection No Host Station Destination Destination Latest Open Remote Unlock Forced 2 Error Protocol Function Port No IP Address Port No Code Syst Password Error Deactivation a Status Clear Latest Error Code Clear Unlock Error Count Disable Deactivation of Selected Row Force Deactivation of Selected ay PING Test Loop Test IOM ERR OFF Start Monitor Stop Monitor Turn on the force deactivation flag of the connection in the special register SD1276 SD1277 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 operations e Enable Clear Mismatch Count when Remote Password Matches in the
131. 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 handling carelessness or negligence by the user Failure caused by
132. destination module station number e Correct the read write request data CO5F y The request cannot be executed to the CPU module The request data is incorrect ex incorrect specification of data for C060y l 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 ds character area a part of text data header and resend the data to the CPU module The CP i t in ASCII f twh i da een as PARS ee ASS O i os e Send a request message that matches the Communication Data Communication Data Code is set to Binary Code or received it in Code settin CO6F yy binary format when the setting is set to ASCII Code This error code 9 e Change the Communication Data Code setting so that it will is only registered to the error history and no abnormal response is wines y P match the request message returned C070 The device memory extension cannot be specified for the target Read data from or write data to the device memory without A station specifying the extension e Correct the request data COB5y The CPU module cannot handle the data specified q e Stop the current request Correct the remote password and unlock and lock the remote password function again UOIEOSIUNWILUOYD ODOJOJd OW 10 SIPOJ 10113 y G C200y The remote password is incorrect The port used for
133. devices or Ethernet line congestion For the preventive measures refer to the troubleshooting described in the following manual LEIMELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection poyan Buyas L Z O If latency time is set data communication is started after the latency time has passed Page 169 Section 12 1 12 157 158 3 Register Destination a Setting of devices for communications Set the devices for both transmission source and transmission destination Up to 64 devices can be registered This setting also can be done in the Destination Setting List window that will open by clicking the Destination Setting Lt button in the Simple PLC Communication Setting window Use the Destination Setting List window as well to change the setting information Register Destination Registration No 1 IP Address Port Mo Input Format Module Type IP Address Port Mo Network Mo Remote Password 4 Host Station Port Mo m it Station Na il Host Station Set the field marked with as needed Cancel IP Address Port No Input l Format Select the input format of IP address and port No DEC HEX Module Type Select the device for communications E Page 159 Section 12 1 3 b IP Address Set the IP address of the device 0 0 0 1 to 223 255 255 254 0401 y to 13874 13924 to FFFEy Port No Set the port No of the device 04014 to 15ACy 15B0y to FF
134. dress 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 e By using the Find CPU function e 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 is returned 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 e Online program change e Copy program memory data into ROM e Write to PLC flash ROM Execution timing of write processing and clear processing e Since the status of 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 e If SM1292 IP address storage area write re
135. during processed flag the END processing of the scan where the command is processed and the return mail is sent SM1659 e This relay turns on when an MC protocol command error is detected The relay SM1660 MC protocol command error flag also turns on when the MC protocol command is disabled in parameter e The relay turns off upon execution of the e mail receive instruction e This relay turns on when e mail address backup starts when an address is E mail address backup obtained by the e mail address acquisition instruction SP MPGETADR processing flag The relay turns off during the END processing after completion of e mail address backup processing SM1661 e This relay turns on when there is incoming mail on the server when checked Check Received Mail needs to be set in advance in the e mail setting e The relay turns off during the END processing of the scan where the e mail receive instruction processing completes SM1662 Incoming mail check flag Set the language information of the content of send e mail Subject message body e 0 or other than below English Japanese default e 2 Chinese simplified Chinese characters SD1659 Language information e An error code is stored when an MC protocol command error is detected An MC protocol command error error code is also stored when the MC protocol command is disabled by the code parameter e A value O is set at execution of the e mail receive instruction
136. during file transfer the TCP connection will be closed 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 Page 31 Section 3 5 The processing time for file transfer differs depending 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 attempts to connect to the 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 SERVER 4 Writing files e 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 e Data cannot be written to read only files and files locked by a function other than FTP If attempted a write error occurs e File transfer writing a file cannot be executed when the SD memory card is write protected If attempted a writ
137. e E communicated in e If the data of 32 bits 2 words or larger is communicated Block Adapter communicated in units of 32 bits 2 data inconsistency might differ in units of 32 bits 2 units of 2 words g words words gt 4 If the COM instruction is used the data are written or read not only in the END processing but also during sequence scan at the execution of the COM instruction 2 The order of the write and read is shown below e When Write is set for Communication Pattern A word device comes first then a bit device e When Read is set for Communication Pattern A bit device comes first then a word device e When Transfer is set for Communication Pattern The host station reads the data of transmission source in order of a bit device and a word device and writes them to transmission destination in order of a word device and a bit device 9 Because the write and read is performed from the data with smaller device number use the device with the largest No to secure the data 164 CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 6 Request Contact Device to Stop Fixed Interval Communication Select the device from X M B and specify it as Request Contact Device to Stop Fixed Interval Communication lf Fixed Interval is set for Communication Setting the communications for the specified setting No temporarily stop when Request Contact Device to Stop Fixed Interval Communication turns on The communic
138. e SP SOCCLOSE instruction 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 Page 77 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 Page 97 Section 7 4 6 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 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 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 CPU module IP address l 64 168 3 39
139. e dh ad e oie 2 37 5 2 MC Protocol Conmmanas 000 eee ee a eae 39 5 2 1 Command list vreen acudo bes ba eae la Gee 39 5 2 2 Applicable deviceS 0 cc eee ee eee eee eee eens 40 5 3 PFECALITIONS esc ped x ore ee be Ee er bee ee Se ok oe SG PRIS EE eer ok da ee 41 5 4 Error Codes for MC Protocol Communication 0000 ee eee eae 43 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 44 6 1 SD ECIICAUONS xe srati trot dd ld dd rd ded seas Weer 45 6 2 Senna Metodo sentidas asada da dls eo oe ts Bs esa eee bee ene eee lace 46 6 3 Setting Items of Predefined Protocol Support Function 0 0 0 0 51 6 3 1 Communication type 0 0 ce eee eens 51 6 3 2 Packet elements set for Packet Setting 0 0 0 cc eee eee 51 6 4 Predefined Protocol Function Instructions 0 00 eee 52 6 4 1 Executing the predefined protocol SP ECPRTCL 0 00 ee ees 52 6 5 Execution Conditions of Predefined Protocol Function 000 eee eee 53 6 6 Operation Image and Data Structure of the Predefined Protocol Function 53 O Precaution 2 65 4 itn sd ee ee oe ee ee es eg A ea eS 54 12 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 1 Communication Using TCP 7 2 Communication Using UDP 7 3 Precautions for the Socket Communication Function 7 4 Socket Communication Function Instructions Establishing a connection SP SOCOPEN 0 0000s eee ee Di
140. e error occurs e 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 write processing this temporary file may remain If this occurs delete the temporary file e Before writing or deleting data to the file register in the standard RAM set the CPU module to STOP e 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 e When writing a large file to the SD memory card set the CPU module to STOP If writing is performed in the RUN state a communication error may occur 5 Deleting files e The timing for deleting files must be determined by the user considering the overall system including the CPU module and programming tool e Files cannot be deleted if the SD memory card is write protected If attempted an error occurs 6 FTP password When you forgot the FTP password set the FTP parameters again by the following steps 1 Read out the 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 o to default values g Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt FTP Setting button 3 Set the FTP parameters again 4 Write
141. e of the SMTP server See e ac and symbols Password Set the password used to log in to the SMTP 1 to 64 one byte alphanumeric characters _ server and symbols 188 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION Item Description Settingrange Settingrange Default POP Server Name E E the POP server name of the receive 1 to 256 one byte alphanumeric destination characters and symbols Receive Set the IP address of the receive destination POP Mail IP Address server 0 0 0 1 to 223 255 255 254 Setting The IP address can be specified with decimal or 00 00 00 01 to DF FF FF FE hexadecimal numbers Set the port No used to control the POP server 1 to 65535 110 Up to 16 addresses each consisting of 1 to 256 one byte alphanumeric characters and symbols Set the e mail address of the external device to Send Mail Address Setting which e mail is to be sent Point The e mail addresses that can be set by this function can be stored in the following e Used to send e mail to a small number of destinations at a time PC parameter e An e mail address can be registered directly in the send destination e mail address setting number Register in Send Mail Address Setting of PC parameters e Used to send e mail to multiple destinations at a time e Addresses can be dynamically registered or changed from the Register by executing the remote location by sending e mail stating the MC protocol SP MLOPEADR instruc
142. ea special function es se A a eng Frame oe ting Ot P e SW3 Automatic start up mode MELSEC QnA Operation Setting address 4 44 of buffer memory setting ON Ethernet Module Ethernet V2 0 e Turn on the bit 15 in the exchange l j e SW7 CPU exchange timing e Station No lt gt IP Information instruction area during STOP Al System of Station No lt gt IP address 103 674 of buffer setting ON Information Automatic memory 4 Response System poya Bumas L Z e Create an initial processing program and do the settings as shown below Set the IP address and the port No referring to 3 in this section MELSEC A Set UDP for the communication Set the following items Ethernet method e SW2 Data code setting OFF ae e Turn on the bit 15 in the exchange e SW7 CPU exchange timing Module instruction area during STOP setting ON 2 address 496 1F0 of buffer memory and the bits corresponding to the connection No used for bits O to 7 4 e Set Communication Data Code of Built in Ethernet Port Setting to Binary Code MELSEC FX3 e Set the following items for the Ethernet Block number of devices in the Open E 5 Setting window capter Protocol UDP Open system MC Protocol Set the IP address and the port No referring to 3 in this section 161 162 2 3 4 o The module has the setting by default to communicate with one device whose proto
143. ecified string However up to 255 characters can be used by specifying a device number Up to 32 characters da sd 1 2 1 Use or for the delimiter 2 The specified file name should include an extension The character strings that can be specified in 62 include one byte letters digits symbols kana characters and two byte characters Shift JIS code The method of device setting in 62 is as follows b15 me b8 b7 Len bO 62 ASCII code of 2nd character ASCII code of 1st character 62 1 ASCII code of 4th character ASCII code of 3rd character Up to 255 characters Fi E 62 2 ASCII code of 6th character ASCII code of 5th character ile name specified in 62 62 3 ASCII code of 8th character ASCII code of 7th character 62 128 00H ASCII code of 255th character t Indicates the end of a character string UOHONIJSU UONOUNS JOJSUBI 3H EOL e Wild cards can be used in file names in 62 lt Page 132 Section 10 2 2 1 The file path in 62 is the relative path from the home directory of the FTP server If only a file name is specified it shows directly under the home directory of the FTP server If specifying only a file name begin with a delimiter For details follow the FTP server specifications 143 b 63 transfer destination directory path e In63 specify the character string beginning from the drive No 2 or 4 through to the transfer destinati
144. ecify the destination e mail address used O E mail address that is set by the PLC parameter e 1 E mail address registered in CPU internal memory S Destination e mail 0 address specification Completion status is stored E Completion status e 0000p Completed normally e Other than 0000 Failed error code EWhen instruction is executed Device data length that can be stored in 0 to On e 1 or higher Device data length S7 2 Device data length When instruction is completed E mail address data length stored in 0 0 to O n e 1 or higher E mail address data length 1 NULL is added to the end of the character string 209 suo 9n4 su UOIOUN4 SAIBDOY PUBS pew 4 p s 3 Function e Stores the e mail address stored in the destination e mail address setting number in selected by 69 0 in the device specified by 0 and later If the e mail address is not registered in the destination e mail address setting number 004 is stored in 03 e When two or more registered e mail addresses are set in one destination setting number is automatically inserted as a delimiter between the addresses e 001 NULL is stored at the end of the obtained character string The result of the SP MLGETADR instruction can be checked with the completion device 02 0 and 63 1 e Completion device 023 0 Turns on at the END processing of scan in which the SP MLGETADR instruction is completed and turns off at the next E
145. ect Connection via HUB when you use HUB even if the equipments to be communicated is one a The load hangs to the line when Ethernet Port Direct IP Address 0 0 0 Connection is selected with other equipment connected with IP Input Format DEC HUB and it communicates and there is thing that influences the communication of other equipment C Host Name v IP address Comment CPU 01 Converter control 2 192 168 3 40 L26CPU PBT CPU 02 Erroe monitoring 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 Ethernet port on Network IP address of the CPU module Finds CPU Built in Ethernet 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 Ethernet port is checked in PLC parameter e CPU modules connected to cascaded hubs are also searched and a list of them is displayed e CPU modules connected via a router cannot be searched e Some CPU modules connected via wireless LAN may not be found since Ethernet communication may not be stable due to packet loss e 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 commu
146. ection to discard the data Then open a connection again and send the data again 19 7 4 Socket Communication Function Instructions 76 The socket communication function instructions are provided for the CPU module to use the socket communication function This section describes the socket communication function instructions The following is a list of the instructions area SP SOCOPEN Page 77 Section 7 4 1 SP SOCCLOSE Page 83 Section 7 4 2 SP SOCRCV Reads out received data in END processing Page 86 Section 7 4 3 S SOCRCVS Reads out received data upon instruction execution Page 90 Section 7 4 4 SP SOCSND Page 93 Section 7 4 5 SP SOCCINF Page 97 Section 7 4 6 SP SOCCSET Page 100 Section 7 4 7 communication SP SOCRMODE Page 102 Section 7 4 8 Point O For configuration of data communication using the socket communication function refer to Page 57 Section 7 1 Page 68 Section 7 2 O lf 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 O Do not execute any socket communication function instruction in an interrupt program O For error codes refer to the following LEIMELSEC Q L Programming Manual Common Instruction CHAPTER 7 SOCKET COMMUNICATION FUNCTION 7 4 1 Establishing a connection SP SOCOPEN Command SP SOCOPEN f m sP socopen uo
147. ed in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 e The header length specified in 10 exceeds the receive data length specified in 9 Error code 4100 e The receive data length message body or header length specified in 9 or S 10 is out of the specified range Error code 4100 e The device specified by 6 or 62 exceeds the range of the number of device points Error code 4101 e An instruction is used in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 5 Precautions e If an instruction is executed while another e mail send receive instruction is already being executed or while SM1659 MC protocol command being processed flag is on the instruction executed later performs no processing 6 Program example The sample program stores the e mail header message body which was received based on the control data stored in DO to D15 in D100 and later Querying a server MO SM1662 SM1659 es Specifying received mail type as H203 DO Receive only message body Js D2 Specifying to read the first e mail K1000 D9 Specifying data length of received mail Specifying header data length KO D10 of received mail D100 M100 Reading a received mail M100 M101 SET M20 Normal completion M101 Xb SET M21 Error completion 205 suo 9n4 su UOIOUN y SAIBDOY PUBS pew 4 p s 15 4 3 E mail a
148. efore lt MELMAIL gt or after lt MELMAIL gt is invalid Start end lt MELMAIL gt lt MELMAIL gt The data written between the header and footer is assumed as a command Command lt CMD gt lt CMD gt c Data format Command messages are compatible with the format supported by QnA compatible 3E frame of the MC protocol used in the CPU module Only application data needs to be specified no header for TCP IP or UDP IP is required The frame format is shown below Header Request Request Network CPU Request Sub header sialic destination destination Request saa Command Subcommand Hata ea module PC number i monitoring ata pa module I O module station data length i number timer number number 5000 ibi 004 03FF yy 00 Variable Variable Variable Fixed Variable value vals Fixed value Fixed value Fixed value value value value The applicable commands are as follows Type Operation Command Batch read 0401 Batch write 1401 Device memory Random read 0403 Test random write 1402 If a command other than the above such as monitor is received e mail of abnormal response is returned E Page 195 Section 15 3 1 3 For details of the data format refer to the following _LTIMELSEC Communication Protocol Reference Manual 192 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION d How to use Write a start header at the beginning of the message body Write an end header at the end of the message body
149. emote 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 e Remote RUN e 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 can 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 PLC parameter Enable online change FTP MC Protocol AAA Do not respond to search for CPU Built in Ethernet port on network 39 4 1 Setting Method Set the items on the Transfer Setup window O Connection Destination window gt Connection1 Transfer Setup Connection1 w 112 A Si PC side I F Dr a i nE ij A x 3 Serial CCIE Cont CC Link Ethernet
150. equence scan at the execution of the COM instruction are subjected to communications Therefore if you want to use exact data in the END processing for the program conduct following operations Transmission source For the program use a different device from the one specified for this function At the end of the program just before the END reflect the data of that device to the one specified for this function Transmission destination At the beginning of the program reflect the data of the device specified for this function to the other device and use that device for the program Incomplete data reception and timeout Because the load of Ethernet communication becomes heavy during the simple PLC communication if the other communication MELSOFT connection or MC protocol is simultaneously performed by using protocol UDP the data reception of UDP may not be completed resulting in a timeout error Therefore to perform other communications during the simple PLC communication the communication using TCP is recommended Also conduct following operations to reduce Ethernet communication load e Increase the execution interval of the simple PLC communication e Reduce the number of device points for communication Communication stop For a certain setting No if the device is waiting for the response of the destination device due to power off of the module cable disconnection or power off of the hub communications for the other setting
151. er 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 Ifthe 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 CHAPTER 2 COMMUNICATION SPECIFICATIONS TCP and UDP are defined as follows O TCP Transmission Control Protocol In communications among programmable controllers and networked devices this protocol establishes a connection between port numbers of the two devices to perform reliable data communications O 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 23 CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL AND GOT This chapter describes how to connect the CPU module to a programming tool or GOT CPU module CPU module
152. ernet module Item Instruction name Pairing open not required Automation of UDP and TCP Full Unpassive open Data sending method on TCP when the message size exceeds 1460 bytes TCP Maximum Segment Size Option transmission Connection information acquisition and setting methods Activation of an interrupt program in data receiving Host station port number Specification of alive check Ethernet address specification using the OPEN instruction Maximum communication data size 222 LJ71E71 100 ZP OPEN ZP CLOSE ZP BUFRCV Z BUFRCVS ZP BUFSND When sending or receiving data using one connection two connections are occupied by the paring open setting Select whether UDP and TCP Full Unpassive open is performed by the initial timing setting parameter automatically or by an instruction Select whether to enable TCP Maximum Segment Size Option transmission in the buffer memory Default Disable TCP Maximum Segment Size Option transmission Performed by reading from or writing to the buffer memory An interrupt program can be activated during data receiving The following numbers cannot be used as host station port number 13884 to 138Ay 5000 to 5002 Select whether to perform alive check of TCP IP and UDP IP using parameters Ethernet address MAC address of the external device can be specified using the ZP OPEN instruction 2046 bytes Built in Ethernet port
153. erver Page 141 Section 10 3 2 1 Wild card specification For an FTP command which can be used for multiple files specify the file name and extension using a wild card character or Symbol Description nx All file names each including an arbitrary character string including none from the position where targeted is specified are All file names each including an arbitrary character excluding none at the position where is specified are targeted 2 can be used multiple times The following specification methods result in an error e Two or more asterisks are used in the file name before the period or extension Example abc csv e and are both used in the file name before the period or extension Example ab csv The number of files that can be transferred with the wild card specification is determined by the total size of the file names of the specified files Specified files can be transferred when the number of these files and the total size of the file names satisfy the following expression If a file transfer function instruction is executed when the following expression is not satisfied the instruction is completed with an error N Total number of files that match the wild card specification Fi Total size of the file names that match the wild card specification M 9 bytes fixed Fi NM 1 lt 65536 Point O Ifan error occurs in sending or receiving a file included i
154. es CHAPTER 11 REMOTE PASSWORD 11 1 Communication Using Remote Password 11 2 Remote Password Setting 13 14 TES lt PFECAUNONS tE Se ee 11 4 Detection of Unauthorized Access and Actions CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 22h Seting MCINOG oe lutcteecybyt ced pee ele eee et as tite ud wee 12 2 Program to Check Communications 00000 cece ee ees 12 PAG MO SUG ois Aha stint eves doin fe tear aver se oom tid ees eres mae etree aes ded 12 4 Errors Related to the Simple PLC Communication Function 129 Pre ca lO Su bc nia il we an de de a a bE ee ee ws CHAPTER 13 IP ADDRESS CHANGE FUNCTION 13 1 IP Address of the Built in Ethernet Port 2 00005 13 2 Howto Use the Function o0o oooooooonronaaeon ee 132 1 ANTE ODEFAMON arras Ga eke Pale vera OMe WA See da 132 2 CIGARODSKAUON ii A ee E 13 3 Checking the IP Address ici iaa daa 13 4 PreGallOns is ody ae o es o at oat Us dd CHAPTER 14 IP PACKET TRANSFER FUNCTION CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 15 1 EsmallSpecitca lOs aa ada 152 Seta Metod ce por ad aa 152 1 Parameter Setting esposito 15 2 2 Settings at programming a bere 19 37 Funcion Detal eraser dara pete eee 15 3 1 Function to read write device when e mail is received 15 3 2 Send destination e mail address edit functi0N ooo oooo 15 4 E mail Send Receive Function Instr
155. es connected through Ethernet using TCP or UDP Time setting function SNTP client Page 107 CHAPTER 8 e Automatic time setting of the CPU module can reduce the maintenance cost for time setting e 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 facilitating problem solving e Since the automatic time setting is enabled upon power on of the CPU module operations can be started based on accurate clock data File transfer function FTP server gt Page 110 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 File transfer function FTP client Page 128 CHAPTER 10 Each of the files stored in the CPU module can be read or written from the interfacing device with the FTP server function and a large amount of data can be easily transferred CHAPTER 1 OVERVIEW 9 Remote password Page 149 CHAPTER 11 Remote password setting can prevent unauthorized access from the outside and enhance the security of the system 10 Simple PLC communication function Page 155 CHAPTER 12 Device data can be communicated between the CPU modules connected with Ethernet cable without programming 11 IP packet transfer function Page 183 CHAPTER 14 Communications can be performed with a de
156. estination No 61 2 Destination e mail address e Specify the content Subject message body of the send e mail specified in 62 in ASCII code e The range of 62 is determined by 1 9 send data length and 61 10 Subject length e The Subject length specified in 6 10 is in word units Therefore when the Subject string specified in 62 is an odd number store 00 NULL in upper 8 bits of the end device number Ex Subject is abcde b15 b8 b7 bO 62 62H b 61H a 62 1 pees data length 2 OOn NULL 65m e 6 3 _ 2nd character y Tstcharacter in message body in message body 199 suo 9n4 su UOIOUN y SAIBDOY PUBS Ie u 3 p s 200 e The result of the SP MLSEND instruction can be checked with the completion device 0 0 and D 1 e Completion device D 0 Turns on at the END processing of scan in which the SP MLSEND instruction is completed and turns off at the next END processing e Completion device D 1 Turns on or off depending on the state in which the SP MLSEND instruction is completed State Description When completed Remains off normally Turns on at the END processing of scan in which the SP MLSEND instruction is completed and turns off at the next END When processing completed with ae pie When completed with an error an error code is stored in the completion status of Sd 1 Also when bit 7 of Sis on clock data is stored in Sd 12 to 6d 15 e The SP MLSEND instruct
157. et Built in Ethernet port QCPU Function Built in Ethernet port LCPU Basic model QCPU Ethernet module High Performance model QCPU Ethernet module MELSEC Q L Ethernet Module Process CPU Ethernet module Universal model QCPU Ethernet module Built in Ethernet port LCPU Ethernet module MELSEC QnA Ethernet Module QnACPU Ethernet module ACP U Ethernet module MELSOFT connection MC protocol A MELSEC A Ethernet High Performance model QCPU A mode Ethernet eee Module MELSEC FX3 Ethernet module colpeubie t wale 4 binary code Block Adapter FX3U C CPU Ethernet block communication FX3CPU Ethernet adapter 1 MELSEC FX3 Ethernet Block Adapter is compatible with only the CPU module with a serial number first five digits of 16042 or later poyan Bumas L Z 159 c Setting for each device for communications The settings vary depending on the device for communications O Setting required A Setting required if the password is set for destination device for communications X Setting not required Setting item Device for communications Remote IP Address Port No Password MELSEC QIL Built in Ethernet i Function MELSEC QnA Ethernet Module MELSEC A Ethernet Module MELSEC FX3 Ethernet x x o Block Adapter 4 Setting of the host station is required 2 For the MELSEC Q L Ethernet Module and MELSEC QnA Ethernet Module settings of these items in Simple PLC Co
158. fault 0 e 0 No cancellation requested e 1 Cancellation requested set by users e 2 Cancellation completed set by the system 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 e Element No where the verification result did not match bO to b7 1 to 32 FF Stored value Description Verification matched Element No where the verification result did not match Verification not performed e The cause of mismatch verification result code b8 to b15 Stored value 00 Oly 104 114 124 304 FF 90 Normal Description Cause The total packet size of receive data is smaller than that set in protocol Insufficient receive data Data not matched data The receive data do not match the value set in protocol data ASCII Binary conversion When ASCII Hexadecimal is set in Code Type data not in ASCII code error Data length error are received The received Length value exceeds 2046 bytes The Length value received from the external device does not match the Data length size error actual length of received data Verification not performed CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 6 3 Setting Items of Predefined Protocol Support Function 6 3 1 Communicatio
159. file stored in the standard RAM xample j quote change 3 MAINSEQ1 QDR When changing the attribute of a file stored in the standard RAM Example 2 quote change 3 MAINSEQ1 QDR r Specifies the remote password set in the CPU module and unlocks the password quote password unlock remote password e Remote password Specify the remote password set in parameter of the CPU module The following is displayed as the execution result when the processing completes Specification ee a i 200 Command Okey The following is displayed if the remote passwords do not match 556 Password Error password The following is displayed if another command is requested before the remote password is unlock unlocked 555 Password Locked When specifying a remote password 1234 Example quote password unlock 1234 e If the FTP communication port is specified as a remote password check target when logging in the password is locked e By executing this command before various FTP operations the password is unlocked allowing file operations of the CPU module e If the FTP communication port is not specified as a remote password check target Unlock processing will be completed if the remote password is unlocked SPUBEWUIWOD d13 16 Note 1 Use this command only when the FTP communication port is specified as a remote password check target 123 Locks the remote password set in the CPU module quote password lock Specification The following is disp
160. fixed at 65535ms 2 When the destination device for communications is MELSEC A Ethernet Module MELSEC FX3 Ethernet Block Adapter the value is fixed at 0 Ex Error detection timing when 2 is set for Communication Retry Count Communication Communication Communication error at the error at the error at the previous time previous time previous time L Retry of Retry of l communication communication l l Interval 4 e first time second time Error detection Communication Communication y 4 Communication time out period time out period time out period Point The error is detected if the destination device does not respond or communications fail by when the following time has passed Communication Retry Count 1 x Communication Time out Time a Precautions for retry of communication e Communications at a specified execution interval when Fixed is set for Communication Setting or communications according to the on status of Request Contact when On Request is set for Communication Setting are ignored during retry of communication because that period is regarded as Communication Time out Time e During retry of communication the data at the time of communication error is sent to the destination device for writing of device data and the data at the time of the retry of communication is received for reading of device data 168 CHAPTER 12 SIMPLE PLC COMMUNICATION
161. 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 Turn off than on the IP address storage area IP address write request SM1292 sD1r293_ COA8H_ SD1293 COA8H Store the upper 2 bytes of the IP address Store the subnet mask pattern and default router IP address in the same way Writing to the IP address storage area flash ROM Execute writing to the IP address storage area flash ROM Confirm the write failed Write complete SM1293 is turned on Confirm the write completion Write complete SM1293 is turned on 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 When values in the IP address storage area flash ROM are valid 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 mask pattern Subnet mask pattern Default router IP address Default router IP address Storing the used IP address Store the IP address subnet
162. g However up to 255 characters can be used by specifying a device number Up to 246 characters can be set for the path excluding the file name Up to 32 characters T CPUDAtald OGO1ML OGO ESV me 17 t 1 2 3 4 1 Drive numbers that can be specified are 0 2 3 or 4 2 Use or for the delimiter of the drive number 3 Use or for the delimiters of directory and file names 4 The specified file name should include an extension The character strings that can be specified in 62 include one byte letters digits symbols kana characters and two byte characters Shift JIS code e The method of device setting in 2 is as follows b15 b8 b7 z bO 62 ASCII code of 2nd character ASCII code of 1st character 62 1 ASCII code of 4th character ASCII code of 3rd character Up to 255 characters See ie File name specified in 62 gt S A ASCII code of 6th character ASCII code of 5th character ASCII code of 8th character ASCII code of 7th character 62 1 28 00H ASCII code of 255th character to Indicates the end of a character string e Wild cards can be used in file names in 62 Page 132 Section 10 2 2 1 uonsonAsuy UONOUNS JOJSUBI 3H OL 137 138 b 63 transfer destination directory path e In63 specify the character string indicating the file transfer destination directory in the FTP server Any file
163. gainst electric shock For wiring methods refer to the MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Startup and Maintenance Precautions NWARNING O 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 before cleaning the module or retightening the terminal block screws Failure to do so may result in electric shock Startup and Maintenance Precautions NCAUTION O Before performing online operations especially program modification forced output and operating 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 Do not disassemble or modify the module Doing so may cause failure malfunction injury or a fire Use any radio communication device such as a cellular phone or PHS Personal Handy phone System more than 25cm away in all directions from the programmable controller Failure to do so may cause malfunction Shut off the external power supply all phases use
164. ghtmost MELSEC L series module The abbreviation for the MELSEC L series extension cable The abbreviation for the MELSEC L series extension module A GOT measuring instrument ID module bar code reader adjuster and other CPU modules connected with a CPU module for the data communication The abbreviation for File Transfer Protocol which is a standard network protocol used to exchange files The product name of the software package for the MELSEC programmable controllers Another term for the MELSEC L series CPU module The abbreviation for the MELSEC communication protocol a protocol to access a CPU module from a target device in the Ethernet or serial communication The abbreviation for the MELSEC L series power supply module A generic term for GX Works2 and GX Developer Secure Digital Memory Card which is a flash memory device The NZ1MEM 2GBSD NZ1MEM 4GBSD NZ1MEM 8GBSD NZ1MEM 16GBSD L1MEM 2GBSD and L1MEM 4GBSD are available The abbreviation for Simple Network Time Protocol which is a protocol for synchronizing the clocks of computer systems over a TCP IP based network 19 CHAPTER 1 OVERVIEW 20 The following describes the built in Ethernet function of the CPU module 1 2 3 4 5 6 7 8 Connection with programming tool and GOT Page 24 CHAPTER 3 e By using a hub the CPU module can be connected to multiple programming tools and GOTs Up to 16 external devices can be connected to a
165. gt PLC Parameter gt Built in Ethernet Port Setting L Parameter Setting PLC Name PLC System PLC File PLC RAS Boot File Program SFc Device 1 0 Assignment Built in Ethernet Port Setting Built in I O Function Setting Adapter Serial Setting IP Address Setting a Eth t Conf Set Open Setting in _Ethernet Conf M Ethernet Configuration window Input Format DEC Se gt E 3 1 E IP Address 192 168 3 39 FTP Client Setting Subnet Mask Pattern E mail Setting Default Router IP Address DNS Setting Communication Data Code G Binary Code Time Setting ASCII Code 2 n gt rie online change FTP MC Protocol Disable direct connection to MELSOFT Do not respond to search for CPU Built in Ethernet port on network Simple PLC Communication Setting IP packet transfer setting Simple PLC Communication Setting IP packet transfer setting Setifitisneeded Default Changed Cancel Print Window Print Window Preview Acknowledge XY Assignment Default Check L ma 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 3 Configure the FTP settings Built in Ethernet Port FTP Parameter Setting FTF Parameters FTP Login Mame Password Current Mer Command Input 1600 500ms Monitoring Timer 1 32767 3 DeFault Chec
166. h of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is used in a CPU module with a serial number first five digits of 16112 or earlier Error code 4002 e A device which cannot be specified is specified Error code 4004 e The device specified by 6 or exceeds the range of the number of device points Error code 4101 62 is other than 1 to 16 Error code 4101 5 Program example This sample program stores the control data in D100 and D101 and adds the e mail address of D200 to destination number 10 Mo Specifying operation Mou RO eee type as Register Writing e mail address to be registered Registering the address to Destination No 10 SMOVP abc 123 D200 SP MLOPEADR U0 D100 K10 D200 M100 M100 M101 SET Y100 Normal completion M101 q A Amma ET Y200 Error completion 208 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 15 4 4 E mail address acquisition SP MLGETADR Command SP MLGETADR oe on 9 EEE ICO INCINEE ER e e ACI E po pomp ot P ja a Se gt 1 File registers set for each local device or program cannot be used 1 Setting data Start number of the device which turns on for one scan upon completion of the instruction System Bit OHONO 62 1 also turns on when failed 2 Control data i n Setting Device Description Set by range Sp
167. han the receive data length 9 specified by the control data of the SP MLRECV is received the data of the receive data length is stored and the remaining data is ignored suo 9n4 su UONOUN y SAIBDOY PUBS pew 4 p s e The header string of the header message body stored in dis an odd number 00 NULL is stored in the upper 8 bits of the end device number When the header is abcde b15 z b8 b7 z bO 0 62H b 61H a 67 1 64H d 63H c Header data length 0 2 OOH NULL 65H e 67 3 _ 2nd character 1st character in message body in message body e When the received mail is an MC protocol command mail SM1659 MC protocol command being processed flag turns on It turns off during the END processing where the return mail is sent after MC protocol command processing 203 204 e If the SP MLRECV instruction is executed while SM1662 received mail presence flag is off the instruction is completed with an error e When the received mail has an attachment the attachment is not received but only the message body is received e When MC protocol command mail is faulty or the MC protocol command is completed with an error SM1660 e mail function MC protocol command error flag turns on and an error code is stored in SD1660 e mail function MC protocol command error code e The result of the SP MLRECV instruction can be checked with the completion device 63 0 and 03 1 Completion device 63 0 Turns
168. he next file transfer to the same file is performed This is applicable when Overwrite all or Overwrite only updated file is selected in the file overwrite specification Point Suppose Take measures against power off is specified and the same file as the transfer target file exists in the transfer destination If the size of free space in the transfer destination is smaller than the size of the transfer file temporary file and error occurs even when Overwrite all or Overwrite only updated file is specified in the file overwrite setting Special relay and special register The following table lists the special relay and special register used with this function For details refer to the following LA MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection This relay turns on when the connection with the FTP server is established SM1298 FTP client connection status The relay turns off when the connection with the FTP server is cut off disconnection This register stores the total number of files to be processed by the file transfer Total number of files to be SD1256 function FTP client The data is stored at the start of the file transfer END processed processing This register stores the number of files processed by the file transfer function FTP lient SD1257 Number of files processed erent The data is cleared to 0 at the start of the transfer processing The data is incremented by one
169. he protocol corresponding to each connected device When using the predefined protocol function check the versions of the CPU module and GX Works2 Page 215 Appendix 3 3 Executing protocols Execute protocols by dedicated instructions One dedicated instruction can execute multiple protocols 44 CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 6 1 Specifications The following table lists the specifications Item Description Protocol setting data Up to 256 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 co Size as a sum of all packets suoneoyoads 9 45 6 2 Setting Method 46 The setting required for using the predefined protocol function is described below 1 Open the Predefined Protocol Support Function window DO Tool gt Predefined Protocol Support Function gt Built in Ethernet 2 Create a new file i File Edit Module Read Write Tool Debugging Support Function Window DIGAS l O File gt New gt Add aa Communication Type Packet Name 1 ea A Protocol in Predefined Protocol Library Editable Protocol Protocol Line Send Packet Line Receive Packet Line EE Recei
170. her M5002 M5003 D400 to D404 D450 and D451 D460 to D464 Application Send direction SP SOCSND instruction control data SP SOCSND instruction completion device Send data length and send data 6 bytes of 124 344 56y 784 9Ay and BC Normal send indication Send error indication SP SOCRCV instruction control data SP SOCRCV instruction completion device Open completion signal Receive state signal Connection state signal Target change direction Receive data length and receive data Normal receive indication Receive error indication SP SOCCSET instruction control data SP SOCCINF instruction control data SP SOCCINF instruction connection information 69 dan 6buisn uonesiunwwoy ZZ 70 c Sample program lt lt Target changing gt gt M3001 SD1282 0 I DMOVP HOA6155DE D402 MOVP H2001 D404 SP SOCCSET U0 K1 D400 lt lt Data sending gt gt M3000 SD1282 0 SD1288 A MH HA MOVP K6 D300 MOVP H3412 D301 H7856 D302 HOBC9A D303 D300 M300 M300 M301 SET M3002 M301 J 2222222222 SET M3003 lt lt Data receiving gt gt SD1282 0 SD1286 0 M500 US i SP SOCCINF UO K1 D450 D460 SP SOCRCV UO K1 D5000 D500 M500 M500 M501 SET M5002 M501 J SET M5003 4 2 END 1 Setting target IP address Setting target port No Changing setting of Connection No 1 Setting send data length Setting send data Sending data to Connection No 1 Normal completion Err
171. hernet Conf Iv Set Open Setting in 3 Ethernet Configuration window Input Format DEC Y FTP Setting IP Address 192 168 3 39 FTP Client Setting Subnet Mask Pattern E mail Setting Default Router IP Address DNS Setting Communication Data Code Binary Time Setting C ASCII Code 2 gt F ab onine change FTP MC Protocol Disable direct connection to MELSOFT I Donotrespond to search for CPU Built in Ethernet port on network Simple PLC Communication Setting IP packet transfer setting Simple PLC Communication Setting IP packet transfer setting Setifitis needed Default Changed Print Window Print Window Preview Acknowledge XY Assignment Default Check i 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 S 37 3 Set connections used for MC protocol communication kT Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button F General al Ethernet Modu ule No bal Ge ction T E Laser Displacement Sensor Module List e ces Ethernet A Favo IP isc i Sa rota Site due ao eral Socket wwe Module 4s eral Socket Active Module pon
172. ing data and data type Description Connection number Setting range 1 to 16 Start number of the device from which control data are stored Start number of the device which tums on for one scan upon completion of the instruction 1 also tums on when failed Descriptions of control data if any x Completion status is stored Completion 0000n Completed Other than 0000 Failed Error code Detailed descriptions of th e n stru ctio n This instruction 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 Turns on in the END processing of a scan after completion of the SP SOCCLOSE instruction and tums off in the next END processing Completion device 1 Turns on or off according to the result of the SP SOCCLOSE instruction Tums on in the END processing of a scan after completion of the SP SOCCLOSE instruction and turns off When failed in the next END processing Conditions for the error and A detection of an operation error tums on the Error flag SM0 and a corresponding error code is stored in SDO error codes de For the errors not described in The connection number specified for is other than 1 to 16 this manual refer to the following i Error code 4101 MELSEC Q L Prog ramming The device numbers specified for amp and exceed the devi
173. ing port numbers because these numbers are used by the system Port number 13884 5000 13894 5001 138A 5002 138B 5003 to 138D 5005 138E 5006 138F y 5007 13904 5008 13914 5009 Application For future extension For Q series Ethernet modules this port number is used for Auto Open UDP Port For future extension For Q series Ethernet modules this port number is used for over UDP IP and Ethernet module For future extension For Q series Ethernet modules this port number is used for over TCP IP and Ethernet module For future extension MELSOFT communication port over UDP IP and CPU module MELSOFT communication port over TCP IP and CPU module MELSOFT direct connection port over CPU module For future extension APPENDICES APPENDIX Appendix 3 Added and Changed Functions The following table shows the built in Ethernet function which is changed or added to the CPU module and GX Works2 as well as the serial number of the CPU module and the version of GX Works 2 that support the function Serial No first 5 digits Added function GX Works2 version Reference of CPU module Simple PLC icati ae POEs neat 13042 or later 1 62Q or later Page 155 CHAPTER 12 IP packet transfer function 14112 or later 1 98C or later Page 183 CHAPTER 14 IP packet address change function 15102 or later a Page 173 CHAPTER 13 Predefined protocol function 15102 or later 1 501X or later Page 44
174. ing the Setting Close with Reflecting the Setting Detect Now Ethernet Selection Find Module My Favo 4 gt Ba Else IP Address Port Mo Input Format DEC E General Ethernet Module f Ne Model Name Protocol de de fe neral al TP Address Port No MAC Address Host Name IP Address Port No ff General MELSOFT Connect tion T y ON Host Station 192 168 3 39 gt Er ES General MC Protocol Module 1 General Socket Active Module Ti 192 168 3 39 a General Socket UDP Module Ly General Socket Active Module EJ General Socket Unpassive Mock 5 General Socket Fullpassive Mod El Ethernet Device COGNEX PLC Sensor Device lo Output x IP Address and Port No will be displayed by the selected Format Please enter the value according to the selected number coc e For the Ethernet Conf drag and drop the General Socket Active Module from Module List to the left side on the window Set port numbers and IP address as mentioned below Item Description 4096 Setting range 1 to 4999 5010 to 65534 PLC Port No Do not specify 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 IP Address 192 168 3 40 Setting range 0 0 0 1 to 223 255 255 254 Sensor Device 4096 Setting range 1 to 65534 08 CHAPTER 7 SOCKET COMMUNICATION FUNCTION e For the Open Setting Item Description Protocol TCP Open System Socket Communi
175. ing to the values specified for control data 62 2 to 62 9 Completion status is stored 00004 Completed normally Other than 0000y Failed Error code b15b14b13 to b11b10 b9 b8 b7 to bO Qe a o fan o0 1 Communication method protocol 0 TCP IP 1 UDP IP 2 Socket communication and predefined protocol procedure 1 Nonprocedural fixed 3 Predefined protocol setting 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 10 Unpassive open 11 Fullpassive open Specify the port number of the host station Specify the IP address of the target device Specify the port number of the target device Use prohibited Setting range Set by User System Refer to the left column User 14 to 13874 13924 to FFFE 14 to FFFFFFFFy FFFFFFFFy Simultaneous broadcast 14 to FFFFy FFFFy Simultaneous broadcast System oe 3 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 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 Because host station port numbers 0001 y to O3FFy are assigned for generally reserved port numbers WELL KNOWN PORT
176. instruction System The CPU module stores the execution result of the SP SOCSND instruction 93 SUOI JONIJSU UONOUN4 UOIEDIUNWWOD e490S Z 2 Control data sw swe Y Completion status is stored 0000 Completed normally System Other than 0000y Failed Error code 63 0 Send data length The length of send data is specified in bytes 1 to 2046 63 1 to 3 n 4 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 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 Completion 62 1 status User Send data Send data are specified 3 Function This instruction sends data set in 63 to the target device of the connection specified by 62 CPU module Send data length Send data Send data E External device SP SOCSND Sending data Send data The result of the SP SOCSND instruction can be checked with the completion device D 0 and 0 1 e 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
177. ion runtime operation is as follows ON SP MLSEND instruction OFF dea da ON Completion device off ON Completion device D 1 OFF i CPU module eer Mail server e Ifa e mail address setting number in which no e mail address is registered is specified the instruction is completed with an error CHAPTER 15 E MAIL SEND RECEIVE FUNCTION 4 Error Each of the following events results in an operation error and the error flag SMO turns on and an error code is stored in SDO e An instruction is used in a CPU module with a serial number the first five digits of which is 16112 or earlier Error code 4002 e The Subject length specified in 6 10 exceeds the send data length specified in 9 Error code 4100 e The send data length message body or Subject length specified in 9 6 10 is out of the specified range Error code 4100 e The device specified by amp or D exceeds the range of the number of device points Error code 4101 e The SP MLSEND instruction is executed with e mail function not set in the open method of the PC parameter Error code 4160 5 Precautions e If an instruction is executed while another e mail send receive instruction is already being executed or while SM1659 MC protocol command being processed flag is on the instruction executed later performs no processing e Set SD1660 e mail language information before instruction execution e When executing the SP MLSEND instr
178. is sent to the same port and before no response is returned the new request message will be discarded e 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 41 o w U 9 O a C O 5 n 42 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 Is TCP connection open Received data within the time specified by the monitoring timer value YES Check the received data size Sufficient receive data size Processing for the response message Was the entire received message processed YES Error handling Point For Ethernet communication TCP socket functions are used inside per
179. isplayed by the selected format Please enter the value according to the selected number a End Ne op a Item Description a lt Protocol Select TCP o a gt Open System Select E mail gt This function uses two connections If E mail is selected in the Open System the Open System of the next connection No is also changed to E mail Note that E mail cannot be selected in connection No 16 E mail can be set in Open System only in one connection 187 2 E mail setting Set the parameters of the e mail send receive function kT Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt E mail Setting PLC Parameter E mail Setting ES General Password E mail Address Check Received Mail Inquiry Interval 5 Minute Enable MC Protocol Command Mail Server Name Send Mail Setting SMTP Server Name IP Address DEC Port No 25 1 to 65535 V Authenticate Use SMTP Authentication Account Name Password Use POP before SMTP Receive Mail Setting POP Server Name CiPai ress bec INS Port No 110 1 to 65535 Send Mail Address Setting _ Cancel Cancel Item Description Settingrane Settingrane Default 1 to 64 byte alph h t Password Set the password for the mail server E A aia and symbols 1 to 2 byte alph E mail Address Set the e mail address of the CPU module Bree a PENE characters
180. ition If the FTP client file get instruction SP FTPGET instruction is used to get a large file the load of transfer processing will be increased and a communication error may result When transferring a large file make proper settings of the FTP server such as maximizing the connection time timeout time to prevent a communication error from occurring c Execution of file transfer function instruction during execution of another function If one of the following functions is active when the file transfer function instruction is executed the instruction will be completed with an error e Project data batch save load function iQ Sensor Solution function data backup restoration d Execution of another function during execution of file transfer function instruction If one of the following functions is executed during execution of the file transfer function an error will result e CPU module change function with memory card e Project data batch save load function iQ Sensor Solution function data backup restoration 2 Precautions on operations from peripherals a File access If the file being accessed by this function is accessed by other peripherals the error processing corresponding to the relevant peripheral may occur Do not allow peripherals to access the relevant file while SM721 file accessing flag is on If the error corresponding to the peripheral does not occur during execution of the FTP client file sen
181. k Cancel Item Description FTP Select Use Login Name Set a log in name used for file transfer login request from an external device The default value is MELSEC Set an FTP password used for file transfer request from an external device To change the password enter both the Password E current password and a new password for confirmation The default value is MELSEC 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 Command Input Monitoring Timer 111 UONEDIUNWWOD q JO Bunjas 6 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 Start the FTP client ftp lt ret gt Login to the CPU module open CPU module s IP address lt ret gt Is the FTP communication port subject to remote password check NO YES Unlock the remote quote password unlock password remote password lt ret gt Is file transfer YES completed NO Write files YES NO S TT to the FTP
182. l SM1299 gt lt 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 2004 An error occurred during clearing Clearing cannot be performed since the following functions are being executed 3004 e Online program change e Copy program memory data into ROM e Write to PLC flash ROM 400 Clearing is started during write processing execution 179 UOIOUN 3U SN 01 MOH ZEL 4 Program example The following shows a program example of clearing the IP address storage area flash ROM a Devices used in programs M200 Normal clear completion indication SM1295 Abnormal clear completion indication SM1296 IP address storage area clear error factor SM1297 Clear error factor display b Sample program M200 SM1295 _ _ A _ _ mE A SE SM1295 Clear start SM1295 SMI296 SMi297 e SET M201 Normal completion indication SM1297 SET M202 Error completion indication MOV SD1299 D200 Error cause read RST SM1295 Clear complete 180 CHAPTER 13 IP ADDRESS CHANGE FUNCTION 13 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 on the Ethernet diagnostics refer
183. l Hexadecimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Hexadecimal 4 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 2A or a space ASCII code 204 after the character 2 For the LO2CPU and LO2CPU P devices of DX DY400 or later number cannot be used Use X Y devices to access devices of X Y400 or later For the LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT and L26CPU PBT devices of DX DY1000 or later number cannot be used Use X Y devices to access devices of X Y 1000 or later 40 9 3 1 2 3 4 5 CHAPTER 5 MC PROTOCOL COMMUNICATION Precautions Number of devices Only the external devices set in Ethernet Conf or Open Setting can be connected concurrently using MC protocol O Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button Data communication frame The QnA compatible 3E frames only are applicable to CPU modules Access range e Only the connected CPU module can be accessed Accessing another module will cause an error e Accessing another station on a network such as CC Link is not allowed via the connected CPU module When UDP is selected for Protocol e If anew request message is sent to a UDP port after the previous request message
184. l RUN the operating status of the CPU module cannot be changed from STOP PAUSE to RUN if the status has been set by a different device e 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 setting Initial Device value setting on the PLC File tab Displays the operating status of the CPU module Function This command is used to check the operating status of the CPU module when transferring files to the CPU module quote status Note status One of the following is displayed as the execution result when the processing completes Specification successfully format e When the CPU module is in RUN state RUN e When the CPU module is in STOP state STOP e When the CPU module is in PAUSE state PAUSE Sets the CPU module to the STOP state remote STOP quote stop Specification The following message is displayed as the execution result when the processing completes stop format successfully 200 Command successful TR Before writing data to the program memory set the CPU module to the STOP state using this command 124 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER Transfers data in the program cache memory to the program memory quote pm write Specification The following message is displayed as the execution result when the processing completes pm write format
185. l setting method refer to the following LAGX Works2 Version 1 Operating Manual Intelligent Function Module 49 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 offset 0 1 2 to 16 17 18 1 Protocol execution status Received data verification result received packet No 1 Received data verification result received packet No 2 to 16 Number of protocol executions Protocol cancellation specification Description The execution status of the predefined protocol function is stored Default 0 e 0 Not executed e 1 Waiting for data to be sent e 2 Data being sent e 3 Waiting for data to be received e 5 Execution completed The verification result of received packet No 1 is stored Default 0 E Page 50 Section 6 2 1 a e bO to b7 Element No where the verification result did not match e b8 to b15 The cause of mismatch verification result code The bit configuration is the same as the received packet No 1 The number of protocol executions is stored Default 0 e 0 No execution e 1 to 65535 Number of executions The value remains the same after 65535 The protocol cancellation request status is stored De
186. lay 4 Set as follows Ex 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 SM1292 N BIOW D100 SD1292 K12 IP address is set to SD1292 to 1297 SET SM1292 Write start SM1292 SM1293 SM1294 SET M101 Normal completion indication SM1294 SET M102 Error completion indication MOV D1298 D100 Error cause read RST SM1292 Write complete 177 UOIOUN 3U 3SN 0 MOH ZEL 13 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 Clear complete SM1296 is on Confirm the clear failed Clear complete SM1296 is on Clear error SM1297 is off D1292 to SD1297 are cleared Clear error SM1297 is on 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 add
187. layed as the execution result when the processing completes password lock format successfully 200 Command Okey When locking the remote password Example quote password lock 2 Use this command only when the FTP communication port is specified as a remote password check target Function Sets the CPU module to the RUN state remote RUN At this time device memory clear can be specified quote run mode clear mode e Mode Specify whether to forcibly execute remote RUN or not 0 Normal RUN default 1 Forced RUN e Specify the CPU module device memory clear initialization processing performed when Specification the operation starts by executing remote RUN format 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 the execution result when the processing completes successfully 200 Command successful run aia When executing remote RUN with Normal RUN and Do not clear device specified i quote run When executing remote RUN with Forced RUN and Do not clear device specified Example 2 quote run 1 When executing remote RUN with Forced RUN and Clear other than the latch range Example 3 specified quote run 1 1 e Forced RUN should 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 Norma
188. le transfer is not performed e If the time stamp is the same or the time stamp of the transfer destination is older File transfer is performed Overwritten Overwrite only updated file Point Time stamp of transfer file The time stamp of the transfer file may not be obtained depending on the FTP server Be careful in this case the transfer file is always overwritten even when Overwrite only updated file is specified in the file overwrite setting CPU module FTP client time and FTP server time Execute the time setting function SNTP client to match the CPU module FTP client time and FTP server time If the time is inconsistent time stamps cannot be compared correctly even if Overwrite only updated file is selected in the file overwrite setting O SD1256 number of files to be processed and SD1257 number of files processed completely The total number of files to be processed is stored in SD1256 and the number of files which have been processed is stored in SD1257 However while Overwrite only updated file is selected in the file overwrite setting the number of files which have been judged as not targets for file transfer is included in SD1256 and SD1257 poyan Bues z 01 133 4 Specification of measures in case of power off 5 134 Specify whether to take measures against power off during file transfer If the CPU module is powered off or reset during file transfer while the same file exists in the
189. lected a value must be set Setting range 1 to 65534 63 64 e For the Open Setting Item Description Protocol TCP Open System Socket Communication TCP connection method Unpassive Host Station Port No 1000p Setting range 00014 to 13874 13924 to FFFEy 1 to 4999 5010 to 65534 Destination IP Address Blank Setting range 0 0 0 1 to 223 255 255 254 Destination Port No Blank Setting range 0001 y to FFFEy 1 to 65534 4 When Fullpassive is selected for TCP Connection a value must be set 2 Do not specify 13881 to 13914 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 CHAPTER 7 SOCKET COMMUNICATION FUNCTION b Devices used in programs The following table lists the device numbers and applications used in the sample program Device number M3000 D3000 and D3001 M300 and M301 D300 to D303 M3002 M3003 D400 to D403 SD1282 SD1286 D5000 and D5001 M500 and M501 D500 and higher M5002 M5003 D6000 and D6001 D6010 to D6014 Application Send direction SP SOCSND instruction control data SP SOCSND instruction completion device Send data length and send data 6 bytes of 124 344 56y 784 9Ay and BC Normal send indication Send error indication SP SOCRMODE instruction control data Open completion signal Receive state signal SP SOCRCV instruction control data SP SOCRCV instruction completion device Receive data length and receive data Normal recei
190. letion M101 Pb SET M151 Error completion D1010 END 140 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 10 3 2 FTP client file acquisition SP FTPGET Command SAME Internal device JO O Constant el Ll J EE es popop 2 oa poor 1 File registers set for each local device or program cannot be used 1 Setting data Start number of the device from which control data are stored User system Device name String data of the transfer source file path or start number of the device User Character string in which string data is stored String data of the transfer source directory path or start number of the Bu i User Character string device in which string data is stored Start number of the device which turns on for one scan upon completion of the instruction System Bit O 8 0O D also turns on when the instruction is completed with an error UOlONIJSU UONOUNS JOJSUBI 3H SOL 141 142 2 Control data Device 6i 0 D ee Setting Description range b15 vee b4 b3 b2 b1 0 ro 1 File overwrite setting Specify the operation to be performed if a file with the same name exists in the transfer destination 0000 to Execution type e 00 j yp 00 Do not overwrite 000A e 01 Overwrite all e 10 Overwrite only updated file 2 Specification of measures in case of power off Specify whether to take measures against power off e
191. letion device Completion device 02 1 O Data pen transmission Data read processing processing processing ON OFF END END END processing processing processing ON i OFF i l JA instruction execution sE i 1 scan En i OFF ad i Abnormal termination el po e A OFF 0 v read ACK processing TCP only i uondagal ejeq 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 connection number specified for 9 is other than 1 to 16 Error code 4101 e The received data size exceeds the size of the receive data storage device Error code 4101 e The device numbers specified for 62 and exceed the device point range Error code 4101 e An invalid device is specified Error code 4004 5 Program example When M5000 is turned on data received from the connected device are read out e Devices used Device number Application D1282 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 e Program Maopo SOTO SOTO MP PSOCROV uo KI D5000 D500 M500 data of Connection M500 M501 Mi SET M502 Normal completion M501 A SET M503 Error completion END Point To avoid receiving large amounts
192. log in to the FTP 1 to 32 one byte alphanumeric Login Name server characters and symbols Set the password used to log in to the FTP 1 to 32 one byte alphanumeric Password server characters and symbols e PORT M Connection Method Set the FTP server connection method E oe PORT Mode e RASV Mode Timeout Set the FTP server timeout time 30 to 300 seconds 30 seconds Set the port No used to control the FTP Port No a a ia 1 to 65535 21 server 3 DNS setting Set the IP address of the DNS server poya Bues z 01 Xa Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt DNS Setting Built in Ethernet Port DNS Setting DNS Setting Input Format DEC z DNS Server Address _ DNS Server 2 Address t the IP f DN 1 The IP Set the IP address of DNS server 1 The 0 0 0 1 to 223 255 255 254 DNS Server 1 Address address can be specified with decimal or 00 00 00 01 to DF FF FF FE hexadecimal numbers Set the IP address of DNS server 2 The IP DNS Server 2 Address address can be specified with decimal or hexadecimal numbers 0 0 0 1 to 223 255 255 254 00 00 00 01 to DF FF FF FE 131 10 2 2 Settings at programming This function executes the file transfer function using the following instructions Instruction Description Reference SP FTPPUT Sends the specified file to the FTP server Page 135 Section 10 3 1 SP FTPGET Obtains the specified file from the FTP s
193. meter o o IPARAM QPA Device comment o o QCD Programmable controller user data x x EN BIN S Source information o eae A O ae ate C30 4 Device data storage file xo ox 0 x DEVSTORE QST Module error log file O72 IERRLOG QIE Boot setting file AUTOEXEC QBT Remote password 00000000 QTM Latch data backup file LCHDATOO QBK Data logging setting file x x 7 x LOGCOM QLG Hi i LOG01 QLG x ECPRTCL QPT CPRTCL QPT MENUDEF QDF MONITOR Q01 e a ee o IN a Predefined protocol setting file Menu definition file Sa Y 3 98 119 SUB1 LOL Monitor sequence extension System file for project data batch save load Power failure backup for data logging x x x LOGDAT00 QBK information oF Pa pox fox e 4 Up to 4G bytes of data can be transferred in one file 2 The program memory standard RAM and standard ROM files of the CPU module can be transferred only from the FTP client to the FTP server 3 Any file name can be used 4 The file names and the number of files stored in source information varies depending on the type and version of the programming tool used in the label program 5 The file name stored differs depending on the module connected System file for the Q Sensor Solution function data backup restoration Backup data file for the Q Sensor Solution function data backup restoration 129 10 2 Setting Method 10 2 1 Parameter setting 1 Open setting Set the connection established with
194. mmunication Setting are required because these modules perform communication processing using the network No and station No O N es N X X x Router NS Data flow Ethernet al MD ee ee es ee Network No 1 NERO No 1 Network No 1 NoE NO 1 Station No 1 Station No 2 Station No 1 Station No 2 The settings must be configured in The settings must be configured in simple PLC communication setting simple PLC communication setting 160 CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 4 Settings for destination devices for communications If following devices are used as the destination devices for communications the settings of these devices are also required Destination Necessary setting device for DIP switch on the front of the TRT Parameter Programming tool communications module Set the following items for the number of devices in the Open MELSEC Q L Built in Ethernet Setting window e Protocol UDP e Open System MELSOFT Connection Function Set the following items from the Ethernet setting of Network Parameter e Send Frame Setting of MELSEC Q L Operation Setting Ethernet Module Ethernet V2 0 7 e Station No lt gt IP Information System of Station No lt gt IP Information Automatic Response System Set the following items from the Ethernet setting of Network e Create an initial processing program and turn off the bits 6 and 7 in the
195. mmunications f D1000 H1 were not performed with Perform processing for l On Request set aj nO communications M200 MO M100 1777 Processing when 7771 p erform processing for ci D1000 H2 communications were completed p g l i with On Request set successful communications ERA ep a E l I Processing if communications Perform processing for gt D1000 H4 fa oe pros l _ failed with On Request set 1 communication failure RR ee ee ee ee ee E D1000 H3 m O 169 12 3 Diagnostics The communication status of the simple PLC communication function can be checked in the Simple PLC Communication Status tab of the Ethernet Diagnostics window O Diagnostics gt Ethernet Diagnostics For details on Ethernet diagnostics refer to the following _LIGX Works2 Version 1 Operating Manual Common 12 4 Errors Related to the Simple PLC Communication 170 Function If an error related to this function occurs it is not regarded as a diagnostic error in the CPU module Instead the simple PLC communication status the corresponding error code is stored 1 Errors caused by the operation status of the CPU module or the operations of each function The errors are not stored in the history of Ethernet diagnostics Error NR code After the values in the Device setting of PLC parameter of the CPU module When the parameters where the simple PLC communication Power off and on or rese
196. mode 103 TCP socket functions o ooooooooo o 42 TCP standard receive mode 103 Time setting function o o oo 107 UPS ASES AA ES 23 Unlock processing o oooooooo oo o 150 WIAD AS SIV Cob a a dad 57 A A hornet a 122 Wildicald caries oa 118 225 S SOCRCVS S P SOCRDATA SP ECPRTCL SP FTPGET SP FTPPUT SP MLGETADR SP MLOPEADR SP MLRECV SP MLSEND SP SOCCINF SP SOCCLOSE SP SOCCSET SP SOCOPEN SP SOCRCV SP SOCRMODE SP SOCSND 226 INSTRUCTION INDEX REVISIONS The manual number is given on the bottom left of the back cover Print date January 2010 SH NA 080891ENG A First edition April 2010 SH NA 080891ENG B Section 8 5 SH NA 080891ENG C TERMS Chapter 2 Section 3 5 5 1 6 1 6 2 6 3 6 4 1 6 4 3 6 4 4 6 4 5 6 4 6 8 4 2 8 5 Appendix 2 Addition of LCPU models Model addition LO2CPU P L26CPU PBT Partial correction INTRODUCTION Chapter 1 Section 5 2 2 6 3 6 4 1 6 4 6 Appendix 1 Chapter 10 Section 10 1 10 2 10 3 10 4 10 5 Appendix 3 4 September 2011 SH NA 080891ENG E Partial correction SAFETY PRECAUTIONS RELEVANT MANUALS TERMS Chapter 2 Section 3 5 5 2 2 January 2011 July 2011 SH NA 080891ENG D May 2012 SH NA 080891ENG F Section 3 1 3 5 5 1 6 1 6 2 8 4 2 10 1 Addition of LCPU models and overall revision because of the model February 2013 SH NA 080891ENG G additio
197. module IP address bits the bits corresponding to 0 in the personal computer subnet mask are ds all on or all off g Ex CPU module IP address 64 64 255 255 7 Personal computer IP address l 64 64 1 1 Personal computer subnet mask 255 255 O 0 e 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 O 1 Personal computer subnet mask 255 O O 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 O The host address for each class is the part shown with 0 Class A 255 0 0 0 Class B 255 255 0 0 Class C 255 255 255 O 30 CHAPTER 5 mc 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 Monitoring 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 E Page 149 CHAPTER 11 CPU module El a EKON ia A 5 D ANI 2 O Hub oo 00
198. monitoring is performed on the connected device with the socket communication function add the time required for file access to the monitoring time 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 module 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 N Sufficient receive data size Processing for the received message Was the entire received message processed End Error handling 8 If an error error code 41A0 has occurred uonouny UOIEDIUNWWOD Jay9OS ay JO SUOINEeIald In TCP communications if an error error code 41A0 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 close the conn
199. munication with a CPU module that does not control the connected Ethernet module when multiple CPU system is configured O For an external device refer to Page 159 Section 12 1 3 b O Access via routers is also possible For the access set the subnet mask pattern and the default router IP address 5 Page 30 Section 3 4 155 12 1 Setting Method To use this function configure the settings in Simple PLC Communication Setting Up to 64 devices can be set in Simple PLC Communication Setting KO Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting Base Setting ES Simple PLC Communication Setting aa qa i manaman i El ES ed E E ES EZ ea ES ES E E EZ ES E E EZ E E Ea E ES E E E El E Ale fala KREMER ES _ 2z2 2 gt gt Extended Setting Simple PLC Communication Setting Lafele efe le lo Lafele lalola lo La fele lalola lo 156 CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 1 Communication Pattern Select the pattern from the following items Setting oe Description item Read Read the data of the specified destination device transmission source to the specified device of the host station transmission destination Write Write the data of the specified device of the host station transmission source to the specified destination device transmission destination T Read the data of the specified destination device transmis
200. n of the Ethernet module a aa Reads writes data in the CPU module on another station Communications using data link instructions ated x via Ethernet using data link instructions i Reads writes data in the CPU module in file units from to x File transfer FTP server function O 2 O an external device using FTP commands The CPU module becomes an FTP client and can execute File transfer FTP client function file transfer with the FTP server connected to the LAN using the file transfer function instruction 142 O gt O Sy x Communicates CPU module information a state of the CPU module or a device value with a personal computer or a programmable controller in remote locations through the Internet Web function Communicates data over multiple networks in the system where an Ethernet network and other networks co exist or where data are communicated over multiple Ethernet networks Communications relayed through CC Link IE Controller Network CC Link IE Field Network MELSECNET H and or MELSECNET 10 Communicates data via a router or gateway The router Router relay function relay function is not a function by which the Ethernet module works as a router Ethernet V2 0 Sends data using the frame format selected for the Send frame settin 3 IEEE802 3 Ethernet header of the data link layer O 218 APPENDICES APPENDIX Availability Item Description Built in Ethernet LJ71E71 100 port LCPU A
201. n LO6CPU L26CPU Addition of LCPU models Model addition LO6CPU P L26CPU P Partial correction INTRODUCTION TERMS Section 5 2 2 Appendix 1 4 SH NA 080891ENG Section 3 1 3 2 3 5 5 1 5 3 6 1 6 2 6 4 1 8 1 10 1 SH NA 080891ENG J Chapter 1 2 Section 7 4 1 9 2 9 3 Appendix 1 3 5 Chapter 6 12 SH NA 080891ENG K Section 7 4 1 May 2013 SH NA 080891ENG H October 2013 January 2014 February 2014 22 Print date June 2014 SH NA 080891ENG L Section 11 1 Appendix 3 September 2014 SH NA 080891ENG M Section 7 4 2 December 2014 SH NA 080891ENG N Chapter 1 2 Section 7 3 7 4 1 to 7 4 9 Chapter 9 Appendix 1 3 5 Chapter 10 15 Chapter 10 to 13 gt Chapter 11 to 14 NZ1MEM 2GBSD NZ1MEM 4GBSD NZ1MEM 8GBSD NZ1MEM 16GBSD Partial correction TERMS Section 7 4 4 9 2 10 2 March 2015 SH NA 080891ENG O Japanese manual version SH 080875 P 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 2010 MITSUBISHI ELECTRIC CORPORATION 228 WARRANTY Please confirm the following product warranty details before using this product 1 Gratis Warranty Term and Gratis Warranty Range If any faults or
202. n file path name When storing the names of files stored in the SD memory card into the S990901F LOG file mls 2 S990901F LOG e Always specify Y immediately after the source drive name e Always specify the source drive name when specifying the destination file path name FTP client side e If the destination file path name is not specified the file is stored with the file name determined by the FTP client s FTP application e 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 character 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 Specifies the host name or IP address and port number on the FTP server side and connects with the FTP server open host name port number open IP address port number Host name Host name set with Microsoft Windows hosts file e IP address IP address of the CPU module side e Port number Port number to be used When specifying the host name and connecting to the FTP server open HOST Whe
203. n specifying the IP address and connecting to the FTP server open 192 0 1 254 The IP address can be specified to create a connection when starting the FTP Writes a file to the CPU module SPURWWOD d 4 v6 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 e If the directory is not specified with 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 e When no destination file path name FTP server side is specified the file is stored in the memory in which current parameter files are stored Displays the current directory of the CPU module Oo Y is displayed as the execution result of the pwd command 121 122 Closes the connection with the FTP and quits the FTP Specification quit quit format Identical bye command Sends an FTP server subcommand CPU module dedicated subcommana Specification quote format quote quote password lock Noe Only the CPU module dedicated subcommands can be specified Refer to 2 in this section Changes a CPU module file name Specification rename old file path name new file path name format abbreviation ren When changing the name of a file stored i
204. n the standard RAM rename Example rename 3 MAINSEQ1 QDR 3 SEQ10LD QDR The following response code is displayed when the file is successfully renamed Note 350 Need more info 250 Rename successful Inputs the user name and password for the connected FTP server er user user name FTP password Specification ae e User name Login name set in parameter of the CPU module e FTP password FTP password set in parameter of the CPU module user When specifying the user name user CPU When specifying the user name and password user CPU CPU Example 1 Example 2 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 2 CPU module dedicated subcommands The following table lists the CPU module dedicated subcommands that are added to the quote command and sent Displays or changes the attribute of a file stored in the CPU module When displaying the file attribute quote change file path name Specification Either of the following is displayed as the execution result when the processing completes format 1 successfully e When the specified file is read only R e When the specified file is writable and readable W When changing the file attribute change Notte POPER quote change file path name attribute Specification i to Use either of the following to specify the attribute orma e To change it to a read only file r e To change it to a writable and readable file w E le 1 When displaying the attribute of a
205. n the target files during execution of the file transfer function instruction the transfer is stopped at the time of error occurrence Remaining files are not transferred If an error occurs during file transfer re execute the file transfer O l the same file name exists in the destination while Do not overwrite is specified in the file overwrite setting none of the specified files including the relevant file are transferred O A file whose file path exceeds 255 characters is not transferred even if it satisfies the wild card specification conditions 2 Automatic creation of folder If file transfer is executed by specifying a folder that does not exist as the transfer destination the specified folder is automatically created in the destination and files are transferred to the folder 132 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 3 File overwrite specification Specify the operation to be performed during file transfer if a file with the same name as one to be transferred exists in the transfer destination Specify it in the argument of the file transfer function instruction Specification item Description Do not overwrite The file with the same name is not transferred Completed with an error Overwrite all The relevant file in the destination is overwritten by the transferred file The time stamp of the destination file is compared with that of the transfer source e If the time stamp of the destination is later Fi
206. n type There are three protocol communication types Send Only Receive Only and Send amp Receive For details on the protocol communication types refer to the following LAMELSEC L Ethernet Interface Module User s Manual Basic 6 3 2 Packet elements set for Packet Setting 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 L TIMELSEC L Ethernet Interface Module User s Manual Basic The following are the differences e Read the E71 Ethernet interface module as the CPU module in the manual e Buffer memory cannot be set as a data storage area for non conversion variable uonoun 4 Woddns 090 014 pauyapejd JO Sw Huys 9 91 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 57 Section 7 1 SP SOCOPEN SP SOCOPEN instruction is used to establish a connection with Page 77 Section 7 4 1 the external device SP SOCCLOSE Closes a connec
207. n your region INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC L series programmable controllers This manual describes the functions of the CPU module and programming necessary for 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 MELSEC L series programmable controller to handle the product correctly When applying the program examples introduced in this manual to an actual system ensure the applicability and confirm that it will not cause system control problems Please make sure that the end users read this manual E Relevant CPU modules CPU module Model LO2CPU LO2CPU P LO6CPU LO6CPU P L26CPU L26CPU P L26CPU BT L26CPU PBT LCPU O This manual describes only the functions of CPU module using Ethernet communication For other CPU module functions refer to the following LA MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals LA MELSEC L CPU Module User s Manual Built In l O Function LA QnUDVCPU LCPU User s Manual Data Logging Function O The LO2SCPU and LO2SCPU P do not support the built in Ethernet function RELEVANT MANUALS 1 CPU module user s manual Manual name Description lt manual number model code gt Specifications of the CPU modules power supply modules display unit branch module extension module SD memory cards
208. nction Ne GX Developer and displays a list Collects time information from the time information server Time setting function SNTP client j MOANN on and sets time in the CPU module automatically O Connection which is used by user during communications using the MC protocol or the fixed buffer User connection Can be used as MELSOFT communication port of system connection by setting parameters Up to 16 connections can be used Auto open UDP port FTP transmission port MELSOFT transmission port 05 ox UDP IP System connection Connection which is used by the system only MELSOFT transmission port 05 087 TCP IP HTTP port MELSOFT direct connection Allows data communications between specified devices at Simple PLC communication function the specified timing just by doing simple settings from a programming tool 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 IP packet transfer function connected via a CC Link IE Field Network module e External devices on CC Link IE Field Network e External devices on the Ethernet network which are connected through the built in Ethernet ports 3 NPO N JOUJOUIF YUM UOSIIEdWOD suonesinoads q xipueddy Enables an external device to read write data from to the SLMP compatible device connected to the shared network Communications using SLMP with the Ethernet module
209. nction This instruction reads out received data of the connection specified in S from the Socket communication receive data area CPU module O Receive data 0 length Socket communication D receive data area D 2 Receive data Connection l No specified by S External device S ras Receiving Reading receive data D n Receive data The following figure shows the timing of reception processing with the S SOCRCVS instruction Data Open reception Data read processing processing processing S SOCRCVS instruction execution signal SD1286 n ON Open completion OFF signal SD1282 n END END processing processing Sequence program ON i Reception status OFF i S SOCRCVS instruction read processing ACK TCP only uo1 d 1 ejeq SUOIJONIJSU UONOUN4 UOIEDIUNWWOD 3920S p 91 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 connection number specified for is other than 1 to 16 Error code 4101 e The received data size exceeds the size of the receive data storage device Error code 4101 e The device number specified for exceeds the device point range Error code 4101 e 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
210. nd Port No will be displayed by the selected format Please enter the value according to the selected number coc e For the Ethernet Conf drag and drop the General Socket UDP Module from Module List to the left side on the window Set port numbers and IP address as mentioned below Item Description 4096 Setting range 1 to 4999 5010 to 65534 PLC Port No Do not specify 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 IP Address 192 168 3 40 Setting range 0 0 0 1 to 223 255 255 254 255 255 255 255 Sensor Device 4096 Setting range 1 to 65534 65535 e For the Open Setting Item Description Protocol UDP Open System Socket Communication TCP Connection Blank Host Station Port No 1000 Setting range 00014 to 13874 13924 to FFFEy 1 to 4999 5010 to 65534 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 00014 to FFFEy FFFF y 1 to 65534 65535 4 Do not specify 13884 to 13914 5000 to 5009 because these ports are used by the system Page 214 Appendix 2 68 CHAPTER 7 SOCKET COMMUNICATION FUNCTION b Devices used in programs The following table lists the device numbers and applications used in the sample program Device number M3000 D3000 and D3001 M300 and M301 D300 to D303 M3002 M3003 D5000 and D5001 M500 and M501 SD1282 SD1286 SD1288 M3001 D500 and hig
211. nging values of special relay and special register from GOT For details on the special relay and special register used for this function refer to the lists of the special relay and special register in the following LIMELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Check the version of the CPU module when using the IP address change function Page 215 Appendix 3 173 13 174 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 in 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 Ethemet port Built in Ethernet port setting IP address 192 168 3 39 IP address 192 168 3 39 Subnet mask pattern 25925325910 Subnet mask pattern 25925325910 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 Parameter file Built in Ethernet port setting IP address 192 168 3 39 A Subnet mask pattern 255 255 255 0 IP address 192 168 3 40 Default router IP address 192 168 3 254 Subnet mask pattern ADA 200 0 Default r
212. nication error e 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 e By selecting the item shown below in the Built in Ethernet Port Setting tab of PLC parameter the Find CPU 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 YIOMJON OU UO sa npoW Nda BulyoJess g e he not respond to search for CPU Built in Ethemet port on network 29 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 Corporate LAN ST AAA Va Control room Personal computer C U module 4 The following functions do not support the communication via routers Searching CPU modules on the network Simultaneous broadcast in socket communication For access via a router follow the instruction in the step 1 on Page 25 Section 3 1 to set the subnet mask pattern and the default router IP address in addition to the IP address kT Project window gt Parameter gt PLC Parameter gt B
213. nnection Model Name __Startay I MELSOFT Transmission Port TCP IP Ethernet Built in CPU Dt TT MELSOFT Transmission Port UDP IP FTP Transmission Port TCP IP V Direct Connection of MELSOFT V Regard as Error when Remote Password Mismatch Count Reaches Upper Limit Upper Limit of Mismatch 10 Count V Clear Mismatch Count when Remote Password Matches When the remote password is enabled write the parameter to the PLC M eCessaly 5 etting Nos etting f Already set and reset the PLC or turn off the power and turn on the power again Clear End Cancel End Cancel Password Setting Enter a remote password to be set for the CPU module Up to four characters Select a CPU model to enable the remote password for the l Model Name built in Ethernet port of the CPU module Ethernet Built in CPU Password Active Only one CPU model is selectable Module Setting a Click this to display the Remote Password Detail Setting Condition window Select one of them when the remote password is to be enabled for the built in Ethernet port Setting of an unused connection or MELSOFT connection is ignored User Connection A Connection 1 to 16 Select the checkboxes No MELSOFT Transmission Port TCP IP 2 appropriate to the target System MELSOFT Transmission Port UDP IP gt Select one of them when the remote password is to be connection Connection FTP Transmission Port TCP IP enable
214. nt 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 9 N U 9 O D O 5 D 109 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 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 ae Parameters Programs Storage files Data Ethernet The following operations can be performed between the connected device with the FTP client function and the CPU module 1 Reading files from the CPU module download The files in the CPU module can be stored in the connected device 2 Writing files to the CPU module upload The files stored in the connected device can be registered to the CPU module 3 Browsing the names of the files in the CPU module The files registered to the CPU module can be checked from the connected device Access via routers is also possible For the access set the subnet mask pattern and the default router IP address gt Page 30 Section 3 4 110 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 9 1 Setting for FTP Communication 1 Operation on the CPU module side KO Project window gt Parameter
215. odule Write the remote password to the CPU module from the Write to PLC window X Online 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 parameters 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 Remote password incorrect Enter again Cancel Remote password b When using MC protocol Use commands dedicated to MC protocol Page 39 Section 5 2 1 c When using the FTP function Use the password lock and password unlock commands Page 116 Section 9 4 1 d When using the simple PLC communication function Unlock the remote password in the Destination Setting List window of Simple PLC Communication Setting ap Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Simple PLC Communication Setting gt Destination Setting List Destination Setting List IP Address Port No Input Format Module Type IP Address Port No No Password Port No Pa MELSEC Q t Built in Ethernet Function v a sein a
216. ommands 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 Notifies the FTP server that the file will be transferred without conversion Function The return code and kanji codes are also not converted binary This command is set automatically in the CPU module Specification J binary abbreviation bin format Closes the connection with the FTP and quits the FTP Specification bye bye format Identical quit command Closes the connection with the FTP server close Specification close format Deletes a file stored in the CPU module Specification P d delete file path name T format delete E When deleting a file stored in the SD memory card O xample j delete 2AMAINSEQ1 USR 3 sed Similar 5 command Displays the file name date of creation and volume of files stored in the CPU module Specification j dir drive name format dir E i When displaying the detailed information of the files stored in the SD memory card xample d dir 24 Is command Reads a file from the CPU module Specification j get source file path name destination file path name format E ed When reading a file stored in the standard RAM and saving it under the same file name xample j get 3AMAINSEQ1 QDR get E le 2 When reading a file s
217. on directory Any file name in the transfer destination cannot be specified e Use one byte or for the delimiters of directory names The delimiter at the end of string can be omitted If the delimiter is omitted Y is assumed at the end e Up to 32 one byte characters can be used in the specified string However by specifying with a device number up to 247 characters up to 246 characters if the trailing delimiter is omitted can be set for the directory path The total number of characters of individual file name parts in 62 should not exceed 255 The characters that can be used are the same as 62 Up to 32 characters A eJ 1 2 3 4 1 Drive numbers that can be specified are 2 and 4 2 Use or for the delimiter of the drive number 3 Use Y or for the delimiters of directory names 4 The delimiter at the end of string can be omitted e If the same file exists in the transfer destination operation is performed according to the settings in bO and b1 of 69 0 If the same file exists in the transfer destination while Do not overwrite is specified the SP FTPGET instruction is completed with an error Point O Two byte characters of file name When a file whose file name contains a two byte character or two byte code character is transferred set the kanji code type of the FTP server to Shift JIS If the kanji code types do not match between the FTP server and client file names m
218. on 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 Ethernet Conf or Open Setting of parameters Establishing too many TCP connections from a personal computer may cause the following states depending on the application e Time before timeout error detection is increased e An unexpected timeout error 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 ad al U 9 O D O 5 D 5 MELSOFT connection over TCP or UDP For TCP or UDP communications with multiple MELSOFT devices set the same number of connections as that of the connected MELSOFT devices in PLC parameter Ea on ee I i 0000 pogo oooo l a l 1 I I
219. or completion 2 Obtaining information of target device Receiving data Normal completion Error completion 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 SOCCSET instruction 1 gt Page 100 Section 7 4 7 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 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 2 Simultaneous broadcast For simultaneous broadcast using UDP set the parameters as follows e Destination IP Address FF FF FF FF e Destination Port No FFFFy CPU module IP address xx xx xx xx Subnet mask 255 255 255 0 Ethernet Port No A CPU module to each port No N of all external devices External device 1 Fl IP address xx xx xX yy External device 2 IP address xx xx xX ZZ External device 3 IP address xx xx xx ww Destination IP Destination Port e Receiving Sending Address No Sends data from the host Receives only the data sent from the specified IP Other than FF FF FF F
220. ot performed Processing time by the number of Communication Number of communication points for one CPU module a EE settings unit ms pattern setting A ee ee 32 words for each Total 64 words 30 7 Read 64 words for each Total 128 words 31 0 256 words for each Total 512 words a 32 words for each Total 64 words 31 0 aati Write a 10 0 18 3 31 1 LO2CPU P 64 words for each Total 128 words 256 words for each Total 512 words am 32 words for each Total 64 words 48 6 Transfer 64 words for each Total 128 words 48 6 256 words for each Total 512 words e 32 words for each Total 64 words 30 7 Read 64 words for each Total 128 words 31 0 LOGCPU 256 words for each Total 512 words LO6CPU P 32 words for each Total 64 words 31 0 L26CPU P 64 words for each Total 128 words L26CPU BT 256 words for each Total 512 words TAPERE 32 words for each Total 64 words 48 6 Transfer 64 words for each Total 128 words 48 6 256 words for each Total 512 words ad Number of points for each device bit device and word device APPENDICES APPENDIX 2 Condition 2 e Communication Setting Fixed Interval e Destination device MELSEC Q L Built in Ethernet Function L26CPU BT e Sequence scan time host station 10ms the period before the execution of simple PLC communication function e Sequence scan time destination device 1ms The destina
221. outer IP address 192 168 3 254 IP address storage area flash ROM The IP address in the IP address eadeless 122108 20 storage area flash ROM is set Subnet mask pattern 255 255 255 0 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 sea IP add IP add 8D1293 SES aig 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 CHAPTER 13 IP ADDRESS CHANGE FUNCTION 1 3 2 How to Use the Function 13 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 flow Store the value to be changed in Example When storing the IP address 192 168 3 40 COA80328H to SD1292 to SD1297 SD1292 and SD1293 IP address 1 Convert the IP address to be changed
222. protection circuits and protective interlock circuits for conflicting operations such as forward reverse rotations or upper lower limit positioning must be configured external to the programmable controller Machine OPR Original Point Return of the positioning function is controlled by two kinds of data an OPR direction and an OPR speed Deceleration starts when the near point dog signal turns on If an incorrect OPR direction is set motion control may continue without deceleration To prevent machine damage caused by this configure an interlock circuit external to the programmable controller 3 When the CPU module detects an error during control by the positioning function the motion slows down and stops 4 When the programmable controller detects an abnormal condition it stops the operation and all outputs are e Turned off if the overcurrent or overvoltage protection of the power supply module is activated e Held or turned off according to the parameter setting if the self diagnostic function of the CPU module detects an error such as a watchdog timer error 5 All outputs may be turned on if an error occurs in a part such as an 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 General Safety Requirements in the MELSEC L CPU Module User s M
223. quest 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 e 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 occurs when the write operation is executed during the clear processing execution e 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 CHAPTER 14 IP PACKET TRANSFER FUNCTION CHAPTER 14 IP PACKET TRANSFER FUNCTION When using the IP packet transfer function check the versions of the CPU module and GX Works2 Page 215 Appendix 3 This 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 Field Network module e External devices on CC Link IE Field Network e External devices on the Ethernet network which are connected through the built in Ethernet ports Ethernet device source Network No 1 Ethernet
224. r Protocol TCP o0 Burwwepold au 104 pouinbay Bunjas ze 21 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 I F Detailed Setting of PLC Module Ethernet Port Direct Connection Connection via HUB Cancel Please select Connection via HUB when you use hub HUB even if the equipments to be communicated is one The load hangs to the line when Ethernet Port Direct IP Address 192 160 3 Connection is selected with other equipment connected with IP Input Format DEC hub HUB and it communicates and there is thing that influences the communication of other equipment Host Name 3 Set Other Station Setting Select an item appropriate to the operating environment CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL AND GOT 3 3 Searching CPU Modules on the Network In a configuration using a hub clicking _n cPuuitinethernet par enniework n 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 I F Detailed Setting of PLC Module PLC Mode LCPU 7 Ethernet Port Direct Connection f Connection via HUB gpu Please sel
225. r target file quote passwd wr write password One of the following is displayed as the execution result when the processing completes Specification format successfully e When setting a write password 200 Command successful e When displaying the write password 200 Write password is write password e When clearing the write password 200 Command successful e When displaying the write password with no password set 200 Write password is not set PASSWAANT Example 1 When setting a write password 1234 ABCDefgh i quote passwd wr 1234 ABCDefgh When displaying the write password that is currently set to FTP Example 2 quote passwd wr Exmes When clearing the write password that is currently set to FTP quote passwd wr c or quote passwd wr C e One write password can be set to FTP of the CPU module When the transfer target file is Nete changed set the write password of the target file again if a write password is preset to the new target file e When the CPU module is logged in the write password is initialized cleared Specification format SPUBEWIWOD d13 16 125 9 5 1 FTP clients 126 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 FTP operations are not possible from Microsoft Internet Explorer If attempted an error will occur in
226. 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 e SM1354 Predefined protocol ready turns off e If the protocol setting data is normal SM1354 turns on and SM1355 turns off e 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 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 LLIMELSEC L Ethernet Interface Module User s Manual Basic UOIJ9UNY 0DO0JOJJ P3UIJSPaJ1d JO SUONIPUO UOINISXA G 9 53 6 7 04 Precautions 1 Send receive packet 2 e 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 e When data is received using TCP separate data blocks that are sent successively may be combined at the receiving side Therefore handsh
227. rence of an error is set in 6 11 to 6415 2 Send data format Specify the format of the send data e 1 Binary data 3 Destination e mail address specification Specify the destination e mail address used e 0 E mail address that is set by the PC parameter e 1 E mail address registered in CPU internal memory Completion status is stored e 00004 Completed normally e Other than 0000 Failed error code Specify the external device to send e mail to with the destination e mail address setting number that is set by the PC parameter or in the CPU internal memory e 1 to 16 Destination external device setting number Use prohibited Specify the data length Subject message body of the e mail stored in 62 0 to 62 n Subject 0 to 373 Message body 1 to 4096 e 1 to 4469 E mail data length word Specify the data length of the Subject of the e mail stored in 62 0 to 62 n e O to 373 Subject data length word The valid invalid status of the clock data in 9 12 to 61 15 is stored e O Invalid e 1 Valid Upper 8 bits Month 01 y to 124 Lower 8 bits Two lower bits of year 00y to 99y Upper 8 bits Hour 00y to 234 Lower 8 bits Day 01 y to 31 y Upper 8 bits Second 004 to 594 Lower 8 bits Minute 00y to 594 Upper 8 bits Two upper bits of year 004 to 994 Lower 8 bits Day of the week 004 Sun to 06y Sat 4 Set parameters by observing the following Specify
228. ress 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 l default router IP address are stored in C CPU operation SD1260 to SD1265 C User operation 178 CHAPTER 13 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 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 END ae END eee ere N peeesgro eee Clear request ON SM1295 E O p l l Clear complete ON I l Turn off and then on the SM1296 O F F m 7 clear request SM1295 era ak l to turn off the system during l the END processing SM1297 OFF Clear error cause SM1299 gt lt 0 b Operations of special relay and special register when the operation of clearing the IP address storage area flash ROM failed SS failed END aT END _ eee Spe ain pecessng ee Clear request ON SM1295 OFF l l l Clear complete ON I d _ Turn off and then on the SM1296 OFF ____________ ____ clear request SM1295 Clear error ON i l 5M1297 oF _f I Clear error cause l
229. rlock circuit in the program to ensure that the entire system will always operate safely For other forms of control such as program modification or operating status change of a running programmable controller read the relevant manuals carefully and ensure that the operation is safe before proceeding Especially wnen 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 program and determine corrective actions to be taken between the external device and CPU module in case of a communication failure An absolute position restoration by the positioning function may turn off the servo on signal servo off for approximately 20ms and the motor may run unexpectedly If this causes a problem provide an electromagnetic brake to lock the motor during absolute position restoration Design Precautions CAUTION O 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 O During control of an inductive load such as a lamp heater or solenoid valve a large current approximately ten times greater than normal may flow when the output is turned from off to on Therefore use a module that has a sufficient cu
230. rmat Dec v FTP Setting 1 P P Address 192 168 3 393 FTP Client Setting Subnet Mask Pattern E mail Setting Default Router IP Address DNS Setting Communication Data Code oo Time Setting ASCII Code Enable online change FTP MC Protocol 7 Disable direct connection to MELSOFT T Do not respond to search for CPU Built in Ethernet port on network Simple PLC Communication Setting Simple PLC Communication Setting IP packet transfer seting IP packet transfer setting Setif itis needed Default Changed Print Window Print Window Preview Acknowledge XY Assignment Defaut chex fo Set the IP address of the CPU module 2 Set MELSOFT connection O Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Ethernet Conf or Open Setting button Fe Ethernet configuration Built in Ethernet Port Built in Ethernet Port Open Setting i Ethernet Configuration Edit view Close with Discarding the Setting Close with Reflecting the Setting Detect Now Module List x inane Ethernet Selection Find Module My Favo 4 PLC No Model Name Protocol ol TP Address Port No MAC Address Host Name IP Address aaa HE HE E HEHEHE HEE ada Host Station General MELSOFT Connection Module UDP General MELSOFT Connection Module TCP General MELSOFT Connection Module T
231. rrent 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 WARNING O 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 electric shock or cause the module to fail or malfunction Installation Precautions CAUTION Use the programmable controller in an environment that meets the general specifications in the MELSEC L CPU Module 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 interconnect modules engage the respective connectors and securely lock the module joint levers until they click Incorrect interconnection may cause malfunction failure or drop of the module Do not directly touch any conductive parts and electronic components of the module Doing so can cause malfunction or failure of the module Securely connect an extension cable to the connectors of a branch module and an extension module After connections check that the cable is inserted completely Poor contact may cause malfunction When using an SD memory card fully insert it into the SD memory card slot
232. sconnecting a connection SP SOCCLOSE 0 00 eee eee Reading out received data in the END processing SP SOCRCV 74 1 7 4 2 7 4 3 7 4 4 7 4 5 7 4 6 1 4 7 74 8 74 9 Reading out received data during instruction execution S SOCRCVS Sending data SP SOGCSND aia sti tines Sad as eee SA Reading out connection information SP SSOCCINF 005 Changing the target of a connection UDP IP SPSSOCCSET Changing the receive mode of a connection SP SOCRMODE Socket communication receive data read S P SOCRDATA CHAPTER 8 TIME SETTING FUNCTION SNTP CLIENT 8 1 Setting Method 8 2 Precautions CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 9 1 Setting for FTP Communication 9 2 Files That Can Be Transferred Using FTP 9 3 Files That Can Be Deleted Using FTP 9 4 FTP Commands 9 4 1 9 4 2 9 4 3 9 5 Precautions ListoreiP commands ua can Oe How to specify an FTP command o o oocococoo eens Details of FTP commands uri Shae wacked Oe oe oS owed Cee be Bee E CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 10 1 Transferrable Files 10 2 Setting Method 10 2 1 10 2 2 Settings at programming 10 3 File Transfer Function Instruction FTP client file transmission SP FTPPUT 0 00 00 0c eee eee 10 3 2 FTP client file acquisition SP FTPGET 10 3 1 10 4 Diagnostics 10 5 Precautions Parameter SONG sorces PRE end NA ae dot
233. 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 CHAPTER 7 SOCKET COMMUNICATION FUNCTION 3 Function This instruction reads out connection information specified in 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 connection number specified for 9 is other than 1 to 16 Error code 4101 e The device numbers specified for 62 and exceed the device point range Error code 4101 e An invalid device is specified Error code 4004 5 Program example When M5000 is turned on connection information of connection No 1 is read out e Devices used Device number Application D500 SP SOCSND instruction control data D5000 Storage location of connection information e Program M5000 Reading connection RH SP SOCCINF U0 K1 D500 D5000 information of Connection No 1 END SUOI JONIJSU UONOUN4 UOIEDIUNWWOD e490S p 99 1 4 7 Changing the target of a connection UDP IP SP SOCCSET Command SP SOCCSET f
234. simple PLC communication function can be checked in the Status of Each Connection tab in the Ethernet Diagnostics window O Diagnostics gt Ethernet Diagnostics For details on Ethernet diagnostics refer to the following LAGX Works2 Version 1 Operating Manual Common The connection number in which the states and errors of the connections used by this function are stored is the one with the smaller number of the two connections that are set in E mail in the open setting Port No C DEC HEX Change IP Address Display DEC HEX Target Module Setting Module No ist Module C IO Address 0000 CPU PLC No 1 Parameter Status Error History Status of Each Connection Connection Status Time Setting Status Simple PLC Communication Status a peas Ene A Status Count Status itor Stop Monitor PING Test sonsoubelq S S 211 APPENDICES Appendix 1 Operation Processing Time for Each Instruction The table below indicates the operation processing times required for the instructions introduced in this manual For details on the processing time refer to the following _LIMELSEC Q L Programming Manual Common Instruction Processing time us LO6CPU LO6CPU P LO2ZCPU LO2CPU P L26CPU L26CPU P L26CPU BT L26CPU PBT SP SOCOPEN 27 20 58 90 23 50 45 50 Fullpassive From the host CPU TCP From the
235. sion source and write it to another specified ransfer destination device transmission destination 4 The device data is not reflected in the CPU module where the parameters are set the CPU module that relays the data 2 Communication Setting Execution Interval ms Request Contact Select the communication timing from the following items Data are communicated between the devices at a specified l execution interval Fixed Execution o 10ms to 65535ms in increments Execution interval is set Interval of 1ms Data are communicated between the devices only when requested Data are communicated at the rising off to on of the device that a Request is specified as Request Contact The on off status of Request Contact Contact is confirmed in the END processing 1 Request Contact cannot be specified overlapped with the following devices Request Contact Device to Stop Fixed Interval Communication Execution Status Flag Device Source device when the host station is a transmission destination device Request Contact Device to Stop Fixed Interval Communication that is used for other setting No Execution Status Flag Device that is used for other setting No Source device when the host station is a transmission destination device which is used for other setting No Point O Actual time of execution interval may be longer than the value of the setting because the time is affected by the specified
236. sonal 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 CHAPTER 5 MC PROTOCOL COMMUNICATION 5 4 Error Codes for 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 actions to be taken Error code ney Description Action Hexadecimal Refer to the following MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Errors detected by the CPU module 4000 to 4FFF y E Errors occurred in other than MC protocol communication e Before enabling online change write the data Although online change is disabled the connected device requested 0055 e Ch th ti tatus of the CPU module to STOP and j the RUN state CPU module for data writing ee E eager nr dica e write the data e Select Binary Code for Communication Data Code and restart C050 When Communication Data Code is set to ASCII Code ASCII the CPU module H code
237. successfully 200 Command successful Note Before writing data set the CPU module to STOP Sets displays or clears the read password file password 32 registered in the file transfer Function target file The CPU module checks the read password when accessing the transfer target file quote passwd rd read password One of the following is displayed as the execution result when the processing completes successfully e When setting a read password 200 Command successful e When displaying the read password 200 Read password is read password e When clearing the read password 200 Command successful e When displaying the read password with no password set 200 Read password is not set passwara Se When setting a read password ABCD1234 efgh i quote passwd rd ABCD1234 efgh When displaying the read password that is currently set to FTP Example 2 quote passwd rd When clearing the read password that is currently set to FTP Example 3 quote passwd rd c or quote passwd rd C e One read password can be set to FTP of the CPU module When the transfer target file is Note changed set the read password of the target file again if a read password is preset to the new target file e When the CPU module is logged in the read password is initialized cleared Sets displays or clears the write password file password 32 registered in the file transfer Function target file The CPU module checks the write password when accessing the transfe
238. t Page 116 Section 9 4 1 4 The following number of files can be stored using FTP Maximum number of files storable on the drive 1 ee File names are SRCINF1M C32 SRCINF2M C32 for Simple projects with labels and SRCINF11 C32 SRCINF21 C32 for Structured projects 6 The file name is automatically determined for AnyWireASLINK connection and CC Link connection For Ethernet connection it is determined by the sensor used 114 CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER 9 3 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 in RUN state X Not deletable Not writable Program Standard Standard SD memory File type memory RAM ROM card 4 File name or extension Intelligent function module parameter PARAM QPA IPARAM QPA QPG Device comment QCD Program AS y QDL QTD Local device Sampling trace file Programmable controller user data Source information Any file name 5 QN DAT Module error log file x IERRLOG QIE Drive heading Data logging setting file LOGCOM QLG LOGO1 QLG to aan LOG10 QLG l o ECPRTCL QPT 4 The SP FWRITE or SP FREAD instruction in the program will write or read the file For details refer to the following LEIMELSEC Q L Programming Manual Common Instruction 2 Files can be written to the program memory only when the CPU module is in the STOP
239. t the 49004 are written to the CPU madde function had been set were changed the CPU module parameters were written to the CPU module When an error related to the simple PLC The file register used for the simple PLC Correct the device number of 4901 communication communication function became out of the file register and then n function occurs at range due to the block number change of power off and on or reset the Siner corresponding setting the file register CPU module errors No When an error related The communication was stopped to the simple PLC because an error occurred at the other 49024 communication setting No for which the same Eliminate the error cause function occurs atthe destination device of the corresponding other setting No setting No had been set The communication was stopped 4903 When a stop error because a stop error occurred in the CPU Power off and on or reset the H occurs module where the simple PLC communication function had been set 2 Errors caused by communication failure The errors are stored in the history of Ethernet diagnostics The error codes to be stored are the same as those CPU module of communication related errors For error descriptions and the corrective actions refer to the following LAMELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection CHAPTER 12 SIMPLE PLC COMMUNICATION FUNCTION 3 Operations after the error After
240. ted to 192 168 3 39 226 LnCPU FIP server ready 3 JEG 192 168 3 39 none gt gt MELSEC 331 Password required 4 gt ZEEE 230 User logged in ftp gt 1 Start an FTP session FTP lt ret gt 2 Open a connection to the FTP server open IP address of the CPU module lt ret gt 3 Specify the login name Login name lt ret gt 4 Specify the password Password lt ret gt b 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 following command quote password lock lt ret gt 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 UONEDIUNWWOD y JO Bunjas 6 c Entering file password 32 When file password 32 write or read password is set for the target file the password must be entered with the following command before accessing the file e Write password quote passwd wr write password lt ret gt e Read password quote passwd rd read password lt ret gt 113 9 2 Files That Can Be Transferred Using FTP The following table lists the files that can be transferred using the file transfer function O
241. the FTP client KO Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt Open Setting j FTF Client y El IP Address and Port No will be displayed by the selected format to the selected number a Item Description Protocol Select TCP Open System Select FTP Client This function uses two connections If FTP Client is selected in the open system the open system of the next connection No is also changed to FTP Client Note that FTP Client cannot be selected in connection No 16 FTP Client can be set in open system only in one connection 130 CHAPTER 10 FILE TRANSFER FUNCTION FTP CLIENT 2 FTP client setting Set FTP client parameters KO Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt FTP Client Setting Built in Ethernet Port FTP Client Parameter Setting FTP Parameter FTP Server Name C FTP Server address DEC m M Login Name Password Connection Method PORT Mode v Timeout 30 Seconds 30 to 300 Port No 21 1 to 65535 Set the destination FTP server name 1 to 256 one byte alphanumeric FTP server name i domain name characters and symbols Set the IP address of the destination FTP Pass server 0 0 0 1 to 223 255 255 254 The IP address can be specified with 00 00 00 01 to DF FF FF FE decimal or hexadecimal numbers Set the login name used to
242. the Project window Remark shows useful information 4 The mouse operation example for GX Works2 is provided below TE MELSOFT Series GX Works2 Unset Project PRG MAIN Project Edit Find Replace Compile View Online Debug Diagno Hat PETETA E Bg se oe ge ae EBRE T fo Mh OA les Menu bar XZ Online Z gt Write to PLC Select Online on the menu bar and then select Write to PLC Navigation Project ia ta a Bh Parameter Intelligent Function Module Global Device Comment A window selected in the view selection area is displayed T Project window 5 gt Parameter 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 Program Setting POU B Program 48 MAIN Ey Local Device Comment 3 Device Memory Device Initial Value 444444444 Li User Library A Connection Destination View selection area Unlabeled 16 Pages describing instructions are organized as shown below The following illustration is for explanation purpose only and should not be referred to as an actual documentation Instruction name x 6 4 2 Disconnecting a connection SP SOCCLOSE Command SP SOCCLOSE sesocc ose uo 6y 62 o Oshows the devices applicable to the instruction Descriptions of ae sett
243. the socket communication function refer to Page 76 Section 7 4 O 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 99 06 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 e For sending Specify the port number of the CPU module from which data are sent and the port number of the destination device e 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 l sending UDP data from port No A of the CPU module to port No L of external device 1 External device 1 IP address yy yy yy yy Sending UDP data from port No L of 1external device 1 to port No A of the CPU module I NA Sending data via TCP connection an External device 2 IP address ZZ ZZ ZZ ZZ i Sending 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
244. 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 local overseas FA Center Note that the repair conditions at each FA
245. tion command to write e mail addresses to devices CPU module internal memory 3 DNS Setting Set the IP address of the DNS server KO Project window gt Parameter gt PLC Parameter gt Built in Ethernet Port Setting gt DNS Setting Built in Ethernet Port DNS Setting Ea DNS Setting Input Format DEC DNS Server 1 Address DNS Server 2 Address poyan Buiyes Z S Set the IP add f DNS 1 The IP DNS Server 1 Address ice Mn ida iaa or O eee ee i P 00 00 00 01 to DF FF FF FE hexadecimal numbers Set the IP address of DNS server 2 The IP DNS Server 2 Address address can be specified with decimal or hexadecimal numbers 0 0 0 1 to 223 255 255 254 00 00 00 01 to DF FF FF FE 189 15 2 2 Settings at programming This function sends and receives e mail using the following instructions Instruction Description Reference SP MLSEND Sends e mail to the specified external device Page 197 Section 15 4 1 SP MLRECV Reads received e mail from the mail server Page 202 Section 15 4 2 1 Special relay and special register The following table lists the special relay and special register used with this function For details refer to the following L TIMELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection e This relay turns on while the MC protocol command is being processed MC protocol command being e If the received mail is an MC protocol command mail the relay turns off
246. tion device means both the transmission source and transmission destination for data transfer e Device data Bit device M Word device D e Number of settings The number of destination devices Double the number for data transfer e The retry of communication is not performed Processing time by the number of Communication Number of communication points for one CPU module T R settings unit ms pattern setting II ee 32 words for each Total 64 words 29 8 Read 64 words for each Total 128 words 30 2 256 words for each Total 512 words 32 words for each Total 64 words 30 7 LO2CPU P 64 words for each Total 128 words 256 words for each Total 512 words 32 words for each Total 64 words 47 4 Transfer 64 words for each Total 128 words 47 9 256 words for each Total 512 words E 32 words for each Total 64 words 29 8 Read 64 words for each Total 128 words 30 2 LO6CPU 256 words for each Total 512 words LO6CPU P 32 words for each Total 64 words 30 7 L26CPU P 64 words for each Total 128 words L26CPU BT 256 words for each Total 512 words pepe renee 32 words for each Total 64 words 47 4 Transfer 64 words for each Total 128 words 47 9 256 words for each Total 512 words 1 Number of points for each device bit device and word device uonounyY UONCOIUNWLWWOD 74 ajduls Jo SI 0ULeWIO d y XIpu ddy 217 Appendix 5
247. tion v CP w MELSOFT Connection f O Aa Aa Aa Aa fa fa Aa GIA D T D 0 D D D O D D D per 4 4 i 4 y i 4 4 A v 4 Ea ES E ET EA E KA TA EA ESA a ees EA 4 IP Address and Port No will be displayed by the selected format Please enter the value according to the selected number Cancel e For the Ethernet Conf drag and drop the General MELSOFT Connection Module from Module List to the left side on the window Select a protocol from Protocol depending on the target device e For the Open Setting Item Protocol Open System Setting Select TCP or UDP depending on the connected device Select MELSOFT Connection 20 3 NPON NAO 9U 104 pauinbay Bumes 26 2 Writing parameters to the CPU module From the Write to PLC window write the parameters to the CPU module X Online gt Write to PLC After writing the parameters to the CPU module power off and on or reset the CPU module to enable the parameters CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL AND GOT 3 2 Setting Required for the Programming Tool Configure the settings in the Transfer Setup window O Connection Destination window gt Connection1 Transfer Setup Connection1 a PC side I F E gt 4 Serial CCIE Cont CC Link NET II PLC USB NET 10 H Board oard Board Board PLC si
248. tion with the external device Page 83 Section 7 4 2 SP SOCCINF Reads out connection information Page 97 Section 7 4 6 Changes the target of the connection for UDP IP Page 100 Section SP SOCCSET a communications 7 4 7 SP ECPRTCL Executes the configured predefined protocol Page 52 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 92 This instruction sends and receives packets set by the predefined protocol support function of GX Worksz2 Usage of the SP ECPRTCL instruction is the same as that of the GP ECPRTCL instruction for the Ethernet interface module except for some differences For the GP ECPRTCL instruction refer to the following L IMELSEC L 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 Setting data n1 z tab 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
249. to the following LAGX 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 e IP address SD1260 and SD1261 e Subnet mask pattern SD1262 and SD1263 e Default router IP address SD1264 and SD1265 4 Stored as follows Ex When IP address is 192 168 3 39 C0A80327 y Store the lower 2 bytes of the o spize0 0327 address SD1260 0327H Ll SD1261 C0ABW SD1261 COASH Store the upper 2 bytes of the IP address SSOIPPY dl au Bummoayo el 181 1 3 4 Precautions 182 The following describes precautions for the IP address change function 1 2 3 4 5 Power off and reset operations Do not power off or 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 turn on before powering off or resetting the CPU module 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 Duplicated IP addresses When changing an IP ad
250. to turn off the system l during the END processing SM1294 E iii ts _f OF l l Write error cause l SM1298 gt lt 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 2004 An error occurred during writing Writing cannot be performed since the following functions are being executed 300 e Online program change e Copy program memory data into ROM e Write to PLC flash ROM 4004 Writing is started during clear processing execution 176 CHAPTER 13 IP ADDRESS CHANGE FUNCTION 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 Application M100 SM1293 IP address storage area write complete 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 1 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 disp
251. tored in the standard RAM and saving it under a different file name xample E get 3 SEQ1BAK QDR SEQ SEQ10LD QDR e When no destination file path name FTP client side is specified the file is saved in the Not FTP client using the same source file name CPU module side e The transfer destination is on the current directory where FTP is started up and connected to the server 119 Displays the names of the files stored in the CPU module Specification Is drive name format Is When displaying the names of the files stored in the SD memory card Example Is 2 dir command Deletes a file stored in the CPU module Function To delete multiple files specify the file name and extension within the file path name using a wild card character or Specification ae mdelete file path name abbreviation mdel mdelet format E i When deleting all the files whose extensions are QPG from the program memory xample mdelete 0 QPG Similar delete command Funct Stores the detailed information file name date of creation volume of the files stored in the unction CPU module in the FTP client side file as log data Specification ainda mdir source drive name destination file path name format When storing the detailed information of the files stored n the SD memory card into the Example S990901 LOG file mdir 21 S990901 LOG mdir e Always specify immediately after the source drive name e Always specify the source drive name
252. transfer destination the transfer target file may be overwritten incompletely If Take measures against power off is set the transfer file is transferred to the temporary file FTPCLI_I TMP and after completion of transfer the file name is changed to the transfer target file name This prevents the transfer target file from being overwritten by an incomplete file even If the CPU module is powered off or reset during file transfer Specify it in the argument of the file transfer function instruction Specification item Description Take measures against power off A temporary file is created during file transfer No measures against power off A temporary file is not created during file transfer If the CPU module is powered off or reset during file transfer an unnecessary file temporary file or incomplete transfer target file may remain in the transfer destination The following discusses the deletion of this file e During file transfer to the FTP server SP F TPPUT instruction Access the FTP server and directly delete the unnecessary file remaining in the FTP server e During file transfer to the FTP server SP FTPGET instruction Unnecessary files are deleted as follows e Temporary file The temporary file remaining in the FTP client is automatically deleted when the next file transfer to the same directory begins e Incomplete transfer target file The incomplete transfer target file remaining in the FTP client is overwritten when t
253. truction is completed with an error e Ifthe specified e mail address is not registered when deleting an e mail address the instruction is completed with an error e By performing the backup setting in 6 0 the e mail addresses in the e mail address table can be held even after the power is turned off SM1661 is on during backup The e mail addresses are backed up to flash ROM and restored automatically during initialization Point Do not perform resetting or turn off the power while SM1661 e mail address backup processing flag is on during backup Doing so may corrupt the file or prevent the backup from being reflected If the backup file is corrupted it is deleted during restoration suo 9n4 su UOIOUN4 SAIBDOY PUBS pew 4 p s e The result of the SP MLOPEADR instruction can be checked with the completion device D 0 and D 1 e Completion device D 0 Turns on at the END processing of scan in which the SP MLOPEADR instruction is completed and turns off at the next END processing e Completion device D 1 Turns on or off depending on the state in which the SP MLOPEADR instruction is completed State Description When completed Remains off normally When Turns on at the END processing of scan in which the SP MLOPEADR instruction is completed and turns off at the next END completed with Processing en error When completed with an error an error code is stored in the completion status of Sd 1 207 4 Error Eac
254. ts of one point 960 points Reads bit devices in units of 16 or 32 points by randomly specifying the target In units of 0403 Katk 0000 Reads word devices in units of one or 192 points two points by randomly specifying the target In units of 1402 Sets or resets bit devices in units of one 188 points bits 0001 point by randomly specifying the target i Sets or resets bit devices in units of 16 or 32 points by randomly specifying the In units of 1402 target words 2 0000 Writes word devices in units of one or two points by randomly specifying the target words Registers word devices to be monitored in units of one or two points 0 These commands are for QnA compatible 3E frames 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 4032 at the time of monitoring execution For monitor registration monitoring conditions cannot be set Do not execute monitor registration from multiple devices If executed the last monitor registration takes effect 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
255. uction check in advance the destination e mail address If the external device cannot be found due to an incorrect e mail address the SP MLRECV instruction is executed for the destination mail server to cause an error and confirm the error event 6 Program example The sample program sends the e mail Subject message body stored in D200 and later based on the control data stored in D20 to D35 MO SM1659 Specifying send data format MOVP H1000 D20 as message body MOVP K1 D22 Specifying destination No MOVP K16 D29 Specifying send data length MOVP K7 D30 Specifying subject length MOVP testmail send D200 Specifying subject SMOVP Error Machine1 001 D207 Specifying message body SP MLSEND UO D20 D200 M100 Sending e mail M100 M101 SET M200 Normal completion M101 HA SET M201 Error completion 201 suo 9n4 su UOIOUN4 SAIBDOY PUBS pew 4 p s 15 4 2 Send e mail SP MLRECV Command SP MLRECV f Setting data rae e pa UO GO Constant Others EEE ae port ot 4 File registers set for each local device or program cannot be used 1 Setting data Setting data Description Set by Data type Start number of the device from which control data are stored User system User system Device name Start device of own station in which the received e mail header System Device name message body is stored Start number of the device which turns on for one scan upon completion of the instru
256. uctions o oooooooooo 15 4 1 Send e mail SP MLSEND o oo ooocococoooc 15 4 2 Send e mail SP MLRECV o ocooooccococooo ees 15 4 3 E mail address registration deletion SP MLOPEADR 15 4 4 E mail address acquisition SP MLGETADR 00000 eee 19 07 DIAQNOSUCGS A a Roa APPENDICES Appendix 1 Operation Processing Time for Each Instruction Appendix 2 Port Numbers Used by Built in Ethernet Port LOPU Appendix 3 Added and Changed Functi0NS o ooocooooooon ooo Appendix 4 Performance List of Simple PLC Communication Function Appendix 5 Specifications Comparison with Ethernet Module INDEX INSTRUCTION INDEX 15 MANUAL PAGE ORGANIZATION In this manual pages are organized and the symbols are used as shown below The following illustration is for explanation purpose only and should not be referred to as an actual documentation is used for ee screen names and items 7 1 1 setting method The chapter of 1 Settingiparameters the current page is shown a Operating procedure 1 1 Open th PLC Parameter ialog box O project window Parameter gt PLC parameter Select the I O Assignment tab 1 shows operating procedures L Parameter Setting shows mouse operations is used for items in the menu bar and the project window Description
257. uilt in Ethernet Port Setting IP Address Setti ls Open Setting Input Format DEC bd FTP Setting IP Address 192 168 3 39 FTP Client Setting E mail Setting DNS Setting 255 0 Subnet Mask Pattern 255 255 Set the subnet mask pattern and default router IP address Default Router IP Address 192 168 0 254 30 3 9 1 2 3 4 CHAPTER 3 CONNECTION WITH PROGRAMMING TOOL 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 e Check for the IP address duplication with the find CPU function e 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 A response to a KeepAlive ACK message is checked 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 connecti
258. uiring 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 CHAPTER 7 SOCKET COMMUNICATION FUNCTION d Precaution for Passive open communication e 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 TCP disconnection completed by the external device Open completion signal ON SD1282 OFF Open request signal ON SD1284 SER TCP connection completed by the external device e 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 Page 97 Section 7 4 6 e 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 the preset number of connections will be disconnected immediately e 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 conne
259. ust the application timeout time e Data size must be within 1460 bytes when the ping command is used e 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 CHAPTER 15 E MAIL SEND RECEIVE FUNCTION CHAPTER 15 E MAIL SEND RECEIVE FUNCTION The e mail send receive function enables the CPU module to send e mail to and receive it from electronic devices such as mobile phones and personal computers gt SSS AS Personal computer HN Mobile phone Mail server p gt Ethernet Receiving e mail 1 Sending and receiving e mail a Sending e mail After setting the send destination e mail address the e mail send instruction SP MLSEND is executed to send e mail during END processing b Receiving e mail The e mail receive instruction SP MLRECV is executed to get e mail stored in the server to the CPU module The Subject message body of e mail is written to the specified device 2 Function to read write device when e mail is received Writing an MC protocol command in the message body of e mail sent to the CPU module from a personal computer or mobile phone enables device reading or writing After command execution e mail is returned to the send address to report the execution result Page 191 Section 15 3 1 3 Send destination e mail address edit function
260. ustrial waste When disposing of batteries separate them from other wastes according to the local regulations For details on battery regulations in EU member states refer to the MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Transportation Precautions CAUTION O When transporting lithium batteries follow the transportation regulations For details on the regulated models refer to the MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection 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 2 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
261. ve Packet Line L Protocols 0 128 Packets 0 256 Packet Data Area Usage 0 0 Module for Debugging 3 In the Add Protocol window select Predefined Protocol Library or Add New Adds new protocol When Predefined Protocol Library is selected select a Selection of Protocol Type to Add Type Predefined Protocol Library y Reference Select from Predefined Protocol Library Wo rks2 Please select manufacturer model and protocol name from Protocol to Add desired protocol from the library registered in GX Protocol to Add Genera l purpose J protocol MODBUS TOP caca Point Select User Protocol Library in the Add Protocol window to read the protocol stored by the user For details on the user protocol library refer to the following LAGX Works2 Version 1 Operating Manual Intelligent Function Module CHAPTER 6 DATA COMMUNICATIONS USING THE PREDEFINED PROTOCOL 4 Set the items required for data communications In the Protocol Detailed Setting window set the Connected Device Information Sear communication parameters for the protocol ype Model ES qq O Protocol Setting window gt Select protocol gt Explanation PO Edit gt Protocol Detailed Setting Protocol Settine Information Protocol No fi Protocol Name Communication Type Send Receive z Receive Setting Clear OS area receive data area before protocol execution Enable Disable Receive
262. ve indication Receive error indication SP SOCCINF instruction control data SP SOCCINE instruction connection information 65 dol Bulsp uonesiunwwoy 66 c Sample program lt lt Fixed length mode setting gt gt SM402 t MOVP Ki D402 MOVP K6 D403 SP SOCRMODE U0 K1 D400 lt lt Target checking gt gt SD1282 0 core AA SP SOCCINF UO K1 D6000 D6010 lt lt Data sending gt gt M3000 SD1282 0 t K6 D300 H3412 D301 H7856 D302 HOBC9A D303 SP SOCSND uo D300 M300 M300 M301 SET M3002 M301 _ 7 A lt a 22 2 2 222 SET M3003 lt lt Data receiving gt gt SD1282 0 SD1286 0 M500 o k Y SP SOCROV UO K1 D5000 D500 M500 M500 M501 SET M5002 M501 J AA ce M5003 END 1 Setting TCP receive mode to 1 Setting receive data size to 6 Changing TCP receive mode of Connection 1 2 Obtaining information of connected device Setting send data length Setting send data Sending data to Connection No 1 Normal completion Error completion Receiving data Normal completion Error completion 4 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 Page 102 Section 7 4 8 2 For acq
263. vice which supports the following IP addresses which have been specified via a 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 e External devices on CC Link IE Field Network e External devices on the Ethernet network which are connected through the built in Ethernet ports 12 E mail send receive function Page 185 CHAPTER 15 E mail can be sent and received between the CPU module and electronic devices such as mobile phones and personal computers In addition writing an MC protocol command in the message body of incoming mail enables device reading and writing 21 CHAPTER 2 COMMUNICATION SPECIFICATIONS The following are the communication specifications of the built in Ethernet port of the CPU module Transmission specifications Number of connections Connection cable 4 2 3 4 Item Specifications Data transfer speed 100 10Mbps Transmission method Base band Maximum distance between hub and 100m node Maximum 10BASE T Cascade connection Up to four 2 number of nodes connection 1OBASE TX Cascade connection Up to two TCP IP A total of 16 connections of socket communications MELSOFT connection MC protocol predefined protocol FTP client and e mail 4 UDP IP 1 connection for FTP server 10BASE T Ethernet cable of category 3 or higher STP UTP cable 100BASE TX Ethernet cable of category
264. when specifying the destination file path name FTP client side Note e If the destination file path name is not specified the file is stored with the file name determined by the FTP client s FTP application e The transfer destination is on the current directory where FTP is started up and connected to the server mls command Reads a file from the CPU module El To read multiple files specify the file name and extension within the file path name using a unction wild card character or When reading multiple files reception is checked for each file transfer Specification mget file path name format mget When reading all the files whose extensions are USR among the files stored in the SD Example memory card mget 2 USR The file read out is stored on the FTP client side under the same file name Note The storage destination is on the current directory where FTP is started up and connected to the server 120 mls mput open put pwd Function Specification format Example Note Similar command Function Specification format Example Note Function Specification format Example 1 Example 2 Note Function Specification format Example 1 Example 2 Note Function Specification format Note CHAPTER 9 FILE TRANSFER FUNCTION FTP SERVER Stores the name of the file stored in the CPU module in the FTP client side file as log data mls source drive name destinatio
265. write or read of the device data The data of a bit device and a word device set for each setting No are communicated in the END processing Even so depending on the destination device for communications data communications for one setting may not be done completely resulting in data inconsistency Destination device for eee SC Data inconsistency for one setting epummuplestions Data of a bit device and a word device are Data inconsistency of a bit device and a word device is the guaranteed to be communicated by setting same level because the data of both devices are unit communicated at the same timing MELSEC Q L Built in Ethernet Function MELSEC Q L Ethernet Data of a bit device Data of aword device If both a bit device and a word device are set for the same Module are guaranteed to be are guaranteed to be setting No the level of data inconsistency of both devices MELSEC QnA Ethernet communicated by communicated by may be different because the data of each device is Module setting unit setting unit communicated at different timing 2 Within the setting e If both a bit device and a word device are set for the same Within the setting range data of a bit setting No the level of data inconsistency of both devices MED Sere went device are range Cel oka ward may be different because the data of each device is ee uaranteed to be peice communicated at different timing 2 MELSEC FX3 Ethernet 9 ines guaranteed to b
Download Pdf Manuals
Related Search
Related Contents
SBS IP1411EU mobile phone case Lunettes mode d`emploi - UNSA-RATP Samsung SM-T530NZWAXAR User's Manual Whirlpool ED26MM User's Manual Manual del Usuario para Haier W717 KX-VC500EX English HP LE1851wl User's Manual User Manual - Quad Industry Copyright © All rights reserved.
Failed to retrieve file