1-Ethernet iQ-R Na Eng

You might also like

Download as pdf
Download as pdf
You are on page 1of 65
(Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG MITSUBISHI ELECTRIC Changes for the PLC Ethernet (MELSEC iQ-R Series) This course covers the steps from configuration to programming of FA networks using Ethernet. ‘Ethernet isa registered tradematk of Xerox Corp. (©2018 Mitsubishi Electric Corporation. All Rights Reserved, Lajo0215ENG. Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG el ‘ Purpose of the course ooo This course aims to provide basic knowledge about Ethemet modules for first-time users of Ethernet modules. In this course, you will earn data exchange method, specifications, various settings, and startup procedure of Ethernet modules. AAs prerequisites for this course, you should have already completed the following courses or possess the equivalent knowledge. + FA Equipment for Beginners (Industrial Network) + MELSEC iQ-R Series Basic + Programming Basics Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG el GEEZ «Course structure ) sao ‘The contents of this course are as follows. Chapter 2 - Overview of Ethernet Overview of Ethernet data communication Chapter 2 - Data communication procedure of Ethernet modules Types of data communication function and data communication procedure of Ethernet modules Chapter 3 - Start-up Operation procedure of Ethemet modules from start-up to operation test Chapter 4 - Troubleshooting Troubleshooting procedures Final Test Pass grade: 60% or higher (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG eet) Go to the next page. CoS Ro Back to the previous page. Ter se Td "Table of Contents" will be displayed, enabling you to navigate to the desired page. a] Exit the learning, (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Cautions for use Safety precautions When you lear based on using actual products, please carefully read the safety precautions in the corresponding manuals. Precautions in this course ‘The displayed screens of the software version that you use may differ from those in this course. This course uses the following software version: ~ GX Works3 Version 1.038Q (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG 4 Overview of Ethernet coc ‘This chapter provides an overview of Ethernet data communication. 11 Positioning of Ethernet in the FA environment 11.2 Basic knowledge about Ethernet Ethernet plays an essential role for daily information communications in various networks such as intemal LAN. ‘The goal of this course is to become capable of performing simple data communications between programmable controllers and Ethemet devices using Ethernet modules, To learn more about data used for the system control, please take the following courses: *CC-Link IE Control Network (MELSEC iQ-R Series) *CC-Link IE Field Network (MELSEC iQ-R Series) *CC-Link (MELSEC iQ-R Series) To learn more about data transmission with devices, such as electronic scales, temperature controllers, and bar code readers, that are connected via RS-232 or RS-422 serial interfaces, please take the Serial Communication Course. Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG oso >a el Positioning of Ethernet in the FA environment ) ooo ‘Type of the network used in the FA environment is divided into “information network" and "control network". Typically, instead of transmitting information by seconds, a large amount transmitted in a relatively long cycle such as several minutes or several hours The information network is used to send production instructions to a production site or to receive production reports from a production site. Example: Ethemet, Control network In the control network, transmitting and collecting information are performed by programmable controllers in bits or words. Typically, transmission of information should be synchronized with operation of an assembly line, therefore, itis required that a relatively small amount of information is periodically and surely transmitted by milliseconds. The control network is used to transmit information, such as on/off status of sensors and actuators, ‘workpiece position, and rotation speed of motors. Example: CC-Link IE Control Network, CC-Link IE Field Network, and CC-Link Network (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG oe ‘ Pe ning of Ethernet Ethernet is one of the standards of information network, With the increasing need for information coordination between factories and offices in recent years, Ethemet is gaining popularity as a network standard for sending instructions to factory floors and for receiving production reports from the factory. the FA environment ‘system Sdminstator —nfamatonnesnert| | Cantel netark a Sends production instructions to the factory. (@ PLC_Ethemet, MELSEC_iQ-R Serie Basic knowledge about Ethernet ‘This section describes TCP/IP, which is one of the most commonly used protocols for Ethernet. IP address To perform communications between devices, both of the communication source and destination devices must be defined. As shown in the figure below, these are similar to a sender's address and a receiver's address on an envelope. IP communications are the foundation of TCP/IP communications. In IP communications, each communication device is identified by its IP address (Intemet Protocol address) Normally, IP addresses are expressed in decimal and are divided into four 8-bit sections by dots (e.g, "192.168.1.1") (2 Navn eet, Mite city An IP address cannot be set arbitrarily. Before you connect a device to an existing network, itis necessary to consult the network administrator for assigning an IP address. (Wi PLC_Ethemet_{MELSEC_iQ-R Series Port number Actual communications are performed between application programs running on devices or computers. In IP communications, the application programs that are being communicated are identified by their port numbers. When an IP address is regarded as a "street address", a port number corresponds to a "floor number" ro sth floor 123, Mitsubishi street Mitsubishi ty Actual ‘The port number ranges from 0 to 65535 (0 to FFA). The range from 0 to 1023 (0 to 3FF) are generally called "Well Known Port Numbers" which are fixed for each application program. (For example, the port number for receiving e-mail is 25, that for home page reference is 80, and that for file transfer is 20 or 21), For communications between programmable controllers that are not associated with these application programs, set the port numbers in the range between 1025 and 65534 (401 to FFFE). * Port numbers are expressed in decimal in this section. The values shown in parentheses are in hexadecimal Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG ols ca Ell ) ooo ‘This section describes the most common example of the Ethernet connection ‘The type that connection lines radiate in all directions as shown in the figure below is called a star topology. In this type, a switching hub is used to shape, amplify, and control signals. Intthis type, a feilure occurred in a device is hard to affect the entire network. Moreover, the required LAN cables are readily available. Programmable Computer controller (i ee ss ub LAN cable (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG € 12.4 | Communication methods ooo ‘There are two main Intemet protocol types: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP), Data which is sent via TCP can be received only at a TCP port. The features of these two protocols are described below. [A highly reliable communication format that performs 13 communications by fixing the loakca ine rep |tcomnection) to the sen destination in advance. [This protocol is suitable for transmitting data reliably. [The simpre configuration enables high-speed processing although the reliability is not the same as that of| upp —_| TCP. In addition, 11n communications can be performed because a connection tothe send destination is not fixed. [This protocol is suitable for applications such as realtime monitor on 2 computer. Ratabily High Low (Processing) Speed) low Hon ‘Number of extemnal devices to be communicated a eet Data delivery assurance: “Supported Nat supported n ‘Taiomate roranemiesion Tio ratranemiseion Seay (according to the setting) (packet discared) Eablishment of communication connection “1 Required Not required Flow control ‘Supported Not supported Congestion control (retransmission contro) °2 ‘Supported Not supported 1 Establishment of communication connection will be expained inthe “Open/Close processing” section. *2:*Congestion” refers toa traffic am of communication packets in the network All the examples given in this course are based on the TCP protocol which provides reliable communications. (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Open/Close processing In TCPAP communications, when a connection (logical line) is established, a dedicated line is established between external devices Opening (establishing) this line is referred to as "open processing’, and disconnecting the line is referred to as "close processing’. There are two ‘types in open processing: "Active open” that performs open processing actively and "Passive open’ that waits for open processing passively. Actual communication Example ofl hone Active open ie esse open side ‘Active open side Pessve open side (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Open/Close processing Select Active open or Passive open depending on the device that takes the initiative for the open processing. For example, when a computer has an open processing program for Ethernet module, the Ethernet module should be set to Passive open. ‘Open processing The following provides more detailed explanation about Active open and Passive open. + Active open Active open request is issued to external devices that are waiting for Passive open (Unpassive/Fullpassive). Comparing to a cellular phone, Active open processing is equivalent to making a call toa recipient. + Passive open In the Passive open condition, the own device waits for an open request. There are two types of Passive open: Fullpassive open and Unpassive open. Comparing to a cellular phone, Passive open processing is equivalent to the standby mode being able to receive a call. The own device accepts an Active open request only from a specific network-connected device. Barta eaal] Comparing to acellular phone, Fullpassive open accepts incoming calls only from the names registered inthe telephone directory ‘The oun device accepts an Active open request from any netwark-connected devices, Tis tip Comparing cellar hone Uneassive oper aces any naming alsin nore (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Open/Close proces: Close processing Close processing is a process that disconnects the connection (logical line) with the external device which has been established by an open processing. When the close processing has successfully completed, that connection line becomes available for another device. Comparing to a cellular phone, “close processing” is equivalent to hanging up a call after a conversation, ‘Summary of open/close processing If an Ethemet module has been set as an Active open device, set the external device to Passive open. If the open status of the external device is determined, the settings of the devices should be made as shown in the table below. ey Hae Own device poneecs Fullpasive open ‘Active open Passive open — Unpassve open 1. npassive op Fullpassive Passive open ——— Active open Unpassive open UDP None None (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG ell Summary of this chapter ooo In this chapter, you have learned: + Positioning of Ethernet in the FA environment + Overview of TCP/AP Important points Ten LAGOA LGN Ethemet is one ofthe information networks. poe’ tis suitable for vansmitting data in a relatively long cycle Cr eset eggie ) TCP and UDP are two main protocols (rules) used for communication between devices “TCP is suitable for transmitting data reliably UDP is suitable for apalcations such as realtime monitor ree SL ADI aN) Viral dedicated line in TCP is called "connection" and the opening process ofthis connection iscalled “open processing” UDP has no connection. There are two types of open processing: Active open and Passive open. To establish a connection, the type ofthe open processing of each device must be set corecty. (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Data communication procedure of Ethernet modules ‘This chapter describes the types and the data communication procedure of Ethernet modules. 21 Communication methods 2.2 Function of example system 2.3 Communications using SLMP Ethernet modules or CPU modules with Ethernet interfaces are required to configure an Ethernet network with programmable controllers. ‘The previous chapter explained knowledge about TCP/IP on which communications are based. ‘This chapter describes the TCP/IP-based data communication procedure specific to programmable controllers. Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG ols ca Ee L | Communication methods ooo Types of data communication methods There are three basic communi predefined protocol’ access buffer’ tion methods available to Ethemet modules: “Communications using the , “communications using the fixed buffer’, and “communications using the random Although Ethernet modules have other communication methods such as email and Web access, this course focuses on communications using the predefined protocol [Atype of communication protocol that allows an external device to access an SLMP- [compatible device such as an Ethemet module, Ethemet modules have the predefined protocol support function, Using this function, send/receive messages to/from an SLMP-compatibie device can be created, [Data communication can be performed from the control program or the program on the computer to the predetermined send area or the predetermined receive ares, [Communication method that allows programmable controlles or other computers to perform mutual data communication in the common area. "2: The content which has been explained so fars illustrated in the hierarchical cme iP structure shown on the right. ‘As shown in the figure, the predefined protocol is at the upper layer than TCP/IP. HTTP (HyperText Transfer Protocol) is one of the general communication cP UDRP protocols, which is used to view web pages. SLMP (Seamless Message Protocol}, which is accessible to programmable controllers, isin the same layer as HTTP. Ethernet SLMP: The messaging procedure established by CLPA (CC-Link Partner Association). Itallows data requests and response messages to be transmitted seamlessly across different networks. (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Function of example system This section describes the system that will be configured in this course. ‘The example system consists of "System A”, which controls the manufacturing line at the factory, and "System B", which manages the production system at the head office. ‘The two systems are connected to each other via Ethernet. ‘The daily production volume is saved in the data register "D1000" in System B at the head office. Every day, atthe start time of the factory production (start time of System A), System A accesses System 8 at the head office to retrieve the daily production volume. ‘The predefined protocol "SLMP* is used for data communication between System A and System B. SUMP request side SINP response side + Active operation (Active open) + Passive operation (Passive: Unpassive open) + Station number: + Station number: 2 + adress: 19216811 + address: 19216812 ere) Ethernet connection ‘Send request to System B about the production volume ofthe day. —_ Sends response to System. oout the production volume, Activ server computer and receives the response according to the request from the client. device that sends requests. In IT systems, this is a client computer, which requests information to a Passive: A device that waits for requests. In IT systems, this is a server computer, which sends response (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Communications using SLMP ‘When devices are communicating using SLMP, the data request side and the response side ‘communicate with each other as shown below. Request side device Response side device (SLMP-compatibie device) Computers or programmable controllers cs, Establishing the connection Waits for an open request from the request side (Passive open). Establishing the connection Waits for an opan request from the request side (Passive open). Executing the processing Executes processing such a reading/wrtog in ccordance wth the raqueet message sent rom the request side Stee ‘After completing the execution, returns 6 response message tothe request side, Sends an open request to the response side (Active open). ‘Transmitting the request message (Once the connection is established, sends 8 request message to the response side. Repost as necessary Receives the response message from the response side, and checks the execution result Disconnecting the connection eee Sends a close request tothe response side, Receives the close request from the request and enc the communication operation of sido, and ends communication operation of the request side the response side. Ml PLC_Etheret_(MELSEC_iQ-R Series) ENG el ‘4 Request message and response message of SLMP. ooo ‘The unit of SLMP message is called "frame". SLMP frame consists of groups of successive messages sent in the order as shown below. SLMP request message This is the format for sending a request message from the device on the request side to the SLMP-compatible device on the response side. Header | Subheader | Network | Station Module YO _ Request data | Monitoring rnumoer | number ‘number length timer oe More details wl be explained on the next page SLMP response message This is the format for returning a response message from the SLMP-compatible device on the response side to the device on the request side. There are two types of response message: One shows that the operation of the response side has completed normally, and the other shows that the operation has completed with an error. If the operation has completed with an error, an error code is saved at the “End code". When the operation has completed normally Network | Station | Module “0 _ Response = ee Header | Subheader | number | number umber datalength | Endcode | Response data | Foot ‘When the operation has completed with an error Network Station Module YO Response data aac (ated umber umber umber ~ length i ‘Network | Staton | ayoauie umber | number Low | meode | iteme | Gespone | 0, | | Command | subcommand | Footer station) | _ station) (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Request message and response message of SLMP. ooo ‘The table below lists frame elements that configure SLMP messages. For these elements, the "read source device" and the "storage destination device” must be set. For details on the device assignment, refer to Section 3.5.3. erent Desrpion Header Heads of Etamet TEP ang UDPAP ae automaticaly added Subhsagar | Seal number Setan artery sofa munber to daly a pir ofa request and a response Network number Sethe network ruber of the deve on the pone se Sion number Sethe aon number ofthe deve onthe response age ose ruber Sethe YO numer ofthe GP mode device on the vesporee ide Wontorng tne Sous) Swanger cng sadn pos he avs on ar Star deve Sed | Sette start device number af the deve range on the response de where eadioghutng number ven is executed. recuse | oovce cous and | Setthe ype ofthe deve onthe response sige OM, ee) where eadingrring Ga becca Number of sand | Sette numberof ee pois of ho devi on he response de where eading/wrting ie eve pts tebe eserted Response dia Receive _| Set the storage location ofthe response daa eceved rm the device onthe response side Recut Tete dia Send | Set the siorage location of the wit dao be sett the device onthe response side End code (Rett ay | Sethe strage ean ofthe ror code ace rm the device on he respon id Fecter Snd/Recave | Foot of heat TORR andUUDPAP ar aoa ded + "Request data" includes the following elements: Command, subcommand, start device number, device code, number of device peints,and write data ‘The details of “command” and "subcommand” are explained on the folowing page (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG SLMP commands ‘SLMP request message contains an SLMP command that specifies an operation to be performed by the ‘SLMP-compatible device on the response side. ‘The table below shows the SLMP command examples. ‘The command example is for reading data from the CPU module device on the response side and for writing data in the CPU module device on the response side. tem Type _ | Operation Device one Cee) Drecraoy oom, Reads vakies from the spacifed bit device in units of 1 point Read 401 cotta + Resds values from the specified bt device in units of 16 points + Reads values from the spacifed word device in units of L word oom, Writes values to the specified bit device in units of point. Write 1401 oom + wiites values from the specified bit device in units of 26 points + ites values from the specified word device in units of 1 word of the subcommand varies according to the device to be specified (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG Summary of this chapter In this chapter, you have learned: + Communication methods + Function of example system + Communications using SLMP Important points Deion “Predefined protocol’, “fied buffer communication’, “random access buffer communication method Renae sump ‘The explanation about SLMP communication procedure, message format, and command was provided. (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG elas [ Chapter 39K ) ooo This chapter describes the start-up procedure of Ethernet modules and the programming method using a dedicated instruction By learning the system configuration, connection methods, and various setting operations of Ethernet modules, the required knowledge to actually operate Ethernet modules can be obtained. 3.1 Settings and procedure before operation 3.2 System operation 3.3 System specifications 3.4 Module parameter settings 3.5 Predefined protocol support function 3.6 Saving a created protocol, and writing it to a programmable controller 3.7 Communication check 3.8 Dedicated instruction. 3.9 Control program example =| ) @ac (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG ell Settings and procedure before operation ‘The settings and procedure which are performed prior to actual Ethernet module operation are shown below. Star the configuration process Install the Ethernet modile onthe base unit Connect the Ethernet module to the Ethernet tnork, a Using a cable, connect the computer to which ‘the engineering software is installed withthe (CPU module, sing the engineering software, configure the Ethemet module parameters. Tsing the predefined protocol support function, set the predefined protocol —_———>+_ Reset the CPU modiule. (Wi PLC_Ethemet_{MELSEC_iQ-R Series)_ENG (EEE 5:10 ope ‘This section describes the operation of the system to be configured SLMP request se SUMP response side v ‘ +- — Active operation (Active oper) Passive operation (Pessive: Unpessive open) ) ooo (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG System specifications ‘This section describes the specifications of the system to be configured. SLMP request side SLMP response side + Active operation (Active open) + Passive operation (Passive: Unpassive open) + Station number: + Station number: 2 + address 19226811 + address 19216812 ea) Ethernet connection The module configuration and /O assignment are shown below. The SLMP request side and the SLMP response side have the same module configuration. Ml PLC_Ethermet_(MELSEC_iQ-R Series)_ENG el a Module parameter settings MELSOFT GX Works3 engineering software is used to configure module parameters. Module parameters should be configured both on the SLMP request side and on the SLMP response side. Configuring module parameters enables communication with extemal devices without using a control program. eal Network module arrangement Arrange the program elements of modules in the module configuration diagram in accordance [ Sivprequansce with the network type ‘The information within the parentheses in network module model names, such as "RITIENTL(*™***), indicates the network type. ——t In the system to be configured in this course, select the Ethemet "RJ7LEN71(E+£)" for both of the port 1 and port 2. Devi Tae Ty Roei0196 High speed dts logger mode 1OOOBASE-T/1008ASE T7108 Ti roeiwesss MES interface module (10008ASE-1/008ASE-TX/IOBASET: 2 | roe1c0css (CUA Server mesie(10008ASE-/IOOBASE-TH/108ASE-T: Hrs ‘Serial commmurtaton (R202: 1 channel RS-422/485:1 hare Hroncase2 ‘Senalcommuntabon (85252 2 canna) Hrsmcaers ‘Sena communication (RS422/985: 2 channel) [tne (O000ASE-T/IOQEASE-TW/AOBASE:2chemels) ‘tne (006ASE/IQOEASE-TW/IOBASE: 2 channels) theme (IO06ASE-T/ICOBASE-T/I06ASET: 2 chemels) Eterm 1000ASE-T/ICOBASE-T/106ASE: 2 cherels) Therma (IEHEASET /OOEASETH/IGEASET. 7 Charl) (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG el a Gill Basic settings of network modules ) ooo This section describes the basic settings of network modules (Ethemet modules) such as IP address and communication data code. ‘Open [Basic Settings] from the module parameter setting window. pen [ 9s] parameter setting windo 2} Network number = [other networks such as CC- Link E Control Network and Sea ERI) sump request side Cunt Feutcnee LMP response side Sireiten = * Active operation (Active open) eiéstinthasystem besureto + Pasive operation (Passive: Unpassve oper) + Station number: etanumber different from * Station number: 2 + Paddiess 18216812 ‘their network numbers. + address: 19216812 a When "Enable" an Station cS isseleced the en hate Sten 6 Selon oe ae Sten mel ae “i oronets Sete Med Faoeets Ponte Stine Mobos Panett ees Paso «off Phare mee are configured ‘See ar ‘Set Ra according to laut Gaemay Dota ster the thd and Tonmancaters by Wea Re Sten Fo Ee Fourth acets of Sere ete Use P Adboes the lP address. Tere Re = — Sten a rable or disable Tica ins zs Grecotel device [nests cre cee ASU) Enbie/Dese rive Chaves Ente AVSIM See Conmsicoton Dots Oo Brey the CPU module penne Prot Do tet Open Fam There Rete Pe] That ein Re RUN | floret Device Cokiuetin Tatenal Device ora state SLIME ‘oral Deve Catersten sat Satire> Estwral Dee Cotraton les seine communication Select the communication data code in accordance with the specications of the extemal device. Select the open method for connections when = Binary I-byte data i sent/recewved aes communication is performed over the TCP protocol ia + ASCIL 1-byte datas sentroceved as two ASCH code characters Passive open mode or ever the UDP protocol ‘hw data amount tobe transmitted/eceived by the binary is half ofthat by the ASCIL Selecting _ "Do Not Open by Program” i selected, connections the binary reduces the load applied to the communication line ae opened wien the system receives an Active request. Ml PLC_Ethermet_(MELSEC_iQ-R Series)_ENG | =_se Ell External device connection settings - SLMP request side ) ooo ‘This section describes the external device connection settings configured on the SLMP request side. SMP reson side From the module parameter setting window, open [Basic Settings] - [External Device Configuration]. First, select the external device to which you want to establish a connection from the module lst, |i and place it in the diagram. Select the communication method for Set the port SUMP request side communications using a foed Bue. eect Ente + Active operation (Active open) rection link, address and the + Paddress: 19216811 Select the pairing option to establish “connection port number of connwstios using One port ach fr the Set alt ports for the exxeral Select the communication method Syn station and the extemal device with the stom inthis sevice (SLMP used with the external device. the receiving connection and the ‘course to "2000", response side). Select "Predefined Protocol’ forthe. transmitting connection grouped as a pair SLMP request side. Akos Food baer me roceiname smmecere | cue > acre | pox, isaieast a2 i60.t 192.16812 2000 thy SUP Comecton Me 1B wor conecton Moaule omen oer (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG ‘ Ext in settings - SLMP response side ‘This section describes the settings for the SLMP response side. ‘SLMP response side i + Passive operation (Passive: Unpassve oper) Sah} + adores 19216812 here Slcton | Mo | My Fs al device connec! foes a rime weieeaa 19216812 Now that the module parameter settings have been configured, next perform the parameter error check, apply the parameters, convert all, and write the settings to the CPU module. (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG Predefined protocol support function ooo ‘The predefined protocol support function helps create the send/receive messages necessary for communication with external devices. ‘This section describes how to register a predefined protocol using the predefined protocol support function. Register the predefined protocol on the SLMP request side. ‘On the GX Works3 menu, select [Tool] - [Predefined Protocol Support Function] -[Ethernet Module] to open the predefined protocol support function. Protocol setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG oe Adding a protocol ‘The "Add Protocol" window is shown below. ‘Adds new protocol, Protocol to Add. Selecton of Protocol Type to Add ap = Predefned Protocol Lbrary __¥| R = Select from Predefined Protocol Library. Please select manufacturer, model and protocol name from Protocol to Add. |Add Protoco! window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG bodies Protocol settings ooo ‘The content of send/receive data can be specified in the protocol setting window. {EINELSOFT Sees [Protocol Setting - Unt] aes Edt Qnline Tool Debugging Support Function Wandow Protocol setting window In the example system in this course, the Device Read (word) protocol of the SLMP command is used. This protocol consists of the following three packets + Request + Normal response + Error response If the packet has not been set, "Variable Unset" is displayed in red. Details regarding the packet setting procedure are given on the following page. (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG Packet settings In the packet setting, the device from which data is read and the device to which data is stored are set so that those settings can be used in programs. Using "Device Batch Setting” of the predefined protocol support function enables batch setting of multiple devices. Select [Edit] - [Device Batch Setting] of the predefined protocol support function, and enter the start device number. 1600 0.0608 | Send packet ‘Start Device No. — D609 to D1573 | Racelve packet Deve No. [specfable Device Symbol) XY, ML B, 0, W, R ZR, G (Buffer Memory) Error receive 1574 to D158 ei DDevice batch setting window Device assignment Protocol setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG oh Packet settings This section describes how the devices are automatically set as the result of the device batch setting. (1) Send packet D600 to D608 | Send packet 5090 D173 | Receive packet Eno receive israto p1se1 Protocol setting window: Packet Protocol No. fr Protocol Name — [0401: Read (wid) packet Type [Send Packet Nar Dewee assignment amen it a Noe Element Type Element Narn [Seo mee) Revoarvesan 2 venge etal. a Stat-Oae | Fieddal rT eos 4 vai Pe No ED. D6 Fun Len Be oe ge Ba) eroanaian Is vanes stations ema 262s Lend IA one ne Baa Maresneeien 6 Venable Flequested madile 11 No. Ud Lencth/2B te omes/\Inors Byte /Mo Seco) a Sai Gua [Fakueeprsin [ela a Legh eqs ech om Nareaweven 3 ear nti ie Se TT 10 sioiOda——[tcenard Fr + Suidae [Sheard cone Henoaresen 2 tense Hood os eo 06am po Bua Hhesrsesen 9 vatke Deve cote ng 17d Lente one Al Ss Packet setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG Packet settings (2) Normal receive packet echt Nae 1600 to D608 | Send packet Pack Sein 1509 10 01573 | Receive packet Dis74 to piser | Erorreceive packet Device assignment Bet Tener Te Elonent None Sic taie | Fed dt) Nanecevenen 2 vaune sen 3 gic Dae | Fved ga) Nanceean 4 Wace et No en canvoen : vane sina ncanescn A ‘Vaube enacted mide 0 No 7 Sate Daa |Fa fue sgansin Hl Lert ecprce death H silica |Enfene an ccrvoren 0 ane Response za Packet setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG Packet settings @) Error receive packet D600 to D608 | Send packet echt Nae Pack Seng 10603 0 D1573 | Recewve packet Protocol seting window Error receive na. 1574 to DISEL ie potocolne. [fT ———S~S~S~*«=S toca Packet Type [Recewe Packet Packet Name Device assignment pacatn. = [FO Element Lat rent ie lane Tape Ebert Hane Norreonvrson 2 ‘valle Seid No. 2 Site Data [Feod da) Norconrsion a Vance Netwok Ho 1 Norconraion 5 ‘vate Staton D1 576 D1676Y Fives Lena Bye one ope Bus Susp] Nor canverson 6 ‘Yanai Foqsied oso /0Na {01577015771 Fues ens/26teAL ono Upper Blo 7 Sle Dale Forhiueexpenon e Lengh Ferconss cla lerth (box oenanis ET onal Norconersion 9 ‘anne End code Norcanvarion 30 ‘Vaal Netwok No Norcanerson at ‘ates Staten, Nonsonverson 12 Yowoele eqesiedwoaile JONa Packet setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG ‘ Element settings ooo ‘The setting details for each element can be checked and changed. ‘The following figure shows setting details of the normal receive packet. Set | comets | eemetne an ing (xiao mgs, erento [Reema Fe Lengo vane Leneth [rose eee ‘outa Lengenymarmem Duta vengts [7520 —~=~S~*~*«Satg Rage) 3 to 20K ieot tert Oa [lowerb re Osea We S400 Dab (awee > pe) a Stonge Aen Soectezton Element setting window (Wi PLC_Ethemet_{MELSEC_IQ-R Series)_ENG oh Saving a created protocol, and writing it to a programmable controller Saving a protocol A created protocol can be saved to a computer as a protocol setting file. From the menu of the predefined protocol support function, select [File] - [Save As]. Writing a protocol to a programmable controller The procedure for writing a created protocol to the Ethemet module is given below. From the menu of the predefined protocol support function, select [Online] - [Write to Module], and then reset the CPU module. Module Selection [ooga:RI71EN71(E+E)

You might also like