Manuale d’uso / di manutenzione del prodotto MELSEC-F del fabbricante Mitsubishi Electronics
Vai alla pagina of 296
FX 3U -ENET USER'S MANUAL.
.
A - 1 A - 1 SAFETY PRECAUTIONS (Read these preca utions before use.) Before installation, opera tion, maintenance or insp ec tion of this product, thorou ghly read through and understand this manual an d all of the associated manuals. Also, take care to han dle the module properly and safely.
A - 2 A - 2 [Design Precautions] [Installation Precautions] CAUTION When the status control (remote RUN/STOP) of t he PLC is performed from the external device, select the "Always wait for OPEN" parameter set by an user in advance. (Select with the in itial timing setting (BFM#24 b8) in the operational sett ing.
A - 3 A - 3 [Wiring Instructions] DANGER Before mounting or wiring the module, make sure to shut off all of the external power supply . Failure to do so may cause elec tric shocks or damage the module. When turning on the power and operating after mounting or wiring the module, make sure to install the accessory terminal covers to the product.
A - 4 A - 4 [Setup and Maintenance Precautions] [Precautions When Disposing of This Product] [Trans Portation Precautions] DANGER Do not touch any terminal while the PLC's power is on.
A - 5 A - 5 CONTENTS SAFETY PRECAUTIONS .............. ................. ................ ................ ................ ................ .............. ........ A- 1 CONTENTS ............. ................ ................ ................ .......
A - 6 A - 6 5 COMMUNICATION PROCEDURE 5- 1 to 5-46 5.1 Overview of the C ommunication Procedure ..................... ................. ................ ................... ......... 5 - 1 5.2 Initial Processing ............... ................ ......
A - 7 A - 7 8 COMMUNICATION USING MC PROTOCOL 8- 1 to 8- 4 8.1 Data Communication Functi on .......... ............. ................ ................ ................ ................. ....... ........ 8- 1 8.1.1 Accessing the PLC using MC protocol .
A - 8 A - 8 11 TROUBLESHOOTING 11- 1 to 11-45 11.1 How to Check Errors Using LED Displays ...... .......... ................ ............. ................ ................ .... 11 - 2 11.1.1 Checking error display .... ................. ... .........
A - 9 A - 9 About Manuals This manual explains the mounting of FX 3U -ENET , the specifications, broadcast functions and communicati on methods. For the instructions and programs of the sequence as well as the p arameter setting s by FX Configurator-EN, also refer to the following manuals.
A - 10 A - 10 Applicable Standard Certification of UL, cUL stand ards The following product has UL an d cUL certification. UL, cUL File Number: E95239 Models: MELSEC FX 3U se ries manufactured FX 3U -.
A - 11 A - 11 Caution to conform with EC Directiv es • Installation in Enclosur e Programmable logic controllers are op en-type device s that must be installed and used within conductive control cab inets. Please use the programmable logic controller while inst alled within a conductive shielded control cabinet.
A - 12 A - 12 The Manual's Usage and Structure How to use this manual In this manual, explanations ar e given fo r each application of the Ethernet modules (FX 3U -ENET).
A - 13 A - 13 (3) Connection between the Ethernet module and ex ternal devices (a) Communica tion procedur es • S ection 5.1 describes an outli ne of the comm unication procedures (b) Connections with the external device s • S ection 5.
A - 14 A - 14 About the Generic Term s and Abbreviations This manual uses the following generic terms and abbreviation s to describe the Model FX 3U -ENET Ethernet inte rface block. Generic T erm/Abbre viation Description Ethernet Address A machine-specific a ddress that is also referred to as the MAC (Media Access Control Address).
1 - 1 OVERVIEW 1 1 - 1 1 MELSEC-F 1O V E R V I E W This manual provides infor mation on the spec ifications of the Ethe rnet interface block, FX 3U -ENET (hereinaf ter called FX 3U -ENET or the Ethern.
1 - 2 OVERVIEW 1 1 - 2 1 MELSEC-F 1) Collection and mo dification of PLC data (Communication using the MELSEC Co mmunication Protocol (referred to below as the MC Prot ocol)) 2) T ransmission and r ec.
1 - 3 MELSEC-F OVERVIEW 1 1 - 3 1.2 Features of t he Ethernet Module (1) Data communication using MC protocol (Details are explained in Chapter 8 and Chapter 9) Using MC protocol, the device dat a of the PLC can be read from/written to the host system.
1 - 4 MELSEC-F OVERVIEW 1 1 - 4 (3) Communication by e-mails (Detai ls are explained in Chapter 10) Data can be sent to and receive d from an external device at a remote locatio n using e-mail via an Internet line. (a) Sending/receiving e-mail from the PLC The following dat a can be sent/received by e-mai l.
1 - 5 MELSEC-F OVERVIEW 1 1 - 5 (4) Connecting FX Configurator-EN (Details are explained in the Operating Manuals for FX Configurator-EN) (a) Simplifying sequence prog rams using FX Configurator- EN F.
1 - 6 MELSEC-F OVERVIEW 1 1 - 6 (b) Connecting multiple MELSOFT prod ucts (GX Developer , MX Component) This product can be connected with one or more MELSOFT pro duct, via TCP/IP communication (through the in-house LAN, etc.
1 - 7 MELSEC-F OVERVIEW 1 1 - 7 1.3 Software Configuration The Ethernet modules support the TCP/IP and UDP/IP protocols. (1) TCP (T ransmission Control Protocol) This protocol guarantees data credibil.
1 - 8 MELSEC-F OVERVIEW 1 1 - 8 (2) UDP (User Datagram Protocol) This protocol may not guarantee data cr edibility or reliabilit y in communication between a personal computer /work station and PL C that are connected via network. Thus, even if the data does no t reach the t arget n ode, it will not be retransmitt ed.
1 - 9 MELSEC-F OVERVIEW 1 1 - 9 3) PSH (Push Flag) When this bit is ON (1), the host th at has received this segment sends the data to the up per application with high priority . This bit is to be turned ON when the dat a should be sent to an external device as soon as possible.
2 - 1 SYSTEM CONFIGURATIONS 2 2 - 1 2 MELSEC-F 2 SYSTEM CONFIGURA TIONS This section explains the system configurations that may be combined with the Ethernet modules.
2 - 2 SYSTEM CONFIGURATIONS 2 2 - 2 2 MELSEC-F 2.2 Devices Required fo r Network Configuration This section explains the devices that are requ ired to configure a netwo rk. Network installation work re quires suf ficient safeguard; ask a network specialist for installation.
2 - 3 MELSEC-F SYSTEM CONFIGURATIONS 2 2 - 3 (2) Connection usi ng the 10BASE-T Use devices that satisfy the standards of IEEE802.3 and 10BASE-T . • Shielded twisted pair cable (STP cable), categor y 3 (4, 5) * U se a straight cable for co nnection between a hub and the Ethe rnet module.
3 - 1 SPECIFICATIONS 3 3 - 1 3 MELSEC-F 3 SPECIFICA TIONS This section exp lains the Ethernet m odule performan ce specifications and transmission specifications. For the genera l specificat ions, refer to the INST ALLA TION MANUAL of FX 3U -ENET and the User’s Manual of the PL C main unit.
3 - 2 SPECIFICATIONS 3 3 - 2 3 MELSEC-F *1 Ethernet modules V . 1.10 or later support port numbers 1 to 65535. The port number is fixed t o "25" in Ethernet modules earl ier than V . 1.01. *2 Ethernet modules V . 1.10 or later support the authentication function.
3 - 3 MELSEC-F SPECIFICATIONS 3 3 - 3 3.2 D ata Codes for Communication This sectio n explains th e data codes us ed in the com munication b etween the Ethernet module and the ex ternal de vice or the PLC. (1) The dat a codes used while commu nicating are listed below .
3 - 4 MELSEC-F SPECIFICATIONS 3 3 - 4 2) Ethernet module PLC Data is sent and received in binary co de. (2) When communicating using ASCII code, 1-by te binary co de data is auto matically converted int o 2-byte ASCII code da ta and then transmitted.
3 - 5 MELSEC-F SPECIFICATIONS 3 3 - 5 3.3 R elationship between the External De vices and Additional Functions for Each Communication Function This sectio n explains wh ich external devices data commu nication can b e perform ed with and which additional function s can be used fo r each function.
3 - 6 MELSEC-F SPECIFICATIONS 3 3 - 6 3.4 E thernet Module Function List This section shows a list of Ethernet module functions. (1) Basic functions of the Ethernet module The Ethernet module can perform the communications shown in the t able below via TCP/IP or UDP/IP communication.
3 - 7 MELSEC-F SPECIFICATIONS 3 3 - 7 3.5 L ist of Setting It ems for Ethernet Modules The following ta ble lists the p arameter settin g items that are set using Etherne t Module. : Must be set when the applicable funct ion is used. : Set as needed : Setting is not required.
3 - 8 MELSEC-F SPECIFICATIONS 3 3 - 8 3.6 L ist of Applications and A ssignments of the Buff er Memory Data tr ansmission/reception betwe en Ether net Module and PLC is performed via the Ethernet Module buf fer memory (hereinafter called BFM) .
3 - 9 MELSEC-F SPECIFICATIONS 3 3 - 9 (2) Assignments of the buf fer memory A buffer memory consists of 16 bits per ad dress. <Bit configuration diagram> The following shows the buf fer memory addresses.
3 - 10 MELSEC-F SPECIFICATIONS 3 3 - 10 (Continued from the previous p age) BFM number Attribute Applica tion Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decim al (Hexade.
3 - 11 MELSEC-F SPECIFICATIONS 3 3 - 11 (b) Communica tion p arameter setting ar ea (BFM #32 to 102) (Continues on the next p age) BFM number Attribute Application Name Initial value Decimal (Hexadeci.
3 - 12 MELSEC-F SPECIFICATIONS 3 3 - 12 (Continued from the previous p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadecimal) 40 (28 H ) R/W Communication parameters setting area Communication address setting area Connection No.
3 - 13 MELSEC-F SPECIFICATIONS 3 3 - 13 (c) Communicati on status storage area (BFM #103 to 226 ) (Continues on the next p age) *1 Initial processing writes IP and Et hernet address.
3 - 14 MELSEC-F SPECIFICATIONS 3 3 - 14 (Continued from the previous p age) *1 It varies af ter initialization. *2 V alues written to BFM #202 will become active the next time the module is powered ON. (The value returns to 0 when each running mode execut ion is complete.
3 - 15 MELSEC-F SPECIFICATIONS 3 3 - 15 (d) Error log par tition area (BFM #227 to 51 1) (Continues on the next p age) BFM number Attribute Appli cation Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadecimal) 227 (E3 H ) R Error log area Number of error occurrences 0 (0 H ) Secti on 1 1.
3 - 16 MELSEC-F SPECIFICATIONS 3 3 - 16 (Continued from the previous p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadecimal) 376 to 377 (178 to 179 H ) R Error log area S tatus fo r each protocol IP Received IP packet co unt 0 (0 H ) Section 1 1.
3 - 17 MELSEC-F SPECIFICATIONS 3 3 - 17 (e) Router relay p arameter setting ar ea (BFM #512 to 1599) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadecimal) 512 to 513 (200 to 201 H ) R/W Router relay para met er setting area Sub-net mask 0 (0 H ) Section 5.
3 - 18 MELSEC-F SPECIFICATIONS 3 3 - 18 (f) Open/close contro l (BFM #1600 to 1663) (Continues on the next p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM sa.
3 - 19 MELSEC-F SPECIFICATIONS 3 3 - 19 (Continued from the previous p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadeci.
3 - 20 MELSEC-F SPECIFICATIONS 3 3 - 20 (g) Fixed buf fer area (BFM #1664 to 9855) BFM number Attribute Application Name Initial value Decim al (Hexadecimal) Flash ROM save Reference section Decimal (Hexadecimal) 1664 (680 H ) R/W Fixed buffe r data area Fixed buffer No.
3 - 21 MELSEC-F SPECIFICATIONS 3 3 - 21 (h) Mail send p arameter settings (BFM #9856 to 14499) (Continues on the next p age) BFM number Attribute Application N ame Initial value Decimal (Hexadecimal) .
3 - 22 MELSEC-F SPECIFICATIONS 3 3 - 22 (Continued from the previous p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) Flash ROM save Reference section Decimal (Hexadeci.
3 - 23 MELSEC-F SPECIFICATIONS 3 3 - 23 (i) Mail rece ive param eter settings (BFM #14500 to 20479) BFM number Attribute Applicati on Name Initial value Decimal (Hexadecimal) Flash ROM save Reference .
3 - 24 MELSEC-F SPECIFICATIONS 3 3 - 24 (j) Connection status storage a rea (BFM #20480 to 22639) BFM number Attribute Applica tion Name Initial value Decimal (Hexadecimal) Flash ROM save Reference se.
3 - 25 MELSEC-F SPECIFICATIONS 3 3 - 25 (k) E-mail status stor age area (BFM #2264 0 to 31999) (Continues on the next p age) BFM number Attribute Application Name Initial value Decimal (Hexadecimal) F.
3 - 26 MELSEC-F SPECIFICATIONS 3 3 - 26 (Continued from the previous p age) (Continues on the next p age) *1 The timestamp fo r an email that had a communication error with the mail server is store d in BCD code in the following manner .
3 - 27 MELSEC-F SPECIFICATIONS 3 3 - 27 (Continued from the previous p age) (Continues on the next p age) *2 The mail function of BFM#24320 to #24575 is supported in Ethernet modules V . 1.10 or later . (This area is inaccessible in V 1.01 or earli er because it is handl ed as t he system area.
3 - 28 MELSEC-F SPECIFICATIONS 3 3 - 28 (Continued from the previous p age) BFM number Attribute Application Name Initial value Decimal (Hexadecim al)) Flash ROM save Reference section Decimal (Hexade.
4 - 1 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 1 4 MELSEC-F 4 SETTINGS AND PROCEDURES PRIOR T O OPERA TION This chapter explains the settings and pr ocedur es required prior to operating the Ethernet module in a system.
4 - 2 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 2 4 MELSEC-F 4.1.2 I nstallation environment This section explains the installation en vironment for the PLC. When installing the PLC, the following environment s must be avoided: • Locations where the ambient temperature exceeds the range of 0 to 55 .
4 - 3 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 3 4.2 S ettings and Procedures Prio r to S tarting the Operation The following shows a flow of the procedur e that is re quired prior to.
4 - 4 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 4 Important (1) Do not write any data in the "System area" of Ethernet m odule buf fer memory .
4 - 5 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 5 4.3 C omponents of the Ethernet Module This section shows the component s of the Ethernet module.
4 - 6 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 6 (1) LED display contents (*1) *1 Refer to Subsection 1 1.1.1 for causes of error displays and the correspond ing corrective actions. *2 The [ERR.] LED turns on in the following cases: • When the parameter wr itten is incorrect.
4 - 7 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 7 4.4 C onnecting to the Network The following explains how to connect the Ethernet module to the 100BASE-TX/ 10BASE-T networks. Some precautions that should be obse rved while connecting the Ethernet module are also shown below .
4 - 8 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 8 4.4.1 Connecting to the 10B ASE-T/100BASE-TX network This sectio n explains ho w to connect the Etherne t module to t he 10BASE-T , 100BASE-TX network. The following shows the connection diag ram for the twisted pa id cable.
4 - 9 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 9 4.5 E thernet Module Setting Setting the Ethernet mod ule as a network module. The settings found must always be se t in order to use the Ether net module. (1) "Operational settings" (Details are explained in Section 4.
4 - 10 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 10 4.6 O perational Settings This section explains how to set the operations p arameters. (1) Communication dat a code (BFM#24 b1) (a) Select the format of the communicati on data when commu nicating with an external device .
4 - 11 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 11 (2) TCP Existence confirma tion setting (BFM #24 b4) Select the existence check method for TCP commun ication.
4 - 12 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 12 (4) Initial Timing (BFM#24 b8) (a) Select the timing to open conn ections for w hich TCP-Passiv e open or UDP open are sele cted with th e "Open set tings" parameter (*1). *1 For more details on the open set tings, see Section 5.
4 - 13 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 13 (5) IP Address settings - IP address (B FM #0 to 1) (a) Set the IP address of the local station according to the sp ecified input form at (decimal or hexadecima l).
4 - 14 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 14 4.7 S elf-Diagnostic T ests This section expl ains the self-diagn ostic tests for checking the hardwa re and transmission and reception fu nction of the Ethernet mo dule.
4 - 15 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 15 4.7.2 Hardware test (H/W T est) This sectio n explains th e RAM and RO M test s for the Ethern et module. The procedure for the har dware test is as shown in the table be low . The test results are judg ed from the LED displays on the front of the Eth ernet module.
4 - 16 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 16 4.8 M aintenance and Inspection This section explains the ma intenance and ins pection as well as the installing and uninstalling of the Ethernet module.
4 - 17 MELSEC-F SETTINGS AND PROCEDURES PRIOR TO OPERATION 4 4 - 17 4.8.2 Installing and uni nstalling the module Before installing or uninst a lling the Ethernet module, make sure to read Section 4.1, "Handling Precautions" thoroug hly , ensure the safety of the installation, and handle the module properly accor ding to the instructions.
5 - 1 COMMUNICATION PROCEDURE 5 5 - 1 5 MELSEC-F 5 COMMUNICA TION PROCEDURE This chapter gives an overview of the co mmunication proced ure using the Ethernet module, as well as the requir ed initial processing of the Ethernet prior to dat a communication and the open processing fo r commu nication with an external device.
5 - 2 COMMUNICATION PROCEDURE 5 5 - 2 5 MELSEC-F NOTE The following communication can be perfor med with an open device on other end. • Communication using MC protocol • Sending/receiving in fixed.
5 - 3 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 3 5.2 I nitial Processing This sectio n explains th e initial process ing of the Et hernet modu le. 5.2.1 Initial processing The initial processing enables dat a communication with an external device by setting the parameters required fo r data communicat ion via the Ethernet mo dule.
5 - 4 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 4 5.2.2 Initial settings This section explains the initial s ettings. *1 Details ar e explained in Section 10.6 . Setting item name BFM number [Decima l] Description of setting Setti ng range/options T imer setting TCP ULP timer 4 Set the time of packet e xis tence at TCP data transmissio n.
5 - 5 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 5 (1) Timer setting - TCP ULP timer (BFM#4) (a) This item sets the time of p acket existence during TCP data sending. This timer is p assed through the parameter whe n TCP opens or dat a is sent. (b) Set the value in the range fr om 2 to 32767.
5 - 6 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 6 (5) T imer setting - IP assembly timer (BFM#8) (a) Communicati on data may be divided on the IP level due to the buf fer restriction at the sendin g or receiving station. (b) Set the value in the range fr om 1 to 32766.
5 - 7 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 7 NOTE (1) Set the value of ea ch timer on the Etherne t module sid e such that th e following relations are met. • • Furthermore, when con necting a line using Mit subishi products, you should make sure that both nodes have the same settings.
5 - 8 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 8 TCP ULP timer value TCP end timer value = TCP resend timer value = (Each timer value should be identical.) (3) When communication errors occur , the setting value should be changed to increase the nu mber of retries .
5 - 9 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 9 1) Checking by KeepAlive This method is used for a conne ction opened via the TCP/IP protocol. The Ethernet module perfor ms an existence check by sendin.
5 - 10 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 10 5.2.3 Re-initialization Re-initialization is performe d in order to place the Ethernet module into it s startup status without actua lly restartin g the PLC. Re-initializatio n of the Ethernet module can be perfor med in a sequence prog ram.
5 - 11 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 11 (2) Programming and timi ng for re-initialization The programming and timing for re -initia lization is shown below: •F o r F X 3U /FX 3UC Series PLCs Program example for the unit No. 1 1) It is confirmed whether the initial processing has been completed normally .
5 - 12 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 12 (3) Operation for re-initialization Operation for re-in itialization dif fers as follows, depending on the val ue written to BFM#1600. *1: When re-readin g the flash ROM, the re-i nitial ization is performed in the same status as when the pow er supply is turn ed on.
5 - 13 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 13 5.3 R outer Relay Parameter This sectio n explains th e router r elay parameter . NOTE When making settings with the FX Conf igurator-EN, sele ct [Router Relay Parameters] from the initial screen and adjust the settings at the [Ethernet Route r Relay Parameter Settings] screen.
5 - 14 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 14 (2) Subnet mask pattern (BFM#512, 513) (a) Set the subnet mask. *1 (Setting range: C0000000 to FFFF FFFC H ) Consult the network administrator for the setting. (b) When not using the subn et mask, set any of the following table value s according to the class.
5 - 15 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 15 5.4 Confirming the Completion of the Initial Processing The initial processing for the Ethernet module completes by selectin g re-initialization, then turning the power ON again, or re-initializing via buffer memor y operations after parameters a re written to the Ethernet module.
5 - 16 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 16 5.4.1 PING command (Personal computer Ethernet module) The following example illustra tes how to confirm the co mpletion of the initial processi ng by issuing th e PING comma nd to the local s tation's Ethernet mo dule from an external device connected on the same Ethern et network.
5 - 17 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 17 5.4.2 Loop back test (Communi cation using MC protocol) The loop back test can be performed with commu nication using MC protocol in order to check the completion st atus of the initia l processing for the target Ether net module.
5 - 18 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 18 5.5 Open Settings This sectio n explains th e open set ting. A sequence progr am can perform open p roc essing (est ablishing connection ) with up to a.
5 - 19 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 19 (2) Open system (connection numbers 1 to 8; BFM#32 to 39 b15, b14) (a) Select the connection open syste m for each connectio n for which "TCP" is selected in "(1) Protocol". If "UDP" is se lected, the specificatio n of this item is not required .
5 - 20 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 20 (3) Fixed buffer (connection numbers 1 to 8; BFM#32 to 39 b0) (a) Here it is selected whether the fixed buf fer corresponding to each applicable connection number will be used for sending or receiving when communicating using the fixed buf fers.
5 - 21 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 21 (5) Pairing open (connection numbers 1 to 8; BFM#32 to 39 b7) (a) Select whether or not the Ether net module's receivin g and sending connections .
5 - 22 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 22 (7) Local station Port No. (connection numbers 1 to 8; BFM#40 , 47, 54, 61, 68, 75, 82, 89) (a) In this item the port number of each connection for the Etherne t module is set. (b) The setting values are designated in the range from 1025 to 5548 and from 5552 to 65534.
5 - 23 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 23 (9) Destination Port No. (connection numbers 1 to 8; BFM#43 , 50, 57, 64, 71, 78, 85, 92) (a) Set th e port numb ers of the external de vices for eac h connectio n. (b) The port numbers of the external devices are set in the range from 1025 to 65534.
5 - 24 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 24 POINT Set parameter s according to the open meth od to be used for open connection. Communication system open system TCP UDP Active Passive Parameter A.
5 - 25 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 25 5.6 O pen Processing/Close Pr ocessing of t he Connection This sectio n explains th e open pr oces sing/close processing using sequence programs.
5 - 26 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 26 (2) Close processing (a) The purpose of the close processin g is to disconnect (cancel) th e connection with the external device est ablis hed by open processing me ntioned previously .
5 - 27 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 27 5.6.1 Active open processing/close processing This sectio n explains the proced ure for opening and closing a connection with an external device from the Ethernet module. •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No.
5 - 28 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 28 1) After communicatin g the paramete r settings, confirm the no rmal completion of the Ethernet modul e initial processing. (Initial completion signal BFM#27 "0 001 H ") 2) Confirm that the E thernet mo dule and hub are connected.
5 - 29 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 29 *1 Processing when the open processin g is abnormally completed (TCP) When opening from the Etherne t module under a normal situa tion, if the Ethernet mod ule sends a SYN, the external de vice returns an ACK and a SYN.
5 - 30 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 30 1) The open request signal tu rns of f by writing "8000 H " to the BFM#1602. 2) The E thernet mo dule exec utes the clo se processin g. 3) The Ethernet module sends a FIN request to the extern al device.
5 - 31 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 31 Program example This example explains a prog ram for open processing/close processing when Active open is selected in the Open s ystem setting. (1) Execution environment for the program example (a) The Ethernet module i s connected to the second special module .
5 - 32 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 32 •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 X000 M100 M103 X000 M102 [= D100 H5 ] ] H10 D100 [= ] H0 D100 [= [MOV D100 (M10.
5 - 33 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 33 5.6.2 Passive open processing/close processing This sectio n explains the proced ure for ope ning and clos ing a connec tion with th e Ethernet module via an external device.
5 - 34 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 34 1) After the parameters ar e sent, the normal completion of the Ethernet module initial processing is confirme d (Initial normal completion signal BFM#.
5 - 35 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 35 •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 X000 M100 M103 X000 M102 [= D100 H15 ] [= D100 H10 ] [= D100 H5 ] [= D100 H3 ] .
5 - 36 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 36 *1 If an open request (SYN) received af ter the normal completi on of an initial proces sing and befo re the Ethe rnet module is placed in t he open acknowledge enabled st atus, an error is generated, an d the Ethernet module se nds a connec tion forced close (RST) .
5 - 37 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 37 NOTE (1) If the settings of the connection need modifyin g, the modifications should be done before writing th e open instruction to the buffer memory. (2) Once open processing is exe cuted, an open request cann ot be canceled befor e the open processing is completed.
5 - 38 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 38 Program example This example explains a prog ram for open processing/close processing when Unpassive open is selected in the open system setting. (1) Execution environment for the program example (a) The Ethernet module i s connected to the second special module .
5 - 39 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 39 •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 X000 M100 M103 X000 M102 [= D100 H15 ] [= D100 H10 ] [= D100 H5 ] [= D100 H3 ] .
5 - 40 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 40 5.6.3 UDP/IP open processing/close processing The following explains the UDP/IP open proce ssing. The operations of the open processing/clo se processi.
5 - 41 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 41 •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 X000 [= D100 H15 ] [= D100 H10 ] [= D100 H5 ] [MOV D100 ] [INCP D0 ] [INCP D1 ].
5 - 42 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 42 1) After communicatin g the paramete r settings, confirm the no rmal completion of the Ethernet modul e initial processing. (Initial normal completion signal (BEF# 27) : 0001 H ) 2) S tart the open pro cessing by writi ng 0001 H to the BFM#1602.
5 - 43 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 43 5.7 Pairing Open The following explains communication using th e p aring open method via the Ethernet module.
5 - 44 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 44 5.7.2 Example of pairing open settings This section explains the settin gs in order to commun icate in the p airing open method by giving an ex ample. • Connection No. 1 and 2 are used. (When connection No.
5 - 45 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 45 (7) Local station Po rt No. (BFM#40, 47) Set this for the receiving connection for re ceivin g only . (Setting is not require d for the sending conn ection.) Set the port number upo n consul ting a network administrator .
5 - 46 MELSEC-F COMMUNICATION PROCEDURE 5 5 - 46 5.8 Hub Connection S tat us Monitor Function The curren t connectio n status of the Et hernet module and hub, the transmission speed, and the numbe r of times the Ether net module detected disconnection can be checked at the following buffer me mory addresses.
6 - 1 FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 1 6 MELSEC-F 6 FIXED BUFFER COMMUNICA TION (WITH THE PROCEDURE EXIST CONTROL METHOD) This chapter explains how the PLC and externa l device communicate in a 1:1 mode using the fixed buf fers (with the procedure exist control method) of the Etherne t module.
6 - 2 FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 2 6 MELSEC-F (3) At data sending/r eceiving, the Et hernet module processes the following.
6 - 3 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 3 6.2 S ending Control Method This section explains the control me thod wh en dat a is sent from the Ethernet mod ule to an external device usin g the fixed buf fer No.
6 - 4 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 4 1) Confirm the normal completion of the initial processing. 2) Confirm that the link status is no rmal between the Etherne t module and the connected HUB. 3) Confirm the normal completion of the open processing of co nnection No.
6 - 5 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 5 POINT The destination setting (see Section 5.5) for a conn ection whos e parameters ar e set in FX Configurator -EN becomes valid when the open completion si gnal (BFM#20480 corr esponding bit) of the Ethern e t module switches from of f to on.
6 - 6 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 6 6.3 R eceiving Control Method This sectio n explains th e control m ethod when t he Ethernet m odule rece ives data from an external device.
6 - 7 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 7 1) Confirm the normal completion of the open processing of co nnection No. 2. 2) Upon re ceiving data from the d esignated ex ternal devic e (set in the open processing), the Ethernet module processes th e following.
6 - 8 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 8 6.4 Data Format When communicating between the Ethernet m odule and an exte rnal device, th e data format explained be low is used. The communication dat a consists of a "header" and "application dat a" as follows: 6.
6 - 9 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 9 6.4.2 Application data As shown below , the data code in the application data can be expressed in either binary code or ASCII code.
6 - 10 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 10 (2) Subheader The format of the subheader is as shown below . The user does not need to set the subheader when using the Ethe rnet module since the Ethernet module add s and deletes it.
6 - 11 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 11 (3) Data length setting This value indicates the dat a size of the text (command) section. (4) T ext (command) The format of the com mand/res ponse when c ommunicatin g using fixe d buffers is configured as follows.
6 - 12 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 12 (b) Communicati on using ASCII code (Example) (5) End codes For more det ails on the end codes added to a respon se when communicating using fixed buf fers, see Subsection 1 1.
6 - 13 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 13 6.5 Programming This sectio n explains th e program ming metho d when the Et hernet modu le communicates with an external device using fixed buf fers and the procedure exist control method.
6 - 14 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 14 6.5.2 Fixed buffer communic ation program example (with the procedure e xist control method) This section explains the programmin g method in order to communicate dat a (procedure exist control method) with an external device u sing the fixe d buffers.
6 - 15 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 15 (b) Receiv e program (FX 3U -2nd statio n) 1) Connection No. 1 is used to process th e fixed buf fer receiving in the main program. 2) The unit number specified at the sequen ce program and FX Configur ator-EN is 0.
6 - 16 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 16 (2) Outline of the program example (a) Send progra m (Ethernet module-1 st station) 1) After setting each .
6 - 17 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 17 (Send program) (See Subsection 5.6.1) •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 0 Open processing program M8000 M200 X002 M307 M201 M202 M300 D101.
6 - 18 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE PROCEDURE EXIST CONTROL METHOD) 6 6 - 18 (Receive program) •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No.
7 - 1 FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 1 7 MELSEC-F 7 FIXED BUFFER COMMUNICA TION (WITH THE NO PROCEDURE CONTROL METHOD) This chapter explains how the PLC and exte rnal device communicate using the fixed buffer s (with the no procedure control me thod) via the Ether net module.
7 - 2 FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 2 7 MELSEC-F (2) Data can be communicated with the following external devices. • Devic e on the Ethe rnet to which the Ethern et module is c onnected. • Devices connected with the router relay function (see Section 5.
7 - 3 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 3 (3) At data sending/r eceiving, the Et hernet module processes the following.
7 - 4 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 4 7.2 S ending Control Method This section explains the control me thod wh en dat a is sent from the Ethernet mod ule to an external device using fixe d buffer No. 1 and the area corresponding to connection No.
7 - 5 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 5 1) Confirm normal completion o f the initial processing. 2) Confirm that the E thernet mo dule is conn ected to th e hub. (BFM#28 b7:ON) 3) Confirm the normal completion of the open processing for connection No.
7 - 6 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 6 7.3 R eceiving Control Method This sectio n explains th e control m ethod when t he Ethernet m odule rece ives data from an external device.
7 - 7 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 7 1) Upon re ceiving data from the d esignated ex ternal devic e (set in the open processing), the Ethernet module processes th e following. • S tores the received data to the fixed buf fer (No.
7 - 8 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 8 7.4 Data Format When communicating between the Ethernet m odule and an exte rnal device, th e data format explained be low is used. The communication dat a consists of a "header" and "application dat a" as shown below .
7 - 9 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 9 7.5 Programming This sectio n explains th e program ming metho d when the Et hernet modu le communicates with an external device using fixed buf fers and the no-procedure control method.
7 - 10 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 10 7.5.2 Fixed buffer communication program ex ample (with the no procedure control method) This section explain.
7 - 11 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 11 (b) Receiv e program (FX 3U -2nd station) 1) Connection No. 2 is used to process the fixed buf fer receiving. 2) The unit number specified at the sequen ce program and FX Configur ator-EN is 0.
7 - 12 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 12 (2) Outline of the program example (a) Send progra m (FX 3U -1st station) 1) After setting each p arameter wi.
7 - 13 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 13 (Send program) •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No.
7 - 14 MELSEC-F FIXED BUFFER COMMUNICATION (WITH THE NO PROCEDURE CONTROL METHOD) 7 7 - 14 (Receive program) •F o r F X 3U /FX 3UC Series PLCs Program example for the unit No.
8 - 1 COMMUNICATION USING MC PROTOCOL 8 8 - 1 8 MELSEC-F 8 COMMUNICA TION US ING MC PROT OCOL This chapter gives an overvi ew of the MC pr otocol. NOTE The frame type of MC protocol (data comm unication m essages) us ed by the external device to access the PLC via this pr oduct is equiva lent to A compatible 1E frame.
8 - 2 COMMUNICATION USING MC PROTOCOL 8 8 - 2 8 MELSEC-F (2) Remote control of the PLC This function executes remote RUN/STOP operations. Remote operations of the PLC can be performed from the external device side.
8 - 3 MELSEC-F COMMUNICATION USING MC PROTOCOL 8 8 - 3 8.1.3 Access T i ming on the PLC Side The following diagram illustrates the acc ess timing on the PLC side when an external device accesses the PLC via the Ethernet mo dule. 1) A command message is transmitted from the extern al device to the PLC side.
8 - 4 MELSEC-F COMMUNICATION USING MC PROTOCOL 8 8 - 4 8.1.4 PLC setting for perf orming data communication Data commu nication via MC protocol is e nabled by adjusting the followi ng settings using FX Configurator-EN and writing the p arameters to the Ethernet module.
9 - 1 WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 1 9 MELSEC-F 9 WHEN COMMUNICA TING DA T A USING THE MC PROTOCOL This chapter explains the me ssage format, how to design ate data item s in a message and restrictions for data commu nication with an Ethernet module using MC proto col with A compatible 1E frames.
9 - 2 WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 2 9 MELSEC-F (2) When an external device writes data to the PLC 1) Area C indicates transmission from the external device to the PLC. 2) The program of the external device is gener ated so that the data is transmitted sequentially from lef t to right.
9 - 3 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 3 9.1.2 Message format and control procedure This sectio n explains the messag e format a nd control pr ocedure. (1) Message format This section explains the message format for tr ansmission between the Ether net module and an external device.
9 - 4 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 4 (2) Control procedure The following diagrams illustrate the co ntrol procedure fo r communicating with the MC protocol and the order of dat a items in the application dat a field.
9 - 5 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 5 2) When writing dat a to the local st ation PLC from the external device side (b) Communicati on in binary code 1) When r eading da.
9 - 6 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 6 2) When writing dat a to the local st ation PLC from the external device side External device side PLC side (Command message) PLC side External device side (Response message) (Normal completion) (Abnormal completion) T ext (Command) (Data name) (Example) Header Subheader PC No.
9 - 7 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 7 9.1.3 Contents of data designation items This sectio n explains th e data it ems of commands and responses when communica ting using MC protocol.
9 - 8 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 8 (6) Character field (response) This dat a contains dat a read/processing result when an external device reads/ writes data from/to the t arget PLC station. The content s and order of dat a in the C haracter field (respo nse) dif fer depen ding on the function used.
9 - 9 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 9 NOTE The following example shows th e designation of the subheader to the mon itoring timer when com municating us ing MC pr otocol unde r the following conditions.
9 - 10 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 10 (2) Format when communicating in ASCII code (a) The order when sending a comma nd (external device Ethernet module) (b) The order.
9 - 11 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 11 9.1.4 Character area transmission data This section exp lains how to transm it the bit device data and word dev ice data handled in the character ar eas, as well as the order of transmission when communicating dat a between an external device and the PLC by each command .
9 - 12 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 12 (b) When reading from or writin g to a word device memory Each word of the word device memory is expressed in he xadecimal values in 4-bit units sequentially from the h igher bit.
9 - 13 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 13 (2) Data communication using binary code (a) When reading to or writing from the bit device memory The bit device me mory can be re ad and written in bit un its (one device point) or word units (1 6 device point s).
9 - 14 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 14 (b) Reading from or writing to a word device me mory Each word of a word device memory is designated by 16 bit s and the designat.
9 - 15 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 15 9.2 List of Commands and Func tions for The MC protocol The following tab le list s the commands a nd functions when an external d evice accesses the PLC. *1 When the double word data is re ad using the us er program, etc.
9 - 16 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 16 9.3 D evice Memory Read/Write This section explains the designations in the control procedure wh en reading from and writing to the device memor y by providing an example.
9 - 17 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 17 (2) Designation met hod and accessible range of devices. (a) In device read/write, each device is set by a device code and number as shown in the diagram be low . (b) The following table outlines the device codes and numbers.
9 - 18 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 18 POINT (1) Bit devices and word devices are classified according to the following.
9 - 19 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 19 9.3.2 Batch read in bit units (command: 00) The exam ples show n in this se ction ex plain the command/response format when batch-reading the bit device memory .
9 - 20 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 20 (2) Communication in ASCII code NOTE (1) Use th e designation "00 H " when the number of device points is 256 points. (2) If the n umber of device points designated is an odd number, one byte of dummy data (30 H ) will be added to the response data.
9 - 21 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 21 9.3.3 Batch write in bit units (command: 02) The exam ples show n in this se ction ex plain the command/response format when batch writing to the bit device memory .
9 - 22 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 22 (2) Communication in ASCII code NOTE If the number of device points to be set is an odd number, ad d one byte of dummy data (30 H ) at the end of d ata written. For e xam ple, when writing three points, add the dummy data (30 H ) at the end.
9 - 23 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 23 9.3.4 T est in bit units (r andom write) (command: 04) The exam ples show n in this se ction ex plain the command/response format when writing dat a by designating bit device memories ar bitrarily .
9 - 24 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 24 (2) Communication in ASCII code (Data name) External device side (Example) Designated device Y45 Designated device M60 S38 ON Y45.
9 - 25 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 25 9.3.5 Batch read in word units (command: 01) The exam ples show n in this se ction ex plain the command/response format when batch reading the word device memory and the bit device me mory (16 point unit s).
9 - 26 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 26 (2) Communication in ASCII code 30 H 38 H 30 H 0 31 H 41 H 35 H Y100 32/16 = 2 points 31 H 1 46 H F HL F 46 H 0 HL 00 A 5 30 H 30.
9 - 27 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 27 NOTE C200 to C255 (Current Valu es) Batch Read Since C200 to C255 are 32 bit devices, th e device points should be specified as twice as much as the points actually read. Also, make sure that the device points are specified by an even number .
9 - 28 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 28 (2) When communicating in ASCII code * 0 30 H H F 46 H * 1 31 H L F 46 H H 0 30 H - 0 30 H - 0 30 H L A 41 H 8 38 H 1 31 H L 0 30.
9 - 29 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 29 9.3.6 Batch write in wo rd units (command: 03) The exam ples show n in this se ction ex plain the command/response format when batch writing to a word device memory and bit device memor y (16 point unit s).
9 - 30 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 30 (2) Communication in ASCII code F 30 H 0 38 H D100 33 H 3 46 H 46 H 30 H 0 30 H 0 30 H 0 41 H A 34 H 4 34 H 4 32 H 2 30 H 0 30 H .
9 - 31 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 31 NOTE C200 to C255 (Current Values) Batch Write Since C200 toC255 are 32 bit de vices, the device points should be specified twice as much as the points actually read. Also, make sure that the device points are specified by even numbe r.
9 - 32 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 32 (2) When communicating in ASCII code * 0 30 H H F 46 H * 3 33 H L F 46 H H 0 30 H - 0 30 H - 0 30 H L A 41 H 8 38 H 3 33 H L 0 30.
9 - 33 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 33 9.3.7 T est in word units (random write) (command: 05) The exam ples show n in this se ction ex plain the command/response format when writing dat a by designating word device memories and bit device mem ories (16 point units) arb itrarily .
9 - 34 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 34 (2) Communication in ASCII code Y20 30 H 35 H 46 H 46 H 30 H 30 H 30 H 41 H 30 H 33 H 30 H 30 H 35 H 39 H 32 H 30 H 31 H 30 H 37 .
9 - 35 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 35 9.4 R emote RUN/STOP , PLC model name code read This function is used to remotely RUN/ST OP a PLC and read the model name of a PLC from a n external device.
9 - 36 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 36 9.4.2 Remote RUN (command: 13) / Remo te STOP(command: 14) The examples shown in this section explain the control pr ocedure of remote RUN.
9 - 37 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 37 POINT • When executing the remote RUN/STOP using other external devices or computer link, the remo te RUN/STOP is executed in the order o f execution.
9 - 38 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 38 9.4.3 PLC model name read (command: 15) The exam ples show n in this se ction expl ains the con trol proced ure for re ading the model name of the PLC.
9 - 39 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 39 9.5 Loopback T est A loopback test checks whether or not the communication function between an external device and the Eth ernet module op erates normally . The examples show the control procedure using th is function.
9 - 40 MELSEC-F WHEN COMMUNICATING DATA USING THE MC PROTOCOL 9 9 - 40 (2) Performing a loopback test wh ile communicating in ASCII code POINT The number of the loopback dat a transmitted by an external device is returned to the external device it is.
10 - 1 USING THE E-MAIL FUNCTION 10 10 - 1 10 MELSEC-F 10 USING THE E-MAIL FUNCTION This chapter explains e-mail func tions of the Ethernet module. 10.1 E-mail Function The e-mail function sends e-mails to a personal computer or PLC at a re mote location using the network (via the mail server).
10 - 2 USING THE E-MAIL FUNCTION 10 10 - 2 10 MELSEC-F (2) Data conversion method used by the Ethernet module The following shows the dat a conversion method used by the Eth ernet module.
10 - 3 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 3 10.2 Configuration and Environment of the Applicable System This section exp lains the environ ment and system co nfiguration fo r using the e-mail function from the Ethe rnet module. (1) E-mails can be sent and received in an environment wh ere the Internet se rvice is available as show n above.
10 - 4 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 4 10.3 Precautions for Us ing the E-mail Function The following explains precautions when using the e-mail function of the Ether net module.
10 - 5 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 5 (f) When e-mail communica tion errors occur , check the error codes stored in the mail send/reception er ror log area of the buf fer memory . (g) If e-mails ca nnot be rece ived, try one of the following.
10 - 6 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 6 10.4 E-mail S pecifications The following table list s the specifications of the e-mail function. *1 Ethernet modules V1.10 or later suppo rt port numbers 1 to 65535. The port number is fixed to "25 " in Ethernet modules earlie r than V1.
10 - 7 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 7 10.5 Processing Procedure of the E-mail Function The following flowchart illustrates the proced ure that is required before sending and receiving e-mails: Start When DNS is not used When DNS is used Register the DNS server See Section 10.
10 - 8 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 8 10.6 E-mail Settings This sectio n explains th e settings req uired to send and receive e -mails. (1) DNS settings S pecify the IP address of the DNS server when setting the mail serve r name using the domain name from the e-mai l settings (see (2)).
10 - 9 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 9 (2) E-mail settings Set in order to use the e-mail function . [Setting item] *1 Supported in Ethernet modules V .
10 - 10 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 10 (a) General settings Designate the mail setting values th at have been register ed with the mail registration informatio n designated by the system administrator . 1) Password: Designate the mail password of th e local station's Ethe rnet module.
10 - 11 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 11 (c) SMTP authentication setting 1) Set the authentication method for the outgoing mail server (SMTP). The steps 2) and 3) below are re quired when "SMTP-AUTH" is selected in the SMTP authentication method.
10 - 12 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 12 10.7 Sending/Receiving E-mail (Attached Files) by the PLC This sectio n explains ho w to send an d receive attached files by e-mail. 10.7.1 When sending data as an att ached file The following explains the buf fer memory addresses and program for sending e-mail.
10 - 13 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 13 The tabl e below shows the buffer memory to be used for sending mail. (1) Send using the se quence program The following explains how an e-mail is sent by the sequence program. See (3) sending dat a for detail.
10 - 14 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 14 •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 X000 M100 M102 M103 M101 D100.
10 - 15 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 15 NOTE When an error occurs wh ile sending e-mail from the sending mail server to an external device, an erro r code is stored in the receiving error log ar ea.
10 - 16 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 16 (2) Execution timing of the instruction 1) Check whether the initial pr ocessing ha s been comple ted normally . 2) Write mail dat a to the buf fer memory . (Mail sending destinatio n: BFM#10337...
10 - 17 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 17 (3) Receiving with a personal computer The following explains how a PC/UNIX rece ives e-mails sent from the Ethernet module. After setting an environment with application soft ware that processes e-mails, e-mails can be receive d on a receive message screen as sh own below .
10 - 18 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 18 10.7.2 When receiving data in an att ached file This section exp lains the buffer memory ad dresses and a pr ogram to receive e- mail from external devices. The following instruction shows how to read th e received attached file.
10 - 19 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 19 POINT (1) The Ethernet module checks whether there is incoming mail in the mail server at the time inter val set in the Mail parameter (BFM#9904). If there is incoming mail, the rece ptio n information is stored in the fol lowing areas of the buf fer memory .
10 - 20 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 20 (1) Reception using the seque nce program The following explains the designation me thod in a sequence program . •F o r F X 3U /FX 3UC Series PLCs Program example for the un it No. 1 M201 M200 D200.
10 - 21 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 21 (2) Execution timing of the instruction 1) Check whether the initial processing has been completed nor mally or not. 2) Read the value in BFM#22640 to see whether there is incom ing mail in th e mail server .
10 - 22 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 22 (3) Sending from a perso nal computer This section explains how to send e-ma ils from a PC/UNIX to the Ethernet module.
10 - 23 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 23 10.7.3 Contents of the att ached files The following explains the conten ts of the att a ched file dat a. The data format of the att ached file is ASCII code (ASCII format, CSV format ) or binary code (binary form at).
10 - 24 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 24 (3) Data configurat ion in CSV format Data in CSV format can be used as contro l data for the cell unit s in Excel, etc. Data in CSV format h andled by the Ether net mo dule is the dat a expressed as follows.
10 - 25 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 25 10.8 Sending E-mail (Main T ext) by the PLC This sectio n explains ho w to send t he main text o f e-mail. 10.8.1 When sending data as main text of e-mail The following explains the buf fer memory address a nd sequence prog ram for sending e-mail.
10 - 26 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 26 The table be low shows the buffer me mory to be used for sending mail. BFM number Item Description Decimal (Hexadecimal) 10333 (285D H ) Mail send.
10 - 27 MELSEC-F USING THE E-MAIL FUNCTION 10 10 - 27 (1) Send using the se quence program Method for sending e-mails by th e sequence program is similar to the one by an attach ed file. See Subsection 10.7.1 for sample pr ograms for sending e-m ail from PLC.
11 - 1 TROUBLESHOOTING 11 11 - 1 11 MELSEC-F 1 1 TROUBLESHOOTING This section explains the co ntent s of the errors that may occur during comm unication between the Ethernet module a nd an external device as well as the troublesho oting procedures.
11 - 2 TROUBLESHOOTING 11 11 - 2 11 MELSEC-F 1 1.1 How to Check Errors Using LED Displays This sectio n describes th e errors th at can be c hecked with the LED displays on the front of the Ethernet module. 1 1.1.1 Checking error display The following can be checked with the LED d isplays on the fr ont of the Ethernet module.
11 - 3 MELSEC-F TROUBLESHOOTING 11 11 - 3 (Continued from the previous p age) *1 Confirm the complet ion for the init ial processing and chec k whether or not there is any prob lem in the ca ble connection and the Ethern et lines.
11 - 4 MELSEC-F TROUBLESHOOTING 11 11 - 4 1 1.1.2 How to turn off COM.ERR LED a nd to read/clear error information This section explains how to turn off [COM .ERR] LED and to read/clear error information using a sequence program. (1) How to turn off [COM.
11 - 5 MELSEC-F TROUBLESHOOTING 11 11 - 5 (4) How to clear error informat ion by writing to buffer memory Writing to BFM# 31800 to 31802 allows clearing the error in formation and turn ing off COM.
11 - 6 MELSEC-F TROUBLESHOOTING 11 11 - 6 1 1.2 How to Check an Error Through FX Configurator-EN The status of the vario us settings for the Ethernet module can be checked using th e FX Configurator-EN functions. (1) Ethernet diagnostics (S ee Section 1 1.
11 - 7 MELSEC-F TROUBLESHOOTING 11 11 - 7 1 1.2.1 Buffer memory that can be monitore d with the FX Config urator-EN diagnostic function The following is a list o f the buf fer memory addresses that can be displayed on th e "Ethernet diagnostics" scr een of FX Configur ator-EN.
11 - 8 MELSEC-F TROUBLESHOOTING 11 11 - 8 BFM address Decimal (hexadecimal) Applicable buf fer memory Ethernet di agnostics display screen Display contents 440 to 441 (1B8 to 1B9 H ) TCP Received TCP .
11 - 9 MELSEC-F TROUBLESHOOTING 11 11 - 9 1 1.2.2 Ethernet diagnostics [Purpose] The block status of an Ether net module, paramete r settings, communication st atus, error log and others can be checked usi ng the Ethern et diagn ostic function of FX Configurator-EN.
11 - 10 MELSEC-F TROUBLESHOOTING 11 11 - 10 1 1.3 Checking the error inform ation by the buff er memory batch monitoring function It is explained here how the Ethernet m odu le errors can be checked fr om GX Developer .
11 - 11 MELSEC-F TROUBLESHOOTING 11 11 - 11 11 . 4 E r r o r C o d e L i s t This section exp lains the erro r codes (abnorm al codes) for the error s that may occur in each processing when communicat.
11 - 12 MELSEC-F TROUBLESHOOTING 11 11 - 12 (1) Initial error code (BF M#105) (a) This address stores th e error codes g enerated when the initial processing is executed. (b) Error codes are stored as binary values when the initial abnormal completion signal (BFM#28.
11 - 13 MELSEC-F TROUBLESHOOTING 11 11 - 13 (5) Error log area (BFM#227 to 372) This area stores the following errors. • Errors whose source cannot be confirmed • Errors that occurred during commu.
11 - 14 MELSEC-F TROUBLESHOOTING 11 11 - 14 (f) Error log block - Connection No. (sta rting from BFM#232) 1) The faulty connection No. is stored in bit s 0 to 7 of the corresponding area. ("0" is stored in bit s 8 to 15). 2) For errors below the TCP and UDP levels, "0" is stored.
11 - 15 MELSEC-F TROUBLESHOOTING 11 11 - 15 (6) E-mail status storage area (BFM#22640 to 24575) * When the storage coun t exceeds FFFF H times, the count starts from 0 H again.
11 - 16 MELSEC-F TROUBLESHOOTING 11 11 - 16 7) Receiving error log wr ite pointer (BFM#22648) • This address stores the error log block number where the latest e rror logging is register ed. * If the pointer value is "16", it mean s that the latest error logging is registered in the error log block 16 ar ea.
11 - 17 MELSEC-F TROUBLESHOOTING 11 11 - 17 (b) E-mail status stor age area for sending (BFM#23 355 to 23712) 1) Number of mails normally complete d (BFM#23355) • This address stores a cumulative count of how many times the Ethernet m odule tran sferred se nd mails to t he Send ma il server .
11 - 18 MELSEC-F TROUBLESHOOTING 11 11 - 18 6) Sending error log write pointer (BFM# 23360) • This address stores the error log block area number where the latest sending error logging is registered. * If the pointer value is "8", it means that the latest error logging is registered in the sending error log blo ck 8 area.
11 - 19 MELSEC-F TROUBLESHOOTING 11 11 - 19 1 1.4.2 End codes (Complete codes) retu rned to an external device during data communication This sectio n explains th e end code s (compl ete codes) that are added to response s when com municating u sing the fixe d buffer or the M C protocol.
11 - 20 MELSEC-F TROUBLESHOOTING 11 11 - 20 1 1.4.3 Abnormal codes returned during communication using MC protocol This section explains the abnorm al codes (error codes) that are added to responses when communicating using MC protocol (A n abnor mal code is added only when an end code is "5B".
11 - 21 MELSEC-F TROUBLESHOOTING 11 11 - 21 1 1.4.4 Error codes stored in the buffer memory When an error occurs at each da ta communi cation processing be tween the Et hernet module and an external device, the error co de (ab normal code) is stored in the buf fer memory of the Ethernet module.
11 - 22 MELSEC-F TROUBLESHOOTING 11 11 - 22 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C001 H • At initial processing, t he IP address setting value of the Ethernet module is incor rect.
11 - 23 MELSEC-F TROUBLESHOOTING 11 11 - 23 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C020 H Data length exceeds the allowable range.
11 - 24 MELSEC-F TROUBLESHOOTING 11 11 - 24 *1 When this error occurs, the COM.ERR light turns on, but turns off again about one second later . Error code (abnormal code) Description of error Error ha.
11 - 25 MELSEC-F TROUBLESHOOTING 11 11 - 25 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C05F H The request could not b e executed on the t arget PLC.
11 - 26 MELSEC-F TROUBLESHOOTING 11 11 - 26 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C0C7 H An Ethernet module system error occurred.
11 - 27 MELSEC-F TROUBLESHOOTING 11 11 - 27 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM.
11 - 28 MELSEC-F TROUBLESHOOTING 11 11 - 28 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C1 13 H An e-mail was received that did n ot have an attach ed file.
11 - 29 MELSEC-F TROUBLESHOOTING 11 11 - 29 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C124 H A response from the SMTP server timed out .
11 - 30 MELSEC-F TROUBLESHOOTING 11 11 - 30 Error code (abnormal code) Description of error Error handling S torage destination Initial Open Fixed sending Connection Error code E-mail log BFM# 105 BFM# 124 BFM# 125 BFM# 126 BFM# 229 BFM# 22649 C143 H Cannot communicate wit h the POP3 ser ver .
11 - 31 MELSEC-F TROUBLESHOOTING 11 11 - 31 * 1 T ake corrective action using the following procedure. 1) Check wh ether the expansion conn ectors are conn ected correctly . 2) Check whether the opera ting environmen t of the Ethernet module is within the general specifications range of the module.
11 - 32 MELSEC-F TROUBLESHOOTING 11 11 - 32 NOTE Depending on the restriction s of the buffers o f the local station and ex ternal device, data may be divided for commu nication. Data received separately is restored (r ea ssembled) by the Ethernet module to be communicated using th e fixed buffer, etc.
11 - 33 MELSEC-F TROUBLESHOOTING 11 11 - 33 (2) When communication is perfor med using fixed buf fer (non-procedure ) Since no message data length is specif ied in non-pro cedure commu nication, the data received is stor ed in the receive buf fer area as is.
11 - 34 MELSEC-F TROUBLESHOOTING 11 11 - 34 1 1.5 Troubleshooting Flowchart This section explains some simple troubleshooting proce dures when the Ether net module and an externa l device have c ommunication problems in a flowchart format.
11 - 35 MELSEC-F TROUBLESHOOTING 11 11 - 35 *1 See Section 1 1.1 when the value of BFM# 27 is "0000 H " or when the display LED COM.ERR (communication error detection display) lights up.
11 - 36 MELSEC-F TROUBLESHOOTING 11 11 - 36 POINT (1) When the Ethernet module is replaced due to an error , reboot the following external devices and rest art dat a communication: (If the external device ret ains the Ethernet address, it may be impossible to continue communica tion because when a module is repl aced the Ethernet address changes.
11 - 37 MELSEC-F TROUBLESHOOTING 11 11 - 37 1 1.5.1 Sending errors during fixed buffer communication (common to procedure exist and no procedure) Sending error Check the open status of the connection with an external device. Are the corresponding connection LEDs (C1-C8) lit? If so, modify the program.
11 - 38 MELSEC-F TROUBLESHOOTING 11 11 - 38 POINT If the external device communicates normally , the following conditions occur . For TCP communication When the external device's open st atus is complete, LEDs C1-C 8, which are in correspondence with connections 1-8 , turn on.
11 - 39 MELSEC-F TROUBLESHOOTING 11 11 - 39 1 1.5.2 Receiving errors during fixed buffer communication (common to procedure exist and no procedure) POINT Perform erro r code reading while the connection is open . NO YES 1) NO YES Receiving err or Check the open status of the connection with an ext ernal device.
11 - 40 MELSEC-F TROUBLESHOOTING 11 11 - 40 Does the external device operate normally? YES The Ethernet module hardware on the sending side may be faulty . Consult your nearest branch office or dealer with the details of the errors. NO Check the device on the sending side.
11 - 41 MELSEC-F TROUBLESHOOTING 11 11 - 41 POINT If the external device communicates normally , the following conditions occur . For TCP communication When the external device's open st atus is complete, LEDs C1-C 8, which are in correspondence with connections 1-8 , turn on.
11 - 42 MELSEC-F TROUBLESHOOTING 11 11 - 42 1 1.5.3 Errors in communica tion using MC protocol Communication error Check the open status of the connection with the external device. Are the corres- ponding connection LEDs (C1-C8) lit? NO YES W as a command sent form the external device? NO YES Send the command to the Ethernet module.
11 - 43 MELSEC-F TROUBLESHOOTING 11 11 - 43 POINT • If the external device communicates no rmally, the following conditions occur. For TCP co mmunication When the ex ternal devic e's open status is com plete, LEDs C 1-C8, which are in correspondence with conne ctions 1-8, turn on.
11 - 44 MELSEC-F TROUBLESHOOTING 11 11 - 44 1 1.5.4 Sending errors dur ing e-mail communication Is "0001 H " written to BFM#10333? NO YES Correct the condition for writing to BFM#10333.
11 - 45 MELSEC-F TROUBLESHOOTING 11 11 - 45 1 1.5.5 Receiving errors during e-mail communication YES YES Was the e-mail successfully stored? Is the e-mail receiving error log normal? Is "0001 H &.
App - 1 APPENDIX App - 1 App MELSEC-F APPENDIX Appendix 1 Processing T ime Calculate the minim um proces sing time f or each fu nction usin g the expr essions be low .
App - 2 APPENDIX App - 2 App MELSEC-F (2) Minimum processing time of communication usi ng MC protocol (batch read and batch write) Tfs = Ke + (Kdt Df) + Scr number o f scans requ ired for pr ocessing .
App - 3 MELSEC-F APPENDIX App - 3 [Calculation example 1] Calculate the required time (unit: ms) to complete the processing of a data req uest from a PC after rece iving it, when the Etherne t module .
App - 4 MELSEC-F APPENDIX App - 4 Appendix 2 ASCII Code List Appendix 3 References For details on TCP/IP , refer to the DDN Protocol Handbook (3 volumes).
App - 5 MELSEC-F APPENDIX App - 5 Appendix 4 Program Examples The program examples pres ented in this section test the connection between the Ethernet module and an external device (p ersonal computer) that is connected to the same Ethe rnet.
App - 6 MELSEC-F APPENDIX App - 6 Appendix 4.1 Program example for communication using MC protocol -1 The following explains a program, its e xecution environment and the contents of d ata communication .
App - 7 MELSEC-F APPENDIX App - 7 (3) FX Con figurator-EN settings Set the PLC parameters as follows. (a) Operation settings (b) Open settings Communication dat a code : ASC II Initial timing : Always wait for OPEN (Communication possible at STOP time) IP address : 172.
App - 8 MELSEC-F APPENDIX App - 8 (4) Program on the external device side The program example o f the external device shown be low accesse s the FX 3U of the station in which the Ethe rnet module is installed.
App - 9 MELSEC-F APPENDIX App - 9 #include <std io.h> #include <winsock.h> #define FLAG_OFF 0 // Completion flag OFF #define FLAG_ON 1 // Completion flag ON #define SOCK_OK 0 // Normal com.
App - 10 MELSEC-F APPENDIX App - 10 int main() { WORD wVersionRe quested=MAKEWORD( 1,1); // Winsock Ver 1.1 request WSADATA wsaData; int length; // Communication data length unsigned char s_buf[BUF_SI.
App - 11 MELSEC-F APPENDIX App - 11 Closeflag=FLAG_ON; // Connection completio n flag ON // Go to non-blocking mode ulCmdArg = 1; ioctlsocket(socketno, FIONBIO, &ulC mdArg); // Set to non-blocking.
App - 12 MELSEC-F APPENDIX App - 12 while(1) { length = re cv(socketno, &r _buf[rbuf_ idx], (BUF_SIZE - rbuf_idx), 0); // Response data receiving if(length == 0) { // Is connection cut off? Socker.
App - 13 MELSEC-F APPENDIX App - 13 case ERROR_BIND: printf("Faile d to bind."); break; case ERROR_CONNECT: printf("Failed to establish connection."); break; case ERROR_SEND: printf("Send ing failed."); break; case ERROR_RECIEVE: printf("Receiving failed.
App - 14 MELSEC-F APPENDIX App - 14 Appendix 4.2 Program example for communication using MC protocol -2 This section ex plains an ex ample of an ex ternal device program that r eads/writs dat a from the PLC. A sample p rogram, its executio n environmen t and cont ents of data communicat ion are shown below .
App - 15 MELSEC-F APPENDIX App - 15 (4) Window example (Form 1) (5) Sample program (Form 1) Parts in italic are created automatically by Visual Basic .NET, so no input is required. Only input where written in bold. Option Explicit On Option Strict On Imports System.
App - 16 MELSEC-F APPENDIX App - 16 Memo: The following proced ure is necessary for Windows Fo rm Designer. Change by using Windows Form Designe r. Do not use code editor to change. Friend WithEvents Start As System.Windows.Forms.Button Friend WithEvents lstOutput As System.
App - 17 MELSEC-F APPENDIX App - 17 Dim RxResponse As String Dim Temp As String Dim j As Integer Dim Dreg(5) As Double Dim DregStr$ Dim SubHeader$ ' IP Address specification IpAddress = "172.16.56.99" ' Port Number specific ation PortNum = 10000 Client = New TcpClient 'Line connection proces sing Try Client.
App - 18 MELSEC-F APPENDIX App - 18 End If lstOutput.Select edIndex = lstOutput.Items.Coun t - 1 End If ' Line disconnection pro cessing Client.GetStrea m().
App - 19 MELSEC-F APPENDIX App - 19 Appendix 5 Differences between the Ethernet and the IEEE802.3 The following shows the Ethernet header in the dat a link layer supported by the Ethernet module.
App - 20 MELSEC-F APPENDIX App - 20 Appendix 7 Setting V a lue Recording Sheets This secti on provides settin g value re cording sheets fo r parame ters set with FX Configurator-EN Make copies as need ed. Recording sheet 1 [Block number ] Setting value recording sheet No.
App - 21 MELSEC-F APPENDIX App - 21 Recording sheet 2 [Block number ] FX Configurator-EN setting screen Data item Settin g data Setting value Remark Ethernet Initial settings T imer setting TCP ULP T .
App - 22 MELSEC-F APPENDIX App - 22 Recording Sheet 3 [Block number ] FX Configurator-EN setting screen Data item Setting dat a Setting value Remark Ethernet open settings Connection No. Protocol TCP UDP Open system Active Setting not required if UDP is selected.
App - 23 MELSEC-F APPENDIX App - 23 Recording sheet 4 [Block number ] FX Configurator-EN setting screen Data item Setting dat a Setting value Remark Setting the Ethernet relay parameter Sub-net mask pat tern . . . Adjust to in put format Default rout er IP address .
App - 24 MELSEC-F APPENDIX App - 24 Recording sheet 5 [Block number ] FX Configurator-EN setting screen Data item Setting data Setting value Remark Ethernet e-mail settings General settings Password Mail address Check of received mail Check received mails Check: Check mark Interval of inquiry Set interval va lue to check received mail.
App - 25 MELSEC-F APPENDIX App - 25 Appendix 8 V ersioin Information Ethernet Module ver sion is shown as "VERSION" on the label att ached to the right side of the module as seen from the front.
W arranty Please confirm the following product warr anty details before using this pro duct. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (he reinafter "Failure".
Revised History Date Revi sion Desc riptio n 10/2005 A First Edition 9/2007 B - The FX 3UC Series was added - Clerical error co rrection 9/2008 C Clerical error correction 1 1/2009 D - Change for the Ethern et module V1.
.
HEAD OFFICE: TOKY O BUILDING, 2-7-3 MA RUNOUCHI, CHIYODA- KU, TOKYO 100-8310, JAPAN HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN JY997D18101E (MEE) Effective July 2010 Specifications are subject to chang e without notice.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il Mitsubishi Electronics MELSEC-F è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del Mitsubishi Electronics MELSEC-F - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso Mitsubishi Electronics MELSEC-F imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul Mitsubishi Electronics MELSEC-F ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il Mitsubishi Electronics MELSEC-F, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del Mitsubishi Electronics MELSEC-F.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il Mitsubishi Electronics MELSEC-F. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo Mitsubishi Electronics MELSEC-F insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.