Home
User`s Manual for Profibus DP Slave Module
Contents
1. Functions Data Swap Function 4 4 Data Swap Function The high and low bytes are swapped in word units when input or output data are sent to or received from the master station Use this function when the used master station handles the high and low bytes of word data in reverse to those of the ME2PB1 L This function enables you to swap upper and lower bytes to exchange I O data without the need to create a special sequence program for the swapping Operation outline for swap function The data stored in the input sending area are sent to the master station after their high and low bytes have been swapped The data received from the master station are stored into the output receiving area after their high and low bytes have been swapped Master station ME2PB1 L Input data Input sending area Data 1 Data 1 Data 1 Data 1 Data1 Data L D Input image 4 2 Data 2 Data 2 Data 2 D Data 2 Data 2 D Q 1 D Output data S Output receiving area Data 3 Data 3 Data 3 Data 3 Data3 Data3 OQ i m O i H i Output 1 m 1 i 1 image 4 Data4 Data4 Data4 Data4 Data4 Data 4 L HW M d E l 4 eo Y Hi Profibus DP data communication byte LOW byte Fig 4 11 Data are swapped between the ME2PB1 L and the master statio
2. Fig 3 13 Behaviour of the DIA LED of the ME2PB1 L Current operation mode Un G2254 The buffer memory address UN G2254 stores the current operation mode Refer to section 3 5 Stored value Description 0000H Normal operation mode 0002H Self diagnostic mode Tab 3 11 Current operation mode area Un G2254 At power on or CPU reset the module starts in the normal operation mode Operation mode change area Un G2255 and Un G2256 This area is used to change the operation mode of the slave station ME2PB1 L Operation mode change request area Un G2255 Set any of the following values when changing the operation mode of the ME2PB1 L with the oper ation mode change request signal Y n 1 1 ewe Sd 0000H The mode is changed to normal operation mode 0002H The mode is changed to Self diagnostics mode Tab 3 12 Operation mode change request area Un G2255 Operation mode change result area Un1G2256 This area stores the result of changing the operation mode in response to the operation mode change request signal Y n 1 1 Stored value Description 0 Normally completed Abnormal completion A change request was made with an illegal value set in the operation mode change request area Un G2255 1 Tab 3 13 Operation mode change result area Un G2256 MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 19 Specifications Buffer Memory 3
3. 3 21 3 4 17 Input send area used status Un G2288 to 2299 3 22 3 5 Operation MOde 6 cece cece een e hehe een 3 23 4 Functions 4 1 I O Data Exchange ber PME EU 4 1 4 1 1 Reading writing I O data llle 4 2 4 2 I O Data Separation Prevention 4 4 4 2 1 Using the I O data separation prevention 4 4 4 2 2 How to prevent data inconsistency 4 5 4 2 3 PIOCAUTIONS 35 seen e ret REOR PE RUE 4 6 4 3 Global Control Function 0 0 0 0 cece cece 4 7 4 3 1 Global control services available for the 2 1 4 7 432 Groupselection Eo Wee e Ea Wee ei RR 4 11 44 Data Swap Functlon ei deece yer ert eere eek eee Pa reed de 4 12 4 4 1 Dicas 4 12 5 Settings and Procedures before System Operation 5 1 Implementation and 1 hen 5 1 5 1 1 Handling precautions cece cece cence eee a 5 1 5 2 Procedures Before System Operation 5 2 5 3 Parameter Setting to Master Station sisse 5 3 5 3 1 Data module tent meme 5 4 5 3 2 Data assignment Mode 5 10
4. SYNC receive signal Xn6 SYNC LED OFF ON OFF Fig 3 4 SYNC mode signal Xn5 SYNC receive signal Xn6 The SYNC receive signal Xn6 turns OFF if a communication time out error occurs due a stop of communication with the master station while the SYNC receive signal Xn6 is ON However if the communication watchdog timer setting in the master station side parameters is invalid the SYNC receive signal Xn6 does not turn OFF since a communication time out error does not occur The output data in the output receive area is held Communication watchdog timer setting in master r Operation at master station fault station side parameters No error Invalid na SYNC receive signal Xn6 remains ON Communication time out error occurrence SYNC receive signal Xn6 turns OFF Valid 2 to 65025 Tab 3 6 Dependence of the SYNC receive signal Xn6 on the master station parameters The communication watchdog timer setting can be confirmed in the Current communication watchdog timer value buffer memory address Un G2257 of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 7 Specifications l O Signals for the PLC CPU FREEZE mode signal Xn7 The FREEZE mode signal Xn7 turns ON when the ME2PB1 L is placed in the FREEZE mode by a FREEZE request from the master station The FREEZE mode signal Xn7 turns OFF when the FREEZE mode is te
5. Setup Tasks Add slaves via Drag amp Drop from GSD device tree 7 eo fo 650 Device Database 8 Sie T vo Mapper e Devices for Stave Spectic Transfer Switches gv Export Tasks 2 e Valves POU Generation Configuration Image Controls Project in GX Cenfigurator DP Format an e Import Tasks QD eomm Import GX Configurator DP Project Add GSD File Import GSD Database Gateway zl Q PLE Documentation Sel PLC gd e sno Project Documentation elect Documentation of O Mepping PON 32NT DP SE 2 Help a gl Help Topics About GX Configurator DP ves E gp m poo o s NN aeg 65 Database Eid Online Status not connected Fig 5 5 Insertion of a DP Slave MELSEC L Series ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Parameter Setting to Master Station 5 8 3 Select the ME2PB1 L and place it in the network using drag amp drop A E v0 neosiroco niei GSD Database Master Settings Bl FOL Slave Ne 002 ME2PB1 L size 0 0 byte s e General 650 Device Database E e Ty VO Mapper Devices foc uve Specific Transfer e Switches E g vo Export Tasks e Valves POU Generation Configuration Image 85 gt Controts
6. Input send area refresh directive signal YnO Operation mode change request signal 1 1 Operation mode change completion signal X n 1 1 Operation mode change result area Buffer memory Un G2256 Change result of operation mode MOV FROM instruction Buffer memory MOV TO instruction Sets the operation mode in Checks result in operation operation mode change mode change result area request area Un G2255 Un Gn2256 and the current operation mode Un Gn2254 Fig 3 8 Operation mode change request signal Y n 1 1 Operation mode change completed signal 1 1 Do not turn the power OFF or reset the MELSEC L series CPU during the operation mode registra tion to the flash ROM by turning ON the Operation mode change request signal Y n 1 1 Turn the power OFF or reset the MELSEC L series CPU after the Operation mode change com pleted signal X n 1 1 has turned ON If the power is turned OFF or the MELSEC L series CPU is reset by mistake register the operation mode to the flash ROM again MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 11 Specifications l O Signals for the PLC CPU NOTE Station number change request signal Y n 1 3 Station number change completion signal X n 1 3 Turn ON the station number change request signal Y n 1 3 when changing the station number to the one set in the station number change request area
7. Fig 7 14 Changing the operation mode z 9 Description The operation mode change request is stored Self diagnosis mode setting Operation mode change request Stores operation mode data in D10 Stores change result data Resets operation mode change request Resets operation mode change storage Tab 7 18 Description of fig 7 14 NOTES If changing the operation mode as shown in this program example do not change it from the Profibus DP configuration tool When using dedicated instructions confirm that Consistency is disabled with Autom Refresh ena bled Refer to section 5 4 1 When the automatic refresh and data separation prevention functions are enabled dedicated instructions are not processed DP ME2PB1 L Parameters Wizard Autorefresh Settings Buffer Devices V Enable Autorefresh Make sure the box is unchecked Input Size n words 32 0 122 Output Size words 32 0 122 Input CPU Device D1000 to 01031 Output CPU Device to 07131 7 12 MITSUBISHI ELECTRIC Communication of I O Data Programming Program example when using MOV instructions Output data read and input data write Initial input data write x31 X30 X4D X33 U3 DE LA i FMOVP KO G256 K6 SET M20 Input send area refresh start M20 X31 X30 X4D x33 i e O
8. op BS we ERU 5 22 DIVIDED mode Overview 5 11 Program examples 7 14 MELSEC L Series ME1PB2 L Profibus DP Slave Module E ERR LED Lus resp Sophie aoe 5 22 Error check using the LEDs 9 1 Extension trouble notification Completion 2 3 5 Request signal Yn2 3 5 F FDL Address 0c cece eee eee ees 5 19 FREEZE Description 4 10 Modesignal Xn7 3 8 Program example 7 20 FRZ LED x2 meu ia eta ts 5 22 Function version 2 1 Functions Overview 4 1 G BBLKRD instruction 8 4 BBLKWR instruction 8 6 Global control Overview 4 7 Program example 7 20 Group Description ess eR red 4 11 Identification number 5 3 50 desea d fd 5 3 GX Works2 New intelligent function module 5 27 l communication signal 1 3 4 W O data luem RR xx ER 4 1 lOdesignation 5 4 l Osignals et ee ee Rx 3 3 Input send area refresh directive signal YnO Instructions BBEKRD us neu RH ER APR 8 4 BBEKWR ox aaa sro ben x 8 6 L LEDs Troubleshoo
9. After power is switched on or the programmable controller CPU is reset the ME2PB1 L operates in the normal operation mode Normal operation mode In this mode the ME2PB1 L is tested alone to diagnose a hardware fault No communication is made with the master station Self diagnostic mode Tab 3 20 Operation modes of the ME2PB1 L When setting operation mode using the output signal Set the operation mode using the operation mode change request area Buffer memory address Un G2255 and the operation mode change request signal Y n 1 1 When setting operation mode using GX Configurator DP Set the operation mode using GX Configurator Client of GX Configurator DP NOTE Refer to section 5 6 for changing the operation mode MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 23 Specifications Operation Mode 3 24 MITSUBISHI ELECTRIC O Data Exchange Functions 4 Functions The following table gives an overview of the functions of the ME2PB1 L Function Description section This function allows the ME2PB1 L to operate as a Profibus DP slave station and to 41 O data exchange communicate I O data with the master station 1 O data separation prevention The I O data separation prevention function is a function to prevent the I O data of the CPU 42 P module from being unmatched with the I O data of the master station The high and low bytes are swapped in word units when in
10. Data of the LX41C4 LY42C4PT1P are read to D1100 to D1105 beforehand The data in D1100 to D1105 are written to the input send area using a BBLKWR instruction MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 15 Programming Communication of I O Data When MOV instructions are used CPU module Outputs Y Y70 Y8F LY41PT1P outputs o Y90 Y10F LH42C4PT1P outputs Y110 Y12F LY41PT1P outputs Inputs X X50 X6F LX41C4 inputs X90 X10F LH42C4PT1 P inputs ME2PB1 L Output receive area 0 0H Empty 1 1H Data module 1 2 2H Output 2 words 3 3H Data module 2 4 4H Output 2 words 5 5 Data module 3 6 6H Output 2words 7 7H 8 8H Empty 191 BFH Input send area Data module 0 256 100H Input 2 words 257 101H 258 102H Empty 259 103H Data module 2 260 104H Input 2 words 261 105H 262 106H Empty 447 1BFH Fig 7 19 Occupation of output receive and input send area when using MOV instructions The output receive area data are read to outputs Y using BMOV instructions With BMOV instructions the data in inputs X are written to the input receive area Assignment of devices in the program examples Devices occupied by the ME2PB1 L Device Description Device Input P Output Description X30 Watchdog timer error Y30 communication Input send area refresh directive Extension
11. R W Read write executable MELSEC L Series ME2PB1 L Profibus DP Slave Module Specifications Buffer Memory 3 4 2 3 4 3 3 4 4 3 4 5 3 4 6 Output receive area Un GO to Un G191 The output receive area stores the output data received from the master station The structure varies with the data module setting and data assignment mode setting in the slave parameters Refer to sections 5 3 1 to 5 3 3 Input send area Un1G256 to Un G447 The input send area stores the input data to be sent to the master station The structure varies with the data module setting and data assignment mode setting in the slave parameters Refer to sections 5 3 1 to 5 3 3 Operation baud rate Un1G512 The buffer memory address Un G512 stores the baud rate which is currently active Baud Rate Stored Value Tab 3 9 Baud rate not yet recognized 0000u Values in the Operation baud rate area Un G512 9 6 kbps 96E2H 19 2 kbps 19E3H 45 45 kbps 45E3H 93 75 kbps 93E3H 187 5 kbps 18E4H 500 kbps O5E5H 1 5 Mbps 15E5H 3 Mbps 03E6H 6 Mbps 06E6H 12 Mbps 12E6H The stored value while the I O communication signal Xn1 is ON is valid Use the master station parameter to set the baud rate of Profibus DP Operation station number Un1G513 The buffer memory address Un G513 stores the station number of the ME2PB1 L which is currently active The storage range is 0 to 126 T
12. Safety guidelines Precautions to prevent damages by electrostatic discharge Electronic devices and modules can be damaged by electrostatic charge which is conducted from the human body to components ofthe controller Always take the following precautions when handling the controller CAUTION Before touching a module of the controller always touch grounded metal etc to discharge static electricity from human body Failure to do so may cause the module to fail or malfunction Wear isolating gloves when touching the powered controller e g at maintenance during visual check Youshouldn t wear clothing made of synthetic fiber at low humidity This clothing gets a very high rate of electrostatic charge Design Precautions DANGER When a communication error occurs on PROFIBUS DP the status of the faulty station is as shown below Create an interlock circuit in the sequence program using the communication status infor mation to ensure the system operates safely Input Xn1 An erroneous output or malfunction may cause accidents The input data from the master station remains unchanged from the data prior to the communication error When the master station becomes faulty the output status of the ME2PB1 L will be as in the parameter settings of the master station When any ME2PB1 L is down the output state of other slave stations will be in accord ance with the parameter settings of the maste
13. Time stamping etc Class 1 A device exchanging I O data with a DP Slave DP Master Class 2 A device that communicates with DP Slaves and checks their FDL address settings and or operation states The DP Master Class 2 is used as a DP Master for supervising the network which can start maintain and diagnose the system DP Slave A device that exchanges I O data with a DP Master Class 1 ME2PB1 L ST1H PB etc Repeater Bus terminator A device used to connect different segments of Profibus DP A terminating resistor that is connected to either end of each segment on Profibus DP GSD file An electronic file that contains parameters of a DP Slave The GSD file is used to set up the slave parameters on the intelligent function utility FDL address The numbers assigned to a DP Master and DP Slaves The FDL address is set within the range from 0 to 125 Configuration tool Bus parameter Software used to set slave parameters etc and to write them to a master station The parameter used for the communication setting of Profibus DP The bus parameter is set up on the intelligent function utility Master parameter The parameter used for the settings FDL address transmission speed etc of the DP Master The master parameter is set up on the intelligent function utility Slave parameter The parameter for a DP Slave which is set on the DP Master The slave parameter is se
14. gnare Mibakze dave when faing to respond Swap VO Bytes in Master Click on Next Cancel Next Fig 5 13 Selection of the user parameters Perform the data module setting DP Slave Parameters Wizard Slave Modules mem 1 Modules installed 40 are possible Max Datasize 384 byte s VO usage 20 20 byte s Maxl Oszes D44 244 bye Slave User T Available Slave Modules Project Slave Modules x gl 2 Word tn 3 Word Out con word E gg 256 0 4 Word In 4 Word Out word 4 10 Word In 10 Word word 5 Word in 5 Word con word 6 Word ie Word Out con word 7 Word tn 7 Word Out con word f Word in 8 Word Out con word fl 10 Word in 10 Word Out con word 11 Word In 11 Word Out con word 12 Word In 12 Word Out con word 13 Word In 13 Word Out con word 14 Word In 14 Word Out con word Cancel Back Next Default Fig 5 14 Data module settings 5 14 MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation 3 Make the desired setting for Word Data Swap Swap function setting GQ Slave Poriamders Wirerd Surve Uber Parameters m J me Fig 5 15 Selection ofthe swap function Item Description enable Word Data Swap Swaps the high and low bytes of data in units of
15. memory 2274 8E2H 2B 22 address in 2275 8E3H 3B 32 the output receive 2276 8E4H 4B 42 area 2277 8E5H 5B 52 2278 8E6H 6B 62 2279 8E7H 72 2280 8E8H 82 2281 8E9H 92 2282 8EAH 2283 8EBH Tab 3 18 Output receive area used status Un G2272 to Un G2283 Example of output receive area used status Buffer memory A Address Hexadecimal Decimal OH 0 1H 1 ON indicates that the output receive area at address OH is used and b14 ON that the output receive area at address EH is used EH 14 FH 15 Output 10H 16 receive area 11H jt b1 ON indicates that the output receive area at address 11H is used and b15 ON that the output receive area at address 1FH is used Pd 1EH 30 1FH 31 Fi 20H 32 ib15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO Output SEO 0E receive 8E1H 2273 0 0 1 gt area used 8E2H 2274 0 0 status i i 0 OFF 1 ON Areas where output data are being received from the master station Fig 3 14 Example for indication of the output receive area used status MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 21 Specifications Buffer Memory 3 4 17 Input send area used stat
16. Set the data alignment mode m J me Fig 5 12 Selection of the data alignment mode Item Description LUMP mode Assigns data as a lump Default DIVIDED mode Assigns data individually Data Alignment Mode Tab 5 9 Data Alignment Modes Write the configured parameters into the master station NOTE Refer to the GX Works2 Operating Manual for creating projects and writing parameters to the mas ter station MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 13 Settings and Procedures before System Operation Parameter Setting to Master Station 5 3 3 Swap setting Set whether the word data swap function will be used or not Refer to section 4 4 1 Setting method when using the intelligent function utility This section describes how to make settings using GX Works2 When using another configuration tool refer to the relevant manual D From the intelligent function utility open the Slave Parameter Settings dialog box Refer to section 5 3 1 Click the Next button in the Slave Parameter Settings dialog box OF Slave Parameters Wizard Slave Settings Ir gt Model Revision Vendor MITSUBISHI ELECTRIC EUROPE BV Slave Properbes Nome Stave_Nr_001 FOL Address 2 p 29 mn Tse T n 253 Group ident abon number 2 Gp3 Gps l Gps Gps Gp Gps F Stave is active Src Freeze rot
17. System PLC File FLCRAS Boat File Program SFC Device 1 0 Assignment puiltin Ethernet Fart Setting Builtn 1 0 Fun EE NN Model Name Ponts ae L26CPU BT Buta Function Y a L Fig 7 4 1 0 assignment in the program example Module Input signals Output signals Profibus DP slave module ME2PB1 L X30 to X4F Y30 to Y4F Tab 7 1 Assignment of input and output signals for the ME2PB1 L Settings In the program example the station number of the ME2PB1 L is set to 1 MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 3 Programming Station Number Setting Assignment of devices in this program example Devices occupied by the ME2PB1 L Device Device Input Description Output Description X30 Watchdog timer error X43 Station number change completion Station number change request X4D Module READY signal Tab 7 2 1151 of devices from to the ME2PB1 L Devices for the user Device Description Device Description MO Station number setting flag DO Operation station number storage device Tab 7 3 Listof devices for the user Program example X30 Y43 U3 ME 4 MOVP H101 9515 o SET Y43 X43 U3 MOVP 9513 1 e RST Y43 RST 1 Fig 7 5 Station number setting program example Description Sets the st
18. 1 1 Abbreviations and general terms MELSEC L Series ME2PB1 L Profibus DP Slave Module 1 5 Overview Abbreviations and Generic Terms 1 6 MITSUBISHI ELECTRIC Total Configuration System Configuration 2 2 1 2 1 1 2 1 2 2 1 3 System Configuration This chapter describes the overall configuration number of connectable modules and compatible software version of the ME2PB1 L Total Configuration The ME2PB1 L can be connected to a CPU module an extension module or a CC Link IE Field network head module Applicable System Forthe number of connectable modules and the compatible software version refer to the following MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection MELSEC L CC Link IE Field Network Head Module User s Manual Restrictions when the ME2PB1 L is connected to a head module When the ME2PB1 L is connected to a CC Link IE Field network head module LJ72GF15 T2 dedicated instructions BBLKWR BBLKRD cannot be used Data consistency between the head module and the ME2PB1 L is also not supported How to check the function version and serial No of the modules The serial No and function version can be checked on the label attached to the right side of the module Using the programming software GX Works2 the serial No and the function version can be checked while the PLC is operating From the Diagnostics menu select System Monitor and then select Product In
19. 2 1 The data of specified sizes are not matched with each other MELSEC L Series ME2PB1 L Profibus DP Slave Module 1 3 Overview Abbreviations and Generic Terms 1 2 Abbreviations and Generic Terms Unless otherwise specified this manual uses the following generic terms and abbreviations to describe the ME2PB1 L Profibus DP Slave Module General term Abbreviation Description ME2PB1 L Abbreviation for the ME2PB1 L Profibus DP Slave Module Profibus DP Abbreviation of Profibus DP network CC Link IE Abbreviation of CC Link IE network system MELSEC L CPU LCPU Generic term for L series CPU modules e g LO2CPU LO2CPU P L26CPU BT and L26CPU PBT etc PLC CPU CPU module Generic term for programmable controller GX Works2 Generic product name for the programming and configuration software GX Works2 BBLKRD BBLKWR Abbreviation for the G BBLKRD instruction Abbreviation for the G BBLKWR instruction Profibus DPVO A basic version of Profibus DP The following functions are executable O data exchange Diagnostic information notification etc Profibus DPV1 A Profibus DP version for which the following functions have been added to the basic functionality of Profibus DPVO Acyclic communication Alarm function etc Profibus DPV2 A Profibus DP version for which the following functions have been added to the Profibus DPV1 functionality
20. 4 13 3 4 14 3 4 15 Current communication watchdog timer value Un G2257 The buffer memory address Un G2257 stores the communication watchdog timer value set in the master station side parameters The stored value is invalid if the I O communication signal Xn1 is OFF Stored value Description 0 Communication watchdog timer setting invalid Other than 0 Communication watchdog timer setting in increments of 10ms Tab 3 14 Current communication watchdog timer value Un G2257 When the master station becomes faulty the send receive data and I O communication signal Xn1 statuses change depending on the communication watchdog timer setting Current communication watchdog timer value Un G2257 Statuses at master station fault 0 Other than 0 Send data to master station HOLD CLEAR Data update in output receive area HOLD O CLEAR communication signal Xn1 O OFF Tab 3 15 Behaviour at master station fault The send data to the master station indicates the data that flows on the Profibus DP actually It differs from the data in the input send area of the ME2PB1 L If the communication watchdog timer setting is invalid Un G2257 contains the value 0 the data is held since the communication watchdog timer does not count up if the master station becomes faulty during communication Self diagnostic status type code display area Un G2258 The diagnostic status ty
21. 5 3 3 SWap SETIN E 5 14 5 4 Parameter Setting to Slave Station ME2PB1 L 5 16 5 4 1 Setting FDL address and automatic refresh 5 17 5 4 2 Writing the intelligent function module settings to the PLC 5 20 5 5 Part Names and meme 5 21 5 5 1 Indicator WEDS usse ovs eto xe dees teh See terree esee vetet 5 22 XII MITSUBISHI ELECTRIC 5 6 Self diagnostics aeir da qe e Ra que 5 23 5 6 1 Self diagnostics execution procedure 5 23 5 6 2 X Execution result of self diagnostics essel 5 23 5 7 linc 5 24 5 7 1 Pin assignments of the Profibus interface 5 24 54 2 Profibus Riu RUP Vr EVEN VER PUPILS 5 24 5 7 3 Wiring precautions spss ccc Ie 5 26 5 8 Intelligent Function Utility Works2 5 27 5 8 1 Addition of a new module to the 5 27 6 Processing Times 6 1 Processing of the Output Receive 6 1 6 2 Processing of the Input Send Data 6 3 6 3 Transmission Delay Times IH mme heh 6 4 7 Programming 7 1 Communication SEQUENCE 6 cece cece eee
22. Mounted Slot No and the start I O number As Title you can for instance enter an individual name for the module This name is then displayed in the Pro ject Navigation window Afterwards click on OK The information entered on the New Module screen can be checked in the PLC parameters Fig 5 32 Display ofthe I O assignment in the PLC parameters 5 28 MITSUBISHI ELECTRIC Processing of the Output Receive Data Processing Times 6 6 1 MELSEC L Series ME2PB1 L Profibus DP Slave Module Processing Times This section explains the processing time of the ME2PB1 L Communication processing between the master station and ME2PB1 L is shown below Processing of the Output Receive Data The following shows how the output data from the master station are read out to a CPU module When BBLKRD instruction is used Class 1 master station Profibus DP Bus cycle time ME2PB1 L image memory Buffer memory CPU module BBLKRD BBLKRD BBLKRD lt gt Transmission delay time for output Refer to section 6 3 Fig 6 1 Reading of output receive data using a BBLKRD instruction Refer to the relevant manual for the processing time of the master station Processing Times Processing of the Output Receive Data When a MOV or FROM instruction is used ME2PB1 L Class 1 master station Profibus DP image memory Buffer memory C
23. Procedures before System Operation Parameter Setting to Master Station Data flow Master station Output area EM 5 X Inputarea lt i4 5 cy S cj S amp 9 e E Bus terminator Cy Ss Bus terminator Q S i i Os Output receive area lt Input X20 X5F Un GO Un G191 Y60 Y9F Input send area XAO XBF Data module 0 Data module 2 Input Output YAO YBF Un G256 Un G447 CPU Module ME2PB1 L Slave Station Fig 5 3 Data flow for this example Use the data assignment mode setting to set the layout on the buffer memory Refer to section 5 3 2 Reads with BBLKRD MOV FROM instruction or automatic refresh Writes with BBLKWR MOV TO instruction or automatic refresh 5 6 MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation Setting method when using the intellige nt function utility This section describes how to make settings using GX Works2 When using another configuration tool refer to the relevant manual Select the Profibus DP master modul Fig 5 4 IHE MELSOFT Series GX Works2 C Project Edt Hnd Replace 12 1 4 El Intelligent Function Module 22 08 0040 ME1PB1L Pener Double klick on Parameter Add a slave station on the graphical network editor
24. Profibus DP Slave Module 3 9 Specifications l O Signals for the PLC CPU NOTE BBLKWR start request signal YnB BBLKWR start request acceptance completion signal XnB The BBLKWR start request signal YnB is used to start the processing of the dedicated instruction BBLKWR When executing the dedicated instruction BBLKWR always turn ON the BBLKWR start request signal YnB to turn ON the BBLKWR start request acceptance completion signal XnB so that it is used as an interlock condition When the BBLKWR start request signal YnB is turned ON in the sequence program the BBLKWR start request acceptance completion signal XnB turns ON and the ME2PB1 L starts the process ing of the dedicated instruction BBLKWR When the BBLKWR start request signal YnB is turned OFF by the sequence program the processing of the dedicated instruction BBLKWR is ignored Only when using the dedicated instruction BBLKWR turn ON the BBLKWR start request signal YnB If the dedicated instruction BBLKWR is not executed after the BBLKWR start request signal YnB has been turned ON the transmission delay time between the master and a slave stations is prolonged When the BBLKWR start request signal YnB is turned OFF in the sequence program the BBLKWR start request acceptance completion signal XnB also turns OFF BBLKWR start request signal YnB BBLKWR start request acceptance completion signal XnB BBLKWR ins
25. STOP RUN switch is in the STOP position Power on Check operation with the LEDs Data communication normal RUN lit R ERR extinguished Data communication abnormal ERR R ERR lit Write a program to the CPU module Reset the CPU module or switch power from OFF to ON Completed h Tab 5 2 Procedures before system operation when setting the station number from a class 2 master station connect the Profibus cable to the ME2PB1 L before the setting MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation 5 3 Parameter Setting to Master Station In Profibus DP systems slave parameters for the ME2PB1 L must be set to the master station For the setting method refer to the manual of the configuration tool to be used FDL Address Description Set the station number of the ME2PB1 L Setting range Oto 125 Reference Section Set the watchdog timer period of the communication watchdog timer The ME2PB1 L detects a communication error if data cannot be received from the master station within the configured time If the communication watchdog timer has not been set no error is detected 2to 65025 set value X 10ms Set the minimum response time during which the response frame is sent from the ME2PB1 L to the master station Usually the default value is used 1to 255 Group identification number Specify group
26. Word e Word Out con word gl 7 Word tn 7 Word Out con word f Word in 8 Word Out con word fl 10 Word in 10 Word Out con word 11 Word tn 11 Word word 12 Word In 12 Word word 13 Word In 13 Word Out con word 14 Word in 14 Word Out con word Cancel Project Slave Modules mi an Slave Nr 001 10 Word in 10 Word Out con word x Fig 5 8 Write the configured parameters into the master station Data module settings Refer to the GX Works2 Operating Manual for creating projects and writing parameters to the master station MELSEC L Series ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Parameter Setting to Master Station 5 3 2 Data assignment mode setting Set how to assign each module in the output receive area or the input send area of the buffer memory This section gives an example of the output receive area and the input send area in the following data module setting Data Module Setting Output Data Data Data Data Data Data Data moduleO module 1 module2 module3 module4 module5 CPU Module ME2PB1 L Input Output Input Output Input Output 1 word 2 words 1 word 1 word 2 words 1 word Output 1 word Fig 5 9 Configuration for this example Input Data Data module 0 1 word input 1 word Data module1 2 words output 2 wor
27. case or subject it to heavy impact Do not remove the printed circuit board of each module from its case This may cause a failure in the module Be careful not to let foreign objects such as wire chips enter the module during wiring In the event any foreign object enters remove it immediately Tighten the screws within the following torque ranges Screw location Tightening torque range Profibus cable connector screw 4 AOUNC screws 0 20 to 0 28 Nm Tab 5 1 Screw tightening torque MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 1 Settings and Procedures before System Operation Procedures Before System Operation 5 2 Procedures Before System Operation The following diagram illustrates the procedure before system operation Add the ME2PB1 L to the MELSEC L series system Check that the ME2PB1 L operates properly as a single module Self diagnostics Refer to section 5 6 Set the ME2PB1 L slave parameters to the master station using configuration tool applicable to the Refer to section 5 3 master station Set parameters to the ME2PB1 L Station number Refer to section 5 4 Automatic refresh parameters Connect the master station and the ME2PB1 L by a Profibus cable Refer to section 5 7 Connect bus terminators to the modules at both ends Make checks before power on Checkthe installation of the module Checkthe input power supply voltage Checkthat the CPU module
28. design installation configuration maintenance servicing and testing of these prod ucts The regulations listed below are particularly important in this regard This list does not claim to be complete however you are responsible for being familiar with and con forming to the regulations applicable to you in your location VDE Standards VDEO100 Regulations for the erection of power installations with rated voltages below 1000 V VDE0105 Operation of power installations VDE0113 Electrical installations with electronic equipment VDE0160 Electronic equipment for use in power installations VDEO0550 0551 Regulations for transformers VDEO700 Safety of electrical appliances for household use and similar applications VDE 0860 Safety regulations for mains powered electronic appliances and their accessories for house hold use and similar applications Fire safety regulations Accident prevention regulation VBGNo 4 Electrical systems and equipment MELSEC L Series ME2PB1 L Profibus DP Slave Module Safety guidelines Safety warnings in this manual In this manual special warnings that are important for the proper and safe use of the products are clearly identified as follows DANGER Personnel health and injury warnings Failure to observe the safety warnings identified with this symbol can result in health and injury hazards for the user CAUTION Equipment and property damage warnings Failur
29. error code and take the corrective action Refer to section 9 4 Master station Confirm the error of the master station and take the corrective action Refer to the master station manual Tab 9 2 Checks and actions for network related faults MITSUBISHI ELECTRIC Causes of Failure to Make Normal Data Communication and Actions to Be Taken Troubleshooting 9 3 Causes ofFailureto Make Normal Data Communication and Actions to Be Taken The following I O signal status flowchart indicates the causes of a failure to make normal data com munication and the actions to be taken I O signal status Is communication Xn1 ON Refer to 1 in the table below Is input send area refresh directive ON Refer to in the table below Is SYNC mode Xn5 OFF Refer to 3 in the table below Is FREEZE mode Xn7 OFF Refer to 4 in the table below Refer to 5 in the table below Tab 9 3 Checking the I O status of the ME2PB1 L Status Cause Action A communication start No I O communication request is not given from uH the master station Checkthe transmission path Refer to section 9 2 Check the master station The output refresh directive is not given Turn on the input send area refresh directive signal Any ofthe slave Yn0 parameters of the master Check the slave parameters of the master station station is wrong Output data is not
30. mode refer to figures 7 11 to 7 14 MELSEC L Series ME2PB1 L Profibus DP Slave Module Programming Global Control driven Program Execution 7 4 Global Control driven Program Execution This section shows a program example added using global control reception as a trigger System configuration for the example CPU module L26CPU BT Profibus slave module ME2PB1 L Input or output modules Power supply module L61P e End cover L6EC Fig 7 22 The ME2PB1 L is mounted to the CPU module together with input or output modules L Parameter Setting PLC Name System PLC File FLCRAS Boat File Program SFC Device 1 0 Assignment puiltin Ethernet Fart Setting Builtn 1 0 Fun VO Assignment Vo I t e e ri Le tees MOON RE en e s pine se lire ptc onn DL Gm e mmi vei 26CPU B T IX a 1 1 j gutinyoFunton 0 0 Bosne rg japea oee ME2PB1 L 0060 Fig 7 23 l Oassignment in the program example Module Input signals Output signals Profibus DP slave module ME2PB1 L X30 to X4F Y30 to YAF Tab 7 31 Assignment of input and output signals for the ME2PB1 L MITSUBISHI ELECTRIC Global Control driven Program Execution Programming Assignment of devices in this program example Devices occupied by the ME2PB1 L Device Inp
31. number After clearing the operation station number is 126 The station number set to the flash ROM is FFFEH Tab 3 10 Station number change request area At power on or at CPU reset FFFEH is stored Turn on the station number change request signal Y n 1 3 after storing a setting value given in the above table Executing the station number change request with any invalid value results in a station number error error code 1002H 3 4 8 Station number rewritable count to flash ROM Un1G516 The buffer memory address Un G516 stores the remaining number of times when the station number setting can be saved onto the flash ROM during operation The initial value is 60 Counting down the number of times Every time the station number is changed on the flash ROM the count is decremented by 1 The count is not decremented when station number setting is requested with the same station number as the one saved on the flash ROM in buffer memory address Un 514 Resetting the count The count is reset to 60 by resetting the CPU by powering on the ME2PB1 L or by clearing the station number on the flash ROM using the station number change request signal Y n 1 3 When the remaining count is 0 Ifan attemptis made to rewrite the station number on the flash ROM at the remaining count of 0 a sta tion number rewrite count excess error error code 2001H occurs and the station number on the flash ROM is not changed If
32. reads as 4 The Watchdog timer error input XnO will be X40 and the Operation mode change completion signal will be X51 Signal Direction ME2PB1 L CPU module Signal Direction CPU module gt ME2PB1 L Device no Output Device no Input Signal name Signal name Watchdog timer error Input send area refresh directive signal 1 0 communication signal Use prohibited Extension trouble notification completion Extension trouble notification request signal signal Module error signal Module error reset request signal Use prohibited SYNC mode signal SYNC receive signal FREEZE mode signal Use prohibited Use prohibited BBLKRD start request acceptance BBLKRD start request signal completion signal BBLKWR start request acceptance A BBLKWR start request signal completion signal Use prohibited Use prohibited Operation mode change completion signal Operation mode change request signal Use prohibited Use prohibited Station number change completion signal Station number change request signal Use prohibited Use prohibited Module READY signal Use prohibited Tab 3 3 1 0 signals of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 3 Specifications l O Signals for the PLC CPU NOTE Among the I O signals for the MELSEC L series CPU do not output t
33. sent to master station Output data is held and SYNC mode is activated Execute the UNSYNC service from the master station data does not change Input data is held and data FREEZE mode is activated Execute the UNFREEZE service from the master station does not change Tab 9 4 Causes of failures to make normal data communication MELSEC L Series ME2PB1 L Profibus DP Slave Module 9 3 Troubleshooting Causes of Failure to Make Normal Data Communication and Actions to Be Taken Status Cause Action Data is not communicated to the correct area The buffer memory address of the MOV FROM TO instruction is wrong Check the used status of the data modules in the input send area used status Un G2288 to Un G2299 and output receive area used status Un G2272 to Un G2283 Check the sequence program Error does not occur in ME2PB1 L when master station becomes faulty The communication watchdog timer setting in the parameter is 0 Check the current setting with the current communication watchdog timer value Un G2257 Set the communication watchdog timer in the master station parameter Tab 9 4 Upper and lower bytes of data sent and received are inverse The swap setting in the slave parameter of the master station is not appropriate for the data sent received by the master Check during I O communication when Xn1 is ON Check the c
34. setting of ME2PB1 L Data Module Setting Output Data Input Data Data module 0 Input 2 words word unit 2 words Data module1 Output 2 words word unit 2 words Data module2 Input Output 2 words word unit 2 words 2 words Data module3 Output 2 words word unit 2 words Tab 7 21 Input and output data for this example NOTE For the data module setting please refer to section 5 3 1 Used states of ME2PB1 L output receive area and input send area When dedicated instructions BBLKRD BBLKWR are used CPU module ME2PB1 L Output receive area D1000 D1001 Data output to Data module 1 LY41PT1P Output 2 words D1002 D1003 Data output to Data module 2 LH42C4PT1P Output 2 words Data module 3 Output 2words Data output to D1004 D1005 LY41PT1P Register D Input send area Data input from Data moduleO 256 D1100 D1101 LX41CA e Input 2 words 257 258 102H D1104 D1105 Data input from Data module 2 260 1040 Input 2 words 261 105 LHA2CAPTIP 262 106H Empty 447 1BFH Fig 7 18 Occupation of output receive and input send area when using dedicated instructions 23 Tr WN gt O F L 191 BFH 100H 101H The output receive area data are read to D1000 to D1005 using a BBLKRD instruction The data in D1000 to D1005 are written to the LY41PT1P and LY42C4PT1P
35. slaves can be connected MELSEC L Series ME1PB2 L Profibus DP Slave Module 2 3 System Configuration Precautions for Configuring a System 2 3 Precautions for Configuring a System Precaution for station number setting ifa station number different from the one of the currently operating station is set during I O data communication the communication is suspended to execute the setting It is restarted after completion of the station number setting Donot change the operation mode during execution of the station number setting Doing so may disable proper station number setting or mode change Precaution for parameter writing faparameter based ona station number setting different from the one of the currently operating station is written to the ME2PB1 L that is exchanging I O data the I O data communication is suspended It is restarted after completion of parameter writing Do not change the operation mode from the sequence program during parameter writing Doing so may disable proper station number setting or mode change Donotwrite parameters from multiple configuration tools to a single ME2PB1 L at the same time Doing so makes the parameter values of the ME2PB1 L incorrect When switching the operation mode using Y n 1 1 X n 1 1 on the sequence program Be sure to switch the mode while the module READY signal X 1 n D of the ME2PB1 L is ON If data are read from or written to the buffer memory with the
36. states in the equipment You are responsible for taking the necessary precautions to ensure that programs inter rupted by brownouts and power failures can be restarted properly and safely In particular you must ensure that dangerous conditions cannot occur under any circumstances even for brief periods EMERGENCY OFF must be switched forcibly if necessary Residual current protective devices pursuant to DIN VDE Standard 0641 Parts 1 3 are not adequate on their own as protection against indirect contact for installations with PLC systems Additional and or other protection facilities are essential for such installations EMERGENCY OFF facilities conforming to EN 60204 IEC 204 and VDE 0113 must remain fully operative atall times and in all control system operating modes The EMERGENCY OFF facility reset function must be designed so that it cannot ever cause an uncontrolled or undefined restart You must implement both hardware and software safety precautions to prevent the possibil ity of undefined control system states caused by signal line cable or core breaks When using modules always ensure that all electrical and mechanical specifications and requirements are observed exactly Do not install remove the module more than 50 times after the first use of the product conforming to IEC 61131 2 Failure to do so may cause the module to malfunction due to poor contact of connector MELSEC L Series ME2PB1 L Profibus DP Slave Module I
37. the data stored in the extended trouble information area of the buffer memory is sent to the master station as extended trouble information In the following procedure the ME2PB1 L can notify the master station of the extended trouble of the host In the buffer memory Un G2042 to Un G2053 set the data to be sent to the master station In the buffer memory Un G2041 set the length of the data to be sent to the master station Turn ON the extension trouble notification request signal Yn2 After the extension trouble notification completion signal Xn2 has turned ON turn OFF the extension trouble notification request signal Yn2 When extended trouble is removed When the host is not faulty anymore notify the master station that there is no fault In the following procedure the ME2PB1 L can notify the master station that the extended trouble of the host has been removed In the buffer memory Un G2041 set the data length 0 Turn ON the extension trouble notification request signal Yn2 3 After the extension trouble notification completion signal Xn2 has turned ON turn OFF the extension trouble notification request signal Yn2 MITSUBISHI ELECTRIC Buffer Memory Specifications 3 4 11 3 4 12 The DIA LED on the front panel of the ME2PB1 L is turned on as follows w O A a Xn2 SI m Un G2041 Except 0 S gt lt 0 OFF ON OFF DIA LED gt lt gt lt
38. the self diagnostics If the diagnostics fails again a ME2PB1 L hardware error is probable Please check the value currently stored in the Offline test status area Un G2258 and consult your local Mitsubishi representative explaining a detailed description of the problem Values that may be stored in the Offline test status area Un1G2258 Any of the following values is stored in the Offline test status area UnXG2258 after execution of self diagnostics Stored value Description Normal completion 8001H to 8006H Hardware error 8007H Swap test error Tab 5 15 Self diagnostics result MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 23 Settings and Procedures before System Operation Wiring 5 7 5 7 1 5 7 2 Wiring This section explains the pin assignments of the Profibus interface connector on the ME2PB1 L the Profibus cable wiring specifications bus terminator and other information Pin assignments of the Profibus interface connector Profibus Interface connector Signal code Description Open RxD TxD P Open Receive send data P Open DGND O Data Ground vp Voltage Open RxD TxD N Receive send data N Open Tab 5 16 Pin assignments of the Profibus interface connector D sub 9 pin female connector on the ME2PB1 L Signal used to connect the bus terminator Profibus cable Use a Profibus c
39. to it which the module can then process Each buffer memory address consists of 16 bits Bit 15 14131211109 8 7 654 32 1 0 Buffer memory address Fig 3 11 Assignments of bits to a buffer memory address Do not write data in the system areas of the buffer memory If data is written to any of the system areas the PLC system may not be operated properly Some of the user areas contain partially sys tem areas Care must be taken when reading writing to the buffer memory Also do not write data e g in a sequence program to the buffer memory area where writing is disabled Doing so may cause malfunction Instructions for data exchange with the buffer memory Communication between the PLC CPU and the buffer memory of special function modules is per formed with FROM and TO instructions The buffer memory of a special function module can also accessed directly e g with a MOV instruction Format of the device address Un Gn Un Head address of the special function module Gn Buffer memory address decimal For example the device address U3 G1 1designates the buffer memory address 11 in the special func tion module with the head address 3 X Y30 to X Y3F In this User s Manual the latter form of addressing is used widely For full documentation of all the instructions used with examples please refer to the Programming Manual for the MELSEC System Q and the MELSEC L series MITSUBISHI ELECTRIC Buffer Memo
40. trouble notification completion Extension trouble notification request Module error Module error reset request BBLKRD start request acceptance completion BBLKRD start request BBLKWR start request acceptance completion BBLKWR start request Operation mode change completion Operation mode change request Module READY Tab 7 22 List of devices from to the ME2PB1 L Devices occupied by the LX41C4 Device Description Device Input P Output Description X50 X6F Inputs of LX41C4 Tab 7 23 List of devices for the input module LX41C4 MITSUBISHI ELECTRIC Communication of I O Data Programming Devices occupied by the LY41PT1P slot 2 Device Device Input Description Description Output Y70 Y8F Outputs of LY41PT1P Tab 7 24 List of devices for the output module LY41PT1P at slot 2 Devices occupied by the LH42C4PT1P Device Device Input Description Output Description X90 X10F Inputs of LH42C4PT1P Y90 Y10F Outputs of LH42C4PT1P Tab 7 25 Device used for the I O combined module LH42C4PT1P Devices occupied by the LY41PT1P slot 4 Device Device Input Description Output Description Y110 Y12F Outputs of LY41PT1P Tab 7 26 List of devices for the output module LY41PT1P at slot 4 Devices for the user Device Description Device Description M10 Operation mode change flag M40 Extension troubl
41. 0 207 463 501 Beijer Electronics Automation SWEDEN PROVENDOR OY FINLAND 426 Telj nkatu 8 A3 SE 20124 Malm FIN 28130 Pori Phone 46 0 40 35 86 00 Phone 4 358 0 2 522 3300 Fax 46 0 40 93 23 01 fake 3360 1S1 3327 OMNI RAY AG SWITZERLAND UTECO A B E E GREECE Sch rli 5 5 Mavrogenous Str CH 8600 D bendorf GR 18542 Piraeus Phone 41 0 44 802 28 80 Phone 30 0 211 1206 900 Fax 41 0 44 802 28 28 oe 000 CSC AUTOMATION UKRAINE MELTRADE Kft HUNGARY 4 B M Raskovoyi St Fert utca 14 HU 1107 Budapest Phone 36 0 1 431 9726 Fax 4 36 0 1 431 9727 UA 02660 Kiev Phone 380 0 44 494 33 44 Fax 4 380 0 44 494 33 66 Mitsubishi Electric Europe B V FA European Business Group Gothaer Stra e 8 D 40880 Ratingen Germany Tel 49 0 2102 4860 Fax 49 0 2102 4861120 info mitsubishi automation com https eu3a mitsubishielectric com
42. 1 L List of dedicated functions The following list shows the dedicated instructions available for the ME2PB1 L Dedicated instruction Description Reference BBLKRD Reads data from the buffer memory of a specified module ensuring data consistency Section 8 2 BBLKWR Writes data to the buffer memory of a specified module ensuring data consistency Section 8 3 Tab 8 1 Listof dedicated instructions Usable devices The following devices are available for dedicated instructions Internal device Bit Word T T ST C D W R ZR File register Tab 8 2 Usable devices Available devices are given in the field Constant in each section MELSEC L Series ME2PB1 L Profibus DP Slave Module 8 1 Dedicated Instructions Precautions for Dedicated Instructions 8 1 Precautions for Dedicated Instructions Before executing a dedicated instruction Before executing a dedicated instruction be sure to confirm the following Turn ON the start request signal for the dedicated instruction Turn ON the following signal before executing a dedicated instruction When using BBLKRD Turn ON the BBLKRD start request signal YnA When using BBLKWR Turn ON the BBLKWR start request signal YnB Attempting to execute a dedicated instruction with the above signal OFF results in no processing no execution Note that as interlock signals for execution of dedicated instructions the following signal
43. 1 L is mounted to the CPU module together with digital I O modules L Parameter Setting PLC flame System PLC rie PLCRAS Boatrie Frogram SFC Device VO Assignment Built in Ethernet Port Setting Buitt n3 0 Fun Assignment No Slot IE d pee 75 Z L26CPU BT Apu i tc pButnyormncto v 1 1 11 1 4 i6Pots Lc crine jsaponts o 0 Intelligent w ME2PB1 L 32Points v 1 1 Input w LX41C4 32Points Y s 2 2 Output v LvaipTiP 32Points 6 3 3 Inteligent 0090 L60DA4 16Points Fig 7 7 l Oassignment in the program example Module Input signals Output signals Profibus DP slave module ME2PB1 L X30 to X4F Y30 to Y4F Input module LX41C4 X50 to X6F Output module LY41PT1P Y70 to Y8F X90 to X9F Analog Digital converter module L60AD4 Y90 to YOF Digital Analog converter module L60DA4 X100 to X10F Tab 7 5 Assignment of input and output signals MELSEC L Series ME2PB1 L Profibus DP Slave Module Y100 to Y10F Programming Communication of I O Data Settings Data module setting of ME2PB1 L Data Module Setting Output Data Input Data Data module 0 Input 2 words word unit 2 words Data module1 Output 2 words word unit 2 words Data module2 Input 4 words word uni
44. 32 0 122 Input CPU Device D1000 to D1031 Output CPU Device to 01131 Cancel Back Default Fig 4 3 Automatic refresh setting in the intelligent function utility For the automatic refresh setting method refer to section 5 4 1 Data consistency function by dedicated instructions Use the BBLKRD read and BBLKWR write instructions as dedicated instructions for reading writ ing ME2PB1 L buffer memory to execute the data consistency function For details on dedicated instructions refer to chapter 8 For program examples on the I O data exchange using dedicated instructions refer to sections 7 3 1 and 7 3 2 MELSEC L Series ME2PB1 L Profibus DP Slave Module 4 5 Functions I O Data Separation Prevention Function 4 2 3 Precautions Transmission delay time when the data consistency function is used The delay time in transmission between the CPU module and master station is lengthened because the ME2PB1 L has to wait for reading from or writing to the CPU module and data transfer from to the master station Refer to chapter 6 The data consistency function can be disabled in the automatic refresh setting If this function is unnecessary disable it When the data consistency function is enabled in the automatic refresh setting Dedicated instructions are not executable They are not processed Dedicated instructions are executable if the data consistency fu
45. AUTION When disposing of this product treat is as an industrial waste MELSEC L Series ME2PB1 L Profibus DP Slave Module VII Safety guidelines VIII MITSUBISHI ELECTRIC Symbols used in the manual Symbols used in the manual Use of notes Notes concerning important information are marked separately and are displayed as follows NOTE Note text Use of numbering in the figures Numbering within the figures is displayed by white numbers within black circles and is explained in a table following it using the same number e g Use of handling instructions Handling instructions are steps that must be carried out in their exact sequence during startup oper ation maintenance and similar operations They are numbered consecutively black numbers in white circles D Text Q Text Text Use of footnotes in tables Instructions in tables are explained in footnotes underneath the tables in superscript There is a foot note character at the appropriate position in the table in superscript If there are several footnotes for one table then these are numbered consecutively underneath the table black numbers in white circle in superscript Text Text Text Writing conventions and guidance notes Keys or key combinations are indicated in square brackets such as Enter Shift or Ctrl Menu names of the menu bar of the drop down menus options of a dialogue screen and button
46. Cairo BE 1831 Diegem Malta Paola PLA 1702 Phone 20 0 2 235 98 548 Phone 32 0 2 717 64 60 Phone 356 0 21 697 816 Fax 20 0 2 235 96 625 Fax 32 0 2 717 64 61 Fax 356 0 21 697 817 GIRIT CELADON Ltd ISRAEL KONING amp HARTMAN B V BELGIUM INTEHSIS SRL MOLDOVA 12 Haomanut Street Woluwelaan 31 bld Traian 23 1 IL 42505 Netanya BE 1800 Vilvoorde MD 2060 Kishinev Phone 972 0 9 863 39 80 Phone 32 0 2 257 02 40 Phone 373 0 22 66 4242 Fax 972 0 9 885 24 30 Fax 4 32 0 2 257 02 49 Fax 4 373 0 22 66 4280 ILAN amp GAVISH Ltd ISRAEL INEA RBT d o o BOSNIA AND HERZEGOVINA HIFLEX AUTOM B V NETHERLANDS 24ShenkarSt Kiryat Ariet Stegne 11 Wolweverstraat 22 11 49001 Petah Tikva SI 1000 Ljubljana NL 2984 CD Ridderkerk Phone 972 0 3 922 18 24 Phone 386 0 1 513 8116 Phone 31 0 180 46 60 04 Fax 972 0 3 924 0761 Fax 386 0 1 513 8170 Fax 31 0 180 44 23 55 CEG LIBAN LEBANON AKHNATON BULGARIA KONING amp HARTMAN B V NETHERLANDS Center Block A Autostrade DORA 4 Andrei Ljapchev Blvd PO Box 21 Haarlerbergweg 21 23 Lebanon Beirut BG 1756 Sofia NL 1101 CH Amsterdam Phone 961 0 1 240 445 Phone 359 0 2 817 6000 Phone 31 0 20 587 76 00 Fax 961 0 1 240 193 Fax 359 0 2 97 44 06 1 Fax 31 0 20 587 76 05 INEA CR CROATIA Beijer Electronics AS NORWAY Losinjska 4 a Postboks 487 HR 10000 Zagreb N0 3002 Drammen AFRIGAN REPRESENTATIVE P
47. G2288 to Un G2299 Example of input sent area used status Buffer memory A Address Hexadecimal Decimal 100H 256 101H 257 b1 ON indicates that the input send area at address 101H is used and b15 ON that the output receive area at address 10FH is used 10 270 10 271 Hos send 272 111H 273 ON indicates that the output receive area at address 110H is used 614 ON that the output receive area at address 11EH is used 11EH 286 11FH 287 120H 288 ib15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b2 bi bO Input send BUM 2288 408 0 0 area used 8F1H 2289 o 1 0 o 1 j status 8F2H 2290 0 0 0 0 0 0 000000 i i 0 OFF 1 ON Areas where input data are being sent to the master station Fig 3 15 Example for indication of the input send area used status 3 22 MITSUBISHI ELECTRIC Operation Mode Specifications 3 5 Operation Mode The ME2PB1 L has two operation modes normal operation mode and selfdiagnostic mode Reference Operation mode Description Section In this mode communication is made as in the slave parameters set to the master station Communication can be made if the slave parameters are within the setting ranges Set only the station number in a sequence program or GX Configurator DP
48. ITSUBISHI ELECTRIC EUROPE B V AA Slave Propetes Nane Slave Nr 001 FOL Address 2 p 129 a n 253 Group identification number Gp Gps Gps Gp Gps 5 Stave active Syme Outpt Freeze ignore AutoOewr sirve when to respond Swap VO Bytes in Master Click on Next Defias Fig 5 10 Selection of the user parameters Perform the data module setting OP Slave Parameters Wizard Slave Modules i 1 Modules installed 40 are possible Datasize 384 byte s 1 0 usage 20 byte s 1 0 sizes D44 244 byte s Slave User Parameters Available Slave Modules Project Slave Modules 41 2 Word in 3 Word Out con word E 2 venon 4 Word In 4 Word Out word j 10 Word In 10 Word Out word 5 Word In 5 Word Out con word f E Word ie Word Ou con word 7 Word n 7 Word con word f Word in 8 Word con word 9 Word In 9 Word B10 Word o0 Word word B11 Word in 11 Word Out con word 12 Word In 12 Word con word d 13 Word In 13 Word Out con word B14 Word n 14 Word Oxt con word il Cancel Back Default Fig 5 11 Data module settings 5 12 a MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation Set the Data Alignment Mode GQ Slave Porwerters d
49. PB1 L Tab 5 12 Slave parameter setting items MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 19 Settings and Procedures before System Operation Parameter Setting to Slave Station ME2PB1 L 5 4 2 NOTE Writing the intelligent function module settings to the PLC When writing the settings for the intelligent function module to the PLC make sure that the Intelli gent Function Module Parameter are tagged in the Online Data Operation dialog box 2013 05 22 12 24 35 2013 05 22 12 24 34 2013 05 22 14 07 43 Detail 2013 05 22 12 24 35 Detail 2013 05 22 12 24 35 Fig 5 22 Selection of intelligent function module parameters the tab PLC Module On the tab Intelligent Function Module select the ME2PB1 L Online Data Operation Fig 5 23 Selection of the PROFIBUS DP slave module Station numbers FDL addresses can also be set from a class 2 master station When setting the station number from the class 2 master station setting TRUE for No_Add_Chg disables the station number change on the ME2PB1 L The station number of the ME2PB1 L cannot be changed with the station number change disabled To change the station number again clear it by a station number change request area buffer memory address Un G515 and then cancel the disabled status Refer to section 3 4 7 MITSUBISHI ELECTRIC Part Names and Settings Settings and Pr
50. PU module MOV FROM MOV FROM Transmission delay time for output Refer to section 6 3 Fig 6 2 Reading of output receive data using a MOV or FROM instruction Refer to the relevant manual for the processing time of the master station When automatic refresh is used Class 1 master station Profibus DP ME2PB1 L I O image memory Buffer memory CPU module Bus cycle time END END END END Transmission delay time for output Refer to section 6 3 Fig 6 3 X Reading of output receive data using automatic refresh Refer to the relevant manual for the processing time of the master station MITSUBISHI ELECTRIC Processing of the Input Send Data Processing Times 6 2 Processing of the Input Send Data The following shows how the CPU module data are sent to the master station When BBLKWR MOV TO instruction is used Class 1 master station Profibus DP Bus cycle time ME2PB1 L image memory Buffer memory CPU module BBLKWR MOV TO lt gt Transmission delay time for input Refer to section 6 3 Fig 6 4 Sending of input data using a BBLKWR MOV TO instruction Refer to the relevant manual for the processing time of the master station When automatic refresh is used Class 1 master station ProfibusDP Bsodetme J ME2PB1 L I O image
51. Project in GX Configurator DP Format EY Import Tasks amp g Encoder Import GX Configurator DP Project NCRC Add GSD File Drag amp drop 1 Import GSO Database Gateway J nc Documentation Project Documentation Documentation of l O Mapping Help 2 um P3u 320P About Configurator DP Select ME2PB1 L an Ea D eme Ria a ibaa Online Status not connected Fig 5 6 Selection of the ME2PB1 L The dialog box for Slave Parameter Settings opens Se Poorer Wand See Name Save Nr 001 FOL Address P 59 poa mn Tse nca Group identification number Gp2 Gp3 Gps Gps 6 Gp Gps V Stave is active Freeze T dave when fading to respond Click on Next Fig 5 7 Slave parameter for ME2PB1 L MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation NOTE 5 Perform the data module setting DP Slave Parameters Wizard Slave Modules VO usage 1 Modules installed 40 are possible 20 20 byte s Max Data size Max O sizes 384 244 Slave User Parameters Available Slave Modules BH 3 Word 3 Word Out con word 4 Word In 4 Word word f 5 Word In 5 Word Out con word f E
52. SYNC mode refresh from the input send area to the input data area is executed continuously MITSUBISHI ELECTRIC Global Control Function Functions 3 After receiving UNSYNC service UNSYNC Class 1 master sation _ gt Input data Output data ME2PB1 L Input Output Buffer image memory memory Input Input data send area Output Output data receive area Fig 4 7 After receiving UNSYNC refresh of the output receive area is restarted Upon reception of the UNSYNC service the SYNC mode is terminated and refresh from the output data area to the output receive area is restarted When the UNSYNC service is received the SYNC mode is ended and the SYNC LED of the ME2PB1 L turns OFF MELSEC L Series ME2PB1 L Profibus DP Slave Module Functions Global Control Function When receiving FREEZE and UNFREEZE services D Before receiving FREEZE service ME2PB1 L Class 1 master Input Output Buffer station image memory memory 7 Input Input data Input data send area Output Output data Output data receive area Fig 4 8 Before receiving FREEZE service input data is refreshed After receiving FREEZE service ME2PB1 L Class 1 t ina Input Output Buff ass master utter station lt gt image memory memory TT Out
53. Un G515 When you have checked that the station number change completion signal X n 1 3 is ON turn OFF the station number change request signal Y n 1 3 The station number change completion signal X n 1 3 turns ON when the station number setting is completed by setting the station number to the station number change request area Un G515 and turning ON the station number change request signal Y n 1 3 Check the setting result in the operation station number area Un G513 and module error information area Un G2040 Turning OFF the station number change request signal Y n 1 3 after confirmation of the result turns OFF the station number change completion signal X n 1 3 ifa station number error error code 1002H has occurred the station number change request is made invalid and operation continues with the station number that had been used before the change request was given Turning on the station number change request signal Y n 1 3 suspends I O communication Turning on the station number change completion signal X n 1 3 resumes I O communication Input send area refresh directive signal YnO Station number change request signal Y n 1 3 Station number change completion signal X n 1 3 Buffer memory MOV TO MOV FROM instruction instruction Sets station number in station Checks result in operation sta number change request area tion number area Un G513
54. X 1 n D status ignored the CPU mod ule may detect an error to stop the sequence calculation MITSUBISHI ELECTRIC General Specifications Specifications 3 Specifications 3 1 General Specifications For the general specifications of the ME2PB1 L refer to the manual Safety Guidelines the manual supplied with the CPU module or head module MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 1 Specifications Performance Specifications 3 2 Performance Specifications Item Specifications Profibus DP station type Slave station Complies with EN50170 Volume2 Part 1 2 3 4 8 Station numbers that may be Oto 125 set Transmission nput data Max 122 words 9 data size Outputdata 122 words 9 Electrical standard characteristics EIA RS485 compliant Medium Shielded twisted pair cable Type A refer to section 5 5 2 Network topology Bus topology Data link method Polling method Encoding method NRZ Transmission speed 9 6 kbps to 12 Mbps refer to tab 3 2 Transmission distance Differs depending on the transmission speed refer to tab 3 2 Transmission specifications Max No of repeaters 3 Number of connectable modules Per segment 32 including repeater s Number of writes to flash ROM Max 10 000 times No of occupied I O points 32 I O assignment 32 intelligent points Internal current consumption 5 V DC We
55. a refresh directive signal YnO is invalid communication signal Xn1 orr ON Communicating o9 Input send area refresh directive signal YnO OFF ON OFF ON Data send in input send area Notsent Sent Not sent Data update in output receive area Not updated Updated Not updated Fig 3 10 Input send area refresh directive signal YnO Communication is stopped NOTE The relationships between data send and receive of the ME2PB1 L which vary with the states of the I O communication signal Xn1 and the input send area refresh directive signal YnO are shown below State of Xn1 State of YnO Data Output Receive Area Input Send Area Master station ME2PB1 L Input Not sent Input ON OFE area send area Output Output area Not updated receive area Master station ME2PB1 L Input Input area send area Output Output area Updated receive area Master station ME2PB1 L 0 data sent Input send area Output Output area Updated receive area MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 13 Specifications Buffer Memory 3 4 NOTE Buffer Memory The ME2PB1 L has a memory range assigned as a buffer for temporary storage of data such as com munication related data or error information The PLC CPU can access this buffer and both read the stored values from it and write new values
56. able that meets the following specifications Type A IEC 61158 2 compliant Item Transmission line Applicable cable Shielded twisted pair cable Impedance 135 to 165 Q f 3 to 20 MHz Capacity Less than 30 pF m Conductor resistance Less than 110 Q km Cross sectional area 0 34 mm or more 22AWG Tab 5 17 Specifications of the Profibus cable Applicable connector Use a D sub 9 pin male connector for the Profibus cable The applicable screw size is 4 40 MITSUBISHI ELECTRIC Wiring Settings and Procedures before System Operation Wiring specifications ME2PB1 L RxD TxD P 0 RxD TxD N Red Green Profibus cable Fig 5 26 Connection of the Profibus cable Wiring specifications for bus terminator When the ME2PB1 L is a terminal station it is recommended to use a connector with built in bus ter minator resistors that meets the following wiring specifications VP 6 RxD TxD P 3 RxD TxD N 8 DGND 5 Ry 390 Q 2 1 4 W Ria 220 2 1 4W Rg 390 2 1 4 W Fig 5 27 Wiring specifications for bus terminator Profibus equipment The Profibus cables connectors and other Profibus equipment must be purchased or obtained at user s discretion For details on Profibus equipment access the following website Profibus International http www profibus com MELSEC L Serie
57. afa MITSUBISHI ELECTRIC MELSEC L Series Programmable Logic Controllers User s Manual PROFIBUS DP Slave Module ME2PB1 L Art no 279869 16 06 2014 MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION Versi ersion A User s Manual ME2PB1 L PROFIBUS DP Slave Module Art no 279869 Version Revisions Additions Corrections A 06 2014 First edition About this manual The texts illustrations diagrams and examples in this manual are provided for information purposes only They are intended as aids to help explain the installation operation programming and use of the programmable controllers of the Mitsubishi MELSEC L series If you have any questions about the installation and operation of any of the products described in this manual please contact your local sales office or distributor see back cover You can find the latest information and answers to frequently asked questions on our website at https eu3a mitsubishielectric com MITSUBISHI ELECTRIC EUROPE B V reserves the right to make changes to this manual or the technical specifications of its products at any time without notice 2014 MITSUBISHI ELECTRIC EUROPE B V Safety guidelines Safety guidelines For use by qualified staff only This manual is only intended for use by properly trained and qualified electrical technicians who are fully acquainted with the relevant automation technology safety standards All work w
58. and Un G515 the module error information area Un G2040 Fig 3 9 Station number change request signal Y n 1 3 Station number change completion signal X n 1 3 Station numbers can be set from the class 2 master station In this case specifying TRUE for No_Add_Chg disables the station number change on the ME2PB1 L The station number of the ME2PB1 L cannot be changed while the station number change is disa bled To change the station number again clear the station number in the station number change request area of the ME2PB1 L Un G515 to cancel the disabled status Refer to section 3 4 7 Module READY signal X n 1 D This signal turns on when the ME2PB1 L is enabled for access from the CPU module It turns on regardless of the operation mode This signal turns off when the ME2PB1 L is disabled for access from the CPU module due to a module watchdog timer error or hardware fault MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications Input send area refresh directive signal YnO Turning ON this signal during communication with the master station I O communication signal Xn1 ON starts data communication of the input send area buffer memory addresses Un G256 to Un G447 Turning this signal OFF stops sending of the data in the input send area to the master station 0 data are sent While the I O communication signal Xn1 is OFF ON ofthe input send are
59. ase consult your local Mitsubishi representa tive explaining a detailed description of the problem The watchdog monitoring time has been OFF exceeded Parameter setting error or module error Check the error code and take corrective ON occurred actions Refer to section 9 4 Check the parameter setting and cable wiring and check for open cable and like A communication error was detected or data Refer to section 9 2 communication is not yet started Start data communication Set the station number Tab 9 1 Faults indicated by the LEDs of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 9 1 Troubleshooting Checks and Actions for Network related Faults 9 2 Checks and Actions for Network related Faults Checked area Action Transmission path Use three or less repeaters to be relayed Refer to section 3 2 Use each segment within the specified length Refer to section 3 2 Install one bus terminator at each end Refer to section 3 2 Use within the specified number of devices connected in each segment Refer to section 3 2 Check the cable wiring and check for open cable Refer to section 5 7 Check whether the cables are of Type A or not Module error information of buffer memory Un G2040 Confirm the error with the on off status of the LEDs and take the corrective action Refer to section 9 1 Confirm the error with the
60. ata modules without allowing any empty space Because of this reading from or writing to I O modules and or intelligent function modules may not be executable with a single instruction When storing data in the output receive area and the input send area device areas can be used effectively Buffer memory of the ME2PB1 L Address Output receive area Address Input send area Un GO Un G256 Used by data module 0 Un G1 ea ans Un G257 Used by data module 2 Un G2 Used by data module 2 Un G258 Un G3 Used by data module 3 Un G259 Un G4 Used by data module 5 Un G260 Un G5 Un G261 Un G6 Un G262 Un G7 Un G263 Un G8 Un G264 Un G9 Un G265 Used by data module 4 Un G191 Un G447 Tab 5 8 Buffer memory occupation in LUMP mode MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 11 Settings and Procedures before System Operation Parameter Setting to Master Station Setting method when using the intelligent function utility This section describes how to make settings using GX Works2 When using another configuration tool refer to the relevant manual From the intelligent function utility open the Slave Parameter Settings dialog box Refer to section 5 3 1 Click the Next button in the Slave Parameter Settings dialog box Slave Parameters Wizard Slave Settings Model ME2FBYL Recon Version M
61. ation 2054 to 2253 806u to 8CDu System area Use prohibited 2254 8 Current operation mode Stores the operation mode in current operation 2255 8 2257 801 Operation mode change request area Operation mode change result Current communication watchdog timer value Used to set a new operation mode to be set in response to the operation mode change request signal Y n 1 1 Stores the result of changing the operation mode in response to the operation mode change request signal Y n 1 1 Stores the communication watchdog timer value in current operation 2258 802 Offline test status area This area stores the details or result of the self diagnostic test 2259 8D3u Swapping function setting status Stores the setting status of the swapping function in current operation 2260 to 2271 8D4u to 8DFu System area Use prohibited 2272 to 2283 8 to 8EBu Output receive area used status Stores the current used status of the output receive area 2284 to 2287 8 to 8 System area Use prohibited 2288 to 2299 8FOu to 8FBu Input send area used status Stores the current used status of the input send area 2300 to 2815 8FCu AFF Tab 3 8 System area Use prohibited Buffer memory list R Read only This indicates whether or not read write is possible from the sequence program
62. ation number to 1 The station number is stored in the flash ROM When the station number should not be stored to the flash ROM replace H101 with H1 The Station number change request is set The operating station number is stored in DO The Station number change request is reset The station number setting flag is reset Tab 7 4 Description of fig 7 5 NOTES Storing a station number in the flash ROM allows the ME2PB1 L to operate as the station number even if the power is switched from OFF to ON or if the CPU module is reset The station number can be also set from the configuration tool Refer to section 5 4 1 However if the station number is changed in the program as shown in this example do not perform it from the configuration tool 7 4 MITSUBISHI ELECTRIC Communication of I O Data Programming 7 3 Communication of I O Data 7 3 1 LUMP mode A program example for I O data communication is provided here to show the case where the LUMP mode refer to section 5 3 2 is used for data assignment of the following configuration System configuration for the example Profibus slave module ME2PB1 L Input module LX41C4 CPU module L26CPU BT Power supply module L61P N Output module LY41PT1P Analog module L60AD4 Analog module L60DA4 End cover L6EC Fig 7 6 and analog modules In this example the ME2PB
63. ave Station ME2PB1 L Settings and Procedures before System Operation 5 4 1 NOTE Setting FDL address and automatic refresh parameters The following explains the procedure for setting the FDL address station number and automatic refresh parameters using GX Works2 For the Profibus Network settings refer to the GX Works2 Oper ating Manual To change the FDL address perform the following to stop the refresh of the I O data between the master and slave stations Turn off the Input send area refresh directive signal YnO of the ME2PB1 L Stop 1 0 data communication on the master station side A new FDL address becomes effective right after the setting If the FDL address is changed during system operation I O data may be updated to those for the new FDL address Start procedure To add a new intelligent function module to a GX Works2 project click on Intelligent Function Mod ule in the Project Navigation window 2 tie Fig 5 16 Addition of a new intelligent function module S 3 fy Parameter Parameter Intelligent Function Modple AY Global Device Comme New Module Program Setting 1 E POU 1 3 Program ph MAIN Device Com e Parameter Lis telligent Function Module Pa Read GX Configurator QP Data ry Property After a right click sel
64. byte Fig 4 12 Dataare not swapped between the ME2PB1 L and the master station When the data is swapped inside the master station ME1PB1 L QJ71PB92V QJ71PB92D Master station ME2PB1 L Input data Input sending area Data1 1 Data D A Input image 4 2 Data 2 Data 2 9 o i H B 5 a a S Data3 Data3 a amp O i m 5 Output 1 image 3 Data4 i Data4 Data4 i Data4 H L H Y Profibus DP data communication H High byte L Low byte Fig 4 13 Dataare not swapped between the ME2PB1 L and the master station MELSEC L Series ME2PB1 L Profibus DP Slave Module 4 13 Functions Data Swap Function When high and low bytes of word data are reversed swap between the master station and the ME2PB1 L Master station ME2PB1 L Input data Input sending area T T Data1 Data Data1 Data Data1 Data O i H O H H O Input image 4 Data 2 Data 2 Data 2 Data 2 2 Data 2 Data 2 H 0 Output data S Output receiving area Data3 Data3 Data3 Data3 e Data3 Data3 O H O i H amp i Output 1 E 1 E 1 image Data4 Data4 Data4 Data4 Data4 Data4 H Ld a Y Hi Profibus DP data communication byte tow byte Fig 4 14 Data are swapped b
65. c ell RE eR PI e ay e D epe EE eat EA E EEE Der S T ENS 3 14 3 4 1 Buffer memory list eR a E EIAS FEY RENS 3 15 3 4 2 Output receive area UN GO to UnG191 3 16 3 43 Input send area UnXG256 to 447 3 16 3 4 4 Operation baud rate UN G512 3 16 3 4 5 Operation station number UN G513 3 16 3 4 6 Station number set on flash ROM 514 3 16 3 4 7 Station number change request area 515 3 17 3 4 8 Station number rewritable count to flash ROM 516 3 17 3 4 9 Module error information 2040 3 18 3 4 10 Extension trouble information area Un G2041 to Un G2053 3 18 3 4 11 Current operation mode 2254 3 19 MELSEC L Series ME2PB1 L PROFIBUS DP Slave Module XI 3 4 12 Operation mode change area Un G2255 and 2256 3 19 3 4413 Current communication watchdog timer value 2257 3 20 3 4 14 Self diagnostic status type code display area UN G2258 3 20 3 4 15 Swapping function setting status 2259 3 20 3 4 16 Output receive area used status Un G2272 to 2283
66. ceeds the buffer memory size When the points available for the start address for writing data or after is less than the number of write data A MITSUBISHI ELECTRIC Dedicated Instructions G BBLKWR Example V Program example At the timing of M 10 ON 122 points of data stored in DO to D121 are written to the input send area of the ME2PB1 L module start I O No 0 with data consistency ensured starting at address U0 G256 M10 G BBLKWR UO DO K122 Fig 8 6 BBLKWR instruction program example 8 7 MELSEC L Series ME2PB1 L Profibus DP Slave Module Dedicated Instructions G BBLKWR 8 8 MITSUBISHI ELECTRIC Error Check Using the LEDs and Corrective Actions Troubleshooting 9 Troubleshooting This chapter explains the troubleshooting and error codes of the ME2PB1 L Before troubleshooting the ME2PB1 L check that no errors have occurred on the LCPU or the power supply module If any error is identified check the error details and take corrective actions When the CPU has no fault refer to the following sections 9 1 to 9 4 9 1 Error Check Using the LEDs and Corrective Actions This section explains how to check errors by the LEDs or by checking the LED status on the program ming software 9 1 1 Causes and actions The following table summarizes causes that can be thought from the LED status of the ME2PB1 L and corrective actions to be taken Status Cause Action Ple
67. data write Input send area refresh start Data for the LY41PT1P Outputs data to LY41PT1P Y70 to Y8F Writes digital values to L60DA4 Stores data from LX41C4 X50 to X6F into D200 and D201 Reads digital values from L60AD4 e e 9 Input data write Tab 7 14 Description of fig 7 10 MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 9 Programming Communication of I O Data Error handling Error handling X33 U3 MOV 2040 D20 o M30 SET Y33 X33 Y33 RST Y33 gt RST M30 Fig 7 11 Error handling for the ME2PB1 L Description The error code is read and stored The error is reset Tab 7 15 Description of fig 7 11 Extension trouble information notification Extension trouble information notification request e D20 SET M40 o MOV K2 D300 1 20 0301 e M40 1 2 Ua M BMOVP 0300 G2041 K2 SET Y32 j e M40 x32 mH i RT vez RST M40 SET M41 M41 Ua MOV G2040 D20 Fig 7 12 Requesting extension trouble information notification 7 10 MITSUBISHI ELECTRIC Communication of I O Data Programming z 2 Description Turns on extension trouble notification flag when error code is other than 0 Sets extension trouble
68. ds Data module2 1 word input output 1 word 1 word Data module3 1 word output 1 word Data module4 2 words input 2 words Data module5 Tab 5 6 1 word output Input and output data for this example 1 word MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation Data assignment modes The ME2PB1 L supports the DIVIDED mode and the LUMP mode DIVIDED mode In DIVIDED mode storage location of I O data is assigned in the same way as the actual input out put of data modules Since arrangement in the assignment is the same as that of the actual inputs and outputs reading from or writing to I O modules and or intelligent function modules can be done with a single instruction Buffer memory of the ME2PB1 L Address Output receive area Address Input send area Un GO Un G256 Used by data module 0 Un G1 Un G257 Gates Used by data module 1 TER Un G3 Used by data module 2 Un G259 Used by data module 2 Un G4 Used by data module 3 Un G260 Un G5 Un G261 Un G6 Un G262 Un G7 Used by data module 5 Un G263 Un G8 Un G264 Un G9 Un G265 Used by data module 4 Un G191 Un G447 Tab 5 7 Buffer memory occupation in DIVIDED mode LUMP mode Default In LUMP mode the areas for storing input and output data are assigned in order of the d
69. e module error signal Xn3 turns ON when an error occurs At this time an error code is stored into the module error information area Un G2040 Turning ON the module error reset request signal Yn3 resets the error of the ME2PB1 L Xn3 turns OFF when the error is reset by turning ON the module error reset request signal Yn3 or resetting the CPU for example At this time the ERR LED goes OFF and the error code in Un G2040 is cleared When you have checked that the module error signal Xn3 is OFF turn OFF the module error reset request signal Yn3 Module error reset request signal Yn3 Error reset Module error signal Xn3 Error detection Module error information area MOV FROM Buffer memory Un G2040 The error code is read from the buffer memory to the CPU module Fig 3 3 Module error signal Xn3 Module error reset request signal Yn3 SYNC mode signal Xn5 This signal turns ON when the ME2PB1 L is placed in the SYNC mode by a SYNC request from the master station The SYNC mode signal Xn5 turns OFF when the SYNC mode is terminated by an UNSYNC request from the master station a communication stop or a CPU reset The SYNC LED turns ON OFF in synchronization with the ON OFF of the SYNC mode signal Xn5 The SYNC mode signal Xn5 turns OFF if a communication time out error occurs due to a stop of communication with the master station while the SYNC mode signal X
70. e notification flag Extension trouble notification completion M11 Operation mode change storage M41 flag Initial input data write M42 Extension trouble cancel flag Error handling flag M100 Self diagnosis mode change Tab 7 27 List of devices for the user Devices used for automatic refresh or buffer memory reading Device Description Device Description D10 Operation mode storage D301 Extension trouble information data D11 Operation mode change result D1000 D1005 Output data storage D20 Error code storage D1100 D1105 Input data storage D300 Extension trouble information data length Tab 7 28 List of devices for the user MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 17 Programming Communication of I O Data Program example when using dedicated instructions BBLKRD BBLKWR Output data read and input data write Initial input data write x31 X30 X4D X33 U3 t FMOVP G256 K6 SET M20 Input send area refresh start M20 X31 X30 x33 E M Y3A Y3B Output data read x31 X30 X3A J AM G BBLKRD 2 D1000 K6 1 BMOV D1000 K4Y70 K6 Input data write X31 X30 X3B X4D AM BMOV K4xX50 01100 K6 e __ G BBLKWR U3 D1100 K6 1 Description Initial input data write Input send area refresh sta
71. e to observe the safety warnings identified with this symbol can result in damage to the equipment or other property MITSUBISHI ELECTRIC Safety guidelines General safety information and precautions The following safety precautions are intended as a general guideline for using PLC systems together with other equipment These precautions must always be observed in the design installation and operation of all control systems DANGER Observe all safety and accident prevention regulations applicable to your specific applica tion Always disconnect all power supplies before performing installation and wiring work or opening any of the assemblies components and devices Assemblies components and devices must always be installed in a shockproof housing fitted with a proper cover and fuses or circuit breakers Devices with a permanent connection to the mains power supply must be integrated in the building installations with an all pole disconnection switch and a suitable fuse Check power cables and lines connected to the equipment regularly for breaks and insulation damage If cable damage is found immediately disconnect the equipment and the cables from the power supply and replace the defective cabling Before using the equipment for the first time check that the power supply rating matches that of the local mains power Take appropriate steps to ensure that cable damage or core breaks in the signal lines cannot cause undefined
72. ect New Module Then select the Profibus DP Modul ME2PB1 L New Module 5 Module Selecbon Module Type PROFIBUS DP Module Module Nome MEPS 1 Mount Position Wemeedsoto 2 knowledge 1 0 Assignment Spedfy start XY address 0050 1Moduee Occupy 32 ponts Title setting mE h remm ula Fig 5 17 Selection of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 17 Settings and Procedures before System Operation Parameter Setting to Slave Station ME2PB1 L MELSOFT Series GX Works2 DAPR E Parameter 6m Intelligent Function Module Bl 0050 ME2PB1 L S 70 AY Global Device Comment Program Setting B POU H B Program i MAIN iA Local Device Comment On the parameter setting screen select L Slave Settings Double click on Parameter to start the wizard L Slave Tasks L Slave Settings Export Tasks Project in GX Configurator DP Format Import Tasks Import GX Configurator DP Project Help Help Topics About GX Configurator DP Fig 5 19 Parameter setting screen MITSUBISHI ELECTRIC Parameter Setting to Slave Station ME2PB1 L Settings and Procedures before System Operation Setting items DP ME2PB1 L Parameters Wizard PROFIBUS Settings Starting 1 0 number 20 0 OxFEO PROFIBUS Settings FDL Address 0 125 Cancel Ne
73. eee eee eee nee eee eee m nen 7 1 7 2 Station Number Setting 0 0 cece cece cece ence cece nen hme e eene 7 3 7 3 Communication of I O Data csse he heh 7 5 7 3 1 UMP MOG rre caine waa n wae IA ETIN E NEN UE RU M 7 5 132 DIVIDED MOG esis iste cai wis aaa PEE Maca dine EAEE Readies 7 14 7 4 Global Control driven Program 7 20 8 Dedicated Instructions 8 1 Precautions for Dedicated Instructions esses 8 2 8 2 BBEKRD SERE WA EAE RR E EAM REA E I D RI UU Dens 8 4 8 3 BBEKWR sax aioe uias est Er enini y env eu uir eR pu PRU 8 6 MELSEC L Series ME2PB1 L PROFIBUS DP Slave Module XIII 9 Troubleshooting 9 1 Error Check Using the LEDs and Corrective 9 1 9 1 1 Causes actions 2 0 ccc cece eee hh e e e ee e hes 9 1 9 2 Checks and Actions for Network related lt 9 3 9 3 Causes of Failure to Make Normal Data Communication and Actions to Be Taken 9 4 9 4 Error Codes csc E RE RS IR NE p A C TO ERROR REA dob ese 9 6 9 5 Checking the ME2PB1 LStatus esses eme mene 9 7 9 5 1 Checking the LED status on GX 2 9 2 10 Appendix 10 1 External Dimensions Index XIV MITSUBISHI ELECTRIC Overview Overview This manual explains the specif
74. elevant manual MELSEC L Series ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Parameter Setting to Master Station 5 3 1 NOTE GSD DDB file When using the intelligent function utility of GX Works2 GSD files have been incorporated into GX Works2 GSD file installation is therefore unnecessary When using another configuration tool for the master station Please consult your local system service center or representative for the GSD DDB file of the ME2PB1 L Data module setting Set the I O configuration information of the master station and ME2PB1 L Number of data modules to be set Set the data modules per ME2PB1 L within the following range Number of data modules Max 40 modules Total data size Input data 122 words Max 192 ds in total Output data Max 122 words Data module setting pattern For data module setting choose the corresponding one from among 96 patterns made available by combining I O designation 3 types data size 16 types and separation prevention setting 2 types Setting Item Types Input I O designation Output Input output Data size 1to 16 words Word unit con word Data module unit con whole Separation prevention setting Tab 5 4 Data module settings When even one data module is set to data module unit con whole in the separation prevention setting data inconsistency is
75. eration mode change request Module READY Tab 7 7 Listof devices from to the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 7 Programming Communication of I O Data Devices occupied by the LX41C4 Device Input Description Device Output Description X50 X6F Inputs of LX41C4 Tab 7 8 Devices occupied by the LY41PT1P Device Input Description List of devices for the input module LX41C4 Device Output Description Tab 7 9 Devices occupied by the L60AD4 Device Input Description Y70 Y8F List of devices for the output module LY41PT1P Device Output Outputs of LY41PT1P Description X90 Module READY Tab 7 10 Devices occupied by the L60DA4 Device Input Description Device Output Device used for the Analog Digital conversion module L60AD4 Description X100 Module READY Tab 7 11 Device used for the Digital Analog conversion module L60DA4 Devices for the user Description Description Operation mode change flag Extension trouble notification flag Operation mode change storage Initial input data write Extension trouble notification completion flag Extension trouble cancel flag Error handling flag Tab 7 12 List of devices for the user Self diagnosis mode change Devices used for automatic refresh or buffer memory reading Device De
76. es ME2PB1 L Profibus DP Slave Module 8 5 Dedicated Instructions G BBLKWR 8 3 G BBLKWR Set data Usable device Internal device Link direct device System user File JUN register Bit Word i Word Intelligent Index function module register device UL AGI Zn Constant K H Tab 8 5 Devices usable the BBLKWR instruction Instruction Execution symbol condition G BBLKWR Command I Fig 8 5 BBLKWR instruction Set data Description Setting range Data type ME2PB1 L module start I O number Upper 2 digits of the I O number in 3 digit notation Oto FEH Start address for writing data Set start address as the offset address from Example Set 256H as OH Specified device range BIN 16 bits Start No of the device storing write data Specified device range Device name Tab 8 6 Function Number of write data Set data in the BBLKWR instruction 1 to 122 word BIN 16 bits This instruction allows data writing to the buffer memory of a specified module with data consistency ensured Error An operation error occurs in the following instances Error code 4101 When a value outside the setting range is set to the set data field When the size which is obtained by adding the number of write data to the start address for writing data ex
77. etween the ME2PB1 L and the master station How to set the swap function The swap function can be set as a slave parameter of the master station Word Data Swap in the user parameters setting Slave parameters of the master station are set from the configuration tool on the master station Select Word Data Swap to enable the swap setting for a DP Slave DP Slave Parameters Wizard Slave User Parameters Select module oloba z Edt Hex Module Parameters Reserved reserved enable i Data Alignment Mode LUMP mode Word Data Swap Cancel Back Finish Default J Fig 4 15 Data swap setting NOTE Refer to section 5 3 3 for a setting example using the intelligent function utility When using another configuration tool refer to the relevant manual 4 14 MITSUBISHI ELECTRIC Implementation and Installation Settings and Procedures before System Operation 5 Settings and Procedures before System Operation This chapter explains the procedures for connecting the ME2PB1 L to Profibus DP wiring and other information 5 1 Implementation and Installation This section provides the handling precautions from unpacking to installation of the ME2PB1 L For details on the implementation and installation of the ME2PB1 L refer to the user s manual Hard ware design maintenance and inspection for the CPU module used 5 1 1 Handling precautions The following are precautions for handling the ME2PB1 L as a unit Donotdrop the module
78. formation List Product Information List Sort Order by Installation Order by Type Name CPU L26CPU BT 111120000000000 A 11 0 L 0 CPU Built in L L26CPU BT 16Point 0000 111120000000000 A 11 0 CPU Built in CC Link L L26CPU BT 32Point 0010 111120000000000 A 11 0 0 Input L LX40C6 16Point 0030 0 1 Intelli L 026ME2PB1 L 32Point 0040 150230000000000 A 0 END Cover LoEU Serial number Function first 5 digits version Fig 2 1 Product Information List for a PLC with a ME2PB1 L MELSEC L Series ME1PB2 L Profibus DP Slave Module 2 1 System Configuration Profibus DP Network Configuration 2 2 2 2 1 Profibus DP Network Configuration Basic configuration of the Profibus DP network This section explains the basic Profibus DP configuration for using the ME2PB1 L as a slave station System equipment The following table shows the equipment required for the Profibus DP system System equipment Description Slave station ME2PB1 L Class 1 master station Configuration tool ME2PB1 L QJ71PB92V QJ71PB92D etc Configurator applicable to the master station Repeater Required when 32 or more stations are connected Profibus cable Bus terminator Refer to section 5 5 2 Tab 2 1 System equipment Network configuration In the Profibus DP system configuration the following conditions mu
79. g on the master station Dedicated instructions are not executable if this data module setting is incomplete When using BBLKRD Set an output I O module When using BBLKWR Set an input or I O module Execution of the BBLKRD and BBLKWR instructions The BBLKRD and BBLKWR instructions work independently Number of executions within one scan Execute dedicated instructions only once in one scan Q Execution timing Execute the BBLKRD and BBLKWR instructions all the time While the ME2PB1 L is implementing the data consistency function the dedicated instruction is not processed not executed Refer to section 4 2 1 Therefore I O data may not be read or written in a program where either of the instructions is executed only once at the rising or falling edge of the pulse Transmission delay time when using a dedicated instruction Use of the data consistency function increases the transmission delay time Refer to section 6 3 MELSEC L Series ME2PB1 L Profibus DP Slave Module 8 3 Dedicated Instructions G BBLKRD 8 2 G BBLKRD Usable device Internal device System user Link direct device File JEN register Index register Zn Intelligent function module device UL AGI Set data Constant K H Bit Word Word Tab 8 3 Devices usable in the BBLKRD instruction Instruction Execut
80. he input status is refreshed every time the FREEZE service is received The input status is held as long as the FREEZE service is not received UNFREEZE Ends the FREEZE input synchronization mode Tab 4 5 Global control services for the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module 4 7 Functions Global Control Function When receiving SYNC and UNSYNC services D Before receiving SYNC service ME2PB1 L Class 1 master Input Output Buffer station image memory memory 7 Input Input data Input data send area Output Output data Output data receive area Fig 4 5 Before receiving SYNC service the output receive area is refreshed After receiving SYNC service ME2PB1 L Class 1 N Buff ass 1 master nput Output uffer p station gt image memory memory Input Input data Input data send area Output Output data Output data receive area Fig 4 6 After receiving SYNC refresh of the output receive area is stopped Upon reception of the SYNC service the SYNC mode is started and refresh from the output data area to the output receive area is stopped During the SYNC mode the SYNC LED of the ME2PB1 L is ON When the SYNC service is received during the SYNC mode refresh to the output receive area is performed only once Even during the
81. he stored value while the I O communication signal Xn1 is ON is valid Ifthe station number is not set the station number is as set in the factory or has been cleared 126 is stored I O data cannot be communicated if the station number is not set Station number set on flash ROM Un G514 In the buffer memory address Un G514 the station number of the ME2PB1 L set to the flash ROM is stored The setting range is 0 to 125 Ifthe station number is not set to the flash ROM the station number is as set in the factory or has been cleared FFFFH is stored MITSUBISHI ELECTRIC Buffer Memory Specifications 3 4 7 Station number change request area Un G515 The buffer memory address Un G515 is used to set any of the following values when setting a new sta tion number of the ME2PB1 L in response to the station number change request signal Y n 1 3 Set Value Description Set a station number By turning on b8 the station number is saved onto the flash ROM b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO Set a station number within the range 1 Save onto the flash ROM from to 7DH 0 to125 0000H to 007DH 0100H to 017DH 0 Not save onto the flash ROM Example 1 When the station number is set to 12 but not saved onto the flash ROM 000CH Example 2 When the station number is set to 12 and saved onto the flash ROM 010CH Clears the station
82. hone 385 0 1 36 940 01 02 03 Phone 47 0 32 24 30 00 ADROIT TECHNOLOGIES SOUTH AFRICA Fax 385 0 1 36 940 03 Fax 47 0 32 8485 77 20 Waterford Office Park 189 Witkoppen Road AutoCont C S S R 0 CZECH REPUBLIC Fonseca S A PORTUGAL ZA Fourways Kafkova 1853 3 Joao Francisco do Casal 87 89 Phone 27 0 11 658 8100 2 702 00 Ostrava 2 PT 3801 997 Aveiro Esqueira Fax 27 0 11 658 8101 Phone 420 595 691 150 Phone 351 0 234 303 900 Fax 420 595 691 199 Fax 351 0 234 303 910 Beijer Electronics A S DENMARK SIRIUS TRADING amp SERVICES SRL ROMANIA Lykkegardsvej 17 Aleea Lacul Morii Nr 3 DK 4000 Roskilde RO 060841 Bucuresti Sector 6 Phone 45 0 46 75 76 66 Phone 40 0 21 430 40 06 Fax 45 0 46 75 56 26 Fax 40 0 21 430 40 02 HANS F LSGAARD A S DENMARK INEA SR d o o SERBIA Theilgaards Torv 1 UI Karadjordjeva 12 217 DK 4600 K ge SER 11300 Smederevo Phone 45 4320 8600 Phone 381 0 64 68 55 187 ic M SIMAP SK Z padn Slovensko SLOVAKIA Beijer Electronics Eesti OU ESTONIA J naDerku 1671 P rnu mnt 160i SK 911 01 Trenc n EE 11317 Tallinn Phone 421 0 32 743 04 72 Phone 372 0 6 5181 40 Fax 421 0 32 743 75 20 Fan 372 06 5181 NEA RBT d 0 0 SLOVENIA Beijer Electronics OY FINLAND Stegne 11 Vanha Nurmij rventie 62 SI 1000 Ljubljana FIN 01670 Vantaa Phone 386 0 1 513 8116 Phone 358 0 207 463 500 Fax 386 0 1 513 8170 Fax 358
83. ications functions procedures before system operation and trouble shooting for the ME2PB1 L Profibus DP slave module hereinafter referred to as ME2PB1 L The ME2PB1 L operates as a slave station in a Profibus DP network ME1PB1 L MELSEC L series PLC Profibus DP Master Profibus DP Bus terminator Bus terminator MELSEC L series PLC Profibus DP Slave p Profibus DP Slave ME2PB1 L Profibus DP Slave Fig 1 1 Profibus DP using ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module Overview Features 1 1 Features The following describes the features of the ME2PB1 L Conformance with EN50170 Volume 2 Part 1 2 3 4 8 The ME2PB1 L conforms with EN50170 Volume 2 Part 1 2 3 4 8 and can communicate with the mas ter station as a Profibus DP slave station 1 O data communication with class 1 master station The ME2PB1 L can communicate I O data with the class 1 master station master station that makes data communication cyclically with a slave station of Profibus DP The ME2PB1 L supports the Profibus DPVO function Profibus DPV1 and Profibus DPV2 which are extended versions of Profibus DP are not supported Available data size The ME2PB1 L can handle the following size of data Refer to section 4 1 Input data 122 words Max 192 words in total Output data Max 122 words i Class 1 master stat
84. ice of the automatic refresh e Referto section 5 4 1 parameter th input send area refresh e e Refer to section 3 3 2 directive signal YnO Fig 7 1 Communication using automatic refresh MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 1 Programming Communication Sequence When not using the automatic refresh Start Make sure that the I O communication signal Xn1 is ON e e Refer to section 3 3 2 Write the initial input data value to the input send area e e e Refer to section 3 4 3 Turn on the input send area refresh directive signal YnO e e Refer to section 3 3 2 Read the output data from the output receive area using BBLKRD MOV FROM instructions Write the input data to the input send area of the buffer memory using BBLKWR MOV TO instructions Fig 7 2 Communication without automatic refresh 7 2 MITSUBISHI ELECTRIC Station Number Setting Programming 7 2 Station Number Setting This section gives a program example for setting a station number to the ME2PB1 L System configuration for the example CPU module L26CPU BT Profibus slave module ME2PB1 L Powersupply Input or output modules module L61P e End cover L6EC Fig 7 3 ME2PB1 L is mounted to the CPU module together with input or output modules L Parameter Setting PLC Name
85. ight 0 14 kg 0 39 A Tab 3 1 Performance specifications Transmission speed control within 0 396 EN50170 Volume 2 compliant o Factory set to 126 EN50170 Volume 2 compliant Set a station number within 0 to 125 for I O data communication Number of I O data is 192 words in total Transmission distance Max transmission distance per network Transmission speed Transmission distance per segment DOC 9 6 kbps 19 2 kbps 45 45 kbps 93 75 kbps 187 5 kbps 500 kbps 1 5 Mbps 3 Mbps 6 Mbps 12 Mbps Tab 3 2 Transmission distance The max transmission distance in the table above is based on the case where 3 repeaters are used The calculation formula for the transmission distance extended using a repeater s is Max transmission distance m network Number of repeaters 1 x Transmission distance m segment 3 2 A MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications 3 3 3 3 1 1 O Signals for the PLC CPU List of 1 0 Signals Note that the I O numbers X Y shown in this section and thereafter depend on the mounting posi tion resp on the start I O number or head address of the ME2PB1 L This head address has be added to the shown I O numbers For example if the ME2PB1 L occupies the range from X Y040 to X YO5F the head address is X Y040 However the least significant digit is omitted and the head address n in this case
86. ing xia ee Hen Sahu need ee weed ae 5 4 Serial number 0 0 ccc eee eee eee 2 1 Slave parameter 5 3 Station number Change completion signal X n 1 3 3 12 Change request area 3 17 Change request signal Y n 1 3 3 12 Set flash ROM 3 16 Setting issues Rack n EROR CR 5 19 Setting program example 7 3 Swap Setting 5 14 Swapping function 4 12 SYNC Description 4 8 Program 7 20 T Transmission 3 2 5 22 U UNFREEZE x a hr rebos 4 10 UNSYNC 4 8 Watchdog timer error signal 0 3 4 Wiring specifications for bus terminator 5 25 MITSUBISHI ELECTRIC a MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES EURASIAN REPRESENTATIVES Mitsubishi Electric Europe B V EUROPE German Branch Gothaer StraBe 8 D 40880 Ratingen Phone 49 0 2102 486 0 Fax 49 0 2102 486 1120 Mitsubishi Electric Europe B V Czech Branch Radlick 751 113e Avenir Business Park 2 158 00 Praha 5 Phone 420 251551 470 Fax 420 251 551 471 Mitsubishi Elect
87. ion gt Output image gt Input image Bus terminator Bus terminator Profibus DP network Buffer memory Read Output receive Output image Write O Input send p area Input image CPU module ME2PB1 L Slave station Fig 1 2 1 0 exchange between the Profibus DP master and a ME2PB1 L Reads with BBLKRD MOV FROM instruction or automatic refresh Writes with BBLKWR MOV TO instruction or automatic refresh MITSUBISHI ELECTRIC Features Overview Communication can be made by merely setting the master station parameters After you have set the parameters at the master station the ME2PB1 L can make communication by merely setting the station number Refer to section 5 2 Swapping of I O data When 1 0 data is sent received from to the master station their upper and lower bytes can be swapped Though Profibus DP handles the upper and lower bytes of I O data differently depending on the mas ter station type the I O data need not be swapped in a sequence program Refer to section 4 4 1 Start stop of refreshing the input send area Refreshing of send data from the ME2PB1 L to the master station is controllable by an output signal YnO Providing an interlock disables the buffer memory da
88. ion symbol condition Command G BBLKRD IA Uu m a 2 Fig 8 3 BBLKRD instruction Set data Description Setting range Data type ME2PB1 L module start 1 0 number Oto FEH Upper 2 digits of the I O number in 3 digit notation BIN 16 bits Start address of reading data Specified device range Start No of the device to which read data are stored Specified device range Device name Number of read data 1 to 122 word BIN 16 bits Tab 8 4 5 data in the BBLKRD instruction Function This instruction allows data reading from the buffer memory of a specified module with data consist ency ensured Error An operation error occurs in the following instances Error code 4101 When value outside the setting range is set to the set data field Whenthesize which is obtained by adding the number of read data to the start address of reading data exceeds the buffer memory size When the points available for the start address of reading data or after is less than the number of read data 8 4 EA MITSUBISHI ELECTRIC G BBLKRD Dedicated Instructions Example V Program example At the timing of M10 ON 122 points of data are read starting from address UO GO in the output receive area of the ME2PB1 L module start I O No 0 to DO to D121 with data consistency ensured M10 XOA ELT P_ T amp BBLKRD UO 00 K122 Fig 8 4 BBLKRD instruction program example MELSEC L Seri
89. ion modules like the ME2PB1 L Programming is reduced because the initial setting and automatic data exchange between PLC CPU and ME2PB1 L can be configured on the screen In addition the switches of intelligent function modules can be set easily Addition of a new module to the project Toaddanewintelligentfunction module to a project click on Intelligent Function Module in the Pro ject Navigation window After a right click select New Module H 3 B Intelligent Function ea EET Fig 5 29 Project Edit Find Replace Compile View Online Debug IDEBA amp B ios Se E m _ New Module Read GX Configurator QP Data l Property Addition ofa new intelligent function module Analog Module Temperature Control Module Counter Module LD75 Type Positioning Module Serial Communication Module PROFIBUS DP Module AnyWireASLINK Interface Module Specify start address 0030 Module Occ 6 points Fig 5 30 Selection of an intelligent function module MELSEC L Series ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Intelligent Function Utility GX Works2 Select Profibus DP Module New Module E spe Fig 5 31 Selection ofthe Profibus DP slave module Enter the slot No where the module is mounted
90. ion time out error occurrence Valid 2 to 65025 I O communication signal Xn1 turns OFF Tab 3 4 Dependence of the I O communication signal Xn1 on the master station parameters The communication watchdog timer setting can be confirmed in the Current communication watchdog timer value buffer memory address Un G2257 of the ME2PB1 L Usethissignalasasignalfor interlocking output receive area read performed with the MOV FROM instruction Stopped Communicating Stopped Communication with master station communication signal Xn1 Data update in output receive area Not updated Updated i Not updated Output receive area Buffer memory UnXGO to Un G191 MOV FROM instruction Reading from output receive area Fig 3 1 Utilization of the I O communication signal Xn1 3 4 MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications Extension trouble notification request signal Yn2 Extension trouble notification completion signal Xn2 Turning ON the extension trouble notification request signal Yn2 sends the data set in the NOTE extension trouble information area Un G2041 to Un G2053 to the master station as extension trouble information The extension trouble notification request is ignored while the I O commu nication signal Xn1 is OFF The extension trouble notification completion signal Xn2 turns ON when the extension trouble information is sen
91. ith the hard ware described including system design installation configuration maintenance service and test ing of the equipment may only be performed by trained electrical technicians with approved qual ifications who are fully acquainted with all the applicable automation technology safety standards and regulations Any operations or modifications to the hardware and or software of our products not specifically described in this manual may only be performed by authorized Mitsubishi Electric staff Proper use of the products The ME2PB1 L PROFIBUS DP Slave Module is only intended for the specific applications explicitly described in this manual All parameters and settings specified in this manual must be observed The products described have all been designed manufactured tested and documented in strict compli ance with the relevant safety standards Unqualified modification of the hardware or software or failure to observe the warnings on the prod ucts and in this manual may result in serious personal injury and or damage to property Only periph erals and expansion equipment specifically recommended and approved by Mitsubishi Electric may be used with the programmable controllers of the MELSEC L series All and any other uses or application of the products shall be deemed to be improper Relevant safety regulations All safety and accident prevention regulations relevant to your specific application must be observed in the system
92. itsubishi Electric Europe B V UAE Dubai Branch Dubai Silicon Oasis United Arab Emirates Dubai Phone 971 4 3724716 Fax 971 43724721 Mitsubishi Electric Corporation Tokyo Building 2 7 3 Marunouchi Chiyoda ku Tokyo 100 8310 Phone 81 3 3218 2111 Fax 81 3 3218 2185 Mitsubishi Electric Automation Inc 500 Corporate Woods Parkway Vernon Hills IL 60061 Phone 1 847 478 2100 Fax 1 847 478 0328 CZECH REP FRANCE IRELAND ITALY POLAND RUSSIA SPAIN SWEDEN JAPAN USA MITSUBISHI ELECTRIC Changes for the Better GEVA AUSTRIA Beijer Electronics SIA LATVIA TOO Kazpromavtomatika KAZAKHSTAN Wiener Stra e 89 Ritausmas iela 23 UL ZHAMBYLA 28 A 2500 Baden 1V 1058 Riga KAZ 100017 Karaganda Phone 43 0 2252 85 55 20 Phone 371 0 6 784 2280 Phone 7 7212 50 10 00 Fax 43 0 2252 488 60 Fax 371 0 6 784 2281 Fax 7 7212 50 11 50 000 TECHNIKON BELARUS Beijer Electronics UAB LITHUANIA Prospect Nezavisimosti 177 9 Go taut g 3 BY 220125 Minsk LT 48324 Kaunas Phone 375 0 17 393 1177 Phone 370 37 262707 UE EE bel AEA EES UU AE Fax 375 0 17 393 0081 Fax 370 37 455605 C SYSTEMS Ltd EGYPT ESCO DRIVES BELGIUM ALFATRADE Ltd MALTA 23 Al Saad Al Alee St i Culliganlaan 3 99 Paola Hill EG Sarayat Maadi
93. l dimensions of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module Appendix External Dimensions A 2 MITSUBISHI ELECTRIC Index A Area Extension trouble information 3 18 Inputsend sA aei a a E EAO a 3 16 Input send area used status 3 22 Output receive 3 16 Output receive area used status 3 21 Automatic refresh 5 19 B BBLKRD Instruction 8 4 Start request acceptance completion Signal XNA 3 9 Start request signal YnA 3 9 BBLKWR Instruction 8 6 Start request acceptance completion 3 10 Start request signal YnB 3 10 Buffer memory List ure Lx Res Ga ix Row 3 15 SET CtUTG e va aC Ea gba 3 14 Buscycletime so aeria iiaa 6 3 lt 5 25 C Communication watchdog timer 5 3 Connector for PROFIBUS 5 24 Current communication watchdog timer value Current operation mode 3 19 D Data Alignment Mode 5 13 Data assignment mode setting 5 10 Data module 5 14 Data size setting 5 4 Data swap function 4 12 DDB file eim Rp MUERE 5 3 DIA EED ui
94. memory Buffer memory CPU module Transmission delay time for input Refer to section 6 3 Fig 6 5 Sending of input data using automatic refresh Refer to the relevant manual for the processing time of the master station MELSEC L Series ME2PB1 L Profibus DP Slave Module 6 3 Processing Times Transmission Delay Times 6 3 NOTE Transmission Delay Times The formulas for calculating the delay time for the output receive data transmission and the input send data transmission are shown below Transmission delay time of output receive Master station ME2PB1 L Type of data transmission Transmission delay time BBLKRD instruction Bus cycle time Scan time 0 2 ms MOV FROM instruction Scan time 4 0 2 ms Automatic refresh Tab 6 1 When separation prevention function is not used Normal value Max value Scan time X 0 5 0 2 ms Scan time 0 2 ms When separation prevention function is used Delay of output receive data Normal value Max value Scan time X 1 5 0 2 ms Scan time X 3 0 2 ms Transmission delay time of input send ME2PB1 L Master station Type of data transmission Transmission delay time BBLKWR instruction Scan time lt Bus cycle time Bus cycle time 3 0 2 ms Scan time gt Bus cycle time Bus cycle time X 2 Scan time 0 2 ms MOV FROM instruction Bu
95. methods Read or write I O data from the buffer memory to devices in the LCPU by the following methods Read write methods Setting location Data consistency function Automatic refresh Intelligent function utility Dedicated instructions Available BBLKRD BBLKWR ae MOV or FROM TO instructions Sequence program Not available Tab 4 2 Read write methods for I O data Sending receiving I O data The sending and receiving process is described below The 1 0 communication signal Xn1 turns ON when the ME2PB1 L is ready to communicate with the master station When the I O communication signal Xn1 turns ON data output from the master station are stored into the output receive area in the buffer memory Un GO to Un G191 When sending input data to the master station write the initial value to the input send area in the buffer memory Un G256 to Un G447 Turning ON the input send area refresh directive signal YnO starts input data communication Turning OFF the signal stops the input data communication MITSUBISHI ELECTRIC O Data Exchange Functions The 1 0 communication signal Xn1 of the ME2PB1 L is turned OFF when communication with the master station is stopped Receiving output data from the master station Master station ME2PB1 L Sending input data to the master station Master station ME2PB1 L lt directive signal YnO e Output area Da
96. n 4 4 1 Data swap setting The setting required for swapping I O data the setting by master station type and the operation out line are described below Swap function setting by master station type The swap function setting changes depending on the master station type as described below Master station type Swap function setting of ME2PB1 L ME1PB1 L When swap is not executed on master station side Default setting Disable Not swapped QJ71PB92D When swap is executed on master station side Enable Swapped A1SJ71PB92D AJ71PB92D Disable Not swapped Othertraster station Set according to the specifications of the master station Tab 4 6 Swap function setting depending on master station type 4 12 MITSUBISHI ELECTRIC Data Swap Function Functions Operation outline When the ME1PB1 L QJ71PB92V QJ71PB92D A1SJ71PB92D or AJ71PB92D is used as the master sta tion the operation outline is as Shown below When the data is not swapped inside the master station ME1PB1 L QJ71PB92V QJ71PB92D A1SJ71PB92D or AJ71PB92D Master station ME2PB1 L Input data Input sending area Data1 Data Data1 Data 1 H L H L Input image Data2 Data2 Data2 Data2 H D H D i Output data Output receiving area Data3 Data 3 Data3 Data 3 D H 0 Output 1 1 image Data 4 Data 4 Data 4 Data 4 H UD D ee Y Profibus DP data communication H High byte L Low
97. n5 is ON However if the communication watchdog timer setting in the master station side parameters is invalid the SYNC mode signal Xn5 does not turn OFF since a communication time out error does not occur The output data in the output receive area is held Communication watchdog timer setting in master station side parameters Operation at master station fault No error SYNC mode signal Xn5 remains ON Communication time out error occurrence SYNC mode signal Xn5 turns OFF Invalid Valid 2 to 65025 Tab 3 5 Dependence of the SYNC mode signal Xn5 on the master station parameters The communication watchdog timer setting can be confirmed in the Current communication watchdog timer value buffer memory address Un G2257 of the ME2PB1 L MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications SYNC receive signal Xn6 The SYNC receive signal Xn6 turns ON at receipt of a SYNC request from the master station While the SYNC mode signal Xn5 is ON the receipt of a SYNC request from the master station changes the ON OFF state of the SYNC receive signal Xn6 At this time the SYNC mode signal X05 remains ON The SYNC receive signal Xn6 turns OFF when the SYNC mode is terminated by an UNSYNC request from the master station a communication stop or a CPU reset SYNC request SYNC request SYNC request UNSYNC request Request from master SYNC mode signal Xn5
98. nction is disabled in the automatic refresh setting MOV or FROM TO instruction The data consistency function is not usable when data refresh is performed between the LCPU and the ME2PB1 L buffer memory by MOV or FROM TO instructions MITSUBISHI ELECTRIC Global Control Function Functions 4 3 Global Control Function The inputs outputs of slave stations are controlled simultaneously for each specified group by mul ticasting broadcasting from the master station Refer to section 4 3 1 Set group numbers when using the global control function The group numbers are set to the slave parameters of the master station Refer to section 4 3 2 Class 1 master station Send to group 1 Bus terminator Bus terminator Slave Slave station station Fig 4 4 The global control function is used to send data to the slaves of group 1 4 3 1 Global control services available for the ME2PB1 L The following table describes the global control services available for the global control function of the ME2PB1 L Global control service Description Starts the SYNC output synchronization mode SYNC During the SYNC mode the output status is refreshed every time the SYNC service is received The output status is held as long as the SYNC service is not received UNSYNC Ends the SYNC output synchronization mode Starts the FREEZE input synchronization mode FREEZE During the FREEZE mode t
99. notification data length Sets extension trouble notification data Stores extension trouble notification data in buffer memory Extension trouble notification request Resets extension trouble notification request Extension trouble notification completion flag Stores error code e e 9 Tab 7 16 Description of fig 7 12 Cancel of extension trouble information notification X32 M41 t D20 SET M42 RST M41 M42 X4D X31 X32 U3 ME MOVP G2041 e SET Y32 e M42 x32 RST Y32 RST M42 Fig 7 13 Canceling of extension trouble information notification Description Cancels extension trouble information notification Notifies master station of canceling extension trouble notification Extension trouble notification request Resets extension trouble information notification flag Tab 7 17 Description of fig 7 13 MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 11 Programming Communication of I O Data Operation mode change Self diagnosis mode Operation mode change Self diagnosis mode M100 PLS M10 M10 SET M11 M11 X30 X4D YA U3 A r 4 Ad MovP H2 G2255 j e SET Yat x41 Ua MOVP 62254 D10 UA MOVP 62256 D11 1 RST Y41 1 RST M11 1
100. nsmission to the master station is stopped until the writing from the CPU module to the buffer memory input send area of the ME2PB1 L is completed and executed after the writing has been completed ME2PB1 L CPU module Buffer memory Master station 1 3 0 1 14 EN ud M Lo 5 i 7 6 7 i Read after com Data transfer pletion of data completed transfer Area where data transmission from master station is not yet updated Area where data transmission from master station is updated Tab 4 4 Example of data exchange when using the separation prevention function Output data MITSUBISHI ELECTRIC I O Data Separation Prevention Function Functions 4 2 2 NOTE NOTE How to prevent data inconsistency The I O data separation prevention function is executed during automatic refresh or when dedicated instructions are used This function is not available when MOV or FROM TO instructions are used for buffer memory read ing writing Using automatic refresh Automatic refresh can be set in the intelligent function utility To use the data separation prevention function by automatic refresh select the Consistency checkbox DP ME2PB1 L Parameters Wizard Autorefresh Settings mx Buffer Devices Enable Autorefresh Consistency Input Size in words 32 0 122 Output Size in words
101. o shut off all phases of the external power supply used by the system before wiring PROFIBUS cables Failure to do so may cause the module to fail or malfunction Prevent foreign matter such as dust or wire chips from entering the module Such foreign matter can cause a fire failure or malfunction Be sure to place the PROFIBUS cables in a duct or clamp them If not dangling cable may swing or inadvertently be pulled resulting in damage to the module or cables or malfunction due to poor contact When disconnecting the PROFIBUS cable do not pull it by holding the cable part Be sure to hold its connector which is plugged into the module Pulling the cable with it connected to the module may damage the module and or cable or cause malfunctions due to poor contact of the cable MELSEC L Series ME2PB1 L Profibus DP Slave Module V Safety guidelines VI Startup and maintenance precautions DANGER Shut off the external power supply all phases used in the system before cleaning the module Failure to do so may result in electric shock or cause the module to fail or malfunction CAUTION Donot disassemble or modify the modules Doing so may cause failure malfunction injury or a fire Useanyradio communication device such as a cellular phone or PHS Personal Handy phone System more than 25 cm away in all directions from the programmable controller Failure to do so may cause malfunction Shut off the ex
102. ocedures before System Operation 5 5 Part Names and Settings This section explains the names and settings of each part of the ME2PB1 L Fig 5 24 RI ME2PB1 L appearance ME2PB1 L RUN SYN FRZ ERR R ERR DIA TST PROFIBUS LICHEN EN These LEDs indicate the operation status of the ME2PB1 L Indicator LEDs For details refer to section 5 5 1 Profibus interface connector This connector connects the Profibus cable to the ME2PB1 L D sub 9 pin female connector Tab 5 13 Names of parts MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 21 Settings and Procedures before System Operation Part Names and Settings 5 5 1 Indicator LEDs ME2PB1 L RUN SYN FRZ DIA TST Status Description Fig 5 25 Indicator LEDs of the ME2PB1 L Reference section ON Normally operating Hardware error or power failure SYNC mode active FREEZE mode active An error has occurred Normally operating A communication error has occurred No communication error Diagnostic information present No diagnostic information Executing self diagnostics Tab 5 14 Indicator LEDs Not executing self diagnostics MITSUBISHI ELECTRIC Self diagnostics Settings and Procedures before System Operation 5 6 5 6 1 5 6 2 Self diagnostics The self diagnostics of the ME2PB1 L performs a self
103. pe code at the time of self diagnostics is stored Type Code Description 0000H Normal termination of self diagnostics 0001H to 0009H During self diagnostics the state of the test is shown 8001H to 8006H At abnormal termination of self Hardware fault 8007H diagnostics Swap test error Tab 3 16 Self diagnostic status type code display area Un G2258 Swapping function setting status Un1G2259 The buffer memory address Un G2259 stores the setting status of the swapping function set in the master station side parameter The stored value while the I O communication signal Xn1 is on is valid Stored value Description Tab 3 17 Stored values for the communication status Without swap setting With swap setting MITSUBISHI ELECTRIC Buffer Memory Specifications 3 4 16 Output receive area used status Un G2272 to Un G2283 In this area the used status of the output receive area is stored The bits corresponding to the buffer memory addresses in output receive area set by the master sta tion parameters Data module setting turn ON The stored value while the I O communication signal Xn1 is ON is valid Buffermemory address Corresponding Buffer Memory Addresses Hexadecimal in output receive area Decimal HEX b14 b13 b12 b11 b10 b8 b7 b6 b5 b4 b2 2272 BE0H DH CH BH AH 9H 8H 7H 4H 2H Each bit indicates 2273 8E1H 1BH 12 the buffer
104. prevented based on the specified data size MITSUBISHI ELECTRIC Parameter Setting to Master Station Settings and Procedures before System Operation Data module setting example The data module setting example given here assumes the following configuration Data moduleO Data module1 Data module 2 CPU Module ME2PB1 L Input module Output module module 64 points 64 points 32 points 4 words 4 words 2 words X20 to X5F Y60 to X9F to XBF YAO to YBF Fig 5 2 Configuration for this example Data Module Setting ME2PB1 L Buffer Memory Data module 0 i Data module 0 area 4 words is reserved in the input send area Input 4 words word unit Data module 1 Data module 1 area 4 words is reserved in the output receive area Output 4 words word unit Data module 2 Data module 2 areas 2 words each are reserved in the output receive area and Input output 2 words word unit input send area Tab 5 5 Settings for this example Total data size The total data size of the data modules 0 to 2 is as follows Input data size Data module 0 input 4 words data module 2 input 2 words 6 words Output data size Data module 1 output 4 words data module 2 output 2 words 6 words Total data size Input data size 6 words output data size 6 words 12 words MELSEC L Series ME2PB1 L Profibus DP Slave Module 5 5 Settings and
105. put data Output data receive area Fig 4 9 After receiving FREEZE refresh of the input data is stopped Upon reception ofthe FREEZE service the FREEZE mode is started and refresh from the input send area to the input data area is stopped During the FREEZE mode the FREEZE LED of the ME2PB1 L is ON When the FREEZE service is received during the FREEZE mode refresh to the input sending area is performed only once Even during the FREEZE mode refresh from the output data area to the output receive area is executed continuously 4 10 MITSUBISHI ELECTRIC Global Control Function Functions 3 After receiving UNFREEZE service ME2PB1 r Class 1 audor O Buff ass 1 master nput Output uffer station image memory Input data Input data Output Output data Output data Fig 4 10 After receiving UNFREEZE refresh of the input data is restarted Upon reception of the UNFREEZE service the FREEZE mode is terminated and refresh from the input send area to the input data area is restarted When the UNFREEZE service is received the FREEZE mode is ended and the FREEZE LED of the ME2PB1 L turns OFF 4 3 2 Group selection There are a total of 8 groups from 1 to 8 The ME2PB1 L is allowed to belong to any of the 8 groups Specify the group using the configuration tool of the master station MELSEC L Series ME2PB1 L Profibus DP Slave Module 4 11
106. put or output data are sent to or Word data swap function received from the master station Tab 4 1 Functions of the ME2PB1 L 4 1 1 O Data Exchange This function allows the ME2PB1 L to operate as a Profibus DP slave station and to communicate I O data with the master station The ME2PB1 L can handle the following size of data Input data 122 words Max 192 words in total Output data Max 122 words a e Class 1 master station gt Output image gt Input image Bus terminator Bus terminator Profibus DP network x Buffer memory Read Output receive 4 area Output image Write O Input send p area Input image CPU module ME2PB1 L Slave station Fig 4 1 1 0 data exchange between the Profibus DP master and a ME2PB1 L Reads with BBLKRD MOV FROM instruction or automatic refresh writes with BBLKWR MOV TO instruction or automatic refresh MELSEC L Series ME2PB1 L Profibus DP Slave Module 4 1 Functions I O Data Exchange 4 1 1 Reading writing 1 data Storing of I O data The I O data are stored in the buffer memory of the ME2PB1 L Input data Input send area Un G256 to Un G447 Output data Output receive area UnNGO to Un G191 Read write
107. r station Do not output the use prohibited signal as the output signal to an intelligent function module from the programmable controller CPU Doing so may cause malfunction of the programmable controller system Wiring data into the system area or outputting a signal for use prohibited may cause system malfunction in the programmable controller IV MITSUBISHI ELECTRIC Safety guidelines Installation Precautions CAUTION Do not install PROFIBUS cables together with the main circuit or power lines or bring them close to each other Keep a distance of 100 mm or more between them Failure to do so may result in malfunction due to noise Use the programmable controller in an environment that meets the general specifications in the user s manual for the CPU module used Failure to do so may result in electric shock fire malfunction or damage to or deterioration of the product Shut off the external power supply all phases used in the system before mounting or removing the module Failure to do so may result in damage to the product Do not directly touch any conductive parts and electronic components of the module Doing so can cause malfunction or failure of the module To interconnect modules engage the respective connectors and securely lock the module joint levers Incorrect interconnection may cause malfunction failure or drop of the module Wiring precautions CAUTION Besuret
108. ric Europe B V French Branch 25 Boulevard des Bouvets F 92741 Nanterre Cedex Phone 33 0 1 55 68 55 68 Fax 33 0 1 55 68 57 57 Mitsubishi Electric Europe B V Irish Branch Westgate Business Park Ballymount IRL Dublin 24 Phone 353 0 1 4198800 Fax 353 0 1 4198890 Mitsubishi Electric Europe B V Italian Branch Viale Colleoni 7 Palazzo Sirio 1 20864 Agrate Brianza MB Phone 39 039 60 53 1 Fax 39 039 60 53 312 Mitsubishi Electric Europe B V Polish Branch ul Krakowska 50 PL 32 083 Balice Phone 48 0 12 630 47 00 Fax 48 0 12 630 47 01 Mitsubishi Electric Europe B V Russian Branch 52 bld 3 Kosmodamianskaya nab 8 floor RU 115054 Moscow Phone 4 7 495 721 2070 Fax 7 495 721 2071 Mitsubishi Electric Europe B V Spanish Branch Carretera de Rub 76 80 Apdo 420 E 08190 Sant Cugat del Vall s Barcelona Phone 34 0 93 5653131 Fax 34 0 93 5891579 Mitsubishi Electric Europe B V Scandinavia Swedish Branch Fjelievagen 8 SE 22736 Lund Phone 46 0 8625 10 00 Fax 46 0 46 39 70 18 Mitsubishi Electric Turkey Elektrik r nleri A TURKEY Fabrika Otomasyonu Merkezi erifali Mahallesi Nutuk Sokak No 5 TR 34775 mraniye STANBUL Phone 90 0 216 526 39 90 Fax 90 0 216 526 39 95 Mitsubishi Electric Europe B V UK UK Branch Travellers Lane UK Hatfield Herts AL10 8XB Phone 44 0 1707 28 87 80 Fax 44 0 1707 27 86 95 M
109. ries ME2PB1 L Profibus DP Slave Module 4 3 Functions I O Data Separation Prevention Function 4 2 4 2 1 I O Data Separation Prevention Function The I O data separation prevention function is a function to prevent the I O data of the CPU module from being unmatched with the I O data of the master station ME2PB1 L CPU module Buffer memory Master station 1 0 0 3 2 1 2 B AN O m gt f f t 1 7 1 I i Nep 4 HS Read during Data data transfer transmission Area where data transmission from master station is updated Area where data transmission from master station is not yet updated Tab 4 3 Example of output data separation when not using the separation prevention function Using the 1 data separation prevention function The separation of I O data occurs when the buffer memory is also read from written to the CPU module during the data transmission between the buffer memory of the ME2PB1 L and the master station When the separation prevention function is used the reading from the CPU module is stopped during the data transmission from the master station to the buffer memory output receive area of ME2PB1 L and executed after the data transmission has been completed Also the data tra
110. rminated by an UNFREEZE request from the master station a communication stop or a CPU reset The FREEZE LED turns ON OFF in synchronization with the ON OFF of the FREEZE mode signal Xn7 FREEZE request UNFREEZE request Request from master FREEZE mode signal Xn7 FREEZE LED OFF ON OFF Fig 3 5 FREEZE mode signal Xn7 The FREEZE mode signal Xn7 turns OFF if a communication time out error occurs due to a stop of communication with the master station while the FREEZE mode signal Xn7 is ON However if the communication watchdog timer setting in the master station side parameters is invalid the FREEZE mode signal Xn7 does not turn OFF since a communication time out error does not occur The output data in the output receive area is held Communication watchdog timer setting in master station side parameters Operation at master station fault No error FREEZE mode signal Xn7 remains ON Communication time out error occurrence FREEZE mode signal Xn7 turns OFF Invalid Valid 2 to 65025 Tab 3 7 Dependence of the FREEZE mode signal Xn7 on the master station parameters The communication watchdog timer setting can be confirmed in the Current communication watchdog timer value buffer memory address Un G2257 of the ME2PB1 L MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications NOTE BBLKRD start request signal YnA BBLKRD sta
111. rt Output data read Outputs data to Y70 to Y12F Stores data in X50 to X10F into D1100 to D1105 Input data write Tab 7 29 Description of fig 7 20 NOTE The program parts for error handling extension trouble information notification and operation mode change are identical to the program in which the dedicated instructions BBLKRD and BBLKWR are used in LUMP mode refer to figures 7 11 to 7 14 7 18 MITSUBISHI ELECTRIC Communication of I O Data Programming Program example when using MOV instructions Output data read and input data write Initial input data write X31 X30 X4D X33 U3 ME ME FMOVP KO G256 SET Input send area refresh start M20 X31 X30 X33 Output data read X31 X30 X4D U3 BMOV G2 K4Y70 Input data write X31 X30 X4D U3 BMOV K4X50 G256 K6 M20 Y30 K6 K6 Fig 7 21 Reading of output data and writing of input data in DIVIDED mode using MOV instructions Description Initial input data write Input send area refresh start Outputs data to Y70 to Y12F Write data in X50 to X10F to the input send area Tab 7 30 Description of fig 7 21 NOTE The program parts for error handling extension trouble information notification and operation mode change are identical to the program in which the dedicated instructions BBLKRD and BBLKWR are used in LUMP
112. rt request acceptance completion signal XnA The BBLKRD start request signal YnA is used to start the processing of the dedicated instruction BBLKRD When executing the dedicated instruction BBLKRD always turn ON the BBLKRD start request signal YnA to turn ON the BBLKRD start request acceptance completion signal XnA so that it is used as an interlock condition When the BBLKRD start request signal YnA is turned ON in the sequence program the BBLKRD start request acceptance completion signal XnA turns ON and the ME2PB1 L starts the process ing of the dedicated instruction BBLKRD When the BBLKRD start request signal YnA is turned OFF by the sequence program the processing of the dedicated instruction BBLKRD is ignored Only when using the dedicated instruction BBLKRD turn ON the BBLKRD start request signal YnA If the dedicated instruction BBLKRD is not executed after the BBLKRD start request signal YnA has been turned ON the transmission delay time between the master and a slave stations is prolonged When the BBLKRD start request signal YnA is turned OFF in the sequence program the BBLKRD start request acceptance completion signal XnA also turns OFF BBLKRD start request signal YnA BBLKRD start request acceptance completion signal XnA BBLKRD instruction Fig 3 6 BBLKRD start request signal YnA BBLKRD start request acceptance completion signal XnA MELSEC L Series ME2PB1 L
113. ry Specifications 3 4 1 Address DEC HEX Buffer memory list Description Reference section Oto 191 to BFu Output receive area Stores the output data received from the master station Max usable range 122 words 34 2 192 to 255 COu to FFn System area Use prohibited 256 to 447 100u to 1 Input send area Used to set the input data to be sent to the master station Max usable range 122 words 448 to 511 1 to 1FFH System area Use prohibited 512 2009 Operation baud rate Stores the baud rate in current operation 513 2019 Operation station number Stores the station number in current operation 514 2020 Station number set on flash ROM Stores the station number saved on the flash ROM 515 2039 517 to 2039 205 to 7 7 Station number change request area Station number rewritable count to flash ROM System area Use prohibited Used to set a new station number to be set in response to the station number change request signal Y n 1 3 Stores the remaining number of times when the station number can be saved onto the flash ROM during continuous operation 2040 7 8 Module error information Stores the error code detected by the ME2PB1 L 2041 to 2053 7 9 to 805 Extension trouble information area Used to set the extension trouble notification data to the master st
114. s ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Wiring 5 7 3 Wiring precautions As one ofthe requirements to give full play to ME2PB1 L s functions and make up the system with high reliability it is necessary to have an external wiring unsusceptible to an influence of noise The following gives the precautions for external wiring of the ME2PB1 L Communication cable wiring Do not install the Profibus cable together with the main circuit power lines and or load carrying wires for other than the programmable controller or bring them close Doing so may cause the ME2PB1 L to be affected by noise and surge induction Wirings from programmable controller and I O modules Keep the Profibus cable away from I O module cables as much as possible Input module Output module ME2PB1 L Wiring of input Ex SS N module Profibus cable Wiring of output mod ule Shield Fig 5 28 Programmable controller wiring Grounding For use of the ME2PB1 L ground the FG and LG terminals of the programmable controllers power supply module MITSUBISHI ELECTRIC Intelligent Function Utility GX Works2 Settings and Procedures before System Operation 5 8 5 8 1 Intelligent Function Utility GX Works2 The programming software GX Works2 allows the quick and easy parameter setting for intelligent funct
115. s Grp1 to Grp8 to which the ME2PB1 L belongs Multiple groups Grp1 to Grp 8 can be set Data module setting Set the I O configuration information set to Cfg_Data of the master station Setting type 96 pattern Number of setting 1 to 40 Data assignment mode setting Set the data layout of the output receive area input send area of the buffer memory set to User_Prm_Data of the master station 0 LUMP mode default 1 DIVIDED mode Swap setting Tab 5 3 Set whether the word data sent received on the ME2PB1 L side will be swapped or not set to User_Prm_Data of the master station Slave parameter required for the ME2PB1 L 0 Without swap default 1 With swap Procedure for setting the slave parameters for ME2PB1 L to the master station D Read the GSD DDB file of the ME2PB1 L to the configurator corresponding to the master station used Refer to the descri ption below Q Set the ME2PB1 L slave parameters using the configurator 3 Write the parameters to the master station Writ Configurator Master Station GSD file for ME2PB1 L DDB file Fig 5 1 NOTE Setting slave parameters for ME2PB1 L to the master station Refer to sections 5 3 1 to 5 3 3 for setting examples using the intelligent function utility When using another configuration tool on the master station refer to the r
116. s are indi cated in italic bold letters such as the drop down menu New in the Project menu or the option Serial USB in the Transfer Setup Connection screen MELSEC L Series ME2PB1 L Profibus DP Slave Module IX 2 1 2 2 2 3 3 1 32 3 3 3 4 Contents Overview Features e arate eri re 1 2 Abbreviations and Generic Terms 0 ccc ccc ec cee Imm hee 1 4 System Configuration Total Configuration EO GP Tes 2 1 2 1 1 Applicable 5 ri oor n opa ERI EDU ERU ET UN RES 2 1 2 1 2 Restrictions when the ME2PB1 L is connected a head module 2 1 2 1 3 How to check the function version and serial No of the modules 2 1 Profibus DP Network Configuration cesses 2 2 2 2 1 Basic configuration of the Profibus DP 2 2 2 2 2 Profibus DP Network Configuration 2 3 Precautions for Configuring a System eee eee eee ee eee eee n ence eee en een ees 2 4 Specifications General Specifications eve hes Metals Sales ECCE IR aged eels De REN HOS 3 1 Performance Specifications 3 2 1 O Signals forthe es RT EP ER X Gada E EE E Re 3 3 3 3 1 l ist of O Sighals eer EAEI E Vie 3 3 3 32 Details of I O Signals 0 cece cece een Hm 3 4 Butter Memory in
117. s cycle time 2 0 2 ms Normal value Scan time X 0 5 0 2 ms Scan time 0 2 ms When separation prevention function is not used Max value Automatic refresh Normal value Scan time X 1 5 0 2 ms Scan time X 4 4 0 2 ms When separation prevention function is used Max value Tab 6 2 Delay of input send data For the calculation formula of the bus cycle time Bc refer to the manual of the Profibus DP mod ule used on the master station MITSUBISHI ELECTRIC Communication Sequence Programming 7 Programming This chapter describes the programming for the PROFIBUS DP slave module ME2PB1 L and gives pro gram examples of station number setting I O data communication and global control driven pro gram execution NOTE When applying any of the program examples introduced in this chapter to the actual system ver ify the applicability and confirm that no problems will occur in the system control 7 1 Communication Sequence The following is the sequence of I O data communication with the master station Refresh between the programmable controller CPU and ME2PB1 L and refresh ofthe ME2PB1 L buffer memory output receive area input send area are executed asynchronously When using the automatic refresh Make sure that the I O communication signal Xn1 is ON 5 Refer to section 3 3 2 Write the initial input data value to the device set in Output CPU Dev
118. s must be used When using BBLKRD The BBLKRD start request acceptance completion signal XnA When using BBLKWR The BBLKWR start request acceptance completion signal XnB Example BBLKRD instruction Execution command XOA L 4 BBLKRD Uo bo 2 Fig 8 1 Interlock example for dedicated instruction Check that consistency is disabled with automatic refresh enabled If the automatic refresh and data consistency functions are enabled use of dedicated instructions is not allowed They are not processed Dedicated instructions are executable if the data consistency function is disabled in the automatic refresh setting Refer to section 5 4 1 Fig 8 2 OP Slave Parameters Wizard Slave Modules Make sure that all selected slave modules have con word and that 3 Modules rntabed 40 are posue Date sire 394 byte s 5 m Ou M 0 D eb Max VO sizes DC there is no con whole Save User Parameters Avasbie Save Modules Project Save Modes x H E Word Oxt 00n whole ls B 7 Word Oticon whole 4 Wore incon word 8 Word whole 4 Word In con word 9 Word whole 4 Word incon word B 10 Word Ost con e B eon e H 12 Word Os con eie B 12 Word 08 000 whole MITSUBISHI ELECTRIC Precautions for Dedicated Instructions Dedicated Instructions Data module setting Configure the data modules in the slave parameter settin
119. s slave module ME2PB1 L Input module LX41C4 CPU module L26CPU BT Output module LY41PT1P Power supply 1 0 mix module LH42C4PT1P module L61P Output module LY41PT1 i HRG End cover z L6EC Fig 7 16 In this example the ME2PB1 L is mounted to the CPU module together with various I O modules L Parameter Setting PLC Name PLC System PLC File Fre RAS Boot File Program srC Device 0 Assignment auilt in Ethernet Port Setting Built in YO Fun Assignment i Sa 8 E SSS SSS Fins c i ce JjButmyoFncton 1 r 2 je jutncink v 3 iinteligent 1 Pons O 32Points c 32Points w 41 1 6 33 42 4 1 32Points 0090 7 404 Lyv4iptip 32Points 0110 re eto o Fig 7 17 l Oassignment in the program example Module Input signals Output signals Profibus DP slave module ME2PB1 L X30 to X4F Y30 to Y4F Input module LX41C4 X50 to X6F Output module LY41PT1P Y70 to Y8F 1 0 combined module LH42C4PT1P X90 to X10F Y90 to Y10F Output module LY41PT1P Y110 to Y12F Tab 7 20 Assignment of input and output signals 7 14 MITSUBISHI ELECTRIC Communication of I O Data Programming Settings Data module
120. scription Device Description D10 Operation mode storage D200 D201 LX41C4 X50 to X6F input data storage D11 Operation mode change result D202 D205 Analog to digital conversion value to be input from the L60ADA CH 1 to 4 D20 Error code storage D300 Extension trouble information data length D100 D101 LY41PT1P Y70 to Y8F output data storage D301 Extension trouble information data Digital to analog conversion value to be D102 D105 output to L60DA4 CH 1 to 4 Tab 7 13 List of devices for the user MITSUBISHI ELECTRIC Communication of I O Data Programming Program example when using dedicated instructions BBLKRD BBLKWR Output data read and input data write Initial input data write X31 X30 X4D X33 U3 LE 1 1 At FMOVP G256 K6 SET M20 Input send area refresh start M20 X31 X30 X4D X33 CS vo Y3B Output data read X31 X30 X3A X4D 4 G BBLKRD U3 D100 K6 e BMOV D100 K4Y70 K2 X100 U10 BMOV 0102 G1 K4 1 e Input data write x31 X30 X3B X4D lul m HF 11 II BMOV 4 50 D200 K2 x90 Ua BMOV D202 K4 1 o _______________ G BBLKWR U3 KO D200 K6 Fig 7 10 Reading of output data and writing of input data in LUMP mode using dedicated instructions z 2 Description Initial input
121. st be satisfied Number of connectable modules in an entire network When repeaters are used DP Master DP Slaves 126 O Including the ME2PB1 L Number of connectable modules per segment DP Master DP Slaves repeaters 2 lt 32 Including the ME2PB1 L OA repeater is counted for both segments Max no of repeaters Up to 3 repeaters can be used for communication between the master station and the ME2PB1 L Number of slave stations that are connectable to master station The maximum number of slave stations that may be connected to one master station depends on the specifications of the master station MITSUBISHI ELECTRIC Profibus DP Network Configuration System Configuration 2 2 2 Profibus DP Network Configuration Example Maximum configuration with one repeater connected DP Master ME1PB1 L 1 DP Slaves 61 Repeater 1 DP Master Class 1 FDL address 0 Connection points counted as number of modules Power LCPU ME1 supply PB1 L module Segment 1 Bus terminator DP Slave DP Slave RR DP Slave FDL address 1 FDL address 2 FDL address 30 Bus terminator Repeater 1 DP Slaves 30 modules Segment 2 DP Slave FDL address 31 DP Slave FDL address 32 DP Slave FDL address 61 iw A DP Slaves 31 modules Fig 2 2 With one repeater up to 61
122. t Change the module Illegal receive parameter error Communication chip fault The setting of the communication watchdog timer is too long The Min T sdr value is outside the setting range Check the slave parameters of the master station The data length of a user parameter is incorrect Hardware fault Check User Prm Data Size in the configura tion tool Refer to sections 5 3 2 and 5 3 3 Change the module Communication timeout error Time out occurred in communication with the master station Check the master station status Checkthe cable connection status Increase the setting of the communication watchdog timer configuration information error The data module is not a word type The swap setting is outside the range The data assignment mode setting is outside the range The data module count setting is outside the range The data module setting is outside the range The station number set in the parameter is illegal Tab 9 5 Error codes of the ME2PB1 L MELSEC L Series ME2PB1 L Profibus DP Slave Module Check the slave parameters of the master station Troubleshooting Error Codes 9 6 MITSUBISHI ELECTRIC External Dimensions Appendix A Appendix A 1 External Dimensions 45 DIN rail center 45 Unit mm Fig 1 Externa
123. t up on the intelligent function utility The setting items are described on the GSD File I O configuration data Data module Information on input output configuration of a DP Slave Input data Data sent by the ME2PB1 L and received by the master station Data input by the mas ter station Output data Data sent by the master station and received by the ME2PB1 L Data output by the mas ter station Global control This function enables synchronization command transmission for I O data from a DP Master Class 1 to DP Slaves Communication watchdog timer Watchdog timer set in the slave parameter of the master station Tab 1 1 Abbreviations and general terms MITSUBISHI ELECTRIC Abbreviations and Generic Terms Overview General term Abbreviation Description Module watchdog timer Watchdog timer in the ME2PB1 L Diagnostic information Diagnostic information of Profibus DP which is detected by a DP Master or notified by a DP Slave Extended diagnostic error information Diagnostic information specific to each DP Slave Each of DP Slaves notifies of it to the DP Master when an error is detected Bus cycle time Profibus DP processing time for the DP Master to perform cyclic communication with each DP Slave Ident No A specific number for each module that is connected to Profibus DP Ident No is described in a GSD file of each module Tab
124. t 4 words Data module3 Output 4 words word unit Tab 7 6 Input and output data for this example NOTE For the data module setting please refer to section 5 3 1 Used states of ME2PB1 L output receive area and input send area When dedicated instructions BBLKRD BBLKWR are used CPU module ME2PB1 L Register D Output receive area _ Data output to Data module 1 D100 D101 Output 2 words DA conversion Data module 3 x alue output to D102 D105 V Output 4 words Data input from D200 D201 TOU Empty 191 BFH AD conversion D202 D205 value input from L60AD4 Input send area DatamoduleO 256 100H Input 2 words 257 101H 258 102H Data module 2 259 1030 Input 4 words 260 104 261 105H 262 106H Empty 447 1BFH Fig 7 8 Occupation of output receive and input send area when using dedicated instructions The output receive area data are read to D100 to D105 using a BBLKRD instruction The data in D100 to D105 are written to the LY41PT1P and L60DA4 Data of the LX41C4 and L60ADA are read to D200 to D205 beforehand The data in D200 to D205 are written to the input send area using a BBLKWR instruction 7 6 MITSUBISHI ELECTRIC Communication of I O Data Programming When MOV instructions are used CPU module ME2PB1 L Output Y Output receive area T Datamod
125. t to the master station by turning ON the extension trouble notification request signal Yn2 While the I O communication signal Xn1 is OFF the extension trouble notification completion signal Xn2 does not turn ON since an extension trouble notification request is ignored When you have checked that the extension trouble notification completion signal Xn2 is ON turn OFF the extension trouble notification request signal Yn2 Turning OFF the extension trouble notification request signal Yn2 turns OFF the extension trouble notification completion signal Xn2 communication signal Xn1 TRANG Extension troubl Extension trouble notification request signal notification request Yn2 Extension trouble notification completion Pension pads signal Xn2 notification completion Extension trouble information area MOV TO Buffer memory Un G2041 to Un G2053 instruction Extension trouble information write Fig 3 2 Extension trouble notification request signal Yn2 Extension trouble notification completion signal Xn2 When performing the extension trouble notification requests consecutively provide an interlock using the extension trouble notification completion signal Xn2 in the procedure shown above MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 5 Specifications l O Signals for the PLC CPU Module error signal Xn3 Module error reset request signal Yn3 Th
126. ta Data Data Data t Turned OFF when communication with master station is disabled Bus cycle time Bc dass Bc 1 Turned ON when communication with master station is ready communication signal Xn1 Y Output receive area Un GO to Un G191 Data Data Data Input data at Bc 1 Data 1 Input data at Bc 2 Data 2 Input data at Bc 3 Data 4p Input area Bus cycle time Bc Previous data Turned ON when communication with master station is ready Input send data refresh start Input send area refresh Input send data refresh stop Input send area Un G256 to Un G447 M Fig 4 2 NOTE I O data exchange processing For the bus cycle time calculation formula refer to the manual for the Profibus DP module used as the master station Yn0 must be turned ON after Xn1 turns ON and data are stored in the input send area Q Hold the data for more than 1 bus cycle time If the data are held for the time less than 1 bus cycle time they may not be sent Q Transmission delay equal to 1 bus cycle time occurs to read the data in the output receive area after Xn1 turns on Transmission delay equal to a maximum of 1 bus cycle time occurs to store data in the input receive area after Xn1 turns on For program examples of the I O data exchange refer to section 7 3 MELSEC L Se
127. ta from being sent to the master station at error occurrence Refer to section 4 1 1 Extended trouble notification function Data stored in the extended trouble information area of the buffer memory can be sent to the master station as extended trouble information when the host is faulty for example When the host is not faulty anymore notify the master station that there is no fault Refer to section 3 4 10 Diagnostics Information device related trouble information set by the user as desired Compatibility with global control function Compatibility with the global control function allows the updating of I O data at the ME2PB1 L to be controlled from the class 1 master station using the command SYNC UNSYNC FREEZE UNFREEZE sent by the class 1 master Refer to section 4 3 1 Communication with class 2 master station The following communications can be made with the class 2 master station master station designed for network management to perform booting maintenance and diagnostics of Profibus DP Read from input send area output receive area Read of I O configuration information Station number change For the way to use each function refer to the manual of the class 2 master station used I O data separation prevention For data transmission between the CPU module and buffer memory of the ME2PB1 L automatic refresh or dedicated instruction are used to prevent I O data from being separated Refer to section 4
128. ternal power supply all phases used in the system before mounting or removing the module Failure to do so may cause the module to fail or malfunction Module installation to or removal from the base unit is limited to 50 times after the first use of the product IEC61131 2 compliant Exceeding 50 times may cause malfunctions Before handling modules touch a grounded metal object to discharge the static electricity from the human body Not doing so may cause failure or malfunctions of the module Set the ON OFF select switch of the terminal resistor before the operation If the setting is switched during the operation network error may occur or error detection may not be performed by error Operating precautions DANGER Do not write data into the not usable of the buffer memory of special function modules Also do not output the not usable signal as the output signal to a special function module from the PLC CPU Writing data into the not usable area or outputting an not usable signal may cause system malfunctions in the PLC CAUTION Theonline operations conducted for the CPU module being operated especially when changing data or operation status shall be conducted after the manual has been carefully read and a sufficient check of safety has been conducted Operation mistakes could cause breakdowns to or malfunction of the module MITSUBISHI ELECTRIC Safety guidelines Disposal precautions C
129. test on the unit It takes about 5 seconds to com plete the self diagnostics Self diagnostics execution procedure The following shows how to execute the self diagnostics Set the CPU module to STOP Set the operation mode of the ME2PB1 L to Self diagnostics mode by the following method Store 02H in the Operation mode change request area Un G2255 Turn on the Operation mode change request signal Y n 1 1 When the operation mode is set to Self diagnostics mode the self diagnostics is automatically started During execution of self diagnostics the TST LED is ON Upon completion of the self diagnostics the LEDs on the ME2PB1 L change as shown below storing the test result to the Offline test status area UnXG2258 When normally completed The TST LED turns OFF When failed The TST and ERR LEDs are ON Execution result of self diagnostics TST LED OFF When normally completed When the TST LED turns OFF after execution of self diagnostics this indicates a normal completion Set the operation mode of the ME2PB1 L to operation mode by the following method Store OH in the Operation mode change request area Un G2255 Turn on the Operation mode change request signal Y n 1 1 TST and ERR LEDs ON When failed If the TST and ERR LEDs are ON after execution of self diagnostics this indicates that the diagnostics failed Check the value stored in the Offline test status area Un G2258 and retry
130. the station number rewrite count excess error has occurred switch power on again reset the CPU or clear the station number on the flash ROM using the station number change request signal Y n 1 3 This returns the remaining count to 60 times MELSEC L Series ME2PB1 L Profibus DP Slave Module 3 17 Specifications Buffer Memory 3 4 9 3 4 10 Module error information Un G2040 In the buffer memory address Un G2040 the error code of the error that occurred in the ME2PB1 L is stored Refer to section 9 4 for the error codes Extension trouble information area Un G2041 to Un G2053 The buffer memory addresses Un G2041 to Un G2053 are used to set the extension trouble information to be sent to the master station The extension trouble information sent by the ME2PB1 L is the Device Related Diagnostic speci fied in Profibus The extension trouble information can be set in a sequence program Data length Data length of the data to be sent as extension trouble information bytes units Extension trouble information Any data to be set to the master station max 24 bytes Fig 3 12 Un G2041 Extension trouble information area Un G2042 Extension trouble information Un G2053 The extended trouble information area is used as described below when an extended trouble occurs and when the extended trouble is removed When extended trouble occurs When the host becomes faulty for example
131. ting 9 1 LUMP mode Overview 5 11 Program examples 7 5 M ME2PB1 L External dimensions A 1 signals 4 ses cer n 3 3 LEDS crm 5 22 Performance specifications 3 2 Self diagnostics 5 23 Module Error information 3 18 Error reset request signal Yn3 3 6 Error signal Xn3 3 6 Watchdog timer 3 12 Module READY signal X n 1 D 3 12 N Network 2 2 Normal operation mode 4 1 0 Operation 3 16 Operation mode change Completed signal X n 1 1 3 11 Request area 3 19 Request signal Y n 1 1 3 11 Result area elle ee ke ee 3 19 P PROFIBUS Cable cee whee a 5 24 CONNECION para eax eR x Re xq Ea 5 24 PROFIBUS DP network configuration 2 2 PROFIBUS DPVOFunctions 4 1 R RERR WED 5 22 Repeater gaii moaye aoit s i a ae ecja aah fah a a ak Wata 2 2 RUN LED osa iaaa noxa n ace a RR e 5 22 ll Self diagnostics MOCO iy ed ence ah ane Ig od Ves 3 23 5 23 Separation prevention Function 4 4 Sett
132. truction Fig 3 7 BBLKWR start request signal YnB BBLKWR start request acceptance completion signal XnB MITSUBISHI ELECTRIC l O Signals for the PLC CPU Specifications NOTE Operation mode change request signal Y n 1 1 Operation mode change completed signal X n 1 1 Turn ON the Operation mode change request signal Y n 1 1 when changing the operation mode to the one set in the Operation mode change request area Un G2255 The operation mode can be changed without resetting the PLC CPU Turning ON the Operation mode change request signal Y n 1 1 clears the information of the Operation mode change result area Un G2256 The Operation mode change completed signal X n 1 1 turns ON when the operation mode is changed and the result of the change is stored to the Operation mode change result area Un G2256 Make sure that 0 Normally completed is stored in the Operation mode change result area Un G2256 and turn OFF the Operation mode change request signal Y n 1 1 The Operation mode change completed signal X n 1 1 turns ON at either normal or abnormal completion of an operation mode change At abnormal completion the operation mode change request is made invalid and operation continues in the operation mode that had been used before the change request was given Turning OFF the Operation mode change request signal Y n 1 1 turns OFF the Operation mode change completed signal X n 1 1
133. ule1 0 0H Y70 Y8F LYA1PTIP outputs Output 2words 1 19 2 2H Data module 3 3 3H Output 4 words 4 4H Input X 5 5H X50 X6F LX41C4 inputs 6 6H Empty 191 BFH Register D Input send area DA Data module 0 256 100H D102 D105 outputto L60DAd Input 2 words 257 101H 258 102H D202 D205 D Data module 2 259 Input 4 words 260 104 261 105H 262 106H 447 1BFH Fig 7 9 Usage of output receive and input send area when using MOV instructions Data are read from Input X or written to Output Y using a BMOV instruction The output receive area data are read to D102 to D105 using a BMOV instruction The data in D102 to D105 are written to the L60DA4 Data of the L60AD4 are read to D202 to D205 beforehand With a BMOV instruction the data in D202 to D205 are written to the input receive area Assignment of devices in the program examples Devices occupied by the ME2PB1 L Device Device Input Description Output Description X30 Watchdog timer error Y30 Input send area refresh directive X31 communication X32 Extension trouble notification completion Extension trouble notification request Module error Module error reset request BBLKRD start request acceptance BBLKRD start request completion BBLKWR start request acceptance BBLKWR start request completion Operation mode change completion Op
134. urn ON the signals indicated as Use prohibited If any of the Use prohibited signals is output the programmable controller system may malfunction 3 3 2 Details of I O Signals Watchdog timer error signal XnO This signal turns ON when a watchdog timer error occurs on the ME2PB1 L The Watchdog timer error signal XnO does not turn OFF until The programmable controller is turned OFF and back ON again or The MELSEC L series CPU is reset If the signal turns ON again a hardware error may be the cause communication signal Xn1 This signal turns ON when the module is ready to communicate with the master station properly While the I O communication signal Xn1 is ON the output receive area is updated to the output data sent from the master station It is independent of the status of the input send area refresh directive signal YnO Thel O communication signal Xn1 turns OFF when a communication timeout error occurs due to a stop of communication with the master station However if the communication watchdog timer setting in the master station side parameters is invalid the I O communication signal does not turn OFF since a communication time out error does not occur The output data in the output receive area is held Communication watchdog timer setting in master Operation at master station fault station side parameters No error I O communication signal Xn1 remains ON Communicat
135. urrent setting with the swap function setting status Un G2259 O Set Yes No of swap setting in the master station parameter according to the data sent received by the master station Causes of failures to make normal data communication MITSUBISHI ELECTRIC Error Codes Troubleshooting 9 4 Error code Error Codes This section explains the error codes of the ME2PB1 L Any of the error codes is stored into the module error information Un G2040 at error occurrence Error Name Error description Action 1001H Station number error The station number saved on the flash ROM is outside the range Set the station number to within the range again An attempt was made to change the station number to the one outside the range Set the station number to within the range Station number rewrite error A station number change request was given Y n 1 3 turned ON in the following station number rewrite disabled status TRUE was set for No Add Chg in the station number setting from the class 2 master station Clear the station number with a station number change request Station number rewrite count excess error Station number rewrite to the flash ROM was performed more than 60 times consecutively Switch power on again Give a station number change request to clear the station number Refer to section 3 4 7 Flash ROM memory access error Hardware faul
136. us Un1G2288 to Un1G2299 In this area the used status of the input send area is stored The bits corresponding to the buffer memory addresses of the input send area set in the master sta tion parameters Data module setting turn ON The stored value while the I O communication signal Xn1 is ON is valid Buffer memory address Corresponding Buffer Memory Addresses Hexadecimal in output receive area Decimal HEX b15 bi4 bi2 bii bi0 b9 b8 b7 b6 b5 b2 2288 8FOH 10FH 10EH TODH 10 10BH 10AH 109H 108H bit indicates 2289 8F1H 11 11EH 110 11CH 11BH 11AH 119H 118H the buffer 2290 8F2H 12FH 12EH 12DH 12 12BH 12AH 129H 128H memory address in 2291 BF3H 13FH 13EH 13DH 13CH 13BH 13AH 139H 138H the input send area 2292 BF4H 14FH 14EH 14DH 14 14BH 14AH 149H 148H 2293 BF5H 15FH 15EH 15DH 15CH 15BH 15AH 159H 158H 2294 8F6H 16FH 16EH 160 16CH 16BH 16AH 169H 168H 2295 8F7H 17FH 17EH 17DH 17CH 17BH 17AH 179H 178H 2296 BF8H 18FH 18EH 180 18CH 18BH 18AH 189H 188H 2297 8F9H 19FH 19EH 19DH 19 19BH 19AH 199H 198H 2298 8FAH 1AEH 1ADH TACH TABH 1AAH 1A9H 1A8H Tab 3 19 Input send area used status Un
137. ut Device Description Output Description X30 Watchdog timer error X31 communication X35 SYNC mode SYNC receive FREEZE mode Tab 7 32 Module READY List of devices from to the ME2PB1 L Devices for the user Device Description Device Description M100 Switch to SYNC mode M110 FREEZE processing M102 Tab 7 33 SYNC processing List of devices for the user Program example Global control SYNC X4D X30 X31 X35 X36 Ht PLS 9 M100 SET M102 e X36 RST M102 e Global control FREEZE X4D X30 x31 X37 SET 1 X37 RST M110 Fig 7 24 Global control services SYNC and FREEZE Description Receives SYNC service M102 is ON during SYNC service M102 is OFF before SYNC service reception M110 is on during FREEZE service Tab 7 34 M110 is off before FREEZE service reception Description of fig 7 24 MELSEC L Series ME2PB1 L Profibus DP Slave Module Programming Global Control driven Program Execution 7 22 MITSUBISHI ELECTRIC Dedicated Instructions 8 Dedicated Instructions A dedicated instruction is defined as an instruction designed to make programming easy for use of the intelligent function module functionality This chapter describes the dedicated functions available for the ME2PB
138. utput data read X31 X30 X4D UA BMOV K4Y70 K2 e U3 BMOV G2 D102 K4 1 X100 U10 BMOV 0102 G1 K4 Input data write X31 X30 X4D U3 J f BMOV G256 K2 X90 Bmov G11 D202 K4 9 U3 BMOV 0202 G258 K4 e Fig 7 15 Reading of output data and writing of input data in LUMP mode using MOV instructions z 9 Description Initial input data write Input send area refresh start Outputs data to LY41PT1P Y70 to Y8F Reads digital value from output data Writes digital values to L60DA4 Write data from LX41C4 X50 to X6F to the input send area Reads digital values from L60AD4 e e 9 Write data in digital value to the input send area Tab 7 19 Description of fig 7 15 NOTE When using MOV instructions the program parts for error handling extension trouble informa tion notification and operation mode change are identical to the program in which the dedicated instructions BBLKRD and BBLKWR are used refer to figures 7 11 to 7 14 MELSEC L Series ME2PB1 L Profibus DP Slave Module 7 13 Programming Communication of I O Data 7 3 2 DIVIDED mode A program example for I O data communication is provided here to show the case where the DIVIDED mode refer to section 5 3 2 is used for data assignment of the following configuration System configuration for the example Profibu
139. words when receiving or sending I O data disable Sends or receives I O data as they are Default Tab 5 10 Word data swap modes Write the configured parameters into the master station NOTE Refer to the GX Works2 Operating Manual for creating projects and writing parameters to the mas ter station MELSEC L Series ME2PB1 L Profibus DP Slave Module Settings and Procedures before System Operation Parameter Setting to Slave Station ME2PB1 L 5 4 Parameter Setting to Slave Station ME2PB1 L Set the parameters shown in the following table to the ME2PB1 L Item Description Set the station number of the ME2PB1 L Station number FDL Address e Setting range From 0 to 125 Automatic refresh parameters Set the parameters to automatically refresh the I O data between the 2 1 and Autom Refresh the CPU module Tab 5 11 Required parameters for the ME2PB1 L set the automatic refresh parameters only when using the automatic refresh Parameter setting method FDL address The FDL address can be set by either of the following Profibus Network settings of GX Works2 Refer to the following section 5 4 1 Sequence program Refer to section 7 2 Automatic refresh parameters The automatic refresh parameters can be set only in the Profibus Network settings of GX Works2 Refer to the following section 5 4 1 MITSUBISHI ELECTRIC Parameter Setting to Sl
140. xt Default Fig 5 20 Slave settings for a ME2PB1 L 1st page DP ME2PB1 L Parameters Wizard Autorefresh Settings i Buffer Devices Enable Autorefresh Consistency Input Size words 32 0 122 Jutput Size words a2 01221 Input CPU Device D1000 to 01031 Output CPU Device D1100 to 01131 Cancel Bak Default Fig 5 21 Slave settings for a ME2PB1 L 2nd page Item Description Starting I O number Head X Y address of the ME2PB1 L FDL Address Set the station number of the ME2PB1 L Setting range From 0 to 125 Autom Refresh Set the automatic refresh Enable Enable the automatic refresh Consistency Enable the separation prevention at the time of automatic refresh Refer to section 4 2 1 Input Size in words Set the number of words of the data to be transferred from the ME2PB1 L to the CPU module Output Size in words Set the number of words of the data to be transferred from the CPU module to the ME2PB1 L Input CPU Device Set the target storage device for the case where the data in the output receive area buffer memory addresses Un GO to Un G191 of the ME2PB1 L are transferred to the CPU module Output CPU Device Set the target storage device for the case where the CPU module data are transferred to the input send area buffer memory address Un G256 to Un G447 of the ME2
Download Pdf Manuals
Related Search
Related Contents
Samsung SC5480 User Manual Harman Stove Company III Stove User Manual 2 Tournez le Rotary encoder pour sélectionner le mode Catálogo de Productos para la limpieza y Demand ACE Philips Jam Jacket DLA40115 L`Ordre des choses - onglet André Pappathomas Kensington Lightning Charge & Sync Cable Moultrie Panoramic 150 Manual Samsung AF9500 stenska klimatska Copyright © All rights reserved.
Failed to retrieve file