Home
User`s Manual
Contents
1. aec ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg Fie Data Tools Yiew Help aa ITEE phabetic Categorized phabetic Caegorized Oehddt O oeaxel Ss PK OBES TP Bae Byte swap No swapping Byte swap Ho swapping ABC LUFP FIPIO MB Gateway LUFP 1 tutorial 4 Data length Ox0004 Devi eee Data location O0x0206 528 evices onfiguration Sub Network Alphabetic Categorized H TeSys Un TeSys U n 2 Byte swap No swapping E T TeSys U n 3 Data length 00002 T TeSys U n 4 Data location 0x0206 Read Holding Registers Configuration Configuration Preset Multiple Regs Alphabetic Categorized Alphabetic Ca egorized E 639 Query E7 Slave Address Byte swap No swapping Byte swap Ho swapping Byte swap ox0004 Data length Ox0004 Lf Function code The byte swapping method to use on the data This is used Data locati Ox0206 00210 Cf Starting registe address to change the data order of High Byte Low Byte Swap 2 a Sen hes x E No of Registers bytes will change from Byte1 Byte2 Byte3 Byte4 to Byte Count Byte2 Bytel Byte4 Byte3 Swap 4 bytes will change from F Bytel Byte2 Byte3 Byte4 to Byte4 Byte3 Byte2 Bytel Jaa Ef Checksum Ad Data 07 02 2006 11 393 Config Line Q 4 84 1743315 03 2009 7 Using ABC LUFP Config Tool To check that these chang es have been integrated into the configuration choose the Monit
2. ariables d fs0 2 210 FED C32P J Entry field Address Tee Symbol o o o o Commento o o oOo _ k CHi0 2 280 MOD CH 4 xh0 2 20 M0D ERR EBOOL Impl_module_fault Implicit diagnostic Module fault lolx fi Variables J Parameters ro z Add 10 220 FED C32 P Entry field Address Te Symbol malws 0 2 250 0 27 87 BOOL Slave_8_active Slave n active 1 missing 0 lws0 2 240 0 27 88 BOOL loxi oD noo hMw0 2 210 M00 WORO salw 2 210 0 27 89 BOOL sw 0 2 20 100 1 WORD salw0 2 240 0 27 x810 BOOL Mwi0 2 210 M00 2 WORD Expl_status_ quipement Explicite diagnostic Module status bit field wlWiO 2 200 0 27 411 BOOL P ZCH10 2 240 0 CH salw t0 2 210 0 27 x12 BOOL E x0 2 210 0 ERR BOOL Impl_channel_fault Implicit diagnostic Channel fault lWi0 2 240 0 27 413 BOOL xIW40 2 240 0 WORD Module_status_1 Register TeSys U Status of the module TeSys U n i lWi0 2 2 0 0 27 414 BOOL 1W40 2 240 0 1 WORD Module_status_2 Register TeSys U Status of the module TeSys Un 2 lWi0 2 200 0 27 415 BOOL xIW40 2 210 0 2 WORD Module_status_ 3 Register TeSys U Status of the module TeSys Un 3 xlw0 2 240 0 28 WORD Pkw_in_pk gt PKW in PKE Parameter Kennunc Register address of data to read write xIw40 2 240 0 3 WORD Module_status_4 Register TeSys U Status of the module TeSys U n 4 lw40
3. Rights Name KWip 2 ci0 0 60 RO Number of commands slaves 1 2 Number of commands slaves 3 4 KWip 2 ci0 0 1 62 RO Numberofcommands slaves55 Number of commands slaves 7 2 KWp 2 c 0 0 2 64 RO Number of controls slaves 1 2 KVip 2 cl0 0 3 Number of controls slaves 5 6 Eod Bits to 15 MSB io Bits 0 to T LSB Mp 2 on 0 4 Com con address n 1 MSB Comicon address n KMD TO0DE T RN Com con address n adh Com con address n wK Wip 2 0 0 7 Comicon address n 4 MSB Com con address n KWip 2 c 0 0 8 Com con address n om con addre KVVip 2 cl0 0 9 Comicon address n 6 MS Comicon address n KWp 2 c 0 0 10 Com con address n 7 MSB Com con address n Comicon address n 8 MSB Com con address n KWip 2 c 0 0 12 omicon addr MSB Comicon address n KVWip 2 c 0 0 13 om con address n 10 MSB omicon address n 10 KWip 2 ci0 0 14 omc dress n 11 MSB Comicon address n 11 LSB WK 2A0 0 15 omic dress n 12 MSB O41 RAN Comicon address n 12 LSB KVWip 2 c 0 0 16 omc dress n 13 MSB Comicon address n 13 LSB KVWip 2 c 0 0 17 om con address n 14 MSB Comicon address n 14 LSB KWip 2 ci0 0 18 omc dress n 15 MSB Comicon address n 15 LSB KWp 2 c 0 0 19 om con adi 16 MSB Com con address n 16 LSB KV p 2 c 0 0 20 om con address n 17 MS Comicon address n 17 LSB KWip 2 c 0 0 21 omic dress n 18 MSB Com con address n 18 LSB
4. W Subewo P gt J Alphabetic A Categorized Alphabetic Categorized T E Ws r a TeSys U n Value O02 Value 4 A TeSys Un El A TeSys U n4 ng __ Read Holding Registers G Preset Multiple Regs T e Speak Yd Function code Value Alphabetic Categorized oo YP Starting register address Definition of a Constant Byte Value When transmitting the Value Ont Byte this Value will be sent When receiving a Byte ABC will yen perform a check aginst this Value Ifthe received Byte does 3 BE lil not match it will be discarded qd a E Checksum e aun 07 02 2006 11 22 Config Line OOD 3 Change the location of the Modbus data transmitted to the gateway memory As the number of bytes transmitted see previous step has increased from 2 to 4 the Modbus data to be sent to TeSys U motor starter n 4 must be placed at a different location in the gateway memory If you are unsure how much of the gateway s memory is currently in use select Sub Network and choose Monitor from the Sub Network menu The following window appears allowing you to see how much of the gateway s memory is occupied 1743315 03 2009 83 7 Using ABC LUFP Config Tool arc Sub network Monitor Ble File Columns TeSys U n i Te5ps U ne TeSys Una TeSys U n4 TeSys U n5 TeSys U nb TeSys U ne SelectAll Deselect All Read Holding Reg Preset Multiple Regs SelectAll Deselec
5. cccccccccccccccseeeeseeeeseeeeeeeessecese cess ceseuseseesessueeseeeetaes Section 4 2 14 The PLC application example in Appendix D Sample Use under PL7 PRO is fully compatible with the gateway when configured using profile FED C32 The only modification required is to change the gateway profile type double click the FIPIO connection point and select profile FED C32 instead of FED C32 P 66 1743315 03 2009 7 Using ABC LUFP Config Tool Each part of this chapter describes a separate step allowing users to personalize the gateway configuration according to their own particular needs but only when it is configured using standard profile FED C32 under PL7 PRO Each part introduces a basic operation isolating it from the rest of the configuration and describing the operations to be carried out using ABC LUFP Config Tool and how they affect the gateway s general behavior Some of the operations can also be performed when the gateway is configured using standard profile FED C32 P This possibility will be flagged by the symbol rep ca PJ the corresponding description In each case the first two steps are required as they allow you to establish the dialogue between the gateway and the PC software that enables you to configure it i e ABC LUFP Config Tool We strongly recommend that you read Chapter 4 and above all Chapter 6 as all the ABC LUFP Config Tool operations described here assume that we are using the standard configuration w
6. KWip 2 c 0 0 22 Com con address n 19 MSB Comicon address n 19 LSB won 2 00 0 23 omic dress n 20 MSE Com con address n 20 LSB p 2 c 0 0 2 om con address n 21 MSB Comicon address n21 LSB agKWip 2 0 0 25 Com con address n 22 MSB Com con address n 22 LSB KWip 2 c 0 0 26 e address n23 MSB omicon addre wK Wip 20 0 27 i A Com con address n 24 LSB KW p 2 c 0 0 28 Comicon address n 25 LSB wK Wp 2 c40 0 29 Tie MEC CON con e T MS Comicon address n 26 LSB 120 RO Not used 0x00 121 RO Not used 0x00 E F FE E F E FEE Pe PF GF GF ee a F 8 E F E sh FP FF EEFE 8 298 RO Not used 0x00 299 RO Not used 0x00 Error code slave n 2 Error code slave n 4 Error code slave n 5 Error code slave n 6 Error code slave n 8 A CAUTION RISK OF UNPROPER COMMUNICATION Be careful while modifying the register values at addresses 68 to 119 The FIPIO master can alter the very nature of the information exchanged between the gateway and the slaves Failure to follow this instruction can result in injury or equipment damage Slave error codes Each of the registers at addresses 300 to 307 contains the code of the last error declared by the gateway for the Modbus slave concerned If the gateway receives an exception response from a Modbus slave see Modbus Protocol Exception responses in Appendix E during periodic exchanges it puts the exception code in the corresponding register 300 307 T
7. Value of command register for motor starter Value of command register for motor starter 2 Value of command register for motor starter 2 Value of command register for motor starter Value of command register for motor starter Value of command register for motor starter Value of command register for motor starter Value of command register for motor starter 2 Periodic communications Not used Free locations QWp 2 c 0 0 25 i OJ C ee _ PKE Address of the datum to be read written DN Address of the RAW Read write queried slave command PWE Value to be written 1st word PWE Value to be written 2nd word Aperiodic communications YoOW p 2 cl0 0 29 Indexed periodic variables PKW service COMMAND QW p 2 c 0 0 30 Yo QW p 2 cl 0 0 31 1743315 03 2009 39 4 Software Implementation of the Gateway 4 2 8 Description of Services Assigned to Gateway O On the FIPIO network all the inputs outputs that correspond to the gateway are periodic the same is not true of the Modbus network There are therefore two types of service periodic services and aperiodic services All of these services correspond to FIPIO objects For a more detailed description see Chapter 5 Periodic communications inputs For the configuration described here the value of each of the first 8 gateway input words corresponds to the value of the status register of a TeSys U motor starter register located at
8. 0x58 writes OK PWE 0x0000 not used Ox0000 not used Output SoOWVp 2 cv0 0 28 Hp 2 c0 0 29 wip 2 00 0 29 WOVAp 2 c0 0 30 WHQWp 2 c10 0 31 Ox0054 PL r hi UXUUSL TAp 2 c10 0 30 Vol WWip 2 ci0 0 31 m m m m m UXU it Sl r UXO e Sample erroneous reading of the value of a motor starter register 16 bit word An attempt is made to read the status register value address 455 for a TeSys U motor starter on a slave whose physical address corresponds to none of the addresses configured for the gateway s Modbus slaves address 32 0x20 The response is an error code R W N Ox4E and is immediate the gateway signals to the FIPIO master that the queried slave does not exist 1st word of PWE error code 0x0002 PAW Command Output 9 QWip 2 c 0 0 28 DN 0x20 RAW 0x52 read PWE yesss Oyeoee PAW Response Meaning IWip 2 c 0 0 28 Ox01C7 DN 0x20 RAWVIN Ox4E ERROR PWE 0x0002 enor code OxO0000 not used OWip COO 29 Oxz052 olin c0 0 29 7 Vp 2 cV0 0 30 Pop 0 0 31 Ox0000 olVWip 2 cV0 0 30 Poli 2 c0 0 3 re m m Ox0002 FL rrr r So OeO000 UU OU e Sample erroneous writing of the value of a motor starter register 16 bit word An attempt is made to write the status register value address 455 to TeSys U motor starter n 2 address 2 with the value 0x0001 but the register is in read only mode The response is an error code R W N Ox4E
9. If there is a channel fault see point do an explicit read on the Channel status MW p 2 c 0 0 2 This information is updated by the explicit command BEAD STS CH p 2 c 0 0 See Section 5 4 2 for a descnption of the Channel status bits Check the implicit module fault bit Yolo cl MOD ERR that monitors the qatewar As with the Channel fault this bit is normally at 0 but switches to 1 In the event of a fault or break in the FIPIO connection If there is a module fault see point do an explicit read on the Module status 4MVWVip 2 c i0 MOD 2 This information is updated by the explicit command READ STS CH p 2 c 0 MOD See Section 5 4 3 for a descripton of the Module status bits PLC Processor LUFP1 Gateway Faults bits refreshed at each exchange volp 2 0 0 0 ERR channel 0 al p 2 c 0 MOD ERR module Statuses read EXPLICITLY by the program Channel status oMW p 2 c 0 0 2 Se status parameters CHp 2 c 0 MOD diagnostics Module status oMVWip 2 c MOD2 system words OW 128 gt SW135 See also the PL7 PRO documentation or on line help Working with communications gt FIPIO bus communications gt Programming a FIPIO communication gt Managing FIPIO faults to learn more about the procedures for managing FIPIO faults 58 1743315 03 2009 5 FIPIO Objects Available for Programming 5 4 1 System Words SW128 to SW135 Each bit in t
10. PKW Retries Number of retransmissions attempted by the gateway when no response or an erroneous response is received from a queried Modbus slave using the PKW service The retries stop as soon as the gateway receives a correct response PKW Timeout time 10ms Waiting time for a response from a Modbus slave using the PKW service When the timeout elapses the gateway starts a number of retries See previous option Stop bits 1 or 2 bits 106 1743315 03 2009 7 Using ABC LUFP Config Tool 7 13 4 Adding a Broadcaster Node NOTE In the specific case of the LUFP1 gateway you should use the PKW service in broadcast mode DN 255 instead of using a broadcaster node Thus you will save precious output data in the limited output memory from Ox0200 to 0x233 and this data could be used for other Modbus commands Please refer to section 5 3 for a description of this service A broadcaster node does not correspond to any Modbus slave in particular it applies to all Modbus slaves All the commands configured for this node will be transmitted with the Slave Address field set to 0x00 This means that all of the slaves will execute the command although none of them will respond to it To add a broadcaster node select Sub Network then choose Add amp i Sub Network Broadcaster from the Sub Network menu The broadcaster node El Broadcaster created in this way does not count in the limit on the number of
11. Procedure for deleting a Modbus slave 1 Select the node corresponding to the Modbus slave you wish to delete from the configuration If this is the only node remaining in the configuration you will not be able to delete it as the downstream Modbus network must include at least one slave 2 Right click on the icon or the name of this Modbus slave A menu pops up underneath the mouse cursor or In the ABC LUFP Config Tool main menu pull down the menu with the same name as the previously selected node 3 In this menu click Delete The following confirmation window then appears asking you to either confirm that you want to delete the selected node TeSys U n 2 in this example or cancel the operation 4 If you confirm that you want to delete the node the menu disappears along with the previously selected node Otherwise the node will still be there when the window Are vou sure you want to Delete TeSys U ne closes Keyboard shortcut Del key TA 1743315 03 2009 7 Using ABC LUFP Config Tool 7 9 Adding a Modbus Slave This feature allows you to add a Modbus slave of a different type to the other Modbus slaves in the configuration On the other hand if the slave is of the same type as one of the previously configured slaves it is preferable to copy the old slave rather than create a new one An additional import export feature also allows you to individually save the complete configuration of a Modbu
12. Soft start Altstart 48 12 1 2 J 4 5 Speeddrive S_ Alitivar 58 Option VW3 A58303 6 f 6 ce Pa eC CLL eee ee O 1 In the gateway settings assigning a null address to a slave means that there is no slave at that location Not to be confused with the broadcasting of Modbus commands a Pa Configuration fj FIPFIO Master PLC Pc aa PP PL7 PRO FIFIO upstream network ae Z LUFP1 Gateway _ s ATV58 p VW3 A58303 ATS4 ATS4 Pl Modbus downstream network Line Junction termination boxes 1743315 03 2009 121 Appendix B LUFP1 Gateway Settings Modbus Exchanges The table below lists all the registers read or written periodically by the gateway on the Modbus slaves It will subsequently be used to configure the gateway s periodic command and control words Register addressed aan TeSys U Command register ATS46 x2 Motor starter status Control Status register Control 4072 Active power Normal 4063 Torque Command ATV58 1 Output frequency applied to motor absolute value Motor speed estimated by drive absolute value Number of periodic command words 2 x2 1 x2 3 x1 4 2 3 9 Number of periodic control words 3 x2 3 x2 4 x1 6 6 4 16 Total number of periodic words 9 16 25 Reserve 1 periodic command or control word maximum of 26 periodic words The periodic words are assig
13. TeSys U response Depending on the slave 1743315 03 2009 119 Appendix B LUFP1 Gateway Settings LUFP1 gateways failure PLC response The PLC processor provides some error and or diagnostic objects to the application if slave failure to the application occurs Refer to the PLC user manual for their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects if FIPIO slave failure occurs LUFP1 gateway response In case of a failure the gateway stops communicating with the FIPIO master and the Modbus slaves TeSys U response Depending on the slave LUFP1 gateways disconnected on Modbus side or slave failure PLC response The processor has access to the List of Active Slaves LAS coming from the FIPIO master input table This word must be managed in the PLC application in order to detect if a Modbus slave is missing FIPIO master response The FIPIO master continues communicating with the PLC processor and the LUFP1 gateway LUFP1 gateway response Depending on the following properties all of which are configurable for each Modbus Command MW p 2 c 0 0 21 X0 X7 Modbus Timeout x x 100 ms YMW p 2 c 0 0 21 X8 X15 Number of retransmissions y MW p 2 c 0 0 22 X0 X7 Reconnection time z x 1 sec and MW p 2 c 0 0 23 X8 X15 Effect on FIPIO exchanges 0x00 No action 0x02 Clear After sendi
14. command see Section 7 10 2 and Section 7 10 4 1743315 03 2009 89 7 Using ABC LUFP Config Tool 7 12 2 With a Generic Modbus Slave Unlike in the previous section here we will be looking at adding and setting up a Modbus command which is different from those configured by default with the LUFP1 gateway We will use this opportunity to take an in depth look at the fields with which you can set up communications for such commands See Appendix E for a list and description of the Modbus functions supported by the LUFP1 gateway Only a very few Modbus commands are authorized in order to limit the complexity of configuring Modbus exchanges on the gateway Moreover ABC LUFP Config Tool cannot be used to configure new Modbus commands created from scratch for LUFP1 gateways E g To illustrate the various operations to be carried out and the explanations given we will be taking the example of a Altistart starter the ATS48 and a Modbus command recognized both by the gateway and the ATS48 This is the Preset Single Register command whose function code is 6 and which allows you to write the value of a single output word This function will be used to periodically write the value of the ATS48 s CMD command register located at address W400 address 400 0x0190 As the standard gateway configuration already has 8 Modbus slaves you will need to delete one of them such as the TeSys U n 2 node for example and to add a new node i
15. s memory in these exchanges TeSys U Motor Starters LUFP1 Gateway FIPFIO Master TSX 53 Outputs ere Outputs TSX PF57353 memory aea Modbus FIPIO MPT Ctl Inputs memory anes inputs Configuring the gateway with this profile limits the total number of available words to 26 Le 52 bytes from among the 52 input bytes and the 52 output bytes FED C32 This profile makes available all of the gateway s 52 input bytes and 52 output bytes Input Data Memory Area The gateway has 52 input bytes Only the first 16 bytes are used Service Address Size Description Value of status register for motor starter word Value of status register for motor starter 2 Bie word Value of status register for motor starter communications word Value of status register for motor starter Control of word Value of status register for motor starter TeSys U motor starters UxO00A Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Free input area 36 bytes Reserved memory locations 2 bytes always at 0x0000 Reserved memory locations 2 bytes OxO0038 Reserved memory locations 5 bytes 1 0x003F Inusable input area 448 bytes 1 The data for these services are not actually stored in these gateway memory locations but the mapping between the gateway memory and the corresponding FIPIO inputs outputs See Section 5 1 3 means that
16. 12 15 Number of periodic command words for slawe n 4 Humber of periodic command words for slaves n 5 to 78 Bits O 3 oR Wp 2 ci00 1 0x1111 Bits 4 7 Bits 11 Bits 12 1 of perodic control words for slaves n 1 to n 4 2 Number of periodic control words for slave n 1 oK WVip 2 ci0 02 me 0x1111 t T Number of periodic control words for slave n2 i 11 Number of periodic control words for slawe n73 1 T Number of penodic control words for slave n 4 1 Number of periodic control words for slaves n 5 to n Bits 0 2 Number of penodic control words for slave n 5 1 Tok ip 2 i003 39 011111 Bits 4 7 Number of periodic control words for slave n 8 7 Bits 6 11 Number of periodic control words for slave n 1 Bits 12 15 Number of periodic control words for slave na 1 aK Wip 2 cl0 0 4 Address of penodic word n 1 Address of the unigue Penodic command word for dave ni 704 gt command word for a TeSys U motor starter Sok Wip 2 ci0 0 5 Address of periodic word n 2 As above but for slave n 2 Sok WWip 2 c10 0 6 periodic word n 3 As above but for slave n 3 ip 2 ci00 F Address of periodic word n 4 As above but for save n 4 2010 10 68 penodic word n 5 As above but for slave n 6 TORY ip 2 ci 0 8 Address of periodic word n 6 As above but for save n 6 ok Wip 2 ci0 0 10 Address of periodic word n 7 As above but for slave n 7 Address of periodic word n but for slave n 8 wakWip 2000 12 a5 mmer
17. A WARNING PLANNING OF THE MODBUS EXCHANGES When you create a new configuration and you want to set up the gateway to handle the Modbus exchanges for this configuration it is highly advisable to plot out all such exchanges in advance as illustrated above Failure to follow this instruction can result in death serious injury or equipment damage NOTE The configuration of the Modbus slaves themselves is beyond the scope of this guide and is therefore not described here See the user manuals of the corresponding products 1743315 03 2009 123 Appendix B LUFP1 Gateway Settings Configuration Parameter Values PL parameter AK Vp c 0 0 0 AK Vp cl 0 0 1 wK Wp 2 c0 0 2 AK Wp 2 0 0 3 AK Wp 2 c0 0 4 RKW p 2 0 0 6 124 Value Description Number of periodic command words for slaves n 1 to n Bits 0 3 Nbr of periodic command words for slave n1 TeSys U 2 4 386 0x1122 Bits 4 7 Nbr of periodic command words for slave n 2 TeSys UJ 2 Bits 8 11 Nbr of periodic command words for slave n 3 ATS48 1 Bits 12 15 Nbr of periodic command words for slave n 4 ATS48 1 Number of periodic command words for slaves n 5 to n 8 Bits 0 3 Nbr of periodic command words for slave n 5 ATV56 3 3 Ox0003 Bits 4 7 Nbr of periodic command words for slave n 6 0 Bits 8 11 Nbr of periodic command words for slave n 0 Bits 12 15 Nbr of periodic command words for slave n8 0 Number o
18. Data element of the Query No additional operations are required in ABC LUFP Config Tool However the FIPIO master PLC application will have to take account of the change in the nature of the corresponding output In Output Data Memory Appendix C the description of the word located at address 0x020A becomes Value of the 2nd command register of motor starter This word corresponds to the PLC output word QW p 2 c 0 0 5 see Section 4 2 7 Section 5 1 1 and Section 5 1 3 7 10 3 Increasing the Number of Periodic Inputs E g TeSys U motor starter n 2 we want to extend the controls on this motor starter starting with the currently controlled register TeSys U Status Register address 455 0x01C7 and expanding as far as the Reserved 2 Warning Register address 462 0x01CE This will bring the number of registers controlled from 1 up to 8 The necessary operations are described below 78 1743315 03 2009 7 Using ABC LUFP Config Tool 1 Change the number of registers controlled This step consists in modifying the value of the element Number of Registers in the Query of the Read Holding Registers command Modbus command for reading the values of multiple registers Select this element then change its value as shown at the top of the next page ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal aec amp ABC LUFP Config Tool C Sch
19. Spare_out_ O08 1Wh 2 240 0 8 Spare_in_ O08 awo 2200 9 Spare_out_o0g 0 sl WhO 2 240 0 9 Spare _in_009 0 eG wht 2 240 0 10 Spare out 00 0 ml 2 240 010 Spare_in_O10 0 saD 2 20 0 11 Spare_outotl o relWhO 2 240 0 11 Spare_in_O i SELJAL Z UUTE Spare outut U relWwhO 2 240 0 12 Spare_in_Ole 0 OWhO 2 240 0 13 Spare_outtis WHO 2 240 013 Spare_in_O13 0 D2 2400 14 Spare _out_0l x ral 240 014 Spare_in_O14 Ow 240 015 Spare _out_015 0 ala0 2 240 015 Spare in 015 oO 4 2 14 Developing a FIPIO Application The FIPIO master PLC used in the example is a TSX 57353 v5 1 marketed by Schneider Electric A sample PLC application developed under PL7 PRO is presented in Appendix D Sample Use under PL7 PRO This example uses the PLC the gateway and the 8 TeSys U motor starters shown in the Software Implementation of the Gateway 1743315 03 2009 43 5 FIPIO Objects Available for Programming This section presents all the language objects associated with standard profiles FED C32 and FED C32 P depending on the chosen configuration method PL PRO or ABC LUFP Config Tool for FIPIO communication with the LUFP1 gateway All the FIPIO objects described in the following sections e g output word QW p 2 c 0 0 7 obey the following syntax p processor position 0 or 1 c connection point number gateway address The table below sets out all the FIPIO objects available for use with the gateway They
20. TAGES o eet a fr a TeS Umer stata control word for siave 55 Ox01C7 Address of periodic word n 10 As above but for slave n 2 2 A0014 Address of periodic word n11 As above but for slave n 3 2010 10 15 450 00107 Address of periodic word n12 As above but for slave n 4 2 c10 0 16 Address of periodic word n 13 As above but for slave n 5 oR Wip 2 ci0 0 17 455 00107 Address of periodic word n 14 As above but for slave n 6 Soh Wip 2 ci0 0 18 450 0x017 Address of periodic word n 15 As above but for slave n 7 TOR WVip 2 ci00 19 455 00107 Address of periodic word n 18 As above but for slave n 8 Sok Wip 2 ci0 0 20 0 Ox0000 Address of periodic word n17 Not used bits at 0 34 1743315 03 2009 4 Software Implementation of the Gateway Parameter Value Description 2 00 20 Address of periodic word n 26 Not used bits at 0 Syntax p processor position 0 or 1 c connection point number gateway address For modifications to these adjustment parameters see Appendix B However during the Software Implementation of the Gateway you will probably find it useful to Know how to delete one or more TeSys U motor starters This operation is therefore described in Section 4 2 6 4 2 5 Adjustment Parameter Values Standard Configuration Parameter Value Description Bits O 7 Modbus speed 19 200 bits s L538 bye 4 Bit 8 Modbus format 2 data bits bet at 1 fo A 20 020 260 Ox
21. When the SEND command button is clicked the value currently entered in this frame is copied into the PKE field QW 0 2 2 0 0 28 of the PKW service command The third frame PWE Value to be written will only be used for write commands on registers When the SEND command button is clicked the write command is copied into the first word Q 0 2 2 0 0 30 in the PWE field of the PKW service command providing the Write a register box is checked The fourth frame R W Read Write allows you to select the type of command generated by the PKW service Read Write or Reset the response Only one box can be checked at any given time The SEND command button triggers the update of the gateway s periodic output data gt MQW 0 2 2 0 0 28 to QW 0 2 2 0 0 31 so that the gateway generates a command that matches the settings and values in the frames above These updates are performed in the Pkw_service program Of course using periodic data means that a new command can only be generated when one of the values involved changes from one command to the next This is why the Reset command is useful for example so that the same command can be repeated several times E g In the above example the frames are configured to issue a read command 0x52 on the register located at address 455 0x01C7 of TeSys U motor starter n 3 0x03 1743315 03 2009 133 Appendix D Sample Use under PL7 PRO e The l
22. describes the configuration and adjustment parameters for the LUFP1 gateway Standard Configuration describes the main features of the configuration used in the Advanced Implementation of the Gateway Chapter 6 However it does not go into ABC LUFP Config Tool in detail Sample Use under PL7 PRO provides an example of how the LUFP1 gateway is used based on the configuration described in the Software Implementation of the Gateway Chapter 4 This example employs the command and control registers for 8 TeSys U motor starters and uses the gateway s indexed periodic variables PKW service and list of active slaves LAS service Modbus Commands describes the contents of the Modbus command frames supported by the LUFP1 gateway 1743315 03 2009 1 Introduction Quick Access to Critical Information the predefined 2a configuration with 8 slaves using 2 TeSys U Products the predefined 2b configuration the nb of slaves lt 8 2c new variables usina Presentation User of of 1 Hardware and Connections User of 3 other Products 4 Managing Loss of Communication in case of a predefined configuration 5 Signaling and Diagnostics 1 Presentation of Hardware and Connections 3 User of other Generic Modbus Products See Chapter 2 powering _ See Chapter 7 l mounting 7 6 to 7 11 7 11 2 Select between adapting the pred
23. gateway against the DIN rail 2 until the base of the gateway box fits onto the rail Removing the gateway a ki ri E Ube o ie PWONNEE gt 2 Start by pushing the gateway downwards 1 to compress the gateway s spring Then pull the bottom of the gateway box forwards 2 until the box comes away from the rail NOTE The spring is also used to ground the gateway Protective Earth 1743315 03 2009 13 2 Hardware Implementation of the LUFP1 Gateway 2 4 Powering the Gateway FIPIO Modbus RTU gateway View from underneath a Power supply 24V isolated 410 95 mA max A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION Do not use the 24 VDC power available from the FIPIO network cabling to operate the LUFP Gateways as the negative terminal of this power is not necessarily at the installation earth ground potential Use of an ungrounded power supply may cause the LUFP devices to operate in an unexpected manner To ensure reliable operation the LUFP Gateways require a separate power supply where the negative terminal is connected to the installation earth ground Failure to follow this instruction can result in death serious injury or equipment damage Recommendations Use 60 75 or 75xC copper CU wire only The terminal tightening torque must be between 5 7 Ibs in 0 5 0 8 Nm 2 5 Connecting the Gateway to the Modbus Network Three typical examples of
24. in the INPUTS frame These inputs are named and grouped in the same way as in this guide see Section 4 2 7 Of course the display of these input data is correct only if the standard gateway configuration is used In the case of the standard configuration these input data comprise the periodic Modbus data command and control of TeSys U motor starters the Modbus aperiodic data indexed periodic variables PKW service and the input word of the list of active slaves LAS service as well as the free and reserved memory locations e Hexadecimal display of gateway output data QW 0 2 2 0 0 to QW 0 2 2 0 0 31 in the OUTPUTS frame As above Command and Control of the 8 TeSys U Motor Starters The Command Control operating screen see illustration on next page allows you to monitor the status of the 8 TeSys U motor starters numbered from 1 to 8 It also enables you to command them individually by means of a number of buttons Registers 455 and 704 on each of the 8 TeSys U motor starters are used to conduct this control and command function 455 TeSys U status register IEC61915 T04 Command register IEC61915 Bit 0 Motor starter ready Bit Oo Reserved Run forward Bit 1 Contactor in ON position Bit 1 oo Reserved Run reverse Bit 2 Fault ip or dropout Bit 2 _ Reserved stop Bit 3 Alarm present Bit 3 Reset Bit 4 Specific Tnpped Bit 4
25. online mode is given here Complete Version ABC LUFP Config Tool In off line mode all versions and information from ty 7 ersiori 202 Revision 9 the Sub Network and Fieldbus categories are 2001 2005 HMS Industrial Networks replaced with Unknown since they could not be gn oo amaa obtained from an existing and connected gateway Sub Network ABC LUFP firmware version 2 0 Sub Network Type Serial The http www hms se abc_lufp shtml text is a Protocal Type FIPIO MB Gateway hypertext link By clicking on it you are directly redirected to the Schneider Electric s Web page Fieldbus dedicated to the ABC LUFP gateways Fieldbus Type FIP 10 Serial number AD4826 i Module SW Version 1 20 This page features many downloadable items Bootloader Version 1 23 related to the family of LUFP gateways including the latest version of AB C LU FP Config Tool For additional Information and Updates visit the Vendors Website at http www hms se abc_lufp shtml 104 1743315 03 2009 7 Using ABC LUFP Config Tool 7 13 3 Sub Network Element The five commands accessible from the Sub Network menu are Devices jj Paste Appends a copy of the last copied node after a Copy We Fieldbus command on an existing node or a replica of the cut node after a Cut command to the list of nodes of the Sub Network element This command is
26. signaled by the sudden red green flashing of LED Gateway LEDs and will also flash at a frequency of 2 Hz You can ignore the size indications on the graphics in this window In Area 16 bytes and Out Area 16 bytes as the gateway has a fixed size for inputs and outputs alike If you want to memories the 16 bytes of Modbus data which will be received by the gateway for this command oncethe changes have been made you will have to either shift all the other input data by 14 bytes a painstaking operation or else change the memory location of the block of data received In the example described here we will be using the second solution although the first solution is actually preferable in principle as it avoids leaving any holes in the gateway s memory This has no impact on the FIPIO exchanges however as the size of transfers over the gateway is set at 32 input words and 32 output words by the use of the standard profile FED C32 P We will be placing the 16 bytes of data starting at address 0x0010 16 in decimal i e directly after the input data from the standard configuration The 2 bytes at 0x0002 and 0x0003 become free memory locations Close the Sub network Monitor window then once you are back in the main ABC LUFP Config Tool window select the Data length and Data location fields respectively in the Data element of the Response and change their values as shown
27. 0 49 aoina iniiai aiaa 61 6 Advanced Implementation of the Gateway 62 6 1 Introduction to Advanced Implementation of the Gateway 62 6 2 Implementation under PL7 PRO ccccccseeceseeeeeaeeeeeaees 64 7 Using ABC LUFP Config Tool sse00e 67 7 1 Connecting the Gateway to the Configuration PC 67 TVA PONS a r acca fabs nena See ede 67 721 22 RS 232 LINK POLO COl wise toons araa e i 68 7 2 Installing ABC LUFP Config TOol cccccecceeseeeeeeeeeeeees 69 7 3 Connecting to Disconnecting from the Gateway 69 7 4 Importing the Gateway Configuration c ccceseeeeeeeeees 70 7 5 Transferring a Configuration to the Gateway 008 71 7 5 1 Transferring the Internal Configuration Profile FED 2 PY E eecte ce aias E mestnens oak E ET 71 7 6 Monitoring the Contents of the Gateway s Memory 71 ADPENODCA aoia a EE 108 Appendix B asssassnnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnne 114 ADDENdIX G aec A EA 127 Append Dien n E a EREE 130 ADPENAIX E rane 136 MAE eaaa a a a 139 GIGSS ALY eaaa eee eee 140 Safety Information eee Read these instructions carefully and look at the equipment to become familiar with the device before trying to install operate or maintain it The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to informatio
28. 4 1 134 1743315 03 2009 Diagnostics Implicit exchanges The first two rows of the table in this frame correspond to the Module fault Yl p 2 c O MOD ERR and Channel fault Y ol p 2 c 0 0 ERR described at the beginning of Section 5 4 The last two correspond to the words MW p 2 c 0 0 1 both described in Section 5 5 rows MW p 2 c 0 0 and If the FIPIO connection between the PLC Appendix D Sample Use under PL7 PRO Diagnostics Implicit Exchanges SMM A OMI D ERR a SMO 2 Poh WO 2 2 ST TL Alo exchanges at the 0 0 TH40000 exchange ana eMme whig IT iatus reading OF 0 0 1 Exchange Command parar eter rac ewed ACCEPTED 160000 Feedback Adjust parameter received ACCEPTED Coniiquraion para meter rec ewed ACCEPTED and the gateway is lost the first two rows signal the presence of just such a fault see example pn A ea O Wo0 ERR Module Fault tat least ona channel is in darauit 3 gt Communication breakdown bebyeen the PLE and the LUFP I ie eee anna Fauli gt Communication breakdown bebyeen the PLE and the LUFP I If these faults arise the Explicit exchanges refreshed every 5 seconds see below indicate the presence of an Internal fault Standard channel status and Gateway absent Module status A sample screen is shown below e Diagnostics Explicit exchanges Both rows of the table in this frame are refreshed every 5 seconds The
29. Address of periodic word n 26 OxO0000 1 1 If you do not use all of the 26 periodic words available you must reset the addresses of the unused periodic words Adjustment Parameters The adjustment parameters enable the gateway to configure the general features of its exchanges with the Modbus slaves The adjustment parameters values for the standard 8 TeSys U motor starter configuration are listed in Section 4 2 5 1743315 03 2009 115 Appendix B LUFP1 Gateway Settings PLT parameter Access Bits Description Possible values of range of values CeO 1200 bisis 0x3 S600 DESE Modbus speed 001 2400 bhis Orid 19200 DESS Cet 4900 biS Data bits 0 7 bits Modbus ASCH gt Ponana 7 1 8 bits Modbus ATU gt Manparor Ro Modbus D 1 stop bli a format TOP Mite 1 2 stop bits on Bit 11 0 and bit 10 0 No parity So ip 2 c40 0 20 army Blt 11 0 and bt 10 1 Even panty Blt 11 1 and bit 1D 0 Odo panty Modbus Timeout Max waiting period for a 1255 UNE 100 me 100 ms 25 56 Tew ip 2 0 0 21 Number of retransmissions of a iame tt 0 No retransmission ho response from a Modbus slave The slave ls declared absari if ese 762 15 Number of compecullve retransmissions are completed without a retransmissions of the same Modbus frame by correct response being recelved from it the qatewa Reconnmeciion time for a Modbus slave nec aed abeant see Number of felranemissions above 100 25
30. Modbus Input Data M 26 words max 1 n gt FIPIO Input Data Responses to read requests Modbus Output Data 26 words max 1 PRY Command 1 The sum of Input Data and Output Data is limited to 26 words max 1743315 03 2009 11 2 Hardware Implementation of the LUFP1 Gateway 2 1 On Receipt After opening the packaging check that you have an LUFP1 FIPIO Modbus RTU gateway equipped with a detachable power connector 2 2 Introduction to the LUFP7 Gateway The cables and other accessories for connecting to FIPIO and Modbus networks need to be ordered separately MEE EL ET a A Ea TE PE RE r ie f Configuration Modbus RTU 12 Legend Detachable power connector for the gateway 24V 10 Female RJ45 connector to a PC running ABC LUFP Config Tool configuration software Female RJ45 connector for the downstream Modbus RTU network Six diagnostic LEDs Removable cover for the coding wheels used to configure the gateway shown and described in chapter 2 7 The label describing the LEDs is stuck onto this cover Female FIPIO connector 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway The LUFP1 enables communications between a FIPIO network and Modbus devices for the purpose of industrial the potential hazards arising from use of the LUFP1 in the application automation and control As with any component used in an i
31. Modbus network even if one of the other PKW service outputs is modified and all the PKW service inputs will remain at 0x0000 Basically you should use this value if you want to deactivate the PKW service NOTE As the PKW service only performs single read and write operations the active command is only executed once you could use this specific value of R W to repeatedly overwrite the active R W value This would generate a series of identical commands interspersed with resets to zero thereby enabling the gateway to emulate the principle of permanent read and write operations Read a 16 bit word This is also the command to use for reading an 8 bit register from the gateway DN 254 Read 2 consecutive 16 bit words or a 32 bit Dword This command is used mainly for reading the values of two 16 bit registers located at two consecutive addresses on the same Modbus slave The value located at address PKE will be returned in the input IW p 2 c 0 0 30 1st word of PWE and the value at address PKE 1 in the input IW p 2 c 0 0 31 2nd word of PWE NOTE This command should be preferred to the 16 bit word read command R W 0x52 when using the PKW service to read a large number of consecutive registers on a Modbus slave Write a 16 bit word This command allows you to modify the value of the 16 bit register of which the address is given by the PKE output Only the 1st word of the PWE output is used QW p 2 c 0 0 30 Write 2 consec
32. Modbus slaves the input memory continues to be refreshed with the Modbus slaves response data If the FIPIO master forces holds outputs in their last state and refreshes the inputs the periodic Modbus exchanges continue to run all output data is reset to 0 and sent to the Modbus slaves the input memory continues to be refreshed with the Modbus slaves response data Tesys U response If the FIPIO master stops communicating with the LUFP1 gateway such as in the case of a Premium PLC or forces outputs to 0 the periodic Modbus exchanges continue to run Command registers 704 are forced to 0 and the motors are stopped Status registers 455 are transmitted to the gateway If the FIPIO master keeps outputs in their last state the periodic Modbus exchanges continue to run Command registers 704 keep their last values and the motors rest in the same state Status registers 455 are transmitted to the gateway FIPIO master stopped or on failure PLC processor response The PLC processor provides some error and or diagnostic objects to the application in case of FIPIO master stop or failure input output not valid Refer to the PLC user manual to have their description This information must be managed in the PLC application FIPIO master response If the Profibus master is stopped command coming from the application the master stops to communicate with the LUFP1 gateway LUFP1 gateway response Periodic Modbus exchanges con
33. Penodic word n amp EENE ETAT 0 Fast conira of periodic Parodie word n 16 Modbus Perodic word n 17 1 Normal contru controls sanagi word nda Perlodic word n 25 Periodic word n 26 27000000 TMp 2 C0 0 30 a Modbus slaveni Pe CA D1 sh Modbus slave n 2 eee 5 0 032 a0 Modbus slave n 3 0 No Modbus slave at his locaton Theis Heds saen 1 247 Address of Modbus slave at this MW ip 2 c10 0 33 Ro PED nemieni ocation no empty locations are allowed es Modbus slave n S beween 2 Slaves SMWip2 c0 024 R ET sisene bodbus Slave ns i Enri ER C035 L E E E N A Cis Noi used MEENE Ap 2 a0 Periodicity of Modbus exchanges and Cycle time of periodic Modbus commands controls The parameters MW p 2 c 0 0 25 to MWip 2 c 0 0 30 set the cycle time of the Modbus commands corresponding to the periodic command and control words defined by the configuration parameters e The periodicity of Modbus exchanges parameters MW p 2 c 0 0 25 and MWi p 2 c 0 0 26 set fast or slow periodicities for the periodic command and control words e Each of the bits in the cycle time of periodic Modbus commands MVW p 2 c 0 0 27 and MW p 2 c 0 0 28 determines either fast periodicity bit at 0 or slow periodicity bit at 1 for the commands both defined by the parameter MW p 2 c 0 0 25 e Each of the bits in the cycle time of periodic Modbus controls parameters MW p 2 c 0 0 29 and MW p 2 c 0 0 30
34. Read Holding Registe 07 02 2006 13 41 Config Line 4 i F ia TeSys U n a Caso soar Tese C Preset Multiple Regs This renaming function can also be used asc ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg for the Queries and Responses of the File Request for Status Query Tools view Help Modbus Commands as illustrated by the following example ABC LUFP FIPIO MB Gateway LUFP1 tutorial T Fieldbus Alphabetic Categorized ig ABC LUFP ci pi Sub Network Offline options for fieldbus Clear i rT TeSys U n t Reconnect time 10m 1000 Retries 3 Fy Read Holding Registers Pog See Ge Tanh Timeout time 1 Orns 30 A E Status Response H Trigger byte address OxOSFF AL Preset Multiple Regs Update mode Cyclically H E Starter Command Livery Update tine 10ms 30 H E Response H iy TeSys U m2 Offline options for fieldbus The action to take for this transaction if the fieldbus goes offline H a Teava Una This option affects the data that is sent out the sub netwark H A TeSys Unt Request for Status Ouer 07 02 2006 13 44 Config Line Q 7 12 Adding and Setting up a Modbus Command 7 12 1 With TeSys U Motor Starters With TeSys U motor starters the main point of adding a Modbus command is to enable you to command or control additional registers without having to change the elements in the standard configuration The periodic and aperio
35. TSX FP CAs Tap dink cable 150 Q shielded doube basstec oair copper cable TSX FP Ce Connections 8 pin SUB D connectors prefered see Section 2 6 2 Transmission rate 1 Mbitis Maximum lengih of an electnical segment 1 000 rm Maximum length of the FIPO metwork 15 km in 15 segments of 1 km Maximum number of statioms 32 stations per segment repeater not included up to 125 stations for the entire FIPIO network repeaters not included Addresses C and 62 are reserved for the FIPlO master and the programming terminal respectively Monco master network Managed by a bus arbitrator FIFMO master the producer consumer principle is used for inter station exchanges Access methods Pernodic and aperiodic communications handled In bus Mmacro cycle time critical communicaton system 1743315 03 2009 109 Appendix A Technical Characteristics FIPIO FIP stations are configured according to standard exchange profiles characteristics maximum of 22 words in input and in output for each profile contd Limited station configuration and adjusiment possibetes using the FIPO master Standard and customized station diagnostics Statons can be connected and disconnected without affecting communicatons between the other siatons FIPIO specifics Communication profile protocol FIPIO WorldFIP profile 21 of LUFP 1 gateway Communication profile exchanges FED C32 P Default profile configured b
36. The RO access right means that the registers are in read only mode rather than read write R W But even when a register is in R W the gateway can reject a write operation via the PKW service if the value of the PWE in the write command is incorrect This tends to happen with any value other than 0x0000 in the case of registers 300 to 307 error code reset 1743315 03 2009 99 5 FIPIO Objects Available for Programming LUFP1 Gateway Internal Registers Summary atch parameters oMV p 2 c 0_ 0 20 to SoMW ip 2 cli0 0 49 0to 9 RO General Modbus configuration for the gateway Cycle time settings for command and control words 22to 29 RO _ Physical addresses of Modbus slaves S O Registers not used Oxee Configuration parameters oKVW p 2 c 0_0 to KWip 2 cl 0 0 29 60to 6r RO Number of periodic command and control words 68 to 119 Addresses of each of the command and control words Registers not used 120 to 299 Not used values equal to 0x00 Error codes relating to Modbus slaves n 1 to 8 300 to 307 Error codes relating to Modbus slaves n 1 to 4 last error The adjustment and configuration parameters will only be present when the gateway is configured using PL7 PRO i e in accordance with the standard profile FED C32 P You should therefore not use addresses 0 to 119 if you configure the gateway with ABC LUFP Config Tool profile FED C32 cannot be configured under PL7 PRO Thes
37. Tools il ABC LUFP A ABC LUFP Ee Sub Network o Slave address 1 SE S ub WNetwork AAE TeSys L n1 E Nom Moteur 001 E ae T Slave address a Br EL la dee The address of the slave HL Se lo Tesu n a z ik Gii TeSus U n i OF 02 2006 11 55 Config Line BQ 2 Nom Moteur 021 U Hom Moteur 001 B T Eee Sub Metwork E eG U n 7 11 2 Changing the Address of a Modbus Slave To carry out this operation simply select the node which corresponds to the Modbus slave involved Devices pane click on the value of the current address value of the Slave address field in the Configuration pane and change it Reminder The address of a Modbus slave must be between 1 and 247 The system will not let you add a value gt 247 A WARNING USE OF RESERVED MODBUS ADDRESSES Do not use Modbus addresses 65 126 or 127 if a gateway s Modbus slaves will include a Schneider Electric Adjustable Speed Drive System device such as an Altistart soft starter or an Altivar motor drive The Altistart and Altivar devices reserve these addresses for other communications and the use of these addresses in such a system can have unintended consequences Failure to follow this instruction can result in death serious injury or equipment damage When you confirm the new address Enter key or click outside the Modbus slave address input field it becomeseffective in ABC LUFP Config Tool
38. activation deactivation of one or with a supplementary request more Modbus slaves add up extra commands diagnostics of the sub network other operations 6 8 to 6 13 Modbus with statistics counters 1743315 03 2009 T 1 Introduction 1 2 Introduction to the LUFP1 Gateway The LUFP1 gateway allows a master located on a FIPIO network to enter into a dialogue with the slaves on a Modbus RTU network This is a generic protocol converter operating in a way which is transparent to the user This gateway allows you to interface many products marketed by Schneider Electric with a FIPIO network These include TeSys U motor starters Altivar drivers and Altistart soft start soft stop units 1 3 Terminology Throughout this document the term user refers to any person or persons who may need to handle or use the gateway The term RTU which refers to the Modbus RTU communication protocol will be omitted most of the time As a result the simple term Modbus will be used to refer to the Modbus RTU communication protocol As it is still the case with all communication systems the terms input and output are somewhat ambiguous To avoid any confusion we use a single convention throughout this document So the notions of input and output are always as seen from the PLC or the FIPIO master Hence an output is a command signal sent to a Modbus slave whereas an input is a monitoring si
39. address 455 Periodic communications outputs Likewise the value of each of the first 8 gateway output words corresponds to a value to be sent to the command register of a TeSys U motor starter register located at address 704 The FIPIO objects corresponding to the gateway s periodic Modbus communications are described in Section o See also Command and Control of the 8 TeSys U Motor Starters in Appendix D for an example of how these periodic communications services are used with the type of configuration adopted in this gateway implementation 8 TeSys U devices If you delete any motor starters from the configuration you will need to adjust the two tables on the previous page accordingly Aperiodic communications The aperiodic communications service operates in the same way as the indexed periodic variables or PKW service found on a number of other Schneider Electric products such as some ATV drives Hence the service continues to use the name PKW The FIPIO objects corresponding to the gateway s aperiodic Modbus communications are described in Section 5 3 See also Using the Indexed Periodic Variables PKW Service in Appendix D for an example of the simplified use of the gateway s aperiodic communications service List of active slaves LAS This service is specific to the gateway and does not generate any communications over the Modbus network That is why it is named differently from the othe
40. are then described in detail in the rest of the section 1 9 l p 2 c 0 0 ERR Channel fault if bit at 1 IMPLICIT 9 l p 2 c 0 MOD ERR Module fault if bit at 1 awi SolWip 2 cV0 0 gt 10 0 25 Periodic input variables control of Modbus slaves 26 words Fol Wip 2 c 0 0 26 Reserved word 0x0000 Tword paeuerd 6IWip 2 c 0 0 27 List of active slaves LAS service Le SolVVip 2 c 0 0 28 gt 0 0 31 Indexed penodic variables PKVV service Response OWip 2 ci0 0 gt 0 0 25 Periodic output variables command of Modbus slaves 26 words ToOVWip 2 c0 0 26 410 027 Reserved words not used by gateway 2 words Sol Wip 2 cW 028 gt 10 0 31 Indexed penodic variables PEW service Command IMPLICIT write WMW ip 2 00 0 Explicit exchanges Exchange in progress IMPLICIT SoM pp 2 c0 0 1 Explicit exchanges Report on last exchange __1 word word read MVWip 2 c 0 MOD 2 Module status gateway diagnosis EXPLICIT Poh Wp cV0 0 2 Channel status gateway and communication diagnosis ECA z SoM Wp 2 cv0 0 3 Reserved word Ox0000 Sov p 2 cV0 0 4 gt 10 0 11 Reserved words OxFFFF Le 4 rm f z f T ar FMWp 2 00 0 12 gt 0 0 19 Reserved words 0x0000 MWp 2 c00 0 20 gt 10 0 49 Adjustment parameters for profile FED C32 P 2 30 words expe SOR Wip 2 cv0 0 gt 10 0 29 Configuration parameters for profile FED C32 P 2 ian SW128 gt SW135 Faulty FIPIO connection point if corresponding bit at 0 1 IMPLICIT exch
41. bus slaves and one LUFP1 gateway A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION Do not connect more than 9 stations to the Modbus fieldbus gateway and 8 slaves While the gateway may appear to operate correctly with more than 9 devices it is likely one or more devices will only communicate intermittently leading to unpredictable system behavior Failure to follow this instruction can result in death serious injury or equipment damage e cable routing keep the bus cable away from power cables at least 30 cm 0 98 ft make crossings at right angles if necessary and connect the cable shielding to the earth on each unit e adapt the line at both ends using a line terminator see diagram and VW3 A8 306 RC termination below D B z OL 120 Q 1 nF gt D A ee Line termination recommended at both ends of the line VW3 A8 306 RC line termination A WARNING MODBUS TERMINATION USING THE RESISTANCE ONLY METHOD Use only RC Resistance Capacitance Modbus cable terminations with the LUFP1 Gateway The LUFP gateways are designed to support client equipment that will not function correctly without using RC type Modbus cable termination Failure to follow this instruction can result in death serious injury or equipment damage 18 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway To make it easier to connect the units using the topologies described in chapter 2 5 1 variou
42. byte address OxUSFF number of retransmissions for example Update mode Cyclically Update time 10ms 100 Each of these elements is described in order in the table below When a unit is assigned to an element it is shown in brackets after the name of that element Configuration Description element Offline options for This element affects the data sent to the Modbus slave only for the command to which fieldbus the element belongs whenever the gateway is disconnected from the FIPIO network It takes one of the following three values Clear All data sent to the Modbus slave using this command is now set to 0x0000 resetting the output data in the gateway s memory Freeze All data sent to the Modbus slave using this command retains its current value freezing the output data in the gateway s memory NoScanning The command is no longer transmitted to the Modbus slave by the gateway Reconnect time If there is no response from the Modbus slave to a query or following the receipt of an 10ms incorrect response the gateway uses the Retries and Timeout time 10ms elements to carry out retransmissions If the Modbus slave has still not responded correctly after these Default value retransmissions the gateway stops sending it the corresponding query for a period of time 10ms x 1000 which can be adjusted using Reconnect time 10ms 10s When this period is over the gateway attempts to restore communica
43. can be configured using ABC LUFP Config Tool There is a description of them in the following sections We will then return to the example of the ATS48 to illustrate how to use these elements 7 12 2 1 Managing Degraded Modes Due to the number of hardware elements and software tools used the following table shows a summary of the various degraded modes available to a FIPIO application In this instance the application is running on a LUFP1 gateway and a Premium PLC with a FIPIO master coupler on its processor card Disconnection LUFP1 gateway of the downstream failure Modbus RTU network 1 3 Offline options for fieldbus Clear Depends on the configuration Disconnection of the upstream FIPIO network 1 Premium PLC Desired behavior CPU stop failure Outputs Offline options for fieldbus Freeze of the Modbus slaves 2 Offline options for fieldbus NoScanning Oifine options for sub 7 Oime options for sub T Yesi Hold SEa network Freeze 1 The Offline options for fieldbus and Offline options for sub network are described in the next section 2 The desired behavior with regard to outputs should be directly configured on each of the Modbus slaves In the case of drives marketed by Schneider Electric for instance the outputs are reset by setting the NTO bit to 0 command with communication control and held by setting NTO to 1 command without communicati
44. commands n 1f to 28 Not usec Cyce time setings for periodic controls n to 16 OF RAAN A N N Bit 0 Penedic control n71 fast bit at 0 eee 2 oe Bits 1 to 7 As above but for controls n to 8 in that order Bits amp to 15 Mot used bits at 0 oA 2 cM 0 0 0 Ox0000 Cycle tre settings for penodic controis n 1 to 26 Not used Fo 20 031 513 Ox0201 Modbus addresses Slave n 1 bits 0 fi 1 Slave n 2 bits 6 15 2 HMW 2 cl 0 32 1027 Ox0402 Modbus addresses Slave n 3 bits 0 71 3 Slave n 4 bits 6 15 4 oh 2 cD 043 1541 0005 Modbus addresses Slave n 5 bits 0 7 5 Slave n 6 bits 6 151 6 Sohn cl a 2055 gaor Modbus addresses Slave n bits 0 fi 7 Slave n 6 bits 6 15 6 oo 20 0 0 Ox0000 Not used bits at 0 oA yo 2c 0 48 Ox0000 Not used bits at 0 Syntax p processor position 0 or 1 c connection point number gateway address 1743315 03 2009 35 4 Software Implementation of the Gateway A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION Do not confuse the order of configuration of the Modbus slaves with their Modbus addresses In the configuration shown in parameters MVWV p 2 c 0 0 31 to MW p 2 c 0 0 34 the order numbers of the Modbus slaves 1 to 8 are identical to the addresses of the corresponding TeSys U motor starters Modbus addresses 1 to 8 Failure to follow this instruction can result in death serious injury or equipment damage For modificati
45. configuration comprises 1 The number of periodic write commands periodic command words for each slave 0 to 15 2 The number of periodic read commands periodic control words for each slave 0 to 15 3 The address of each periodic command or control word The total number of periodic words command words control words is limited to 26 Each periodic command word corresponds to a Modbus write command to a single register function 0x06 Preset Single Register This command is cyclical with advance transmission of the write query if the new value for the register is modified This exchange mode is equivalent to Update mode Change of state or cyclically Each periodic control word corresponds to a Modbus read command for several registers function 0x03 Read Holding Registers even though the command is used to read a single register This command is strictly cyclical This exchange mode is equivalent to Update mode Cyclically The configuration parameter values for the standard 8 TeSys U motor starter configuration are listed in Section 4 2 4 PL Parameter Values Descri Number of periodic command words for slaves m 1 to m 4 Bits 0 3 Number of peroce command words for slave n 1 0 SoH ip 2 C1000 to Bits 4 7 Number of periodic command words for slave n 2 0 Bits 8 11 Number of periodie command wards for slave n 3 0 Bits 12 15 Number of periodic command words for slave n 4 0 Number of
46. depends on its Offline options for fieldbus Clear The output data sent to the Modbus slave concerned is reset to 0 and the input memory continues to be refreshed with the data of the slaves response Freeze The output data sent to the Modbus slave concerned retains its current value and the input memory continues to be refreshed with the data of the slaves response No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response TeSys U response Depending on the slave 92 1743315 03 2009 7 Using ABC LUFP Config Tool LUFP1 gateways disconnected on FIPIO side PLC response The PLC processor provides some error and or diagnostic objects to the application if slave disconnection from the application occurs Refer to the PLC user manual for their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects if FIPIO slave disconnection Occurs If the FIPIO master stops communicating with the LUFP1 gateway in the case of a Premium PLC for each Modbus Command the behavior depends on its Offline options for fieldbus Clear The output data sent to the Modbus slave concerned is reset to 0 and the input memory continues to be refreshed with the data of the slaves response Freeze The output data sent to the Modbus slave co
47. drives or starters from Schneider Glectne are used on the same Modbus metwork Silence time Equivalent to the transmission of 3 6 characters 110 1743315 03 2009 Appendix A Technical Characteristics A WARNING USE OF RESERVED MODBUS ADDRESSES Do not use Modbus addresses 65 126 or 127 if a gateway s Modbus slaves will include a Schneider Electric Adjustable Speed Drive System device such as an Altistart soft starter or an Altivar motor drive The Altistart and Altivar devices reserve these addresses for other communications and the use of these addresses in such a system can have unintended consequences Failure to follow this instruction can result in death serious injury or equipment damage Modbus RTU specifics Maximum number of subscribers excluding gateway 5 Modbus slaves of LUFP 1 gateway Maximum number of configurable commands FED C32 F Max 26 penodic Modbus commands read write each limited to a single word read or whiten which in tum limits the tota number of words read and written to 28 26 periodic and or apenodic Modbus commands with no limit on the number of words read or written using any one command all available input outputs 26 input words and 26 output words can therefore be used Modbus ATU specifics Characteristics configured under PL PRO jprofie FED C32 P or under ABC of LUFP1 gateway LUFF Config Tool profile FED Ca2 Modbus read commands Penodic mode mandatory i
48. fifth file lufp1_tutorial_en_fedc32_tsx57353 stx is a PL7 PRO file and provides the example for a TSX Premium PLC with a TSX 57353 processor where the LUFP1 is configured under ABC LUFP Config Tool The configuration LUFP1_FEDC32_Example cfg needs to be loaded onto the LUFP1 The content and application of these examples is dealt with in the following sections The configuration of the first file corresponds exactly to what is described in the previous sections its content is therefore not detailed here However the PL7 PRO file is described below in terms of the structure of the program sections used and the related operating screens Overview of the LUFP1_tutorial example In this example the varous program sections and sub programs icon Ei and operations screens icon are organized as follows Command and control screen 6 TeSys U motor starters EN Cmd_mon E Sro Command Control Using the indexed periodic variables PKW service to read or write the value of a register eT Pkw_service PKW Service FIPIO and LAS service diagnostic commands ET Diagnostics FIPIO Diagnostics Each of the above groupings Is described in a separate section 130 Havigateur Application E i STATION Fh Confign ation 0P Contigurstion matenelle Ei Tazi ligurs r kag ir i pe Sj Programme 5 fay Tioke Mase H iy Sections insane 57 Craie euu 1 Genoe pki 9 Tope OFB E w ar
49. fit within the limit of the addresses that correspond to the inputs outputs see Section 5 1 3 The configuration example provided with the gateway LUFP1_FEDC32_Example cfg is designed to reproduce the standard configuration used in the gateway implementation with profile FED C32 P 8 TeSys U motor starters The configuration of the gateway inputs outputs is therefore identical to the one described for the standard configuration Each TeSys U n node in the example comprises a read command from the TeSys U status register address 455 0x01C7 and a write command from the TeSys U command register address 704 0x2C0 These commands are configured in exactly the same way except for their Data elements The Modbus frame content gateway memory address links for these elements on which the equivalence with the standard configuration is based are configured as follows 64 1743315 03 2009 6 Advanced ABC LUFP Config Tool tty as tree structure of the ABC LUFP Config Tool element containing Data length Data location the lin sub Network gt TeSys U n gt Preset Multiple Registers gt Query gt Data I O002 Ox0200 sub Network gt TeSys U n2 gt Preset Multiple Registers gt Query gt Data IxOO02 sub Network gt TeSys U n3 gt Preset Multiple Registers gt Query gt Data o Ooo02 sUb Network gt TeSys U n54 gt Preset Multiple Registers gt Query gt Data JxOO002 sub Network gt TeSys U n 5
50. following commands at a time while resetting the other two to zero in descending order of priority stop bit 2 of the command word run forward bit 0 and run reverse bit 1 Using the Indexed Periodic Variables PKW Service The PKW service operation screen allows the user to command the reading or the writing of a register on a Modbus slave on the gateway or on all the Modbus slaves at once broadcast The screen is divided up into a number of frames as illustrated below The first frame DN Device Number is used aE ETTET to select the station to be polled by the PKW A A SR service Only one box can be checked at any pol paler ea o TeSys U n 1 motor starter given time Depending on the box selected 7 TeSys Pe EEY PWE alue to writs when the SEND command button is clicked i TeSys U n3 motor starter 4 the DN field MSB of QW 0 2 2 0 0 29 of the l TeSys U n4 motor starter PKW service command will be updated l TeSys U n 5 motor starter PNN Read vrite accordingly see Section 5 3 2 The Other _ TeSys U nb motor starter address box allows the user to type in an TeSys U n 8 motor starter C TeSys Une motor sianer f RESET command W Read a register address ranging from 1 to 247 Cy mhersiea C Write a register C LUFP1 gateway l Modbus broadcast ENYOI commande The second frame PKE Address Register allows you to set the address of the register to be read written
51. gt Preset Multiple Registers Query gt Data JxO0002 sub Network gt TeSys U n 6 gt Preset Multiple Registers gt Query gt Data JxO002 oub Network gt TeSys U n gt Preset Multiple Registers gt Query gt Data JxO002 oub Network gt TeSys U n s gt Preset Multiple Registers gt Query gt Data IxOo02 suUb Network gt TeSys U n1 gt Read Holding Registers gt Response gt Data IaOO02 sub Network gt TeSys U n gt Read Holding Registers gt Response gt Data IzZO0002 sub Network gt TeSys U n3 gt Read Holding Registers gt Response gt Data I O002 sub Network gt TeSys U n 4 gt Read Holding Registers gt Response gt Data JxO0002 sub Network gt TeSys U n5 gt Read Holding Registers gt Response gt Data Ia ooo2 sub Network gt TeSys U n6 gt Read Holding Registers gt Response gt Data JxO002 sub Network gt TeSys U n7 gt Read Holding Registers gt Response gt Data I OOO2 sub Network gt TeSys U n8 gt Read Holding Registers gt Response gt Data O00 NOTE The Byte swap field must always have the value No swapping if you wish to avoid inverting the LSB and MSB bytes of the data read or written using the Modbus commands e Description of Services Assigned to Gateway I O ccc cecccceeeeceeeeeseeeeeesaeeeesaeeeeaaeees Section 4 2 8 In the example provided these services are identical to the ones in the standard configuration for the following reasons e The p
52. here FIPKO EF main cables Ref TSX FP CAs 2 6 1 Pin Outs LUFP1 plug TSX FPACC12 connector FIP cables 9 point SUB D female 9 point SUB D male TSX FP CA ee Incoming main cable Signal Sianal je a cs a aa a a ana a een is ss st 9 Grounding Shielding Shielding Groundina NOTE If the two main cables are replaced by a TSX FP CC e tap off cable the red and orange wires correspond to the signal while the green and black wires correspondent to the signal 20 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway 2 6 2 Wiring Recommendations for the FIPIO Network e Use TSX FP ACC 12 connectors or TSX FP ACC 2 in the case of TSX 17 20 micro PLCs to connect the gateway to the FIPIO network e Use a TSX FP CA eee main FIPIO cable to link up the connectors and a TSX FP CC eee FIPIO tap off cable if you need to connect up to a tap box TSX FP ACC 14 TSX FP ACC 3 TSX FP ACC 4 or TSX FP ACC 10 Both of these shielded cables are available in lengths of 100 200 or 500 meters e Use two line terminations to close off the FIPIO network at both ends of each electrical segment The TSX FP ACC 7 kit includes two FIP terminations e Connect the reference potentials to one another e The transmission rate is fixed at 1 Mbit s e Use TSX FP ACC 6 repeaters to connect up two electrical segments on the same FIPIO network The maximum length of an electrical segmen
53. if there is no communication from the FIPIO master 1743315 03 2009 27 4 Software Implementation of the Gateway This parameter can take 3 values 0x00 Freeze All data sent retains its current values 0x01 No scanning No more Modbus queries are transmitted 0x02 Clear All data sent to the Modbus slaves is reset to 0 The default behavior for the gateway s standard configuration described here is Clear Hence the TeSys U Command 704 and Status 455 registers continue to be refreshed but The corresponding gateway s output memory TeSys U Command registers is forced to 0 And the corresponding gateway s input memory TeSys U Status registers is normally refreshed oMW p 2 c 0 0 21 bits 0 7 Modbus timeout time unit 100 ms This parameter defines the time the gateway will wait for a response before it either retries sending the same request or it disconnects the slave and declares it missing The same Modbus timeout time is applied to all Modbus commands In the gateway s standard configuration described here this time is equal to 300 ms 3 x 100 ms MW p 2 c 0 0 21 bits 8 15 Retries This parameter determines the number of re transmissions carried out by the gateway if there is no response from a Modbus slave The same number of retries is used for all Modbus commands In the gateway s standard configuration described here this parameter is set to 3 MW p 2 c 0 0 22 bits
54. in the gateway s Input memory Preset Single Register Command 0x06 Value or properties Register MSB DEES ae Ere Penister LSB Address of the output internal register Preset data MSB Byte swap No swapping or Swap 2 bytes na Data length 0x0002 Preset data LSB Data location Address in the gateway s output memory Response Register MSB Byte swap No swapping or Swap 2 bytes Register LSB Data length 0x0002 Preset Jata MSB Data location Address in the gateway s input memory 3 NOTE These data are an echo to the query In most cases there Is no Preset data LSB need to feed them back to the FIPIO master NOTE Instead of placing the echo of the response to the Preset Single Register Command 0x06 in the addresses reserved for FIPIO inputs OxO0000 0x0033 you can put it at Ox0400 This is what the gateway does automatically when you configure periodic command words Preset Multiple Registers Command 0x10 Value or properties Starting Address MSB Address of the 1st output internal register No of Re isters LSB Number of output internal registers Byte Count Number of data bytes Number of output intemal registers x 2 Data fret easter SE Byte swap No swapping or Swap 2 bytes es eee Data length Value of the Byte count field Data lastregister MSB ee ae Data ast reaster ILSR Data lo
55. key Then type the new name of the command and confirm it Enter key or click outside the name s field or cancel it Escape key Once confirmed the new name will become effective in ABC LUFP Config Tool The type of command is automatically appended at the end of the Modbus command s new name An example is given below asc ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg aec ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg Fie Read Holding Registers Tools wiew Help Det diol s ssexx S fF eraya ABC LUFP FIPIO MB Gateway LUFP1 tutorial File Starter Status Register Read Holding Registers Tools View Help Det dlib sasexx S SF HO BESRPITT Bas ABC LUFP FIPIO MB Gateway LUFP1 tutorial Devices Configuration Devices Configuration Fieldbus 2 Alphabetic Categorized Fieldbus 2 Alphabetic Categorized ABC LUFP ABC LUFP m H Sub Network H Sub Network T a E TeSys U n GARIE Starter Status Register Read Holding Registers 2 Preset Multiple Regs i Preset Multiple Face a i TeSys U n 2 H T TeSysU n 2 J TeSysUn 3 0 TeSys U n 3 T TeSys U n4 x I TeSys U n4 b Read Holding Registers 07 02 2006 13 393 Config Line 4 Starter Status Register
56. later The Modbus slave informs the gateway that it cannot process the requested command This exception only affects commands 13 and 14 0x0D and Ox0E These functions are not part of the standard Modbus commands and are not descnbed in this document The Modbus slave informs the gateway that it has detected a parity error on access to its own memory This exception only affects standard commands 20 and 21 0x14 and 0x15 which are not supported by the gateway 1 See the standard Modbus documentation for further information about these various scenarios 138 1743315 03 2009 2 2 way TSXSCA62 subscriber connector 19 A Address 23 Architecture 9 28 Cable type A 20 22 Communications aperiodic 44 periodic 44 Cycle time 29 Data exchanged 11 Diagnostic LEDs 12 DIN Rail 13 E End of line connector 22 G Gateway s address 23 GSD file 36 LEDs 25 Line connector 22 139 Index Line termination 21 LU9GCO3 hub 19 Modbus cable 19 P PL7 PRO 34 39 40 42 68 77 121 Product Related Warning 5 Profibus DP master 34 Protective Earth 13 Related documents 5 RJ45 connector 12 S SyCon 28 34 35 37 73 76 116 121 T SCA junction boxes 17 Topology bus 16 TSXCA50 SCA junction box 19 Type A cable 20 V VW3 A8 306 RC double termination 19 VW3 A8 306 TF3 T junction box 19 1743315 03 2009 Oxecee Dtfecee e000 ABC LUFP Config Tool ASIC ATS
57. n3 Select All Deselect All Read Holding Rea Preset Multiple Regs Select All Deselect All Read Holding Rea Preset Multiple Regs TeSys U n5 Select All Deselect All Read Holding Rea Preset Multiple Regs Out Area 16 bytes 512 TeSys U nE SelectAll Deselect All Read Holding Rea Preset Multiale Regs TeSys Un Read Holding Reg Preset Multiple Regs TeSys U n8 Read Holding Rea Preset Multiple Regs General Srea bytes 992 OO00 Oo200 O40 OO1D O415 mec TeSys Un TeSys U n2 TeSys U n3 SEA 0 0 i 4 select All Deselect All TL Select All Desg 0 4 BL AEN ReadHolding Reo SARA E Read Holdin ERE me Preset Multiple Regs Preset Multip 04B 0105 O4F3 Ole 050z O13F 0523 015C 0544 0i79 0557 0196 0574 0183 0595 O1D0 OSB O1ED rr maies F Response Quer W Collision OW Trigger or Statustptes Reserved To see which memory locations are occupied by data from the command we are interested in simply uncheck the box corresponding to the Read Holding Registers command in the TeSys U n 2 node as shown above This reveals that the Modbus data received in response to this command occupy 2 bytes starting at Ox0002 NOTE Only memory locations 0x0000 to 0x0033 can be used max size of input data 52 bytes Using any other address in the gateway s input data memory area 0x0034 to 0x01FF will throw the gateway into non operational mode
58. network i e the Modbus network in the case of _ aS Tease nl the LUFP1 gateway and identify the version number of the 7 TT TeSys Un gateway software i The configuration of these three elements along with the commands they give access to are described in the next three sections Modbus Slaves 7 13 1 Fieldbus Element Below this element is a list of the mailboxes configured by default These elements are not described here as they areonly designed for the internal management of the gateway The mailboxes can neither be modified nor deleted Their number and nature depend on the type of upstream network When the Fieldbus element is selected you can select the type of upstream network With the LUFP1 gateway you Alphabetic Lategorzed must not modify the selection FIP I O Fieldbus Type If your PC is connected to the gateway using the PowerSuite Profibus DP cable and you are using ABC LUFP Config Tool in on line Device et mode when ABC LUFP Config Tool starts up then the type ree of upstream network will be detected automatically The only command accessible from the Fieldbus menu is Restore Default Mailboxes The usage of this command is recommended if you inadvertently inserted a user defined Mailbox under the Fieldbus device Since the usage of user defined Mailboxes is not described in the present document only the FIPIO Default Mailboxes should be set under the Fiel
59. only available if a node has been previously copied or cut and only if the 8 nodes limit has not been reached yet Add Node 4dd Broadcaster Load Mode Sub Nekwork Status Sub Network Monitor Allows you to view the mapping between the Modbus command data and the content of the gateway s memory Examples of how to use this command are shown in Sections 7 10 3 and 7 10 4 Add Node Allows you to add a new node on the downstream Modbus network Each node corresponds to a different Modbus slave This command is not available if there are already 8 Modbus slaves as is the case with the gateway s standard configuration Add Broadcaster Allows you to add a broadcaster node see Section 7 13 4 Load Node Allows you to add a pre configured node on the downstream Modbus network The configuration for this node is contained in an XML file See the section on Importing Exporting a Modbus Slave Configuration in Section 7 9 This command is not available if there are already 8 Modbus slaves as is the case with the gateway s standard configuration Sub Network Status In on line mode see PSE aS Section 7 13 2 this command opens a window displaying the values of the gateway s error counters The Update button allows you to refresh the values of these counters Fetransmission Error Single Mode Missing Multiple Nodes Missing Lyenrun When you run this command
60. sample window above displays the contents of the memory exchanged under the standard configuration with TeSys U motor starter n 1 In the upper pane you can choose a Modbus command edit its contents and send it to the Modbus network Command menu The response will then be displayed in the same pane See Section 2 10 in the ABC LUFP Config Tool user manual entitled AnyBus Communicator User Manual for further information about how to use this window The manual can be found on the_hitp www schneider electric com website under ABC_User_Manual pdf The lower pane allows you to view the contents of the gateway s memory but only the bytes used in the query and response frames of the commands configured for the selected node In the window shown above the data displayed correspond to the values at the memory locations designated by the Data fields in the commands configured for the node TeSys U n 1 namely Read Holding Registers and Preset Multiple Registers NOTE The data exchanged with the previously selected Modbus slave are displayed MSB first i e in the order MSB LSB from left to right in ascending order of memory address provided that the Byte Swap option in the Data or Preset Data element of the corresponding Modbus command was set to No swapping see Section 7 12 2 4 A brief description of the toolbar buttons in this window is given below JF Stop Star
61. slaves LAS service Aperiodic communications Indexed periodic variables PKW service RESPONSE 7 10 4 Increasing the Number of Periodic Outputs E g TeSys U motor starter n 4 we want to extend the commands on this motor starter retaining the currently commanded register Command Register address 704 0x02C0 and adding the next register 2nd Command YolW p 2 c 0 0 28 PIKE Address of the datum written read o i DN Address of the RW N Read ane responding slave Write OK Error YolWip 2 c 0 0 30 YolWip 2 c 0 0 31 PWE Value written read 1st word PWE Value written read 2nd word Register address 705 0x02C1 This will bring the number of registers commanded from 1 up to 2 The necessary operations are described below 1 Change the number of registers commanded This step consists in modifying the value of the element No of Registers in both the Query and Response of the Preset Multiple Registers command Modbus command for writing values to multiple registers Start by selecting the element Starting Register Address in the Query change its value as shown at the top of the next page ABC LUFP Config Tool will automatically convert any value entered in decimal to h exadecimal Do the same for the Starting Address element of the Response because the gateway checks the value of this field when it receives each Modbus res
62. the motor starter returns an exception response 1st word of PWE error code Modbus exception code 0x0002 Illegal Data Address PAW Command Output OW p27 cV0 0 28 PAW Response ol Wp 2 c0 0 28 Ux01CY PKE 455 92 CWip 2 c 0 0 29 bation Volo ci0 0_29 RAN 0x57 write PWE 0x0001 Oyeoee OV Ap 2 c 0 0 40 op cV0 0 31 ol Wip 2 c0 0 30 olWip 2 ci0 0 31 54 DN 0x03 RAWN Ox4E ERROR WE 020002 exception code 00000 inot used me a Ta UU ie 1743315 03 2009 5 FIPIO Objects Available for Programming Sample writing of the value of a register 16 bit word on all the motor starters broadcast The command register address 704 is written to all the TeSys U motor starters address broadcast 255 with the value 0x2000 Stop and Pause NOTE This simultaneously switches off all the TeSys U motor starters but you still need to insert the value 0x2000 in the periodic output words sent to the motor starters otherwise they will return to their previous status at the next Modbus polling cycle The result of the write operation is a simple acknowledgement as no value is returned in the PWE of the response instead of inserting a value the gateway forces both words of the PWE to 0x0000 PAW Command PAW Response Output QWip 2 ci0 0 28 Ox02C0 alWip 2 c 0 0 28 co PKE 704 7OVVip2 cl 0 029 DN OxFF asi gia l aeres ON OxFF RAN 0x57 write sale a racaras RANIN
63. to be refreshed with the data of the slaves response If the FIPIO master forces outputs to 0 and refreshes the inputs the periodic Modbus exchanges continue to run all output data are reset to 0 and sent to the Modbus slaves 118 1743315 03 2009 Appendix B LUFP1 Gateway Settings the input memory continues to be refreshed with the data of the Modbus slaves responses If the FIPIO master forces holds outputs in their last state and refreshes the inputs the periodic Modbus exchanges continues to run all output data stay in their last state and are sent to the Modbus slaves the input memory continues to be refreshed with the data of the Modbus slaves responses TeSys U response Depending on the slave FIPIO scanner stopped or on failure The PLC processor provides some error and or diagnostic objects to the application if FIPIO master stop or failure input output not valid occurs Refer to the PLC user manual for their description This information must be managed in the PLC application If the FIPIO master is stopped command coming from the application the scanner stops communicating with the LUFP1 gateway If the FIPIO master is on failure the scanner stops communicating with the processor and the LUFP1 gateway For all Modbus Commands the behavior depends on bits 0 7 of the MW p 2 c 0 0 23 parameter 0x00 Freeze The output data sent to the Modbus slave concerned retains its current value and the input memory co
64. to the application Refer to the PLC user manual to have their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects in case of FIPIO slave failure LUFP1 gateway response In case of a failure the gateway stops to communicate with the FIPIO master and the Modbus slaves Tesys U response Depending on the Tesys U configuration If the starters controllers do not receive any requests they will stop the motor keep the same state or run the motor Refer to the Tesys U user manuals to adjust these fallback positions 30 1743315 03 2009 4 Software Implementation of the Gateway LUFP1 gateways disconnected on Modbus side or Tesys U failure PLC processor response The processor has access to the List of Active Slaves LAS from the FIPIO master input table This word must be managed in the PLC application in order to detect if a Modbus slave is missing FIPIO master response The FIPIO master continues communicating with the PLC processor and the LUFP1 gateway LUFP1 gateway response With the gateway s standard configuration described here Modbus timeout time 300 ms Retries 3 Reconnection time 10 sec and Effects on FIPIO exchanges Clear After sending a request to a slave if there is no response after 300 ms the gateway will send it again three more times before providing information
65. two independent bytes or a register of 16 independent bits The values of the outputs can also be modified so that you can check in the absence of a PLC program that updates the values periodically that the periodic commands have been transmitted to the gateway first of all and subsequently to the TeSys U motor starters Eigi i ME FED C32 P FIPIO2 MODULE 0 1o x L E a i I x Debug ka Debug Ei Designation Es TENDED OEY CW PCT 32 F Version 1 0 non Gcnn go Opec oon werk wu 2 ae Designation Es TEMDEO DEY CMPCT 32W F Version 1 0 Channel 0 Task mast Channelo a Task mast 5 m Variables Base variables Ap r Bg SH Outputs r E Inputs Decimal r D Heszdecimal Label Sambol ar or or a Module_command_ 1 Wodule_command_ Referente EAE EAA AA rD 2 200 1 Referente Value Tw 240 00 Module status 1 164324 rw 240 01 Mlodule status 2 164 Owe 20 02 Wodule_command_ 1 mawi 2A Plodule status 3 16441 Gy wht 2400 3 Wodule_ command 4 Wg 2 2400 3 Module status 4 16441 O wht 240 04 Wodule_command_ 1 Pal wh 2 2400 4 Plodule status amp 1644 OG wi0 2 240 0 5 Wodule_command_ salw 2 20 0 5 Module_status_ amp sD 2 20 06 Yodule_coammand_i 0 mel Whi 2400 06 Module status 7 HOW 200 07 Wodule_command_f 0 lw 200 07 Plodule status mOWwhl 2 240 0 8
66. when creating these links The periodic exchanges between the FIPIO master PLC and the LUFP1 gateway are limited to transferring the contents of the gateway s input memory to the IW inputs on the PLC and transferring the PLC s QW outputs to the gateway s output memory The FIPIO network is totally separate from the Modbus network The frames on a network are not directly translated by the gateway to generate frames on the other network Instead the exchanges between the contents of the gateway s memory and the Modbus slaves make up a system independent of the one entrusted with managing the exchanges between this gateway memory and the FIPIO master The figure that follows illustrates the independent management of each of the two networks Managing Gateway Modbus slave exchanges FED C32 ABC LUFP Config Tool PL7 PRO Modbus Gateway Slaves Modbus Input Data 26 words max O Messages Responses to read and write requests PKVV Response Modbus Output Data 26 words max Modbus PKW Command 1743315 03 2009 63 6 Advanced ABC LUFP Config Tool 6 2 Implementation under PL7 PRO The implementation described below is based on the one in Chapter 4 2 4 We just present a summary of that implementation here along with the modifications entailed by using profile FED C32 instead of FED C32 P A configuration example can be found on the http www schneider electric com websi
67. 0 14 WORD Spare_in_014 QW40 2 210 0 8 WORD Spare_out_008 xlw40 2 240 0 15 WORD pare_in_015 OW40 2 210 0 9 WORD Spare_out_009 lw0 2 240 0 16 WORD Spare_in_016 GW40 2 240 0 10 WORD Spare_out_010 salw s0 2 240 0 17 WORD Spare_in_O1 OW 0 2 240 0 11 WORD Spare_out_011 xlw40 2 240 0 18 WORD pare_in_018 OW 0 2 240 0 12 WORD Spare_out_012 xIws0 2 210 0 19 WORD pare_in_019 OWI0 2 240 0 13 WORD Spare_out_013 xlw0 2 240 0 20 WORD pare_in_020 OW40 2 240 0 14 WORD Spare_out_Ot4 xlw0 2 240 0 21 WORD Spare_in_021 OW40 2 240 0 15 WORD Spare_out_015 xIW40 2 240 0 22 WORD pare_in_022 GW40 2 240 0 16 WORD Spare_out_016 xlw0 2 240 0 23 WORD Spare_in_023 OW10 2 240 0 17 WORD Spare_out_017 lW0 2 240 0 24 WORD Spare_in_024 OW0 2 210 0 18 WORD Spare_out_018 xIW40 2 240 0 25 WORD pare_in_025 OW10 2 240 0 19 WORD Spare_out_019 xIW40 2 240 0 26 WORD Spare_in_026 OW10 2 240 0 20 WORD Spare_out_020 lw0 2 240 0 27 WORD List_active_slave List of active slave bit field Gw 0 2 240 0 21 WORD Spare_out_021 xlw40 2 210 0 27 80 BOOL Slave_1_active Slave n l active 1 f missing 0 OW40 2 210 0 22 WORD Spare_out_022 xlw0 2 240 0 27 41 BOOL Slave_2_active Slave n2 active 1 missing 0 OW40 2 240 0 23 WORD Spare_out_023 xwlW40 2 210 0 27 82 BOOL Slave_3_active Slave n 3 active 1 missing 0 OW40 2 210 0 24 WORD Spare_out_024 xlW40 2 210 0 27 43 BOOL Slave_4 active Slave n active 1 missing 0 GOWw 0 2 240 0 25 WORD Spar
68. 0 7 Reconnection time unit 1 s This parameter defines the amount of time the gateway will wait before it again tries to communicate with a Modbus slave that was previously declared missing The same reconnection time is applied to all Modbus slaves In the gateway s standard configuration described here this time is equal to 10 s 10 x 1 s A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION During the reconnect time you cannot control a slave read write via the bus Depending on the slave characteristics and the watchdog configuration the slave can keep the same status or take a fallback position To avoid an unintended equipment operation you must know the possible status of a slave and adapt the timeout and reconnect time values according to the request sending rate Failure to follow this instruction can result in death serious injury or equipment damage MW p 2 c 0 0 23 bits 8 15 Effects on FIPIO exchanges This parameter affects the data sent to the FIPIO master if there is no response from a slave or if a slave is absent It is defined for all Modbus slaves but only the data related to an absent slave is affected This parameter can have 2 values 0x00 No action All data sent to the FIPIO master retains its current values 0x02 Clear All data sent to the FIPIO master are reset to 0 The default behavior for the gateway s standard configuration described here is Clear Hence any TeSys U
69. 0104 Bit 9 Modbus format 1 stop bet bet at 0 Bits 10 11 Modbus format No parity bets at 0 Bits 12 15 Not used bits at 0 ERAAN Ps Bits 0 7 Modbus response timeout 300 ms 3 100 ms NAW p 2 002 OAA Bits 8 15 Number of frame retransmissions over the Modbus network 3 Bits 0 7 Time taken by gateway to reconnect Modbus slave following a break in Po WA 2M 0 Ox0004 communicahon 105 10 1s Bits 15 Not used bits at 0 ri 10 Bits 0 7 Behavior on losing FIPIO network Reset periodic command word or Ain 9 AA values Sent to the Modbus slaves LSB byte 2 Ap 2 00 23 ais hee Bits 6 15 Behavior on losing Modbus network Reset penodic control ward valves sent by the Modbus slaves LSB byte 2 fo WW 2M 024 0 MOOOO Mot used bits at 0 OF Ain 9 AN Oe Hai Bis 0 7 Cycle time of fast penodic commands 300 ms 30 10 ms BMW p 2cuLO2S 25630 OHE res 8 15 Cycle time of normal periodic commands 1 s 100 10 ms append 2 eee npea Bs 7 Cycle time of fast penodic controls 300 ms 30 10 ms POA 2 200 228 5 A l MMA Ue 25 G3 Ixte Bis 2 15 Ovcle time of normal perodie contos 15 700 10 ms D Cyce tme setings for penodic commands n 1 to 16 cr Re wm et r Bit 0 Penodic command n 1 fast bit at 0 a MA 2 00 2 D O i iine Bits 1 to 7 As above but for commands n 2 to amp m that order Bits 6 to 15 Mot used bits at 0 fo WW 2 V0 028 O Ox0000 Cycle tme setings for penodic
70. 0x57 write OR 92 QWip 2 c 0 0 30 PWE 0x2000 96 Wip 2 c 0 0 30 PWE 0x0000 not used OQW p 2 c 0 0 31 Oxeees 1Wip 2 c0 0 31 Ox0000 0x0000 not used Sample reading of the value of a register 8 bit byte on the LUFP1 gateway The last error code from Modbus slave n 1 is read on the gateway address 300 and DN OxFE If Modbus slave n 1 TeSys U motor starter n 1 in the case of the standard configuration has already been disconnected from the Modbus network the gateway will have assigned it the error code 0x04 In this case the result of the read operation is Ox 04 As the value of the register read is contained in the LSB of the 1st word in the response PWE the corresponding MSB is forced to 0x00 by the gateway likewise the 2nd word is forced to 0x0000 PKW Command PAW Response Output QWip 2 c 0 0 28 PKE 300 6lWip 2 c D 0 28 PKE 300 DN OxFE errs DN OxFE RUW 0x52 read sila ear es RANIN 0x52 read OK PWE 0xeees WliWip 2 40 0 30 Ox0004 PWE 0x0004 LSB used Dresse IWip 2 c 0 0 31 0x0000 not used 5 3 5 LUFP1 Gateway Internal Registers The registers presented in this section are internal to the gateway and are all in 8 bit format The PKW service provides access to them DN 254 but only with the aid of a 16 bit word read command The gateway inserts the result of a read operation in bits 0 7 of the 1st word in the PWE QW p 2 c 0 0 30 the rest of the PWE is forced to 0
71. 1 IMPLICIT exchanges Response we ksi IW p 2 c 0 0 28 gt 0 0 31 TER Sais Response Modbus network Modbus slaves or TeSys U motor starters In the absence of any response from the queried Modbus slave using this service the gateway retransmits the samecommand 3 times in succession waiting for 1 second between transmissions If you wish you can modify the values of these two parameters number of retransmissions and timeout using ABC LUFP Config Tool see Section 7 13 3 1743315 03 2009 49 5 FIPIO Objects Available for Programming 5 3 2 PKW Service Command and Response Indexed periodic variables PAW service COMMAND PLC output oOOW p 2 c 0 0 48 X0 X15 PKE Pecks Address of the datum to be read written ennung Address of the guened slave DN 0 000000 1st Modbus slave ON 1 to 247 Address of the quened Modbus slave DN 254 LUFP1 gateway ON 255 0000 Broadcast to all Modbus slaves Device DN Number Read write command code E i HAW p 2 c 0 0 29 RAN 0x00 Reset command and response RAN 0x52 Read a 16 bit word Read RAN 0x53 Read 2 consecutive 16 bit words Write or one 32 bit Dword RAN 0x57 Write a 16 bit word RAN 0x58 Write 2 consecutive 16 bit words or one 32 bit Dword Value to be written 1st word R W 0x57 gt Yalue of the 16 bit word HAWip 2 c 0 0 30 RAW 0x58 Value ofthe 1st 16 bit word or o
72. 1743315 TeSys U LUFP1 FIPIO Modbus RTU Gateway User s Manual 03 2009 ss n E m pur gd g o 0 FIPIO MLM BMELMLME MMT LM MED Me iy W ar Schneider Electric www schneider electric com Schneider Electric assumes no responsibility for any errors that may appear in this document If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of Schneider Electric All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to help ensure compliance with documented system data only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements the relevant instructions must be followed Failure to use Schneider Electric software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage 2009 Schneider Electric All rights reserved 2 1743315 03 2009 Table of Contents Safety Information cccceeeeseeeeeeeeeseeeeeeeseeeeeenenenes 4 1 TE O CUCU OM sass ase E 6 1 1 Introduction to the User s Manu
73. 2 0 0 7 and copies the values of input registers IW 0 2 2 0 0 to IW 0 2 2 0 0 7 into words MW10 to MW17 These data are copied because word bit extraction can be carriedout on MW indexed words but not on IW indexed words The sub program Sr0 makes extensive use of word indexing as it can be used to manage any motor starter the latter being designated by the word MW0O E g MW10 MWO X13 is authorized but not YIW 0 2 2 0 0 MWO X13 General Ready ON Start PAUSE 1 Stop Alarm Fault Fault reset Fault reset Tripped Shunt Trip Test Trip MOTOR Motor current Motor current 9o Run Forward Run Reverse Stopping DEBUG COMM TeSys U command TeSys U status ni IF eel ERL B JE hh 2 Furthermore the input and output words are copied one by one as PL7 PRO does not support expressions such as YIW 0 2 2 0 0 8 e It runs the Sr0 sub program calling loop to command and control the 8 TeSys U motor starters At each iteration of the loop the word MWO Module takes a value from 0 to 7 in order to serve as an index for words MW10 to MW17 inputs and MW20 to MW27 outputs The Sr0 sub program is called once per motor starter from the Cmd_mon program Each of these calls should be made with a different value in the word MW0O between 0 and 7 as it is used to index the status word and the command word of the same motor starter Th
74. 2 240 0 29 WORD Pkw_in_dn_rw PKW in ON Device Number MEB Rw Read write LSB x1W40 2 230 0 4 WORD Module_status_5 Register TeSys U Status of the module TeSys Un 5 lws0 2 240 0 30 WORD Pkw_in_pwe_t PKW in PWE Parameter Wert Ist word 1W40 2 250 0 5 WORD Module_status_6 Register TeSys U Status of the module TeSys Un lw40 2 240 0 31 WORD Pkw_in_pwe_2 PKW in PWE Parameter Wert ns word x 1W40 2 240 0 6 WORD Module_status_ Register TeSys U Status of the module TeSys Un QW10 2 210 0 WORD Module_command_1 Register Command of the module TeSys U n i x1W40 2 240 0 7 WORD Module_status_3 Register TeSys U Status of the module TeSys U n 8 QW10 2 240 0 1 WORD Module_command_2 Register Command of the module TeSys Un 2 xilws0 2 210 0 8 WORD Spare_in_008 QW10 2 240 0 2 WORD Module_command_3 Register Command of the module TeSys Un 3 xlw40 2 240 0 9 WORD Spare_in_009 QW10 2 210 0 3 WORD Module_command_4 Register Command of the modile TeSys U n 4 xlws0 2 240 0 10 WORD Spare_in_010 QW10 2 2 0 0 4 WORD Module_command_5 Register Command of the module TeSys Un 5 vlw0 2 240 0 11 WORD Spare_in_O11 QW10 2 210 0 5 WORD Module_command_6 Register Command of the module TeSys Un 6 xlw0 2 240 0 12 WORD Spare_in_012 QW10 2 210 0 6 WORD Module_command_ Register Command of the module TeSys Un xlw0 2 240 0 13 WORD Spare_in_013 QW10 2 2 0 0 7 WORD Module_command_8 Register Command of the module TeSys Un s lw0 2 240
75. 20010 0x001 YolWip 2 cv0 0 9 olVWip 2 cv0 70 folWip2 cv0 0 11 YolWip 2 cv 0 12 YolWip 2 cv 0 13 2 010 014 YolWip 2 cv 0 15 oli cV0 0 16 folWip 2 cv 0 1F Ox0012 0x0013 Ox0014 0 20015 Ox0016 020017 Ox0018 0 20019 0x0014 020018 Ox001C 02z001D OxDJ01E O2z001F Ox0020 0200271 Ox0J022 0_20023 SolVVip 2 cV0 0 18 Ox0024 0x0025 Fol Wp CV0 0 19 el Wp 2 c40 0 20 Fol Wp CVO Hol Wp 2 CVO 2 00 0 23 Fol Wp CVO 0 a 2 00 0 25 Mapping of FIPIO PLC OUTPUTS to LUFP1 gateway memory O20200 020201 O20202 020203 Om0204 020205 O20206 O0x02 O202 08 0202 O202 08 020 0202 0C O20 0202 0E O20 OxO0210 02 0211 FIPIO object oCVV p 2 c10 0 9 Solio 2 clV0 0 10 WGA o 2 00 0 11 WGW 2 cV0 0 12 SoCVVip 2 clV0 0 13 oC o 2 00 0 14 SolVVip 2 clV0 0 15 coQVip 2 cl0 0 16 WGW o 2 00 0 17 Memory 0x0212 0x0213 Oxd214 020215 Oxd216 020217 Oxd218 020219 Ox0J214 0n0218 Ox0210 02021D Oxd21E Ox021F Oxd220 O0n02271 Ox0222 0202273 WoO Wip 2 ci 0 18 Sol WWip 2 ci0 19 2oOWWip 2 ci 020 SoWip 2 ci O21 oO Wip 2 ci 023 2 010024 SoOWWip 2 ci O25 nrn r m Ox0026 0x0027 Ox0028 020029 Ox0024 02002B8 Ox002C 0x2002D Ox002E 02002F Ox0030 0x0031 Ox0032 020033 mi ay i r 027274 020 mi a oe a ne FS O20228 0x0 Ox02770 02x0277B8 Ox022C O0x022D Ox022R 0x022F O2x0230 0x0231 Ox0232 0x0234 NOTE Unlike with profile FED C32 P you are not restricted to a maximum total of 26 periodic wor
76. 255 this option defines the interval following the transmission of the broadcast command The next Modbus message of whatever type will not be sent by the gateway until this period has elapsed The interval must therefore be long enough to give the slowest Modbus slave the time to process the broadcast command Configuration Alphabetic Categorized Bitrate bites Data bits Parity Physical standard PEM Broadcast Interval 1 0m PEW Reties Parity Physical standard Hs PEW Broadcast Interval 10me 100 Bitrate bites Data bits Physical standard PEM Broadcast Interval 10m PEW Fetries ven Bitrate bitas Data bits Parity Physical standard PEW Broadcast Interval 10m Pkw Retnies PEM Timeout time 7 Orne Configuration Alphabetic Categorized Bitrate bits s Data bits Parity Physical standard PEM Broadcast Interval 10rns 1 00 Configuration Alphabetic Categorized Bitrate bits s 19200 Data bits a Parity Mone Physical standard R5485 PEM Broadcast Interval 10m 100 PEW Retries 3 Configuration Alphabetic Categorized Bitrate bitaz 19200 Data bits E Parity Mone Physical standard R5485 PEM Broadcast Interval 10m 100 PEW Reties 4 Configuration Alphabetic Categorized Bitrate bitaz 19200 Data bits a Parity Mone Physical standard R5485 PEW Broadcast Interval 10m 100 Pkw Retries 4 PEW Timeout time 1 Orne 100 Sho m bits
77. 2C0 only 1 Number of bytes in the Query number of bytes in the Response plus a silence time of 3 5 characters for each of these two frames Each byte will be transmitted in the form of a group of 10 bits 6 data bits 1 start bit and 1 stop bit These values allow you to calculate the approximate amount of traffic on the downstream Modbus network as follows Volume of penodic traffic 300 ms period 73 10 5 74 54 17 5 x 2 1 1 480 bits For 1 TeSys U motor starter eee eee eee tM 480 we 7 000 300 7 600 dits s For 8 TeSys U motor starters 2 eee i x 460 x 7 000 300 12 800 bits s As a result on a network operating at 9 600 bits s you will need to considerably increase the cycle time for all or some of the periodic Modbus commands On the other hand at a speed of 19 200 bits s the default speed the available bandwidth is sufficient to support acceptable communications even with the occasional degraded mode retransmission of frames and to allow the use of aperiodic parameter exchanges using the PKW service described in Section 5 3 127 1743315 03 2009 Appendix C Standard Configuration Content of the Gateway s DPRAM Memory The LUFP1 gateway s DPRAM memory contains all of the data exchanged between the gateway and the 8 TeSys U motor starters The flow of data between the TeSys U motor starters the gateway and the FIPIO master is shown below in order to highlight the role of the gateway
78. 30 According to IEC 68 2 1 Ab IEC 68 2 2 Bb and IEC amp 6 2 14 Nb Storage 55C 3 to 85 C 2 72 4 F to 61 6 F 8 161 F to 188 F Ambient air temperature around the device in a dry environment j Qperaton 5 C 3 to 17 87 F to 28 4 F E 214107 certificate Open type category The product should be installed in an eteciical cabinet or equivalent locaton Certified as complying with European standards unless otherwise stated Eleciromagnetc compatibility Complies with indusirial environment standard EN 50 087 2 1983 EMC Transmission Tested for class A radiaton under EN 55011 1890 Complies with industnal environment standards EN 50 082 2 1995 and Eleciromagnetc compatibility EN 61 O00 68 2 7998 EMCI Immunity Tested according to ENW 50 204 1885 EN 61000 421925 EN 61000 44 18986 EN 61000 4 7985 EN 610004 518555 and EN 01000 4 5 12085 Communication Characteristics Downstream network Modbus RTU 108 1743315 03 2009 Appendix A Technical Characteristics FIPO Physical layer conforming to IEC IS 1158 2 characteristics WorldFIP communication profile Profile 2 Device WorldFIP FIPIO Nature of network Device oriented bus Device Bus Network topology Multipomt linear topology bus with adapted and passive line terminations see Section 2 5 2 Physical media eee 100 200 of 500 m Wlan cable 150 O shielded single teisted pair copper cable
79. 5 UNE 1 5 162556 The galeway slope communicating with he Glave for the se duration Seip 2 C0022 etd Freeze Modbus exchanges continue nommally command words keep thelr current Effect on Modbus exchanges of VAES gisconnection of the FIPIO network or 001 MoScanning Stop all Modbus mor retresnment of FIPO output data exchanges WO2 Clear Modbus exchanges continue bun command word values are reset to Zero Ef ect on FIPO exchanges of x00 No achon Inputs keep thelr current gisconnection of the Modbus network or values non refreshment of Input data x02 Clear Input values are repel to zero MMW ip 2 024 RO 0 15 Notused O O O O Do O o AM2 GaS RAN 7 Feriodiciiy D Nul periodicity the Modbus commard ts of Modbus Mamal commands generated as frequently as possible Fast controls SM ip 2 cV0 0 26 Ria E7 excnangst 1 to 255 unit 1D mej 10 ms to 2 55 6 6 15 Namal controls Periode word n 1 SoM ip 2 00 23 ee SMD 2 cl D27 RN en E Cycle time anode word n 9 a Se eae eee as U Fast command OT periode perode word n 16 15 Modbus Penode word n 17 1 Normal command commamis Parodie word n24 SoM ip 2 C0026 RAN Panic word n25 Pande word m 26 116 1743315 03 2009 Appendix B LUFP1 Gateway Settings PLT parameter Access Bits Description Possible values or range of values T I 1 Pernodic word in oeMWWip 2 c 0 0 29 ee Cycle time
80. 8 Starting register address 06 02 2006 16 02 Config Line GQ 4 This operation in no way alters the contents of the gateway memory as we do not need to change the values of the Data length and Data location fields in the Data element of the Response to the aforementioned command so no additional operations are required in ABC LUFP Config Tool However the FIPIO master PLC application will have to take account of the change in the nature of the corresponding input In Input Data Memory Appendix C the description of the word located at address Ox0004 becomes Value of the 1st fault register of motor starter This word corresponds to PLC input word IW p 2 c 0 0 2 see Section 4 2 7 Section 5 1 1 and Section 5 1 3 1743315 03 2009 TT 7 Using ABC LUFP Config Tool 7 10 2 Replacing a Periodic Output E g TeSys U Motor starter n 6 we want to replace the Command Register command address 704 0x02C0 with the 2nd Command Register command address 705 0x02C1 This operation consists in changing the value of the Starting Register Address element in the Query and the value of Starting Address in the Response to the Preset Multiple Registers command Modbus command for writing values to multiple registers Select Starting Register Address in the Query and modify its value as shown at the top of the next page You can enter the address of the
81. 8 Prd command n 8 normal 1 Prd command n 5 fast 0 Bits 8 to 15 Not used bits at 0 oA 2 cl 028 Cycle time setings for penodic controls n 1 to 18 Prd control n 1 fast 0 Bit a control n 9 monnal 1 Prd control n 2 normal 1 it 9 control n 10 fast 0 Prd control n 3 normal 1 it 10 _ control n11 normal 1 Prd control n t 0 it 11 control n 12 normal 1 Prd control n 5 1 it 12 control n 12 fast 0 Prd control n i i 13 control n14 normal 1 Prd control n 7 fast 0 it 14 control 1 15 monmal 1 Prd control n 8 namal 1 15 Prd control 1 18 normal 1 MAp 2c E J OO On de Goa Pa co fo A Yo 2 00 30 D D0000 WMA eee FE6GD OkiEDA WNW 2 cM 0 32 10764 O2A00 fo A 2c 0 33 00071 MW 2 0034 0 O00000 Modbus addresses Slawe n 7 bits 0 71 Of Slave ng bits 8 15 MWe 2 200 MW 2 20 0 49 00000 Mot used bits at 0 1743315 03 2009 125 Appendix B LUFP1 Gateway Settings FIPIO Objects Available for Programming Only the Modbus slave control words IW p 2 c 0 0 to IW p 2 c 0 0 26 the Modbus slave command words QW p 2 c 0 0 to QW p 2 c 0 0 27 and the LUFP1 gateway LAS service lW p 2 c 0 0 27 are discussed again here as no other FIPIO objects are modified in the following example See Section 5 for a description of all the gateway s FIPIO objects Inputs IW p 2 c 0 0 to IW p 2 c 0 0 26 correspond to the gateway s 26 peri
82. ATV CRC LED DP DPM1 DPM2 Fieldbus FMS GSD Handshake LRC LSB 140 Glossary Value expressed in hexadecimal which is equivalent to the Heees eeeeh and 16 notations sometimes used in other documents NOTE The ABC LUFP Config Tool software uses the Oxeees notation e g 0x0100 16 0100 256 Value expressed in binary The number of digits depends on the size of the item of data represented Each nibble group of 4 bits is separated from the other nibbles by a space Examples byte 2 0010 0111 39 word 2 0110 1001 1101 0001 0x69D1 27089 Name of the PC software used to configure and monitor the LUFP7 Profibus DP Modbus Gateway Integrated circuits specific to a given user and application covering two major families pre characterised processes and pre distributed networks Abbreviation of Altistart soft start soft stop unit Abbreviation of Altivar drive Cyclical Redundancy Check Light Emitting Diode Decentralised Periphery remote 1 O Profibus version or protocol meant for quick communication with remote I O This is the only Profibus protocol supported by the LUFP7 gateway Class 1 DP master the central automatic control of a Profibus DP network It resets and controls I O transfers and slave diagnostics on the network One can have several DPM stations on a given Profibus DP network each one steering its own slaves Class 2 DP master The programm
83. Be Address of SK 0 0 6 WN KV c 0 0 1 nia Jz a ER peepee iy penodic word n 3 A penodic word n 16 penodic word n 5 penodic word n 18 Address of Address of SOK Wip 2 cv 0 9 Fun ELLIE 7oRWip 2 0 0 22 periodic word n 19 KWip 2 c 0 0 10 a ae 7 KWip 2 c10 0 23 AN x incall ate KWip 2 c 0 0 11 RW ainaka ane g KWip 2 010 0 24 n SK Wip 2 c 0 0 12 RW desiree ane g KWip 2 c0 0 25 KWip 2 c 0 0 13 cee wip KWip 2 c 0 0 26 yn Ox periodic word n 23 KWip 2 c 0 0 14 RW desea anega KWip 2 10 0 27 Ox cecal es KWip 2 ci0 0 15 pri oxen Saleen ajo KWip 2 c 0 0 28 AN Senia 26K Wip 2 c 0 0 16 RW 6KWip 2 c 0 0 29 rank a In the above table the mapping between the addresses of periodic words n 1 to 26 and the command and control words of the various Modbus slaves is not given because it depends entirely on the numbers of periodic command and control words for the Modbus slaves as a whole These periodic words are organized as follows penodic word n amp Address of as was oe Address of SK V0 0 7 nN i w Ro 2 c 0 0 2 A a Z i meere aiemmin 4 iaki periodic word n 17 SK Wip 2 cv0 0 8 Run Address of ac KWo A0021 RAN fiada Address of Address of periodic word n 1 Addresses of the penodic command words for slave n 1 Addresses of the penodic command words for slave n 8 Addresses of the periodic control words for slave n 1 Addresses of the periodic control words for slave n s Ox0000 1
84. E mode modify the fauli gateways parameter values save the changes and reload the application onto the FIPIO master PLC Gateway configured in FED C32 Update the internal gateway configuration using the ABC LUFP Config Tool configuration tool see Section 3 7 Hardware configuration fault Functional fault NOTE Neither of these configuration errors will be signaled by the gateway its LEDs will indicate normal operation It is therefore essential that you perform the foregoing checks 42 1743315 03 2009 4 Software Implementation of the Gateway 4 2 12 Modifying the Gateway Parameters in ONLINE Mode The modification of one or more configuration and or adjustment parameters in mode will momentarily bring the gateway to a halt for complete reconfiguration of the Modbus scanner This interrupts the periodic Modbus communications but for such a brief period of time that the Modbus slaves are unlikely to detect it even if they have very short communication timeouts 4 2 13 Debugging and Using the Gateway Configuration While in mode open the gateway debug window by double clicking the basic module This window displays the gateway diagnostics see previous page and the values of the gateway inputs or outputs selected using the scroll bar in the Variables pane The display mode for the selected value can be modified in the Base pane to make it easier to read if for example it consists of
85. FP Config Tool open the configuration file Open command in the File menu transfer it to the gateway Download configuration to ABC LUFP command in the File menu and close ABC LUFP Config Tool Once the configuration has been downloaded to the gateway and the PL7 PRO application transferred to the FIPIO master PLC use PL7 PRO in ONLINE mode to check that the basic module 0 i FED c32 corresponding to the gateway is operational on the FIPIO network 1743315 03 2009 65 6 Advanced ABC LUFP Config Tool A Hardware configuration fault will occur if you downloaded an ABC LUFP Config Tool configuration based on FED C32 P rather than FED C32 which is not the case for the aforementioned example file e Modifying the Gateway Parameters in ONLINE Mode ccccceccceececeeceeeeeeceeeesaeeesaeeeaes Section 4 2 12 This operation is now performed under ABC LUFP Config Tool instead of under PL7 PRO Downloading a new configuration to the gateway reinitializes the gateway and in the process its FIPIO and Modbus communications e Debugging and Using the Gateway Configuration ccccccccccccecceeeeeeeeeeeeeeeeseeeeeeeeees Section 4 2 13 The diagnostics inputs and outputs of the gateway are accessible in ONLINE mode via the debug window called up by double clicking the basic module o 1 FED 32 corresponding to the LUFP1 gateway e Developing a FIPIO Application
86. FP1 gateway behaves both as a FIPIO slave on the upstream network and as a Modbus RTU master on the downstream network See 7 Using ABC LUFP Config Tool it you would like to read about the technical communication characteristics of the LUFP1 gateway In the context of the Software Implementation of the Gateway the data exchanges input and output words between the gateway and the Modbus slaves are all periodic Collectively these Modbus exchanges form the gateway s Modbus scanner they are configured using PL7 PRO by configuring and adjusting the standard profile FED C32 P Every item of data exchanged in this way is made available to the FIPIO master which can access it periodically and implicitly The only aperiodic exchanges that can be performed with the LUFP1gateway on the FIPIO network are explicit exchanges relating to the adjustment parameters and gateway status parameters The gateway has a configuration and adjustment service called PKW which offers read write access to any Modbus slave parameter via the periodic input and output of the LUFP1 gateways This service is aperiodic on the Modbus network and periodic on the FIPIO network It can be used for the following tasks e Retrieving or updating the parameters on some or all of the Modbus slaves e Reading the value of one or more data for which a low refresh rate is sufficient e Reading the value of a data item when an event is signalled by a periodic variable One of t
87. G E Preset Multiple Regs configurable nodes A simple example is shown here BP Slave Address of Function code The addition and configuration of a Modbus command in the list of oy Starting register address broadcaster node commands is done in the same way as for other s E No of Registers nodes but with the following differences oo EP Byte Count e The list of standard Modbus commands which can be used in broadcast is smaller Only functions 0x06 and 0x10 can be used see list in chapter 7 11 2 e The command is made up of a query but does not include any response The query bears the name of thecommand itself instead of the name Query e The value of the query frame s Slave Address field is set to 0x00 Please see chapter 7 12 2 2 for further details on how to configure a Modbus query 1743315 03 2009 107 Appendix A Technical Characteristics Environment Height 120 mm 4 724 in ae Width 27 mm 7 063 in E E ERS ath 7S mm 2 853 in Extemal appearance Plastic housing with snap on conmecition to DIN rail PSU connector between 5 and 7 bs in 222 44V insulated 10 Maximum consumption 280 mA typically around 100 mA Maximum intemal consumption for all of the gateways electronic cards relating to the internal 5 PSU 450 mA Dimensions exduding Power supply Protechon class Maximum relative humidity 15 without condensation or see page according to IEC 68 2 32
88. Modbus connection for the gateway and its slaves are shown below There are many other possible Modbus connections but they are not covered in this document 14 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway 2 5 1 Examples of Modbus Connection e Star topology This topology uses LU9GC03 Modbus hubs which have 8 female RJ45 connectors These hubs should be placed close to the Modbus slaves to which they are connected using VW3 A8 306 Ree cables On the other hand the nature of the cable connecting the LUFP1 gateway to one of these hubs will depend on the network architecture so long as there is a male RJ45 connector at each end If necessary one or two line terminations may be directly connected to the hubs The connections are shown below LUFP1 gateway Modbus Modbus hubs a Sa Line termination Line Towards 6 Modbus slaves 1743315 03 2009 15 2 Hardware Implementation of the LUFP1 Gateway e Bus topology with VW3 A8 306 TF3 drop boxes This topology uses VW3 A8 306 TF3 drop boxes to connect each of the Modbus slaves to the main section of the Modbus network Each box should be placed in the immediate vicinity of the Modbus slave it is associated with The cable for the main section of the Modbus network must have male RJ45 connectors like the VW3 A8 306 Ree cable used for the star topology The lead between the drop box and the slave or the Modbus gateway is an integr
89. O bus can ever have the same address Simultaneous fast 2 Hz and continuing flashing of LEDs 0 O anad O means that the device cannot connect to the FIPIO bus because the address is already used by another device e This flashing signal also occurs when address 00 is configured using the gateway s coding wheels Examples Address 19 Address 73 COS 6 O 8 L Tens 24 1743315 03 2009 3 Signaling The gateway s 6 LEDs and the descriptive label on the removable cover which hides its two coding wheels gateway address allow you to diagnose the status of the gateway Off Gateway on line exchanges possible Flashing red Gateway off line exchanges impossible Check in PLY PRO that a FIPIO station has been declared for the gateway address Check that the gateway Is corectly connected to the FIPIO network Off No power or critical fault rlashing green Duplicate address see UIN Note below Green Gateway operational Off No power Flashing green No Modbus communications Moosus Green Modbus communications OK with all Modbus slaves Red Loss of communication with one or more Modbus slaves NOTE LED gt Gateway state Off No fault Red Internal fault Replace the gateway Flashing red Timing failure GFault mainly due to PIPIO network and or FiPlO master Off Total absence of communicaton with bus arbitrator Flashing yellow 5 Hz Exchanges in progress with bu
90. P to the corresponding gateway by downloading the PL7 PRO application to the PLC Then check that the gateway has been duly recognized on FIPIO by the PLC by viewing its status in the FIPIO network configuration window Transfer the application from the PC to the PLC by selecting the Transfer program command in the AF menu or by clicking the zil button and selecting PC gt PLC gt Switch from OFFLINE to ONLINE mode by selecting Connect in the AF menu or by clicking Th Initialize and start the PLC application using the Init and Run commands in the AF menu gt Open the PLC hardware configuration and the FIPIO configuration and check that the gateway connection point is valid colored white In the example shown here the 2B FIPIO Configuration E connection point is signaling an error TSX 57353 V5 1 Bus length 0 7f 15km Devices configured 1 and is therefore in red If this aes i ie cad Logical address Communicator Baze module Extension medule happens open the debug window by double clicking the basic module In this window click on the two red DIAG buttons The table below sets out the procedure to be followed in the two most likely instances Module diagnosis Channel diagnosis Internal faults Causes and corrective measures Incomect configuration adjustment parameters Pamio Application Ly Switch to OFFLIN
91. RANGES If you choose to add a Modbus slave by copying the configuration of an existing Modbus slave you must change the added device s Modbus address and the memory locations it uses to exchange data with the gateway Duplicated Modbus addresses or gateway memory locations may result in communications errors incorrect information being written to a slave s registers or in writing the registers of an unintended device Any of these errors may result in unintended equipment operation Failure to follow this instruction can result in death serious injury or equipment damage 76 1743315 03 2009 7 Using ABC LUFP Config Tool 7 10 Modifying Periodic Data Exchanged with Modbus Slaves This involves replacing adding or deleting periodic data exchanged with one of the Modbus slaves For each of these operations we shall take the standard configuration as described in Chapter 6 as the starting point any changes previously made will have been cancelled at the start of each operation Each operation is illustrated below by a specific example Always remember to save the changes you have made or to transfer the whole configuration to the gateway This will allow you to check that the configuration is valid as the gateway automatically verifies the configuration when it is downloaded 7 10 1 Replacing a Periodic Input E g TeSys U Motor starter n 3 we want to replace the TeSys U Status Register control address 455 0x01C7 with
92. Save the gateway adjustment parameters the values replace the initial adjustment parameters e RESTORE_PARAM CH p 2 c 0 0 Restore the initial adjustment parameters IMPLICIT exchange a fon connection s ra Adjustment parameters iecime yates PLC Processor Active adjustment parameters WMW p 2 c 0 0 20 gt 0 0 49 SAVE PARAM RESTORE PARAM Initial adjustment parameters NOTE The values of the initial adjustment parameters are those defined using the PL7 PRO configuration editor or alternatively the most recently saved values These parameters are described in Appendix B 1743315 03 2009 61 6 Advanced Implementation of the Gateway This chapter marks the start of Part Il of the LUFP1 Gateway Users Manual This part comprises Chapters 6 and 7 and focuses on the use of ABC LUFP Config Tool This configuration tool enables the gateway to be configured and adjusted independently of PL7 PRO The possibilities offered by the tool go well beyond the limits imposed by the standard profile FED C32 P The whole of Part Il therefore supplements Chapter 4 and supersedes certain sections 6 1 Introduction to Advanced Implementation of the Gateway The Advanced Implementation of the Gateway gets around certain limits imposed by the Software Implementation of the Gateway Chapter 4 The main differences between the two implementation methods are summarized in the table below Software Implem
93. This is because the gateway creates an equivalent configuration that can be viewed using the retrieve command 70 1743315 03 2009 7 Using ABC LUFP Config Tool 7 5 Transferring a Configuration to the Gateway When using ABC LUFP Config Tool you can transfer the configuration you are editing to the gateway at any time Choose Download configuration to ABC LUFP from the File menu or click the 5 button in the ABC LUFP Config Tool toolbar N Checking Fieldbus type ABC LUFP Config Tool initializes a check test of the gateway type NOTE During this very quick test the PC should not carry out any other operations as this could lead to ABC LUFP Config Tool apparently freezing up and slowing down the PC s general operation for several minutes After the test is complete the PC will return to full soeed and may be used normally eee Once this test has finished a window called Download opens and a progress bar shows the state of progress for the transfer of the configuration to the gateway NOTE Do not interrupt this operation otherwise you will have to start it again from the beginning Check that the transfer has been correctly carried out LED Gateway should be flashing green If this LED is flashing red green save the configuration you were editing open a file containing a valid configuration LUFP1_FEDC32_Example cfg for example and transfer it to the gateway This will restore it to a known init
94. aava lz J LK WM 22u0 Mb monk cave BE FS NOTE The FED C32 P FIPIO2 MODULE O windows shown above present Symbols which have been added manually using the PL7 PRO variables editor By default no symbol is attributed to the gateway s configuration parameters KW or adjustment parameters MW 1743315 03 2009 33 4 Software Implementation of the Gateway All the configuration and adjustment parameters described in the following sections are an integral part of the PLC application The FIPIO master PLC will transmit these parameters to the gateway implicitly via the FIPIO bus whenever either of the two following events occurs e The PLC goes into RUN mode e The gateway is disconnected from and reconnected to the FIPIO network NOTE e The gateway configuration possibilities offered by the FED C32 P model are limited to the gateway itself it cannot be used to configure the Modbus slaves e f you want to configure the Modbus slaves you will need to use a different method local configuration or remote configuration with a software tool such as PowerSuite for example 4 2 4 Selecting and Adding the Profibus DP Master Station Parameter Value Description Number of periodic command words for slaves n 7 to nd Bits 3 Number of periodic command words for slave n 1 ok ip 2 i000 39 021777 Bits 4 7 Number of periodic command words for slave n 2 Bits 6 11 Number of periodic command words for slawe n 3 Bits
95. about the missing slave in the List of Active Slave LAS If despite the three retries there is no answer from the slave the input data sent to the FIPIO master Read requests is reset to 0 but only for the data received from the missing slave The gateway will try to reconnect the missing slave by communicating with it again every 10 seconds Tesys U response If the LUFP1 gateway is disconnected on Modbus side The starters controllers do not receive any requests depending on their configuration they will stop the motor keep the same state or run the motor Refer to the Tesys U user manuals to adjust the fallback position In case of a Tesys U failure No response is sent to the gateway the motor state will be undetermined This case must be managed in the PLC application 4 2 Gateway Configuration under PL7 PRO The following sections describe the configuration steps in PL7 PRO that you will need to go through to ensure that the gateway is correctly recognized by the FIPIO master PLC and that it can command and control the 8 motor starters in the standard configuration described earlier 4 2 1 WorldFIP Mode The LUFP1 gateway supports the WorldFIP mode configured via the FIPIO bus properties in PL7 4 2 2 Adding the LUFP1 Gateway under PL7 PRO Open the hardware configuration of your application and edit the FIPIO network configuration by double clicking on the PLC processor card TSX 57353 Add the FIPIO device corresp
96. al cccccccceeeeeseeeeeeeeees 6 1 2 Introduction to the LUFP1 Gateway ccccceeeeeeeeneeeeeees 8 Tos Terminology r E 8 1 4 Introduction to the Communication System Architecture 9 1 5 Principle of LUFP1 Gateway Configuration and Operation 10 2 Hardware Implementation of the LUFP1 Gale WAY aara a essneneawia eee renccetaees 12 ZN OM IRE CEIDE teats dane uated sie dad enna hacia Taa ada E maa me 12 2 2 Introduction to the LUFP7 Gateway ccccceecseeeeeeeeeeees 12 2 3 Mounting the Gateway on a DIN Rail cccceeeeeeeeeeeeees 13 2 4 Powering the Gateway ccccccseeeeeeceeeeeeceeeeeeeeeeeeeeaeaeeeees 14 2 5 Connecting the Gateway to the Modbus Network 14 2 5 1 Examples of Modbus Connection cccccceeeeeeeeeeees 15 ZOiL at SOURS icc ceasnee oasis cndeaseacn codes tntduacecsuuaeennssnatetonataconeisedee 17 2 5 3 Wiring Recommendations for the Modbus Network 18 2 6 Connecting the LUFP7 gateway to the Profibus DP NE IWOMK E E EE E A E E 20 ZO e PINOS es a ios saik tensa eaeaake anata 20 2 6 2 Wiring Recommendations for the FIPIO Network 21 2 Configuring the FIPIO Communication Features 23 2 7 1 Encoding the Gateway ACCIeSS ccceceeeeeeeeeeeeees 23 eI UIA ao a 25 4 Software Implementation of the Gateway 26 AT cM OCUCUON screws a E tic aticotemet adie meteors 26 4 1 1 System A
97. al part of this box The connections are shown below LUFP Gateway Modbus danl WW A8 306 TF3 Lina termination Line termination sA Towards 3 Modbus slaves 16 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway Bus topology with tap boxes This topology is similar to the previous one except that it uses TSXSCA62 subscriber connectors and or TSXCA50 subscriber connectors We recommend using a VW3 A68 306 connection cable and the TSXCSA 00 Modbus cables Connect the RJ45 connector on the VW3 A68 306 cable to the Modbus connector on the LUFP1 gateway The connections are shown below VW3 A68 306 LUFP1 Gateway Co ey p i tram TSXCSA 00 _ 2 5 2 Pin Outs In addition to the pin out for the connector on the gateway the one on the VW3 A68 306 cable is also shown below as it is the only Modbus cable which does not exclusively use RJ45 connections LUFP1 connector VW3 A68 306 cable for TSXSCA62 box Female RJ45 Male RJ45 Male 15 point SUB D 1743315 03 2009 17 2 Hardware Implementation of the LUFP1 Gateway 2 5 3 Wiring Recommendations for the Modbus Network e Use a shielded cable with 2 pairs of twisted conductors e connect the reference potentials to one another e maximum length of line 1 000 meters 3280 ft e maximum length of drop line tap off 20 meters 65 5 ft e do not connect more than 9 stations to a
98. and allows the connection of 2 subscribers to the bus 2 female 15 point SUB D connectors It includes the line termination when the connector is located at the end It is fitted with 2 screw terminals for the connection of two double twisted pair Modbus cables This passive box allows a Modbus unit to be connected to a screw terminal It includes the line termination when the connector is located at the end It is fitted with 2 screw terminals for the connection of two double twisted pair Modbus cables Each of these two red passive boxes is a male RJ45 connector 3cm 1 18 in long containing an RC line termination see diagram and illustration above Only the abbreviation RC is shown on these boxes Shielded cable with a male RJ45 connector at each end Shielded cable with a male RJ45 connector and a male 15 point SUB D connector It is used to connect a Modbus subscriber slave or master to a TSXSCA62 or TSXCA50 box Bare cable without connectors used to make up the main section of the Modbus network There are three items available TSXCSA100 100m or 328 ft TSXCSA200 200 m or 656 ft and TSXCSA500 500 m or 1640 ft 19 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway 2 6 Connecting the LUFP7 gateway to the Profibus DP Network Connect the SUB D 9 point male plug on the FIPIO connector to the FIPIO plug on the LUFP1 gateway SUB D 3 pin male connector Connections are illustrated
99. and click on Connect in the popup menu that appears or e select the ABC LUFP element and choose Connect in the ABC LUFP menu or e click on the 5 button Once connected you can disconnect ABC LUFP Config Tool from the gateway by e right clicking on the ABC LUFP element and clicking on Disconnect in the popup menu that appears or e selecting the ABC LUFP element and choosing Disconnect in the ABC LUFP menu or nT e clicking on the button The rightmost part of the status bar of ABC LUFP Config Tool displays its current connection mode Contig Line On line mode the left LED is green Config Line Off line made the right LED is red In On line mode ABC LUFP Config Tool periodically polls the gateway in order to detect if the gateway has been disconnected 1743315 03 2009 69 7 Using ABC LUFP Config Tool Tool goes to Off line mode the red LED is displayed and automatically retries to connect to the gateway The Searching N searching tor ABC LUFF for ABC LUFP window is visible for the duration of this search When an unwanted disconnection does occur ABCLUFP Config oe If the search fails ABC LUFP Config Tool prompts you with No Module was found retry e Should you select the Cancel button ABC LUFP Config Tool remains in Off line mode e Should you select the Retry button ABC LUFP Config Tool resumes t
100. and the values of the Slave Address elements in the queries and responses of the Modbus commands for the selected node are automatically updated In the example that follows a single Slave Address element is updated asc ABC LUFP Config Tool C Schneidert ABC Config Tool LUFP1 Tutorial cfg Piel E3 asc ABC LUFP Config Tool C Schneideri ABC Config Tool LUFP1 Tutorial cfg Piel EG File Slave Address Tools View Help File Slave Address Tools wiew Help Debt SIO lA Bex SF ROBES PTT Dat Slilisexe Ss KF OBOE ABC LUFP FIPIO MB Gateway LUFP1 tutorial ABC LUFP FIPIO MB Gateway LUFP1 tutorial Devices Configuration Devices Configuration EE Sub Network 2 Alphabetic Categorized G TeSys U n Read Holding Registers Vae 0x01 Maite FE Query i Slave Address Function code spake ae Phare he ya en a Starti isterati ransmitting the Byte this Value will be sent When i N a i bie M igi receiving a Byte ABC will perform a check aginst LY Number g gisters this Value If the received Byte does not match it A wW Sub Network a E E TeSysU n _ Read Holding Registers Value 0x0A Alphabetic Categorized B 63 Query ti Slave ddress Value Ef Function code Definition of a Constant Byte Value Wen Starti ister addres transmitting the Byte this Value will be sett when W Starting register addres receiving a Byte ABC will perform a checkhaginst this Value If the received Byte
101. anges are performed by the PLC without any additional programming these are the periodic FIPIO exchanges EXPLICIT exchanges call for the programming of communication functions like READ_PARAM READ STS etc these are aperiodic FIPIO exchanges for passing diagnostic variables downloading complete configurations and so on 2 If the gateway is configured using ABC LUFP Config Tool see Chapter 6 the profile FED C32 must be used The configuration and adjustment parameters then become internal to the gateway and no longer need to be transmitted by the FIPIO PLC and the associated MW and KW objects cease to exist 44 1743315 03 2009 5 FIPIO Objects Available for Programming 5 1 Periodic Command and Control Words Unlike the other FIPIO objects for the LUFP1 gateway the periodic command words QW p 2 c 0 0 to QW p 2 c 0 0 25 and periodic control words IW p 2 c 0 0 to IW p 2 c 0 0 25 are fully configurable by the user Their organizational structure is presented in three different ways depending on how the gateway is used e Use of the standard configuration with 8 TeSys U motor starters e Configuration with PL7 PRO using the standard profile FED C32 P e External configuration with ABC LUFP Config Tool using the standard profile FED C32 These objects are updated implicitly by the FIPIO master by periodic FIPIO exchanges at the start of the PLC cycle for the control words and at the end of the PLC cycle for the comma
102. application programming Failure to follow this instruction can result in death serious injury or equipment damage Returning to our previous example the value to be assigned to the ATS48 s CMD register should be placed in the gateway s output data memory area We will be using the first free location starting at an even address i e 0x0210 in the case of the standard configuration Data length Length of the output data block in the gateway s memory of which the values are to be transmitted in the Preset Data field of the query frame It is expressed in number of bytes NOTE The Data length field is always used together with the Data location field described above E g Since the Preset Single Register command is used to write the value of a single 16 bit register the value of the Data length field must be set to 2 See the documentation for each Modbus slave to find out the maximum amount of 8 bit data which can be placed in Data type fields in the queries and responses for this slave With the ATS48 for instance the maximum is 30 16 bit words Byte swap Specifies whether or not the output data bytes to be transmitted to the Modbus slave must be swapped before being placed in the Modbus frame The three possible values are as follows No swapping Default configuration The data is sent in the same order as it appears in the gateway s memory This is the case which must be used b
103. ast frame beneath and apart from the others displays the output data transmitted to the gateway in order to generate the corresponding PKW command and the input data from the gateway s response to this command The following example contains the PKW service output and input data for the instances described at the bottom of the previous page The reading value is Ox01C3 OV p c0 0 28 16701C7 PRE Adresse parametre 16201C7 wh p 2 c0 0 28 OWip 2 c 0 0 29 16 0352 ay r Code lee 16 0352 SIWip 2 c 0 0 29 OV p 2 c0 0 30 1670000 PWE Parameter Value n 1 1640003 WNA p 2 c0 0 30 OV p 2 c0 0 31 1640000 PWE Parameter Value n 1 1670000 WNA p c0 0 31 The Pkw_service program includes the ST instructions that use the values entered in the PKW service frame described on the previous page to update the PLC outputs for the PKW service command on the gateway YQW p 2 c 0 0 28 to QW p 2 c 0 0 31 The program handles the following tasks e It tests the checkboxes in the DN Device Number and RW Read Write frames If in either frame none of the boxes is checked one of them will be selected by default DN 1st Modbus slave RW Read a register e t compares the values over two consecutive PLC cycles in order to keep only one box checked at any given time in each frame e When it detects a click on the SEND command button it updates the local variables followed by the o
104. at the top of the next page ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal aec ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg Fie Data Tools View Help Configuration Alphabetic Categorized Configuration lphabetic Categorized Deb SSI A BEX Saey a Byte swap No swapping Byte swap No swapping ABC LUFP FIPIO MB Gateway LUFP 1 tutorial 16 Data length _ Ox0010 Data location 00002 16 Devices Configuration EE Sub Network 2 Alphabetic Categorized H TeSys Un T TeSys U n 2 Byte swap No swapping Read Holding Registers Data lenath 0x0002 E Query Data location Ox0002 Response Configuration Configuration Byte swap The byte swapping method to use on the data This is used to change the data order of High Byte Low Byte Swap 2 E Slave Address Alphabetic Categorized Lf Function code Alphabetic Categorized of Byte count bytas will change from Byte1 Byte2 Byte3 Byted to Byte swap No swapping Byte swap No swapping E Byte2 Byte1 Byte4 Byte3 Swap 4 bytes will change from 00010 Data length 0x0010 Ey Checksum Byte1 Byte2 Byte3 Byte4 to Byte4 Byte3 Byte2 Bytel Data location Ox0002 00010 10 42 7 02 2006 Config Line 7 80 1743315 03 2009 7 Using ABC LUFP Config Tool To c
105. ate the whole of the command YQW p 2 c 0 0 28 to QW p 2 c 0 0 31 and then wait until the values in the response lW p 2 c 0 0 28 to IW p 2 c 0 0 31 match the command by comparing the PKE DN and R W cr in the case of the response R W N values The gateway stores the response values for as long as the FIPIO master modifies none of the command values If any output word in the PKW command even the PWE outputs is modified a new command is transmitted over the Modbus network except when R W 0x00 NOTE e Stick strictly to the values given in the PKW service command table Otherwise the gateway will send an erroneous response e Be careful not to write incorrect values in the outputs corresponding to the PKW service as this would generate an incoherent command only limited checks are run on the data used by this service and it is therefore left to the FIPIO master PLC application to handle them e The PKE addresses corresponding to periodic command words profile FED C32 P or to registers assigned by Modbus write commands profile FED C32 must not be used in PKW service write commands as this could lead to a write conflict in the same registers e Such acommand could however be envisaged if for example you wanted to run the same command on all the Modbus slaves urgently and simultaneously DN 255 In this case you will also need to write the same value as the broadcast command PWE into the periodic command words that shar
106. ations described in Chapter 7 or you can use a blank configuration For a blank configuration use the New command in the File menu e Set the Protocol Mode property to FIPIO MB Gateway in the ABC LUFP element e Set the Fieldbus Type and Profile properties to FIP I O and FED C32 respectively in the Fieldbus element FED C32 P_ the creation of new configurations is performed entirely under PL7 PRO Only transfer a new configuration to the gateway if it signals a Hardware configuration fault see Section 7 5 1 7 8 Deleting a Modbus Slave This step allows you for instance to free up a location on the downstream Modbus network known as the Sub Network in ABC LUFP Config Tool in order to replace one Modbus slave with another In fact the gateway s standard configuration already allows it to communicate with eight TeSys U motor starters and the maximum number of Modbus slaves with which it is permitted to communicate is limited to eight 1743315 03 2009 13 7 Using ABC LUFP Config Tool If the gateway is used to manage exchanges on a Modbus network with fewer than eight TeSys U motor starters it is preferable to delete the redundant TeSys U motor starters from the gateway configuration the deterioration in performance caused by the absence of one or more TeSys U motor starters is such that it is preferable to carry out this operation using ABC LUFP Config Tool
107. ave n 3 Command n 1 Slave n 3 Command n 2 Slave n 4 Command n 1 Slave n 1 Control n 1 Slave n 1 Control n 2 Slave n 1 Control n 3 Slave n 2 Control n 1 Slave n 2 Control n 2 Slave n 4 Control n 1 Slave n 4 Control n 2 olWip 2 c 0 0 6 olWip 2 c 0 0 7 1Wip 2 c 0 0 8 va eT eee daana Not used 18 words alii sas oIWip 2 cl 0 0 25 elW p 2 c 0 0 26 2 OWip 2 c 0 0 25 QWip 2 c 0 0 26 QWip 2 c 0 0 27 5 1 3 Configuration under ABC LUFP Config Tool with Profile FED C32 The actual contents of the periodic command and control words described below will depend entirely on the Modbus data gateway memory associations you configured in ABC LUFP Config Tool These associations involve the Data or Preset Data elements in the Modbus query and response frames See Chapter 7 for the various possibilities offered by this gateway configuration tool especially in conjunction with profile FED C32 Mapping of FIPIO PLC INPUTS to LUFP1 gateway memory FIPIO object FIPIO object FIPIO object Jol Wip 2 ciO_0 Jol Wip 2 ciO0 1 ol Wip 2 ciD02 2ol Wip 2 00 3 FolWip 2 ci0 0 4 7 0 05 Jol Wip 2 chiO_06 olWip 2 00 8 FIPIO object OV ip2 c0 0 OVW ip 2 cv0 0 1 OW ip 2 ci0 02 OVip 2 c0 05 Op 2 ci0 04 OV ip 2 ci0 0 5 Vip 2 c10 0 6 OW ip c OF OW ip 2 ci0 0 8 O x0000 0x0001 O z0002 02x0003 OxO004 02x0005 O 20006 02x0007 O z0005 0x0005 O xO00A 0x000B O 2000C Ox000D OxO00E OxD00F O
108. b Network nodes then choose Insert from the menu with the same name as the selected node A new node is added just before the one which is selected Its name and its whole configuration are identical to that of the node you copied As the new node and the original node are identical in every way you will need to change 1 the name of the node 2 the address of the corresponding Modbus slave and 3 the location of the data exchanged between the gateway memory and the Modbus slave All these operations are described in Section 7 11 and Section 7 12 A WARNING DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY RANGES If you choose to add a Modbus slave by copying the configuration of an existing Modbus slave you must change the added device s Modbus address and the memory locations it uses to exchange data with the gateway Duplicated Modbus addresses or gateway memory locations may result in communications errors incorrect information being written to a slave s registers or in writing the registers of an unintended device Any of these errors may result in unintended equipment operation Failure to follow this instruction can result in death serious injury or equipment damage Importing exporting a Modbus slave configuration With ABC LUFP Config Tool you can independently save and load a node configuration on the downstream Sub Network This allows you for example to build up a library of Modbus slave templates so t
109. bit at 1 Make sure this bit is at 0 before you perform a Read status OK if bit at 0 new explicit exchange Reserved bit at 0 Adjustment parameters recerved and accepted by gateway If bit at 0 Configuration parameters received and accepted by gateway if bit at 0 Before carrying out an exchange check that the relevant bit MW p 2 c 0 0 Xee is at O exchange inactive The bit will switch to 1 for the duration of the exchange me sending adjustment parameters if bit at 1 X15 Sending configuration parameters if bit at 1 When the exchange is complete the bit switches back to 0 you can check the bit at the other end YMW p 2 c 0 0 1 X to determine whether the exchange succeeded bit at 0 or failed bit at 1 5 6 Parameters Specific to Profile FED C32 P The gateway configuration and adjustment parameters are only stored in the FIPIO master PLC memory if the gateway was configured under PL7 PRO to support configuration and adjustment using standard profile FED C32 P If the gateway is configured with standard profile FED C32 then these parameters do not exist Configuration and adjustment must then be carried out independently In this case ABC LUFP Config Tool will be required see Chapter 7 The software implementation of the gateway under PL7 PRO using profile FED C32 is described in Chapter 6 From the viewpoint of PL7 PRO it then becomes a locally configured gateway NOTE Some of the configurat
110. cation Address in the gateways output memory Response Starting Address MSB Address of the 1st output internal register Starting Address LSB No of Registers MS6 Number of output internal registers No of Registers LSB 1743315 03 2009 137 Appendix E Modbus Commands Modbus Protocol Exception Responses When it cannot process a command issued by a Modbus query a slave sends an exception response instead of the normal response to the query A WARNING UNATTENDED OPERATION OF THE SYSTEM With standard Modbus commands the LUFP1 gateway considers that all the exception responses it receives from Modbus slaves are incorrect responses As a result it will carry out the re transmissions configured for the queries involved Failure to follow this instruction can result in death serious injury or equipment damage The structure of an exception response is independent of the Modbus command associated with the Function field of the query involved The complete frame of an exception response is shown below Slave Address Function Exception Code Checksum Lo Checksum Hi Code 0x01 0x02 0x03 0x04 0x08 MEMORY PARITY 1 ERROR Modbus address 1 to 247 addresses 65 126 and 127 prohibited The value of this field is identical to that of the Slave Address field in the query involved Command code with exception indicator The value of this field is set to 0x80 the va
111. cation fault The configuration and adjustment parameters defined for profile E FED C32 P which corresponds to the gateway contain incorrect values Channel status managed AO A15 Reserved bits at 0 by the PLC 5 4 3 Module Status MW p 2 c 0 MOD 2 Each of the module status bits corresponds to a specific fault A fault is present if the corresponding bit is at 1 The module status is updated by the explicit command FEAD S5T3 Chi p 2 c 0 MOD Hardware configuration fault The Reserved bit at 0 K standard FIPIO profile configured under PL7 PRO was the wrong one Functional fault Fault signaled by the Gateway absent Check for an gateway reading channel status internal fault in the channel status recommended see above see above X2 X4 Reserved bit at 0 XT X eserved bits at 0 1743315 03 2009 59 5 FIPIO Objects Available for Programming 5 5 Status of Explicit Exchanges The two implicit words MW p 2 c 0 0 exchange in progress and MW p 2 c 0 0 1 report serve to control explicit exchanges You should use them if you need to program explicit exchanges in the FIPIO master PLC application PLC Processor status parameters diagnostics IMPLICIT exchange Status parameters to MW p 2 c 0 0 management of explicit exchanges diag nosti cs YoMWip 2 c 0_0 1 Exchange in progress oMW p c 0 0 Report YoMWip 2 c 0 0 1 Bit Meaning O o Reading status if
112. cli0 0 9 Address of periodic word n 6 As above but for slave n 2 oR VV p 2 ci0 0 10 Address of periodic word n T As above but for slave n 3 TOR VV YO CV 0 11 Address of periodic word n 8 As above but for slave n 4 SOoRVV Ap 2 00 00 12 0 Ox0000 Address of periodic word n 9 Not used SOR 2 cV0 0 29 Ox0000 Address of periodic word n 26 Not used MW 2 010 0 20 WMMP 2 010 0 21 MWD 200 022 2 MWp 2 00 0 23 5144 Ox0202 Behavior on losing FIPIO network and Modbus network SohVIV yp 2 cl 0 24 0 OxO000 Not used SOMWip 2 cW025 25 630 Ox641E Cycle time of fast normal periodic commands ToMWip 2 cW026 25 630 0x641E Cycle time of fast normal fast controls se Tet EET a MW p 2 c 0 0 27 oxog00 Bits 0 to 3 Periodic commands n 1 to 4 fast bits at 0 Bits 4 to 15 Not used eM 2 00028 0 or0000 MWip 2 c 0 0 29 ae j fy r a n 1 to 4 fast bits at 0 Mp 2 c10 0 30 Soh yp 2 cV0 0 31 1 282 Ox0502 Modbus addresses 2 MW p 2 00 0 32 1798 Ox0706 Modbus addresses SoMVVV 2 c 0 0 33 0 Ox0000 Modbus addresses Slaves n 5 and 6 absent SolhVIV yp 2 cl 0 34 0 Ox0000 Modbus addresses Slaves n and 2 absent SoMVIV yp 2 c 0 0 35 OxO000 Not used Woh yp 2 ci O49 Ox0000 Not used 1743315 03 2009 37 4 Software Implementation of the Gateway 4 2 7 Configuring Gateway Inputs Outputs The settings described in the previous sections enable the gateway to establish a Modbus scanner made up of
113. d of slave n 1 TeSys U 455 Ox01C Address of periodic word n 13 1st prd control word of slave n 2 TeSys U Address of periodic word n 14 2nd prd control word of slave n 2 TeSys U Address of periodic word n 15 3rd prd control word of slave n 2 TeSys U 468 Os01CA Address of periodic word n 16 1st prd control word of slave n 3 ATS48 Address of periodic word n 17 2nd prd control word of slave n 3 ATS43 Address of periodic word n 18 3rd prd control word of slave n 3 ATS48 468 Osx01CA Address of periodic word n 19 1st prd control word of slave n 4 ATS438 4072 OxOFES Address of penodic word n 20 2nd prd control word of slave n 4 ATS48 Address of periodic word n 21 3rd prd control word of slave n 4 ATS48 456 Ox01CA Address of penodic word n 22 1st prd control word of slave n 5 ATV54 451 Ox01C3 Address of periodic word n 23 2nd prd control word of slave n 5 AT V58 452 Ox01C4 Address of periodic word n 24 3rd prd control word of slave n 5 ATW54 453 Ox01C5 Address of periodic word n 25 4th prd control word of slave n 5 AT V58 0 Ox0000 Address of periodic word n 26 Not used reserved 1743315 03 2009 Appendix B LUFP1 Gateway Settings Adjustment Parameter Values Parameter Value Description Bits O 7 Modbus speed 19 200 bits s LSS byte 4 Bit 8 Modbus format data bits bet at 1 fo VW yp 2 cD 00104 Bit 9 Modbus fo
114. dbus device in the following order e Startlnit Anybuslnit Fieldbus specific Fieldbus specific Fieldbus specific e Fieldbus specific Endinit Should any other Mailbox also appear in this list please perform the Restore Default Mailboxes command Then confirm the operation by clicking AN This operation will delete the user defined mailboxes do You want to continue on the Yes button in the confirmation warning window that appears 102 1743315 03 2009 7 Using ABC LUFP Config Tool 7 13 2 ABC LUFP Element The only command accessible from the ABC LUFP menu is Disconnect or Connect if you are in off line mode See chapter 7 3 for details about on line and off line modes In the configuration of the LUFP1 gateway s ABC LUFP element the Control Status Word the Physical Interface and the Protocol Mode properties must not be changed Their value respectively must always be set to Disabled Serial and FIPIO MB Gateway Configuration Alphabetic Categorized Control Status Word Module Reset Physical nterace Protocol Mode Recerve Counter Location Ox0000 Statistics Disabled Transmit Counter Location Ox0000 Configuration Alphabetic Categorized ControlStatus Word Module Reset Physical lnterace Protocol Mode Recerve Counter Location Ox0000 Statistics Disabled Transmit Counter Location Ux0000 Disabled E
115. determines either fast periodicity bit at 0 or slow periodicity bit at 1 for the controls both defined by the parameter MW p 2 c 0 0 26 Addresses of Modbus slaves Remember that you must define the Modbus slaves starting at Modbus slave n 1 and then on in sequence without leaving any empty slots 1743315 03 2009 117 Appendix B LUFP1 Gateway Settings Management of Degraded Modes The management of degraded modes on the LUFP1 gateway described in Section 4 1 4 now depends on two gateway adjustment parameters The table below is the same as the one in that section except that the two new parameters have been included Disconnection of Failure of the the downstream LUFP1 gateway Modbus RTU network Disconnection of the upstream FIPIO network 1 Desired Premium PLC behavior CPU stop or failure oMW p 2 00 0 23 X0 X7 0x02 Depending on the configuration SoM Wp2c 0 0 23 X0 X 0x00 of the Modbus slaves 2 vaMW p 2 00 0 23 X0 X7 0x01 aMW ip 2 c 0 0 23 8 X15 0x02 3 oM Wp 2 c 0_0_23 Xe 415 0x00 3 1 See previous page for a description of the adjustment parameter used in this column 2 The desired behavior with regard to the outputs should be directly configured on each of the Modbus slaves In the case of drives marketed by Schneider Electric for instance the outputs are reset by setting the NTO bit to 0 command with communication control and held by setting NTO to 1 command Without c
116. dic communication services therefore operate in the same way as for the standard configuration unlike the various operations described in Section 7 10 Instead of adding a command and configuring it from scratch it is easier to copy one of the two default commands for TeSys U motor starters Read Holding Registers read control or Preset Multiple Regs write command and paste it into the list of Modbus commands for the appropriate node To copy a ready configured Modbus command select it and then choose Copy from the menu with the same name as the selected command Keyboard shortcut Ctrl C Then proceed with either of the following methods a Select the node corresponding to the Modbus slave you want to add the command to e g TeSys U n 4 then choose Paste from the menu with the same name as the selected node A new command is added after 88 1743315 03 2009 7 Using ABC LUFP Config Tool all the other commands configured for this node Its configuration is totally identical to that of the previously copied command Keyboard shortcut Ctrl V Or b Select one of the commands on the node concerned then choose Insert from the menu with the same name as the selected command A new command is added just before the one selected Its configuration is totally identical to that of the previously copied command As the new Modbus command and the original Modbus command are identical yo
117. does not mtch it f Number of registers Cheglefum v will be discarded if Checksum will be discarded 4 b 4 b Slave ddress 07 02 2006 13 27 Config Line 4 Slave Address 07 02 2006 13 23 Config Line GQ 4 asc ABC LUFP Config Tool C Schneidert ABC Config Tool LUFP iiel E3 asc ABC LUFP Config Tool C Schneider ABC Config Tool LUFP Mi E3 File Te5SysUn i Tools View Help ABC LUFP FIPIO MB Gateway LUFP1 tutorial File TeSysUn 1 Tools View Help D SHl ABC LUFP FIPIO MB Gateway LUFP1 tutorial Configuration Configuration ABC LUFP Alphabetic Categorized gt D ABC LUFP jJ Alphabetic Categorized Sub Network a Sub Network lr E Slave address 1 ST TeSys Unt Slave address Ty TeSys U n 2 Ty TeSys U n 2 a i a gt Slave address E ei i j gt Slave address az TeSys U n t 07 02 2006 13 32 2 TeSys U n t 07 02 2006 13 32 4 1743315 03 2009 87 7 Using ABC LUFP Config Tool 7 11 3 Changing the Name of a Modbus Command To rename a Modbus Command first perform one of the following actions e right click on the name of the command itself e g Preset Multiple Regs and click on Rename in the popup menu that appears or e select the name of the command and choose Rename in its corresponding menu or e select the name of the command and click inside its name or e select the name of the command and press the F2
118. ds You can use all 26 input words and all 26 output words in the two tables above organizing them in the gateway memory as you see fit within the limit of the addresses shown You are still limited to 26 Modbus commands however but you can read or write more than one word with each of these commands 1743315 03 2009 47 5 FIPIO Objects Available for Programming 5 2 List of Active Slaves LAS Service This service consists of a single implicit input word IW p 2 c 0 0 27 in which each bit XO to X7 corresponds to a Modbus slave Each bit will have the value 1 if the corresponding Modbus slave is present and active on the Modbus network PLC Processor List of Active Slaves LAS IMPLICIT exchange Management of IW p 2 c 0 0 27 periodic FIPIO variable Modbus communications Modbus network Modbus slaves or TeSys U motor starters Standard configuration Configuration under PL PRO Configuration under ABC Bit 8 TeSys U devices profile FED C32 P LUFP Config Tool profile FED C3 TeSys U motor starter n 1 Modbus slave n Ist Modbus slave TeSys U motor starter n 2 Modbus slave n 2nd Modbus slave TeSys U motor starter n 3 Modbus slave n 3 3rd Modbus slave TeSys U motor starter n 4 TeSys U motor starter n 6 TeSys U motor starter n 7 TeSys U motor starter n 8 In the event of no response or an invalid response from a Modbus slave after the timeout and subsequent retransmissions of the Modbu
119. e Send Command command triggers the emission of the Query displayed in the upper part of the Monitor window As soon as a Modbus Response is received by the gateway ABC LUFP Config Tool displays its contents in the upper part of the Monitor window e Columns menu The Free choice configures the three monitoring columns In Area Out Area and General Area to automatically adjust their width on a 1 byte unit 1 byte 2 bytes 3 bytes etc each time you modify the width of the Monitor window The 8 Multiple choice configures the three monitoring columns to automatically adjust their width on an 8 byte unit 8 or 16 bytes each time you modify the width of the Monitor window e View menu The Hex choice configures the three monitoring columns to display all monitored values and memory addresses in Hexadecimal The Decimal choice configures the three monitoring columns to display all monitored values and memory addresses in Decimal FED c32 P Proceed with Importing the Gateway Configuration Section 7 4 before Monitoring the Contents of the Gateway s Memory This will ensure that the data displayed corresponds to the inputs and outputs exchanged with the selected Modbus slave 7 7 Creating a New Configuration When you want to create a new configuration you can either use an existing configuration as a starting point as is the case with most of the oper
120. e RJ45 Female 9 pin SUB D Male 9 pin SUB D NOTE The inversion of the Rx and Tx signals between the gateway and the PC is shown on the 9 pin Sub D connectors as beyond this junction the RS 232 signals are replaced by the D A and D B polarizations of the RS 485 signals 7 1 2 RS 232 Link Protocol There is no need to configure the PC s COM port as ABC LUFP Config Tool uses a specific setup which replaces the one for the port being used This replacement is temporary and is cancelled as soon as ABC LUFP Config Tool stops using this serial port i e when ABC LUFP Config Tool is closed 68 1743315 03 2009 7 Using ABC LUFP Config Tool 7 2 Installing ABC LUFP Config Tool The minimum system requirements for ABC LUFP Config Tool are as follows e PTOCCS SOM ceecee iaaa Pentium 133 MHz e Free hard disk space 0008 10 MB EPA N anaE A 8 MB e Operating SYStEM cccceeeeeeeeees MS Windows 95 98 ME NT 2000 XP OW SO Mies sauendesteusdeeeasaanotecusetet senor MS Internet Explorer 4 01 SP1 The ABC LUFP Config Tool installation program can be found on the hitp www schneider electric com website ref VW3 A8 104 To install it run ABC LUFP153 exe and follow the on screen instructions You can read about how to use ABC LUFP Config Tool in a user manual entitled AnyBus Communicator User Manual which is also on the http www schneider electric com website ABC_User_Manual pdf We st
121. e parameters are shown below with the sole purpose of listing their addresses and access rights to the PKW service For more details about them see Appendix B To make it easier to read the table below is based on the FIPIO objects that correspond to the gateway s configuration and adjustment parameters LUFP1 Gateway Internal Registers Details Bits 0 to 7 LSB x Bits 8 to 15 MSB FIPIO object ES dai Add Rights Name _ COC MWip 2 c 0 0 20 O RO Modbus speed ss MWp 20 0 21 2 RO Modbus response timeout 3 RO Number of revann MWip 2 c 0 0 22 4 RO Modbus reconnection ime Saas Not used O O O O O O used MVWp 2 c 0 0 23 ERO Behavior on losso FIPO eT Ro E used ERN w MWip 2 00 0 25 Normal cycle Commands wS MWp 2c0 0 25 12 RIW Fast cyce Controls MVWip 2 c 0 0 27 Commands 1to 8 Speed Commands 9 to 16 SMVVip 2 c 0 0 28 Speed Commands 17 to 24 MWip 2 c 0 0 29 MWip 2 c 0 0 30 20 RW Speed Controls 17to24 22 RO Address of Modbusslaven 1 23 Address of Modbus slave n 2 MVVip 2 cl0 0 32 24 RO Address of Modbus slave n 3 MVWip 2 c 0 0 33 MV ip 2 ci0 0 34 28 RO AddressofModbusslaven 29 RO Address of Modbus slave n 8 Sa MWVip 2 c 0 0 35 O Not used 31 RO Not used MWp 2 c0 0 49 i Not used 59 RO Not used 56 1743315 03 2009 5 FIPIO Objects Available for Programming FIPIO obiect Bits 0 to 7 LSB Bits 8 to 15 MSB EIDIO ohier Add Rights Name
122. e sub program is used by the screen shown above to perform the following tasks e Determining the overall status of the motor starter with in case of triqgering irpped EEE if ine contactor on the motor starter is in the ON position and Lo in all other cases Using the commands generated by buttons HRT and _STOP to switch the motor starter into or out of pause mode bit 13 of the command word NOTE The pause mode should not be used for a normal application use the FOR and instead see next page e Activating the motor starter fault reset command bit 3 of the command word if the user pressed the RESET button and the fault LED is on C Once this command has been activated it is cancelled as soon as the LED goes off Lt Activating the motor starter self test command inp bit 5 of the command word if the user pressed the test button and the Tripped LED ts off the LED goes on L 132 Once the command has been activated it is cancelled as soon as 1743315 03 2009 Appendix D Sample Use under PL7 PRO Evaluating the value of the motor current given as a percentage of the IR current value unit FLA Bits 8 LSB to 13 MSB of the motor starter status word are extracted and the appropriate unit i e 3 125 FLA is then used to evaluate the current The maximum value is therefore 63 or 196 875 FLA Using the for MEy and Stor buttons exclusively to enable only one of the three
123. e the same PKE address in order to avoid generating conflicts between the values transmitted e As the write commands R W 0x57 and 0x58 return no value you will have to use the appropriate read command R W 0x52 or 0x53 if you want to check that the write operation has been performed correctly Below are further details on the most important data in this service Device Number DN DN 0 1st Modbus slave This is TeSys U motor starter n 1 or Modbus slave n 1 when profile FED C32 P is used When profile FED C32 is used it stands for the first node configured in the Sub Network element under ABC LUFP Config Tool In either case the gateway will use the true physical Modbus address every time to query the 1st slave DN 1 to 247 Physical address of the queried Modbus slave The queried slave must be one of the Modbus slaves configured under PL7 PRO profile FED C32 P or under ABC LUFP Config Tool profile FED C32 By querying one or more of the slaves episodically via the PKW service you can avoid having to configure periodic words under PL7 PRO or Modbus commands under ABC LUFP Config Tool DN 254 LUFP1 gateway With this reserved address you can read the values of certain registers on the gateway see Section 5 3 5 All the registers on the gateway are in 8 bit format and their values will be returned to bits 0 7 of word IW p 2 c 0 0 30 some of these registers cannot be written using the PKW service they a
124. e_out_025 wlW40 2 210 0 27 84 BOOL Slave_5_active Slave n 5 active 1 missing 0 bd OW0 2 240 0 26 WORD Spare_out_026 gt vlws0 2 280 0 27 45 BOOL Slave_6_ active Slave n 6 active 1 missing 0 7 Ow0 2 240 0 27 WORD Spare_out_027 7 lw0 2 240 0 27 46 BOOL Slave_7_active Slave n 7 active 1 missing 0 z Ea QW10 2 210 0 23 WORD Pkw_out_pke PKW out PKE Parameter Kennung Register address of the read or write r x E E Add oza FED C32 P Sddess Te Sumber Variables OWi0_2 2740 0 25 WORD Pkw out dn_rw FEW out DM Device Mumber MSE ArwiMN Readi write Error LSE Owi0_ 2 210 0 30 WORD PRw_out_pwe 1 FEW out PWE Parameter Wert 1st word F s OW 2400 31 WORD PkKw_ooutpwe 2 FEW out PWE Parameter Wert 2ns word AMW 2210 0 WORD Impl_status_ changes Implicit diagnostig Status of exchange management I exchanges in progress bit Field Habel 2240 01 WORD liplocomiple endo echange huphcil Uiaqgislie Esehange Feedback Lil field x A abl whe 240 02 WORD Expl status standard woie Implicit diagnostic Channel standard status bit field Em ehh 2400 3 WORD Expl_validit entr es Implicit diagnostic Input validity bit Field z 1743315 03 2009 41 4 Software Implementation of the Gateway 4 2 11 Checking the Operational Status of the Gateway After validating any changes made you must send the new configuration and adjustment parameters for profile FED C32
125. eep its existing value i e Disabled e Module Reset By default this property prevents the gateway from reinitializing itself when there is an internal operation problem Changing this option is mainly intended for laboratory type use e Physical Interface The only possibility offered by this property indicates that the physical interface of the downstream network of the gateway Modbus is a serial link 1743315 03 2009 103 7 Using ABC LUFP Config Tool e Protocol Mode This property should not be changed because it indicates the type of protocol used on the downstream network of the gateway With the LUFP1 gateway FIPIO MB Gateway must not be deselected The other possibilities available are reserved for other products from the same family as this gateway NOTE Be careful not to modify the Protocol Mode property as it would reset the entire configuration If by any chance this should happen start again with a clean basic configuration see Section 7 6 or load a previously saved configuration e Statistics This property dictates the presence or absence of the two Receive and Transmit Counters in the input memory of the gateway see below The four possibilities are e Disabled The two Receive Counter Location and Transmit Counter Location properties are ignored e Enable Receive Counter Only the Receive Counter Location property is used by the gateway e Enable Transmit Counter O
126. efined configuration Modbus connecting provided with the gateway if close Profibus connecting enough to that you wish 1 register to Transmission speed and address selecting read and 1 to write 1 register address to change or building up your own configuration 2 User of TeSys U Products LUFP1 as a FED C32 P device pee R e A 2a 2b 2c Software implementation of the gateway 4 Loss of Communication p See Chapter 4 and 5 See Chapter 4 1 4 The variables described are and Chapter 7 11 2 2 7 Reconnect time 2b reducing the number of slaves unit 10ms default value 10s vp See Chapter 7 Using ABC LUFP Config Tool Retries default value 3 install 7 2 Timeout time connect 7 1 unit 10ms default value 1s remove slaves 7 7 5 Signaling of faults and status Diagnostics 2c access to new variables See Chapter 7 p See Chapter 3 Using ABC LUFP Config Tool to access other registers than standard 704 Command and 455 Status with the same request Signaling defaults and gateway status by LEDs on the front Description of the standard FIPIO diagnostics objects See Chapter 5 4 replace a register with another for ABC LUFP Config Tool includes the instance 455 with 458 ToMlowane eae expand the size the number of monitoring of the gateway s input registers See Chapter 7 5 output and general memory areas sain i l and 7 12 3
127. egister address Preset data Checksum Value Value Data location Data length Byte swap Error check type Error check start byte O04 O06 O 0000 O 0202 O 0002 No swapping CRE 040000 Word value MSB LSB CRC16 LSB MSB Slave n Function n Word n MSB LSB Edit the values which are not grayed out one after the other There is a description of them below The nature of a frame s fields depends on the Modbus command to which it corresponds However a certain number of these fields are common to all frames whereas others are common to a number of them The description of those shown above is given on the next page as a part of the example described at the beginning of Section 7 12 2 Field in the Size in Description frame the frame Slave Address 1 byte This field is not user modifiable and its value is grayed out accordingly ABC LUFP Config Tool updates the value of this field automatically using the address of the Modbus slave corresponding to the current node NOTE This field is common to all Modbus command queries Example The value of this field is set to the address of the Modbus slave corresponding to the ATS48 node namely Ox0A Function Code 1 byte This field is not user modifiable and its value is grayed out accordingly ABC LUFP Config Tool updates the value of this field automatically using the function code of the corresponding Modbus command NOTE This field is common to all Modbus command que
128. emory object to which the command relates If receiving an exception code see Preset Data 2 bytes Data Location Address in the gateway s input data memory 0x0000 to or more 0x0033 of the datum received in the Preset Data field of the response frame for a data block NOTE As far as possible ensure that the data is located at even numbered addresses in order to align the Modbus data in 16 bit format with the IW p 2 c 0 0 inputs of the FIPIO master E g The value sent back as an echo to the command must be placed in the gateway s input data memory area We shall use the first two free bytes following the standard configuration input data i e Ox0020 0x0021 If receiving an exception code the gateway re transmits the request according to the number of retries that has been defined Then it will disconnect the slave A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION You must use even values for the Data Location field i e 0 2 4 6 etc The selection of odd data locations complicates application programming and increases the likelihood of improper Modbus values being written to or read from the slave devices Depending on the user s configuration unintended equipment operation may result Failure to follow this instruction can result in death serious injury or equipment damage Field in the Size inthe Description frame frame Data length Length of the block of input data received in t
129. entation of the Advanced Implementation of the Gateway Chapter 4 Gateway Chapter 6 FIPIO Profile standard profile FED C32 P standard profile FED C32 Modbus slaves Maximum of 6 Modbus slaves Configuration method Configuration and adjustment under Configuration performed entirely in PL PRO ABC LUFP Config tool These parameters are downloaded to The download is performed by ABC the gateway by the PLC on FIPIO LUFP Contig Tool and the configuration connection and or at the request of the 1s stored in the gateway s static memory FIPIQO master by explicit exchange Periodicity of Modbus fast cycle and 1 normal cycle for write Each Modbus command has its own exchanges commands cycle time see below Ditto for read commands Modbus command transfer Commands Pernodic mode with Periodic or apenodic communications modes immediate transmission following any each Modbus command ts configured change in the command value individually Controls Periodic mode Number of Modbus Maximum of 26 Modbus commands commands whether read or write commands Number of words Only 1 word can be read written for The number of words read written by read wntten per Modbus each command configured the same Modbus command Is defined command at the config stage but the maximum N max depends on the Modbus slave Configuration of Modbus All Modbus commands are configured Each Modbus command has its own command degraded modes in the same
130. eout time 10 ms x x 10 ms Retries y Reconnect time 10 ms z x 10 ms and Offline options for sub network Clear Freeze After sending a request to a slave if there is no response after x x 10 ms the gateway will send it again y times before writing information about the missing slave to the List of Active Slave LAS if no other Modbus Command has succeeded for this slave If despite the y Retries there is no answer from the slave the input Data sent to the FIPIO master Read requests is reset to O if Clear or retains its current value if Freeze but only for the data received from the missing slave The gateway will try to reconnect the missing slave by communicating with it again every z x 10 ms In the event of a slave failure No response is sent to the gateway and the state of the slave is undetermined This case must be managed in the PLC application 94 1743315 03 2009 7 Using ABC LUFP Config Tool 7 12 2 2 Configuring the Query ere Select the Query element from the Modbus command The Alphabetic Categorized various elements in the configuration of the query for this command are shown opposite The values displayed Offline options for fieldbus Clear correspond to the default values for any new command Reconnect time 10ms 1000 Fetries 3 These elements allow you to configure how the whole command Timeout time 10ms 100 is managed including how degraded modes are managed Trigger
131. eriodic communications inputs outouts are configured so that the gateway input output configuration see above is identical to the one in the standard configuration e The aperiodic communications corresponding to the gateway s PKW service must be active whether the gateway is configured according to profile FED C32 in PL7 PRO or profile FED C32 P in ABC LUFP Config Tool e The list of active slaves LAS must also be active on the gateway e Validating and Saving the FIPIO Network Configuration c cccccccccceeeeeeeeeeseeeeaeeeeees Section 4 2 9 These operations have no equivalent under ABC LUFP Config Tool as ABC LUFP Config Tool can configure only one gateway at a time The operations you can perform on a configuration are Open and Save Under PL7 PRO by contrast you must always validate FED C32 P profile configuration and setting e Assigning Symbols to the Gateway s FIPIO Objects oc ccccccceeeceeeeeeeeeeseeeesaeeens Section 4 2 10 The FIPIO objects remain the same except for the 30 configuration parameters KW p 2 c 0 0 to KW p 2 c 0 0 29 and the 30 adjustment parameters MW p 2 c 0 0 20 to KW p 2 c 0 0 49 which disappear as their function is now taken over by ABC LUFP Config Tool e Checking the Operational Status of the Gateway cc ccccceceesseeeeeseeeeeseeeeeneeeeenaes Section 4 2 11 If you want to use the example LUFP1_FEDC32_Example cfg run ABC LU
132. eriodic control words Periodic command words Fol Wip 2 c 0 0 Periodic control word n 1 YOWip 2 c 0 0 Periodic command word n 1 YolW p 2 c 0 0 1 Periodic control word n 2 YoOW p 2 c 0 0 1 Periodic command word n 2 YolWip2 c 0 0 25 Penodic control word n 26 1 WOW p 2 c 0 0 25 Periodic command word n 26 1 olWip 2 c 0 0 26 Reserved word YOWip 2 c 0 0 26 Reserved word YOWip 2c 0 027 Reserved word 1 You can only configure a total of 26 periodic words If you configure 20 periodic control words for example you can then only configure a maximum of 6 periodic command words Periodic words control and command are organized in increasing order of the Modbus slaves from n 1 to n 8 Within this schema the words assigned to each slave are in turn organized in increasing order Example In the next example the gateway is configured to control and command 4 Modbus slaves This example exploits the fact that the number of words is not necessarily the same for each slave 46 1743315 03 2009 5 FIPIO Objects Available for Programming Description example YolWip 2 c 0 0 YolWip 2 c 0 0 1 YolWip 2 c 0 0 2 7olWip 2 c 0 0 3 Vol Wip 2 c 0 0 4 YolWip 2 c 0 0 5 FIPIO object YoOW p 2 c 0 0 YoOW p 2 c 0 0 1 OW p 2 c 0 0 2 OW p 2 c 0 0 3 WOW p 2 c 0 0 4 OW p 2 c 0 0 5 Yo OQW p 2 c 0 0 6 WOW p 2 c 0 0 7 Description example Slave n 2 Command n 1 Slave n 2 Command n 2 Slave n 2 Command n 3 Sl
133. es Configuration Configuration FW Sub Network 2j Alphabetic Categorized Alphabetic Categorized p r TeSys Un T TeSys U n 2 Value 0x02 16 B L Read Holding Registers Query E2 Response ogi Value Uf Slave Address Definition of a Constant Byte Value When Uf Function code transmitting the Byte this Value will be sent EPEE 7 Ete count When receiving a Byte ABC will perform a check Sa ey Dat p aginst this Value If the received Byte does not Alphabetic Categorized match it will be discarded Ef Checksum Value 0x10 Byte count 07 02 2006 10 09 Config Line B 4 3 Change the location of the Modbus data received in the gateway memory As the number of bytes read see previous step has increased from 2 to 16 the Modbus data received must be placed at a different location in the gateway memory If you are unsure how much of the gateway s memory is currently in use select Sub Network and choose Monitor from the Sub Network menu The following window appears allowing you to see how much of the gateway s memory is occupied 1743315 03 2009 19 7 Using ABC LUFP Config Tool arc Sub network Monitor File Columns Pile ES Select All Deselect All Read Holding Rea Preset Multiple Regs J lF TeSys U n l Select All Deselect All Read Holding Rea Preset Multiple Regs ln Area 16 bytes 512 TeSys U
134. es i e the equivalent of 10 Modbus commands This reserve is therefore enough for the addition of any single Modbus command to each of the TeSys U motor starters as this requires 16 Modbus queries and responses 1 query and 1 response for each of the 8 motor starters 1743315 03 2009 129 Appendix D Sample Use under PL7 PRO A practical example can be found on the http www schneider electric com website The first file LUFP1_FEDC32 Example cfg is an ABC LUFP Config Tool file its content corresponds to the system architecture described in Section 4 1 1 The gateway must therefore be configured using profile under PL7 PRO see Chapter 6 This ABC LUFP Config Tool file corresponds to the standard configuration used in this guide The second file lufp1 exemple du tutorial fedc32p tsx57252 stx is a PL7 PRO file and provides the example for a TSX Premium PLC with a TSX 57252 processor where the LUFP1 is configured under PL7 The third file lufp1_tutorial_en_fedc32p_tsx57353 stx is a PL7 PRO file and provides the example for a TSX Premium PLC with a TSX 57353 processor where the LUFP1 is configured under PL7 The fourth file lufp1_tutorial_en_fedc32_tsx57252 stx is a PL7 PRO file and provides the example for a TSX Premium PLC with a TSX 57252 processor where the LUFP1 is configured under ABC LUFP Config Tool The configuration LUFP1 FED C32 Exemple cfg needs to be loaded onto the LUFP1 The
135. esponding Modbus frames Here is a mapping example for a complete frame including the start and end of frame fields shown above based on the Read Holding Registers Command 0x03 section Elements under ABC Modbus frame fields Size LUFP Contig Tool Modbus 1 byte query 1 byte otarting Register Address 2 bytes Number of Registers Number of words MSB LSB 2 bytes 2 bytes Modbus 1 byte response 1 byte 1 byte 2 bytes 2 bytes 2 bytes Section 7 12 also shows a few examples of mapping between the elements displayed in ABC LUFP Config Tool and the corresponding Modbus frame fields 136 1743315 03 2009 Appendix E Modbus Commands NOTE Here the notions of input and output and assimilated concepts are meaningless in as far all Modbus commands have access to the entire memory of the Modbus slave We continue to use these terms however in order to conform to the terminology of the standard Modbus documentation Read Holding Registers Command 0x03 Frame Value or properties Starting Address MSB Starting Address LSB Number of points Address of the 1st output internal register Number of output internal registers Number of points LSB Response Byte count Number of data bytes Number of output intemal registers x 2 Data frst register MSB Byte swap No swapping or Swap 2 bytes a Data length Value of the Byte count field Data location Address
136. etanis Po 2 words 1743315 03 2009 45 5 FIPIO Objects Available for Programming The input assigned to a motor starter gives the value of the status register for that motor starter address 704 in the motor starter memory The gateway handles the periodic Modbus communications with the motor starter in order to update the value of the FIPIO object that corresponds to the input The output value assigned to a motor starter is transmitted to that motor starter in order to update the value of its command register address 455 in the motor starter memory The gateway handles the periodic Modbus communications with the motor starter in order to transmit the value of the FIPIO object that corresponds to the output Transmission is periodic but writing a new value means that the gateway will transmit it as soon as possible NOTE If you delete any motor starters from the configuration see Section 4 2 6 you will need to adapt the two tables above accordingly If for example you delete 3 motor starters it has to be the last 3 whichever Modbus addresses are used the statuses and commands for motor starters and will become the words Not used 5 1 2 Configuration under PL7 PRO with Profile FED C32 P The actual contents of the periodic command and control words described below will depend entirely on the values you entered for the gateway s configuration and adjustment parameters These parameters are described in Chapter 1 P
137. eway s Modbus slaves cannot be configured with PL7 PRO the configuration and adjustment of the LUFP1 gateway are limited to the gateway and to the management of generic Modbus exchanges 4 1 3 Modbus Cycle Time The LUFP1 gateway s default configuration sets a cycle time of 300 ms on Modbus commands for each of the 8 TeSys U motor starters 4 1 4 Managing Degraded Modes With the Gateway Default Configuration The degraded mode management of the LUFP1 gateway standard configuration is described below In this instance we are using a Premium PLC with a FIPIO link built into the processor card Premium PLC Disconnection Failure of the Disconnection of Observed behavior CPU ston or failure of the upstream LUFPH aatews the downstream p FIPIO network El y Modbus network hiia Depending on the configuration of the TeSys U motor starters 1 Outputs Hold E refreshing inputs 1 The desired behavior with E to outputs should be directly configured on each TeSys U motor starter 2 Use the List of Active Slaves LAS Service described in Section 5 2 3 Use the FIPIO Diagnostic Objects Section 5 4 to detect the underlying event Please refer to Appendix B if you would like to change the way that degraded modes for all Modbus commands are managed 4 1 4 1 Description of the Gateway Degraded Mode Options MW p 2 c 0 0 23 bits 0 7 Effects on Modbus exchanges This parameter affects the data sent to all Modbus slaves
138. f periodic control words for slaves n 1 to n 4 Bits 0 3 Nbr of periodic control words for slave n 1 TeSys U 3 13107 Qx3333 Bits 4 7 Nbr of periodic control words for slave n 2 TeSys U 3 Bits 8 11 Nbr of periodic control words for slave n 3 ATS48 3 Bits 12 15 Nbr of periodic control words for slave n 4 ATS48 3 Number of periodic control words for slaves n 5 to n 8 Bits 0 3 Nbr of periodic control words for slave n 5 ATW58 4 Ox0004 Bits 4 7 Nbr of periodic control words for slave n 6 0 Bits 8 11 Nbr of periodic control words for slave n 0 Bits 12 15 Nbr of periodic control words for slave n8 0 f00 Ox02BC Address of periodic word n 2 2nd prd command word of slave n 1 TeSys U Address of periodic word n 3 1st prd command word of slave n 2 TeSys U Address of periodic word n 5 1st prd command word of slave n 3 ATS48 Address of periodic word n 6 1st prd command word of slave n 4 ATS48 400 Ox0190 Address of penodic word n 7 ist prd command word of slave n 5 ATV 5a 401 0x0191 Address of periodic word n 8 2nd prd command word of slave n 5 ATW58 402 Ox0192 Address of penodic word n 9 3rd prd command word of slave n 5 ATV 5a Address of periodic word n 10 1st prd control word of slave n 1 TeSys U 452 Ox01C4 Address of periodic word n 11 2nd prd control word of slave n 1 TeSys U 461 Ox01CD Address of periodic word n 12 3rd prd control wor
139. f the MSB word in the 32 bit word Value not used Value to be written 2nd word a RAW 0x58 Value of the 2nd 16 bit word a aad or of the LSB word in the 32 bit word RAN xes gt Value not used Parameter paN xe one Wert Indexed periodic variables PAW service RESPONSE Address of the slave responding to the command Device DN 0 1st Modbus slave Number DN 1 to 247 Address of the Queried Modbus slave DN 254 LUFP1 gateway Read write command response code a folW p 2 c 0 0 29 l RAWIN 0x00 Reset command and response Read RWIN Ox4E Command runtime error RAWIN Write RAWIN 0x52 Read a 16 bit word OK Error RAMIN 0x53 Read 2 16 bit words OK RWIN 0x57 Write a 16 bit word OK RWIN 0x58 Write 2 16 bit words OK Value read 1st word RWIN 0x4E gt Specific emor code see description MWIN 0x52 gt Value of the 16 bit word Sal Wip 2 ci0 0 30 s AE RUIN 0 53 Value of the 1st 16 bit word PWE Parameter or of the MSB word in the 32 bit word Wert RWIN Oxee gt Value not used 0x0000 Value read 2nd word o RVWVIN 0x53 Value of the 2nd 16 bit word ae or of the LSB word in the 32 bit word RWIN Oxs gt Value not used 0x0000 50 1743315 03 2009 5 FIPIO Objects Available for Programming 5 3 3 Using the Indexed Periodic Variables PKW Service To perform a complete transaction the FIPIO master must first upd
140. fae a fee a g OFFLINE x Q 1 5 5 oR Z 32 1743315 03 2009 4 Software Implementation of the Gateway 4 2 3 Configuring and Adjusting the LUFP1 Gateway 2 FIPIO Configuration lolxi Once the gateway has been added to the TSX 57353 5 1 Bus ength La 15km Devices configured 1 FIPIO network see opposite double click 1 Logical address Communicator Base module Extension module the basic module SS mama Takin to edit its configuration and adjustment parameters In the window that appears enter the values given on the next two pages These correspond to the configuration described in Section 4 1 1 Privileged terminal NOTE Make sure you configure the Bus Length correctly see Section 2 6 2 hip T REl FED C32 P FIPIO2 MODULE 0 pM FED C32 P FIPIO2 MODULE O Con igurstion Adjust C n ligara io Designation EATEMDED DEY CMPCT 32w RA Channel 0 Channel 0 Task mast z Oelauk contigui orn Default parameters Parameters Sgmbol Modbus speed format MPT WAZ 20 0 21 Miodbus_timecut_retries MPT WHO A002 Modbus_recornect 10 mw 0 220 023 Modbus_fip_ failure Blt EW eMOt Adcress_epsiio_aord_i hl WwiO 2 240 0 24 Lufpt adjust spare 24 0 ACW NESS Addesa epei mod iE mM w0 2 240 0 25 Scan period fast normal 25630 AKW idah Addess cicit wod_ i3 MWiO22000 26 Scan period fast normal 25630 K Wy fu 01 Mbo ema slae E TG EWD ZIIO Mbo mant
141. fault register address 452 is read on TeSys U motor starter n 5 address 5 The result of the read operation is Ox0002 presence of a magnetic fault only Only the 1st PWE word in the response is used the 2nd word is forced to 0x0000 by the gateway PKW Command PAW Response Output 2QWip 2 c 0 0 28 IWip 2 ci0 0 28 0x01C4 PKE 452 DN 0x05 DN 0x05 RIW 0x52 read oe RANIN 0x52 read OK QWip 2 c 0 0 30 Gx0000 PWE Oxecse e6IWip 2 c 0 0 30 ee QWip 2 ci0 0 31 Ox0000 Oxeees lWip 2 c10 0 31 Ox000C 0x0000 not used oO p cV0 0 29 e Sample writing of the value of a motor starter register 16 bit word The 2nd command register address 705 is written to TeSys U motor starter n 7 address 7 with the value 0x0006 clear statistics reset thermal memory The result of the write operation is a simple acknowledgement as no value is returned in the PWE of the response instead of inserting a value the gateway forces both words of the PWE to 0x0000 PKW Command PKW Response PKW Command PAW Response Output QWip 2 c 0 0 28 6IWip 2 c D 0 28 PKE 705 SEM anaoa aaaea DN 0K07 ae DN 0x07 PoC p 2 00 0 29 alani rad i RAN Dx5T write rol 2 c 0 0 29 0x0757 Ryn 0x57 write OK QWip 2 c 0 0 30 PWE 0x0002 IWip 2 c10 0 30 ox0000 PWE 0x0000 not used OWip 2 ci0 0 31 0x000 Oxesee olWip 2 c 0 0 31 Oxoa 0x0000 not used e Sample reading of the value of two consecu
142. gnal generated by this same Modbus slave The diagram below shows the flows of inputs and outputs exchanged between a FIPIO master and Modbus RTU slaves via the LUFP1 gateway FIPIO Master how a A f I min I i or f i ai Pi 1 J a I A P Ewell INPUTS LUFP1 iil ii e f Gateway ee pe ee i ENNEN oth OUTPUTS 5 x TeSys U OUTPUTS Altistart 48 Modbus RTU Slaves NOTE For more explanation about specific terms refer to the Glossary at the end of this guide 8 1743315 03 2009 1 Introduction 1 4 Introduction to the Communication System Architecture Each LUFP1 FIPIO Modbus RTU gateway allows one PLC on the FIPIO network to command control and configure up to 8 Modbus slaves If there are more than 8 Modbus slaves you will need to use an appropriate number of LUFP1 gateways Likewise if the gateway needs to exchange more than 26 words with the Modbus slaves sum of the read and write operations the Modbus slaves will have to be shared over more than one gateway FIPIO Master l Total of 16 motor starters Upstream network FIPIO TeSys U model Downstream network no Modbus LUFP1 Gateway no 1 BA J T Downstream i k re ri T network no ATS48 Modbus eye LUFP1 Gateway no 2 LUFP1 Gateway no 3 Downstream network no 3 Modbus 1743315 03 2009 9 1 Introduction The LU
143. hat you can use them in any configuration To save the configuration of a Modbus slave select the node it corresponds to then choose Save Node from the menu with the same name as the selected node A dialog box will then appear asking you to save the configuration export in XML format 1743315 03 2009 19 7 Using ABC LUFP Config Tool To insert a node using the XML file containing a Modbus slave configuration as a template use one of the two methods described below a Select Sub Network then choose Load Node from the Sub Network menu A dialog box asks you to choose a file containing a Modbus slave configuration import in XML format A new node is added after all the other configured nodes Its name and its whole configuration are identical to those of the Modbus slave as configured when last saved b Select one of the Sub Network nodes then choose Insert from File from the menu with the same name as the selected node A new node is added just before the selected node Its name and its whole configuration are identical to those of the Modbus slave as configured when last saved You will then need to change 1 the name of the node 2 the address of the corresponding Modbus slave and 3 the location of the data exchanged between the gateway memory and the Modbus slave All these operations are described in Section 7 11 and Section 7 12 A WARNING DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY
144. he Preset Data field of the response frame It is expressed in number of bytes E g The value of the Data length field must be set to 2 Byte swap Identical to the query s Byte swap field E g We will also be using the No swapping value for the same reasons as with the query Checksum 2 bytes Error check type Identical to the query s Error check type field Error check start byte Identical to the query s Error check start byte field However these two fields are not user modifiable and their values are grayed out accordingly ABC LUFP Config Tool updates the values of these fields automatically using the values in the query s Error check type and Error check start byte fields 1743315 03 2009 101 7 Using ABC LUFP Config Tool 7 13 Configuring the General Characteristics of the Gateway This operation relates to the gateway s general characteristics Fieldbus to Sub Network elements whereas the previous F T5 Statni sections described the configuration of the Modbus slaves ala Anbu nil elements located under the Sub Network element 4B Fieldbus speciic J yt Fieldbus specific The Fieldbus element describes the upstream network i e the yet Fieldbus specific FIPIO network in the case of the LUFP1 gateway i ioe aL specific ndi rit The ABC LUFP and Sub Network elements describe the A sub detork downstream
145. he gateway input words informs the FIPIO master of the presence or absence of each Modbus slave The input word in question is the LAS service The diagram illustrates the distribution of several slaves throughout three Modbus RTU downstream networks each one being interfaced with the FIPIO master PLC using a LUFP1 gateway 1 5 Principle of LUFP1 Gateway Configuration and Operation The gateway is part of a family of products referred to as LUFP designed to meet generic needs for connection between two networks using different communication protocols The software elements common to all these gateways a configuration tool known as ABC LUFP Config Tool and the embedded Modbus software cohabit with the specific features of the network upstream of each of them FIPIO in the case of the LUFP1 gateway generically This is one of the reasons why the interfacing between the upstream network and the Modbus network is carried out entirely via the gateway s physical memory In the case of the LUFP1 gateway however using a standard FIPIO profile FED C32 P in PL7 PRO makes it easier to configure the gateway dispensing with the need to use ABC LUFP Config Tool Exchanges between the gateway acting as the Modbus master and the Modbus slaves are configured bythe gateway using the configuration and adjustment parameters of profile FED C32 P entered by the user in PL7 PRO Thanks to this configuration the gateway creates links between part
146. he search for an ABC LUFP gateway 7 4 Importing the Gateway Configuration Before you can make any changes to the gateway configuration you will first need to import its current configuration If you already have this configuration on your hard disk all you will need to do is open the file corresponding to this configuration Check that the gateway has a valid configuration and that it is working properly i e that LED Gateway is flashing green In ABC LUFP Config Tool choose Upload configuration from ABC LUFP from the File menu or click the S button in the ABC LUFP Config Tool toolbar The Upload window opens containing a progress bar that tracks the advance of the gateway configuration uploading process The window closes once the upload is completed This step is particularly important if you want to read details about the current contents of the gateway configuration rather than about a configuration in a cfg file on a PC You can then use this configuration as a template for any changes you wish to make subsequently thus avoiding having to create one from scratch and reducing the potential risk of error NOTE e Save this configuration to your hard disk so that it is always available This will allow you to reconfigure the gateway cleanly should the configuration become invalid FED c32 P You can use the Upload command to check the configuration and settings that you made under PL7 PRO
147. he value of each of these registers remains the same until either a new error is signaled for the slave concerned or you reset it to zero using the PKW service the gateway only accepts write commands where PWE 0x0000 1743315 03 2009 57 5 FIPIO Objects Available for Programming The value of the error code is 0x04 if the corresponding slave is declared absent by the gateway after the Modbus periodic commands for the slave have been retransmitted with timeouts NOTE The LAS service is updated at the same time as registers 300 to 307 when this type of event occurs see Section 5 2 You can therefore use the various bits in the periodic word of this service lIW p 2 c 0 0 27 to trigger a read operation on the internal register assigned to the slave declared absent by the LAS service 5 4 FIPIO Diagnostic Objects We strongly recommend that you adhere to the following five rules while using the other FIPIO objects associated with the LUFP1 gateway Check system words SW128 to SW135 Each bit in this group of words signals the status of a device connected to the FIPIO bus addresses 0 to 127 see Section 5 4 1 for a detailed description of these system words Check the implicit channel fault bit l p 2 c 0 0 ERR that monitors the connection point This bit normally at 0 switches to 1 in the event of a fault or break in the FIPIO connection lf so none of the ol W p 2 c 0 0 inputs will be valid
148. heck that these changes have been integrated into the configuration choose the Monitor command again in the Sub Network menu aec Sub network Monitor _ Ox File Columns TeSys U n t TeS U nS TeS U nb TeSys Un TeSue U ne TeSys U n TeSys U n2 TeSys U na 2 Select All Deselect All Select All Deselect All Select All Deselect All Select All Deselect Al Select All Deselect All Select All Deselect All Select All Deselect All Select All Deselect All Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs General Area 0 bytes 376 In Area 32 bytes 512 FF Qt Are 16 bytes 512 o0 OO O00 O400 Mha iy aos7 TeSys U n t TeSys U ne TeSys U n 0451 0074 SelectAll Deselect All SelectAll DeselectAll SelectAll Des O46C ate Read Holding Regi CIGAR A Read Hold Ae OOLE Preset Multiple Regs Preset Multiple Regs Preset Multip O4BD 00E O4D8 nins nara O1e2 050E O13F 0529 015C 0544 0179 n Area d2 bytes 512 0055F 0196 057A 0iB3 0595 01D0 OSBO IED ooe ECE l E Response B Huer B Collision ge Trigger or Statusbytes Reserved 4 Download this configuration to the ga
149. his group of words signals the status of a device connected to the FIPIO bus addresses 0 to 127 These bits are normally at 1 but switch to O in the event of a fault on the connection point faulty FIPIO connection point For a non configured connection point the corresponding bit is always at 1 The table below maps the correspondences between these system word bits and the addresses on the FIPIO bus usw of rf af at sf sf sf rf sf of wl mf wf wl wf is spoof arf eel sa sa ee s6 sr so se eo f or oa oe 112 113 5 4 2 Channel Status MW p 2 c 0 0 2 Each of the channel status bits corresponds to a fault generated either by the gateway or by the PLC A fault is present if the corresponding bit is at 1 The channel status is updated by the explicit command READ STS CH p 2 c 0 0 Bits Meaning X0 X3 Reserved bits at 0 Internal fault The gateway is considered absent It may be out of supply or absent from the FIPIO network If it was configured using the standard profile FED C32 it may be that an unauthorized memory address was used under Channel status ABC LUFP Config Tool see the wamings in sections 7 10 3 and 7 10 4 managed Hardware configuration fault The standard FIPIO profile selected for confiqunng by the gateway the gateway under PL7 PRO was not the nght one This fault ts signaled when pro le FED C32 ts used in place of profile FED C32 P and vice versa Communication fault with the PLC x7 Appli
150. i oh ies EH Db kteri maire EJ Obpes sate EiK Con manta PB FE pred tints Eg es Er c Tibksdanimiion E Dizgsis tipio FY Enos somes kripl E5 Fim upi EH D Dosser E Erara depka bation EchangesFarserale LUFFI F Commande Suila F Sarica PH Disgnostics FIFIO 1743315 03 2009 Appendix D Sample Use under PL7 PRO This description remains concise because it is only meant to describe the overall operation of the program and the way to use the related screen If you need a greater degree of detail don t hesitate to review the actual content of the example under PL7 PRO The source code contains numerous remarks to help you understand how it works Each program file starts with a short description of the way it operates and each line includes a comment Each variable used has a symbol whose name describes its use Use the keyboard shortcuts Ctrl E and Ctrl F to display the variables by address e g MW100 or by symbol e g Pkw_checked_boxes_dn Three animation tables icon EJ have been created FIPIO Diagnostics lufp1_inputs outputs and lufp1_Pkw However the operating screens provided are more than sufficient to present the application data used throughout thisexample Displaying LUFP1 Gateway Inputs Outputs The LUFP1 gateway exchanges operating screen comprises two separate panes e Hexadecimal display of gateway input data IW 0 2 2 0 0 to IW 0 2 2 0 0 31
151. ial state You can then continue with the configuration you were transferring and make any corrections which may be necessary 7 5 1 Transferring the Internal Configuration Profile FED C32 P FED c32 P When using the standard profile FED C32 P to set up the gateway under PL7 PRO never use the command Download configuration to ABC LUFP to transfer a configuration to the gateway The only exception to this rule involves the Hardware configuration fault see Section 4 2 11 In this case you should perform the following actions 1 ae e Use the New command of the File menu af gt e Set the following properties for the ABC LUFP Sic betel Disabled element Mia o Control Status Word Disabled a gue sit f oboe Hode FIFID ME Gateway o Module Reset Disabled Recea Countar Location Ox0002 o Protocol Mode FIPIO MB Chahshce Disabled Gateway Transmit Counter Locstion UsxU0G o Statistics Disabled e Set the following properties for the Fieldbus element Contigwatior O O o Fieldbus Type fz Alphabetic Categorized o Profile vo e Do not add any node nor Modbus command to the Sub Network element e Download this blank configuration into the gateway 7 6 Monitoring the Contents of the Gateway s Memory One of the main commands that you will need to use when setting up the gateway is the command allowing you to read the contents of the gateway s memory and to display it in a window de
152. ied by the FIPIO master This is the communication mode used systematically for all Modbus commands generated by the periodic command words configured by the user under PL7 PRO Update time This element is only used by the gateway if Update mode is set to Cyclically or Change 10ms of state or Cyclically In this case it specifies the query s transmission period on the Modbus network Default value 10ms x 100 1s 96 1743315 03 2009 7 Using ABC LUFP Config Tool For example with the ATS48 we will be using the configuration shown opposite The most notable points of this configuration are Alphabetic Categorized Offline options for fieldbus Clear e The data are reset when either network is disconnected Reconnect time 10ms 1000 e 3 retransmissions with a 100 ms timeout Hetries 3 Timeout time 10ms 10 e Periodic communications with a cycle time of 300 ms Trigger byte address OwOSFF Update mode Cyclically Update time 10ms 30 7 12 2 3 Configuring the Response Alphabetis Categorized Select the Response element from the Modbus command The various configuration elements of the response for this command SAOS fer Serie Wstelis Lear are shown opposite The values displayed are the default values Trigger byte Disabled for any new command Trigger byte address 0s05FF These elements allow you to configure just one command management feature described below The elements are described i
153. in off line mode all of Cther Error the values are replaced by the word Unknown to show that they cannot be read off the gateway The Update button then becomes inaccessible Update NOTE The Sub Network Status window may be useful to detect problems on the Modbus sub network So if the number of retransmission errors increases upon using the Update button this denotes the absence of one or more slaves Modbus cabling or speed problems or invalid Commands Since retransmission errors tend to lower the general performances of the Modbus communications you should undertake actions to prevent these retransmission errors from increasing 1743315 03 2009 105 7 Using ABC LUFP Config Tool When the Sub Network element is selected you have access to all of the options allowing you to configure the gateway s communication protocol format on the Modbus network The various settings you can make are described below All of the Modbus slaves present must support these settings and must be configured appropriately Bitrate bits s The gateway supports a limited number of communication speeds Choose the one that suits your Modbus network Data bits 8 bits required Parity Choose the parity according to the format chosen for communications on your Modbus network Physical standard RS485 required PKW Broadcast Interval 10ms When the PKW service is used in broadcast mode DN
154. ing configuration and diagnostic device of a Profibus DP network A term referring to the upstream Profibus DP network in ABC LUFP Config Tool Profibus FMS messaging system that defines the objects and application services applicable to these objects By extension the Profibus version or protocol dedicated to complex and advanced communication tasks at the cell level This protocol is not supported by the LUFP7 gateway Electronic equipment database also called GSD file This term designates the format of the files gsd extension that are used by a Profibus master configuration and adjustment tool to configure their exchanges according to that same protocol An old term referring to the two registers used for initialising and carrying out diagnostics of the LUFP7 gateway This term has been replaced by the expression Control Status Byte Longitudinal Redundancy Check Least significant byte in a 16 bit word 1743315 03 2009 MSB Node PA PDP PI PNO PPO Profibus PSU Sub Network TSDI TSDR XML Glossary Most significant byte in a 16 bit word A term referring to the connection point of a Modbus slave under ABC LUFP Config Tool Profibus version or protocol dedicated to process automation This protocol is not supported by the LUFP7 gateway Profibus DP see DP above Profibus International This term designates the international organization for users of the Profibus protoc
155. ion and NEMAICS 1 1 Maintenance of Solid State Control latest edition Safety Standards for Construction and Guide for Selection NEMA ICS 7 1 Installation and Operation of Adjustable Speed Drive Systems _ latest edition Modbus User Guide TSX DG MDB E Modicon Modbus Protocol Reference Guide PI MBUS 300 Rev J You can download these technical publications and other technical information from our website at www schneider electric com User Comments We welcome your comments about this document You can reach us by e mail at techcomm schneider electric com 1743315 03 2009 5 1 Introduction 1 1 Introduction to the User s Manual The LUFP1 Gateway User s Manual is organised into a series of chapters which can in turn be grouped together into three parts as follows Part I Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Part Il Chapter 6 Chapter 7 Part III Appendix A Appendix B Appendix C Appendix D Appendix E covers all the elements required in order to set up the gateway and operate it on a FIPIO network describes the gateway the user manual that comes with it and the terms used in it gives an introduction to the gateway and describes all the items used when setting it up both inside the gateway coding wheels and outside cables and connectors describes the six LEDs on the front of the gateway describes the successive steps for setting the gateway up
156. ion and adjustment parameters cannot be modified after the initial setup of the gateway using the PLC See the tables in section 5 3 5 and in Appendix B 60 1743315 03 2009 5 FIPIO Objects Available for Programming 5 6 1 Configuration Parameters KW p 2 c 0 0 to KW p 2 c 0 0 29 The 30 configuration parameters of profile FED C32 P are transmitted to the gateway implicitly when it connects up to the FIPIO network When you modify them in ONLINE mode under PL7 PRO and save the changes communications in channel 0 are paused while the new settings are sent to the gateway PLC Processor LUFP1 Gateway Configuration parameters IMPLICIT exchange Configuration parameters KW p 2 c 0 0 gt 0 0 29 on connection active values These parameters are described in Appendix B 5 6 2 Adjustment Parameters MW p 2 c 0 0 20 to MW p 2 c 0 0 49 The 30 adjustment parameters of profile FED C32 P are transmitted to the gateway implicitly when it connects up to the FIPIO network When you modify them in ONLINE mode under PL7 PRO and save the changes a command is generated to send the parameters to the gateway You can also use the following functions to perform explicit exchanges between the FIPIO PLC and the LUFP1 gateway e READ PARAM CH p 2 c 0 0 Read the adjustment parameters on the gateway e WRITE PARAM CH p 2 c 0 0 Write adjustment parameters to the gateway e SAVE_PARAM CH p 2 c 0 0
157. ions as for the standard configuration of 8 TeSys U devices Configuration under ABC LUFP Config Tool profile FED C32 The order of the slaves in the LAS word corresponds to the declaration order for the various Nodes in the Sub Network element as they appear in ABCLUFP Config Tool As in the two previous cases if fewer than 8 Modbus slaves are used then one or more slaves starting with the 8th and working back towards the 1st will be absent from the list 5 3 Indexed Periodic Variables PKW Service 5 3 1 Introduction to the PKW Service With this service you can configure and adjust any Modbus slave it offers read and write access to any parameter of a slave via the periodic inputs and outputs of LUFP1 gateway It can also be used for access to certain reserved registers on the LUFP1 gateway The PKW service is aperiodic on the Modbus network a command is transmitted whenever one of the QW outputs associated with the service changes and periodic on the FIPIO network implicit exchanges You can use the service to perform the following tasks e Retrieving or updating the parameters on some or all of the Modbus slaves e Reading the value of one or more data for which a low refresh rate is sufficient e Reading the value of a data item when an event is signaled by a periodic variable PLC Processor Indexed penodic vanables PKW Management of Conimand Modbus communications 2OWip 2 c 0 0 26 gt 0 0 3
158. ip 2 c 0 0 1 Periodic communications YolWip 2 c 0 0 3 Control monitoring of 1Wip 2 c 0 0 4 TeSys U motor starters IWip 2 c 0 0 5 ol Wip 2 c 0 0 6 olWip 2 cl O 0 7 Periodic communications Free locations List of active slaves LAS service Aperiodic communications Indexed periodic variables YolWip 2 c 0 0 2 YolWip 2 c 0 0 8 41Wip 2 c 0 0 25 Ce o OO O Whp 2 c10 0 26 YolWip 2 c 0 0 27 YolWip 2 c 0 0 26 IWip 2 c 0 0 29 UN Address of the Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Value of status register for motor starter Not used 13 words Reserved 1 word List of active Modbus slaves FKE Address of the written read datum RWIN Read responding slave Write OK Error valWip 2 c 0 0 30 YolWip 2 c 0 0 31 PWE Value written read 1st word PWE Value written read 2nd word PKW service RESPONSE Likewise the PLC outputs correspond to the gateway outputs as follows pT QWip 2 c10 0 QW p 2 c 0 0 1 Periodic communications QW p 2 c 0 0 2 Z Yo QW p 2 cl0 0 3 Command of QW p 2 c 0 0 4 TeSys U motor starters QW p 2 c 0 0 5 oQW p c 0 0 6 YoQW p 2 cl0 0 7 SANE Sinaia Description Bit 8 Bit fo
159. ircuits nor the electronic components as this may damage the device Failure to follow this instruction can result in injury or equipment damage This task is limited to configuring the gateway s FIPIO address as the communication speed on the FIPIO network is fixed at 1 Mbit s The two coding wheels used for configuring the gateway s address are hidden behind the gateway cover see illustration in chapter 2 2 To remove this cover insert the end of a small flat screwdriver between the top of the hood and the gateway box and pull it out 2 7 1 Encoding the Gateway Address The LUFP1 gateway is identified on the Profibus DP bus by its address ranging from 1 to 99 On FIPIO address 0 is reserved for the PLC that manages the bus Address 63 is reserved for the programming or operation terminal All the other addresses up to physical address 127 can be used 2 3 7 Units R O The gateway s FIPIO address depends on the position of the two coding 6 O wheels represented on the left in their factory setting positions default S L address 2 23 This address is the sum of the decimal values given by the angular N 7 positions of the bottom coding wheel tens and the top coding wheel Tens f on units 6 O 9 L 1743315 03 2009 23 2 Hardware Implementation of the LUFP1 Gateway Any change to the gateway s address shall be taken into account only once it is powered on again NOTE e No two devices on the same FIPI
160. irs of conductors red or orange and green or black In lengths of 100 200 or 500 m This cable is used to connect a tap box to a distant connector NOTE When calculating the length of a FIPIO segment remember to multiply the length of the cable by two The illustration opposite shows the wiring in the TSX FP ACC 12 connector when connecting up to the main cable two sections of TSX FP CAeee cable Replace one of the two cables by one of the two lineterminations supplied in the TSX FP ACC 7 kit if the connector is at the end of an electrical segment Replace the two cables A and B by a TSX FP CCees cable in A if the connection point is a derivation rather than a daisy chain link if so the orange wire corresponds to the signal of the second pair of conductors and the black wire corresponds to the signal We recommend commissioning the devices in sequence one after the other For a detailed description of the initial commissioning of an application on FIPIO see the FIPIO Bus FIPWAY Network Reference Manual 22 1743315 03 2009 2 Hardware Implementation of the LUFP1 Gateway 2 Configuring the FIPIO Communication Features This configuration must be carried out when the gateway is powered off A CAUTION OPENING LUFP COVER WITH POWER ON The power supply of the gateway must be turned off before opening the cover Once the cover has been removed make sure you touch neither the electrical c
161. is window In Area 16 bytes and Out Area 16 bytes as the gateway has a fixed size for inputs and outputs alike lf you want to memories the 4 bytes of Modbus data which will be transmitted by the gateway for this command once the changes have been made you will have to either shift all the other transmitted data by 2 bytes a painstaking operation or else change the memory location of the block of data transmitted In the example described here we will be using the second solution although the first solution is actually preferable in principle as it avoids leaving any holes in the gateway s memory This has no impact on the FIPIO exchanges however as the size of transfers over the gateway is set at 32 input words and 32 output words by the use of the standard profile FED C32 P We will be placing the 4 bytes of data starting at address 0x0210 528 in decimal i e directly after the output data for the standard configuration The 2 bytes at 0x0206 and 0x0207 become free memory locations Close the Sub network Monitor window then once you are back in the main ABC LUFP Config Tool window select the Data length and Data location fields respectively in the Data element of the Query and change their values as shown at the top of the next page ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal
162. ith 8 TeSys U motor starters presented in the context of the two LUFP1 gateway implementation methods 7 1 Connecting the Gateway to the Configuration PC This step is required when setting up the gateway configuration application ABC LUFP Config Tool Connecting the gateway to one of the serial COM ports on a PC requires a straight PowerSuite cable and an RS232 RS485 converter These two items are the same as those allowing dialogue with drives and soft start soft stop units using the PowerSuite application and are both available from the catalogue ref VW3 A8 106 Be sure to use the POWERSUITE cable and the RS232 RS485 PC converter An ATV28 before 09 2001 cable and an ATV 58 converter are also supplied with these items but they should not be used with the LUFP1 gateway LUFP1 Gateway seen from underneath Configuration Straight POWERSUITE cable Female SubbD 9 RS232 RS465 converter Once the gateway has been connected to a PC with the PowerSuite cable and the RS232 RS485 converter you can change its configuration using ABC LUFP Config Tool This configuration tool also allows you to carry out a few diagnostics on the gateway 7 1 1 Pin Outs 67 1743315 03 2009 7 Using ABC LUFP Config Tool LUFP1 Configuration Female RJ45 Male RJ45 RS 485 D B RS 455 D A Straight POWERSUITE cable RS485 RS232 converter PC COM Male RJ45 Femal
163. lue of the Function field in the query involved Code indicating the nature of the error which has caused the exception response see table below Description of the exception LLEGAL FUNCTION The query s Function command is not implemented in the Modbus slave ILLEGAL DATA ADDRESS ILLEGAL DATA VALUE SLAVE DEVICE FAILURE ACKNOWLEDGE SLAVE DEVICE BUSY NEGATIVE ACKNOWLEDGE software or itis unable to process it for the moment The combination of the query s Starting Address and No of Registers fields or assimilated fields gives access to one or more addresses which are not accessible on the Modbus slave The value of one of the Modbus query s fields is outside the authorized range This error does not affect the content of the Data or assimilated fields as it only governs the fields used in managing the Modbus protocol An unrecoverable failure has occurred when processing the command The Modbus slave informs the gateway that it has accepted the command acknowledgement but that it will take too long to process it and It cannot afford to wait for the completion of this process before sending a response The gateway will need to transmit further queries in order to determine whether the command has finished The Modbus slave informs the gateway that it is already running a command and cannot therefore run the one transmitted to tt The gateway will need to retransmit the query
164. mplex business and is discussed in a separate section see Section 7 12 You will need to change the configuration of a Modbus slave when you add a new Modbus device see Section 7 9 using any method Changing the name of the node which corresponds to a Modbus slave helps to distinguish it from the other nodes for instance when its Modbus command configuration has been changed 7 11 1 Changing the Name of a Modbus Slave To carry out this operation all you have to do is select the node that corresponds to the Modbus slave involved Devices pane and perform one of the following four actions e right click on the node and click on Rename in the popup menu that appears or e select the node and click on the node s name or e select the node and choose Rename in the menu whose name matches the node s name or e use the F2 function key After confirming the new name Enter key or click outside the node s name it will be used to update the menu bar and the status bar of ABC LUFP Config Tool An example is given below The three red frames shown in this example show the consequences of the change made 86 1743315 03 2009 7 Using ABC LUFP Config Tool asr ABC LUFP Config Tool C Schneider ABC Config ToolLUFP1 Tutorial cfg Miel Fa File TeSys Un ac ABC LUFF Config Tool C File f Mom Mozeur 001 Tools wiew Help ABC LUFP FIPIO MB Gateway LUFP 1 tutorial Alphabetic Categorized
165. n FED C32 P or user configurable mode under ABC LUFP Contig Teal fm FED C22 Modbus write commands Periodic mode with tansmission on data change 1 mandatory in FED C32 P or user configqgurable mode under ABC LUFP Config Tool im FED C32 Transmission rate 1200 2400 4800 9600 or 19200 bits s Panty None even or odd Start bits 1 bat Stop bits 1 or 2 bits Penod of sence Not possible to raise the gateways period of silence 1 Mode of communication Update mode for which the ABC LUFP Config Tool equivalent is called Change of state or Cyclically The query for the command thus configured is transmitted periodically but this periodicity is overridden if any of the data to be sent are modified This command mode prioritizes write commands ensuring that they are sent as soon as possible 1743315 03 2009 111 Appendix A Technical Characteristics LUFP1 gateway 52 bytes accessible ta the FIPIQ master in the form of input data see memory Siructure section 5 1 3 for the mapping between the addresses of these bytes and the gateways FIPIO objects Inputs 460 input bytes inaccessible to the FIPIO master due to the use of profile FED C32 FED C32 P inputs reserved for the LAS and PEW services and the presence of a reserved word Addresses Input data area C0000 Inputs accessible to the FIPIO master Ox0033 caer ial Ox D034 Inputs inaccessible to the FIPIO master 480 bytes LUFP 1 gate
166. n its place see Section 7 8 and Section 7 9 After creating the new node we rename EZITA ANEO era Te oe ee it and assign it Modbus address 10 as File AT548 Tools view Heh shown at right MESA AP FIPIO MB EET TZ TEET We then add the Preset Single Coniguaion o O O Register command by choosing Add 7 er Alphabetic Categorize Command from the ATS48 menu 3 pa address 10 Ji mle Slave address The address of the slawe DEE 07022006 1449 Config Line Q In the window which appears opposite select the command 0x06 Preset Single Register and choose Select in the File menu Hle command Back in the main ABC LUFP Config Tool window the Preset Single Register command now appears in the list of Modbus commands for Command Name the ATS48 node Read ees aes Preeet Multiple Fh eg 90 1743315 03 2009 7 Using ABC LUFP Config Tool Expand the full tree structure for this command as shown below The correspondence between the different elements in this tree structure and the standard Modbus terminology is shown on the right arse Modbus slave name Foesat Singa Fiogiter Modbus command name Quay Modbus quer F Frame 1 Bepi P Funcion code F Foghar addera T j P Checkeunn l Arpaia Modbus response f Frame 1 O Save Adcheos F Funn code T Fegiie edie Word no MSB LSB F From date Word value MSB LSB P Checka These elements
167. n order in the following table Configuration Description element Offline options for This element affects the input data sent to the FIPIO master but only for the data of sub network the Response to which this element belongs to whenever the Modbus slave does not answer to the corresponding Query or upon disconnection from the Modbus sub network This element takes one of the following two values Clear All data sent to the FIPIO master for this Response is set to 0x0000 resetting of the input data in the gateway s memory Freeze All data sent to the FIPIO master for this Response retain their current values the input data in the gateway s memory is frozen Trigger byte This element is used by the gateway to activate the unitary incrementation of an 8 bit counter in order to notify the FIPIO master of the receipt of a new response to the associated Modbus command It takes one of the following two values Disabled Default configuration The gateway does not increment any counter on receipt of the Modbus response Enabled Each time that the gateway receives a new response to the associated Modbus command it increments the value of an 8 bit counter designated by the Trigger byte address element see below This is useful when the command query is configured to use one of the aperiodic communication modes see Update mode as the counter mechanism allows the FIPIO master to ignore response input data except when
168. n that clarifies or simplifies a procedure The addition of this symbol to a Danger or Warning safety label indicates A that an electrical hazard exists which will result in personal injury if the instructions are not followed This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death or serious injury A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided can result in equipment damage PERAR ENSE Electrical equipment should be installed operated serviced and maintained only by qualified personnel No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material 4 1743315 03 2009 About the book Validity Note This document applies to all V2 gateways Related Documents Title of Documentation Reference Number AnyBus Communicator User Manual ABC_User_Manual pdf SDN 7061 059 Safety Guidelines for the Application Installat
169. nabled Enabled but no startup Disabled Disabled Serial Configuration Alphabetic Categorized Control Status word Disabled Module Reset Disabled Physical Interface Serial Protocol Mode FIPIO ME Gateway Recenve Counter Location Ox0000 Transmit Counter Location HEE sst Enable Recenve Counter Enable Transmit Counter Enable Tranemit Recerne Counte Configuration Alphabetic Categorized Control Status Word Module Reset Physical Interface Protocol Mode Recerve Counter Location Statistics Transmit Counter Location Disabled Disabled Disable 00000 Disabled 00000 Configuration Alphabetic Categorized Control Status Word Module Reset Physical Interface Protocol Mode Recenve Counter Location Statistics Disabled Disabled Serial FIPFIO MB Gateway Master Mode Atv69 Transmit Counter Location 4 Configuration Alphabetic Categorized Control Status Word Module Reset Physical Interface Protocol Mode Receive Counter Location Statistics Transmit Counter Location Disabled Disabled Serial FIPIC MEB Gateway 00000 Disabled 00000 These seven properties allow you to configure some of the gateway s system aspects e Control Status Word The three possibilities available for this property are not described in the LUFP1 Gateway User Manual as the option is reserved for other devices in the same product family This option must k
170. ncerned retains its current value and the input memory continues to be refreshed with the data of the slaves response No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response TeSys U response Depending on the slave LUFP1 gateways failure PLC response The PLC processor provides some error and or diagnostic objects to the application if slave failure to the application occurs Refer to the PLC user manual for their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects if FIPIO slave failure occurs LUFP1 gateway response In case of a failure the gateway stops communicating with the FIPIO master and the Modbus slaves TeSys U response Depending on the slave 1743315 03 2009 93 7 Using ABC LUFP Config Tool LUFP1 gateways disconnected on Modbus side or slave failure PLC response The processor has access to the List of Active Slaves LAS coming from the FIPIO master input table This word must be managed in the PLC application in order to detect if a Modbus slave is missing FIPIO master response The FIPIO master continues communicating with the PLC processor and the LUFP1 gateway LUFP1 gateway response Depending on the following properties all of which are configurable for each Modbus Command Tim
171. nd words PLC Processor LUFP1 Gateway 26 penodic control words Input memory 56IW p 2 c 0 0 gt 0 0 25 IMPLICIT exchanges Oxd000 gt 020033 penodic 26 periodic command words FIPIO variables Output memory QWip 2 c 0 0 gt 10 0 25 0x0200 gt 020233 _ Modbus network Modbus slaves or TeSys U motor starters 5 1 1 Standard Configuration with 8 TeSys U Motor Starters The periodic command and control words described below correspond to the configuration described in Chapter 4 Inputs Controls Outputs Commands FIPIO object Description FIPIO object olW yp 2 cl 00 status of motor starter OW p 2 c 0 0 Command of motor starter olW yp 2 c 0 0 1 status of motor starter OQW p 2 c 0 0 1 Command of motor starter YolW p 2 c 0 0 2 status of motor starter YwOW p 2 ci 0 0 2 Command of motor starter amp YolW yp 2 c 0 0 3 Status of motor starter OQW p 2 c 0 0 3 Command of motor starter 2olW p 2 c 0 0 4 Status of motor starter QW p 2 c 0 0 4 Command of motor starter wolWip 2 c 0 0 5 Status of motor starter OW p 2 c 0 0 5 Command of motor starter IW p 2 c 0 0 6 Status of motor starter QW p 2 c 0 0 6 YolW p 2 c 0 0 7 Status of motor starter OW p 2 c 0 0 Command of motor starter YolWip 2 c 0 0 6 OW p 2 c 0 0 8 Not used 18 wards eee eee eee Laaa Not used 15 words ol Wip 2 c 0 0 25 OW p 2 c 0 0 25 YolWip 2 c 0 0 26 Reserved 1 word OW p 2 c 0 0 26 ci
172. ndustrial control system the designer must evaluate A WARNING LOSS OF CONTROL The designer of any control scheme must consider the potential failure modes of control paths and for certain critical control functions provide a means to achieve a safe state during and after a path failure Examples of critical control functions are emergency stop and overtravel stop Separate or redundant control paths must be provided for critical control functions a System control paths may include communication links Consideration must be given to the implications of unanticipated transmission delays or failures of the link Each implementation of an LUFP Gateway must be individually and thoroughly tested for proper operation before being placed into service Failure to follow this instruction can result in death serious injury or equipment damage For additional information refer to NEMA ICS 1 1 latest edition Safety Guidelines for the Application Installation and Maintenance of Solid State Control and to NEMA ICS 7 1 latest edition Safety Standards for Construction and Guide for Selection Installation and Operation of Adjustable Speed Drive Systems 2 3 Mounting the Gateway on a DIN Rail Mounting the gateway Y i i uMi Vi ALLL 1 __ Start by fitting the rear base of the gateway to the upper part of the rail pushing downwards 1 to compress the gateway s spring Then push the
173. ned by default to the Modbus command response we have created The correspondence with the content of the corresponding Modbus frame is shown underneath Checksum Function code Register address Preset data Value Value Data location Data length Byte swap Error check type Error check start byte O04 O06 00000 Ox0002 O 0002 No swapping CRC 00000 Slave Address s b Word n Edit the values which are not grayed out one after the other Word value MSB LSB CRC16 LSB MSB There is a description of them below but also see the previous section as the nature of the content of response frames is very similar to that of the fields in Modbus query frames NOTE If the value of one of the fields in the response from a Modbus slave is different from that configured via ABCLUFP Config Tool the response will be rejected by the gateway It will then proceed to retransmit the query provided that at least one retransmission has been configured for this command see 7 12 2 2 Configuring the Query 100 1743315 03 2009 7 Using ABC LUFP Config Tool Size in Description frame the frame dentical to the query s Slave Address field Identical to the query s Function field Register 2 bytes Identical to the query s Register field since the Modbus response of any Address Preset Single Register command is an echo to the corresponding query Here you should also enter the address of the m
174. ned firstly to the periodic command words and then to the periodic control words Each category starts with the first Modbus slave and ends with the last configured slave In the present example this gives us the following configuration of periodic words a grey background indicates a periodic word with a fast periodicity otherwise the periodicity is normal 1 Command n 1 2 Commandn 2 N TeSysU 10 700 3 Commandn 3 N 2 TeSysU 30 704 46 Conton 7 2 4 Commandn 4 N 2 TeSysU 30 700 17 Controin 8 S commana S N ASe a 18 Conton o 6 Command n 6 N 4 ATS48 42 400 12 7 Commandn 7 N S ATV5 33 400 8 Commandn 8 N 5 ATvV58 33 401 N 5 ATV58 33 10 Controlin 1 N 1 TeSysU 10 455 700 r04 700 400 400 400 401 455 61 11 Control n 2 N 1 TeSysU 10 ontrol n N 1 10 12 Control n 3 1 TeSys U 25 Control n 16 N 5 ATV58 33 deei L N 2 TeSysU 30 25 EAE 122 1743315 03 2009 Appendix B LUFP1 Gateway Settings Modbus speed 19 200 bits s Modbus format data bits Modbus RTU 1 stop bit no parity Degraded modes Timeout of 300 ms 2 retransmissions Reconnect after 30 s Reset command values if FIPIO bus ts disconnected Reset the control values of a Modbus slave If this slave is disconnected Perlodicities Fast commands at 300 ms normal at 900 ms Fast controls at 300 ms normal at 1 800 ms
175. neider ABC Config Tool LUFP1 Tutorial cfg File Number of registers Tools wiew Help Osea Ss OHl i veaxkx S FSGS T Bae ta ABC LUFP FIPIO MB Gateway LUFP 1 tutorial Devices Configuration Configuration E we Sub Network Alphabetic Categorized Alphabetic Categorized Hy TeSys Un DT TeSys ln Value 0x0001 RET __ Read Holding Registers en B 32 Query Uf Slave Address Value Ef Function code tia oe rear hata dane aah ransmitting the Word this Value will be sent le lina When receiving a Word ABC will perform a Configuration sumoer of rogisors check aginst this Value If the received Word Alphabetic Categorized Ef Lhecksum does not match it will be discarded Segoe Number of registers 07 02 2006 10 05 ConfigLine 7 KETI 0 0008 2 Change the number of data bytes in the Modbus response The number of bytes read from the memory of TeSys U motor starter n 2 increases from 2 to 16 as the number of registers controlled has increased from 1 to 8 Select the Byte count element in the Response and change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal asc amp ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial cfg File Byte count Tools wiew Help Oss S O taxes SABES PT Bes ABC LUFP FIPIO MB Gateway LUFP 1 tutorial Devic
176. ng a request to a slave if there is no response after x x 100 ms the gateway will send it again y times before writing information about the missing slave to the List of Active Slave LAS if no other Modbus Command has succeeded for this slave If despite the y Retries there is no answer from the slave the input Data sent to the FIPIO master Read requests is reset to O if Ox02 Clear or retains its current value if 0x00 No action but only for the data received from the missing slave The gateway will try to reconnect the missing slave by communicating with it again every z x 1 ms If the LUFP1 gateway is disconnected on Modbus side the behavior depends on the slave In the event of a slave failure No response is sent to the gateway and the state of the slave is undetermined This case must be managed in the PLC application Sample Gateway Settings The example below illustrates a system architecture and Modbus exchanges that differ from those in the standard configuration described in the rest of this manual The example uses the configuration and adjustment parameters described in the previous sections 120 1743315 03 2009 Appendix B LUFP1 Gateway Settings System Architecture The Modbus slaves are grouped by category rather than in order of address in the list of Modbus slaves on the UFP1 gateway The slaves as seen by the gateway are as follows ai 0 AAW Product type Modbus address Motor starter
177. ng with n 16 and working back towards n 1 These two words comprise a command word control word pair which means that you have to delete the last command word shift the control words along by one parameter and then delete the last control word Check the mappings between Modbus slaves n 1 to 8 and the addresses of the TeSys U motor starters in your configuration MW p 2 c 0 0 31 to MW p 2 c 0 0 34 For each absent motor starter one of the slaves will take the value 0x00 as its Modbus address starting with slave n 8 and working back to n 1 1743315 03 2009 4 Software Implementation of the Gateway Example Deletion of the motor starters corresponding to Modbus addresses 1 3 4 and 8 The starters at Modbus addresses 2 5 6 and 7 will remain present The new configuration and settings for the gateway are as follows YKWip 2 ci0 0 0 Number of periodic command words for each slave from n 1 to n 4 KWip 2 c 0 0 1 JK p 2 cl0 0 2 Number of periodic control words for each slave from n 1 to n 4 KWip 2 c 0 0 3 0 Ox0000 Not used YKW p 2 c 0 0 4 Address of periodic word n 1 Address of the command word for slave n 1 KWip 2 c 0 0 5 Address of periodic word n 2 As above but for slave n 2 KWip 2 c 0 0 6 Address of periodic word n 3 As above but for slave n 3 YKWip 2 c 0 0 7 Address of periodic word n 4 As above but for slave n 4 Address of periodic word n 5 Address of the control word for slave n 1 JR VVp 2
178. nly the Transmit Counter Location property is used by the gateway e Enable Transmit Receive Counter Both the Receive Counter Location and Transmit Counter Location properties are used by the gateway e Receive Counter Location This property is only used by the gateway if Statistics Enable Receive Counter or Statistics Enable Transmit Receive Counter It represents the 1 byte input memory address from Ox0000 to 0x0033 where the Modbus Responses counter is copied into This is a modulo 256 counter i e it starts over at O once it goes past 255 which is updated each time a Modbus frame is received by the gateway e Transmit Counter Location This property is only used by the gateway if Statistics Enable Transmit Counter or Statistics Enable Transmit Receive Counter It represents the 1 byte input memory address from 0x0000 to 0x0033 where the Modbus Queries counter is copied into This is a modulo 256 counter i e it starts over at 0 once it goes past 255 which is updated each time a Modbus frame is emitted by the gateway retries included Finally a useful command from the Help menu will allow you to check the software versions of the LUFP1 gateway the ABC LUFP element but only in on line mode of course it also shows the version of the ABC LUFP Config Tool To obtain this information execute the About command of the Help menu An example in ABC LUFP
179. ntent of this column shows whether the command can be added Yes or not to the list of commands for a broadcaster node known as Broadcaster in ABC LUFP Config Tool In the following sections each byte in the query and response frames of a Modbus command is described in sequence with the exception of the fields opposite these are always present in the queries and responses of Modbus commands Non modifiable Modbus address 1 to 247 Addresses 65 126 and 127 prohibited Non modifiable Modbus Function i command code _ Other opecitic Modbus helds command data Checksum Lo Type of error check Number of the 1st byt Checksum Hi checked Storie Slave Address The first two bytes of these frames correspond to the Slave Address and Function fields The last two bytes are the two Checksum bytes The following descriptions of the Modbus frames are mainly intended to help you to configure the gateway s Modbus exchanges using ABC LUFP Config Tool See the documentation of each Modbus slave to check for any restrictions on the use of these frames number of registers which can be read or written in a single Modbus command for example It is preferable to get hold of a standard Modbus document such as the Modicon Modbus Protocol Reference Guide ref PI MBUS 300 Rev J to see how the elements displayed in ABC LUFP Config Tool map match the content of the corr
180. ntinues to be refreshed with the data of the slaves response 0x01 No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response 0x02 Clear The output data sent to the Modbus slave concerned is reset to 0 and the input memory continues to be refreshed with the data of the slaves response TeSys U response Depending on the slave LUFP1 gateways disconnected on FIPIO side PLC response The PLC processor provides some error and or diagnostic objects to the application if slave disconnection from the application occurs Refer to the PLC user manual for their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects if FIPIO slave disconnection occurs For all Modbus Commands the behavior depends on bits 0 7 of the MW p 2 c 0 0 23 parameter 0x00 Freeze The output data sent to the Modbus slave concerned retains its current value and the input memory continues to be refreshed with the data of the slaves response 0x01 No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response 0x02 Clear The output data sent to the Modbus slave concerned is reset to 0 and the input memory continues to be refreshed with the data of the slaves response
181. odic Command and Control Words c ccseeeeeeeeeees 45 5 1 1 Standard Configuration with 8 TeSys U Motor Starters 45 5 1 2 Configuration under PL7 PRO with Profile FED C32 P 46 5 1 3 Configuration under ABC LUFP Config Tool with Prole PE DAG G2 eecr cy ssus css tetys ceuect aes aA 47 5 2 List of Active Slaves LAS Service cccceeeeeeeeeeeeeeeeeeees 48 5 3 Indexed Periodic Variables PKW Service cceeee 49 5 3 1 Introduction to the PKW Service cccceeeeesseeeeeeeae ees 49 5 3 2 PKW Service Command and Response 0060 50 5 3 3 Using the Indexed Periodic Variables PKW Service 51 5 3 4 Sample Uses of PKW Service ccccceeeeeeeeeeeeeeeeeees 53 5 3 5 LUFP1 Gateway Internal Registers cccceceeeeees 55 5 4 FIPIO Diagnostic Objects cccccsececssseceecssseeeesseseeeeseaees 58 5 4 1 System Words SW128 to SW135 ec eeeeeeeees 59 1743315 03 2009 5 4 2 Channel Status YOMW p 2 C 0 0 2 oo ceeeeeeeeeeeeeeeeees 59 5 4 3 Module Status YMW p 2 c O MOD 2 ceceeee eee 59 5 5 Status of Explicit EXCHANGES ccceceeececeseeeeeseeeeeeeseeeeees 60 5 6 Parameters Specific to Profile FED C32 P eee 60 5 6 1 Configuration Parameters KWV p 2 c 0 0 to YOKW p 2 C 0 0 29 cccccccsecccececeeseeeeeeeeeesseeeeeeeseaaseseeeeees 61 5 6 2 Adjustment Parameters MVWV p 2 c 0 0 20 to PoMW p 2 0 0
182. odic control words plus one reserved word As only control words n 1 to 16 are used the only useful inputs are IW p 2 c 0 0 to oIW p 2 c 0 0 15 Inputs IW p 2 c 0 0 16 to IW p 2 c 0 0 26 must therefore not be used LUFP1 input Corresponding periodic word Corresponding slave and exchange read YolWip 2 c 0 0 Penodic control word n 1 Slave n 1 TeSys U 10 Status of motor starter IW p 2 c 0 0 15 Slave n 5 ATV58 33 Current in motor 11 words not used inputs at value Ox0000 IW p 2 c 0 0 26 Outputs QW p 2 c 0 0 to QW p 2 c 0 0 27 correspond to the gateway s 26 periodic command words plus two reserved words As only command words n 1 to 9 are used the only useful outputs are QW p 2 c 0 0 to QW p 2 c 0 0 8 Outputs QW p 2 c 0 0 9 to QW p 2 c 0 0 27 must therefore not be used LUFP1 output Corresponding periodic word Corresponding slave and exchange write YolW p 2 c 0 0 Penodic command word n 1 slave n 1 TeSys U 10 Motor starter command IW p 2 c 0 0 8 Penodic command word n 9 Slave n 5 A TV58 33 intemal command reg app YolW p 2 c 0 0 9 Penodic command word n 10 Periodic command word n 26 19 words not used by the gateway Fol W p 2 c 0 0 26 NOTE Only the mapping for the first and last inputs or outputs is shown here as the intervening periodic words were described in the tables in Modbus Exchanges Appendix B Only the first 5 bits of the input word assigned to the LAS service IW
183. of the contents of the corresponding Modbus frames and the contents of its physical memory input memory for the contents of the Modbus responses and output memory for the contents of the queries The periodic exchanges between the FIPIO master PLC and the LUFP1 gateway are limited to transferring the contents of the gateway s input memory to the IW inputs on the PLC and transferring the PLC s QW outputs to the gateway s output memory Each LUFP1 gateway is delivered so that it must be configured using PL7 PRO instead of ABC LUFP Config Tool But this configuration is blank because it will be configured by the master PLC itself when the FIPIO network is initialised Hence it is absolutely necessary to use PL7 PRO to configure the FED C32 P device that corresponds to the LUFP1 gateway see chapter 4 2 10 1743315 03 2009 1 Introduction The FIPIO network is totally separate from the Modbus network The frames on a network are not directly translated by the gateway to generate frames on the other network Instead the exchanges between the contents of the gateway s memory and the Modbus slaves make up a system independent of the one entrusted with managing the exchanges between the gateway memory and the FIPIO master The example which follows illustrates the independent management of each of the two networks Managing Gateway Modbus slaves exchanges FED C32 P PL7 PRO Modbus Slaves Gateway PLC
184. ol It is responsible for federating Profibus skills centres scattered throughout the 20 largest industrial countries The list of user groups of the Profibus protocol is available on the Profibus web site at http www profibus com To get general purpose support on Profibus please email to PI at Profibus _international compuserve com This term designates the national and local associations of Profibus protocol users Parameter Process data Object This term designates the type and size of the data exchanged between a Profibus master and slave In the case of the LUFP7 gateway PPOs are not used to configure its exchanges on the Profibus network PROcess Field BUS Power supply A term referring to the downstream Modbus network under ABC LUFP Config Tool Initiating station request time Answering station response time EXtensible Markup Language The language used by ABC LUFP Config Tool to import export the configuration of a Modbus slave 141
185. ommunication control 3 As regards inputs we strongly recommend that you use the List of Active Slaves LAS Service see Section 5 2 page 48 to detect the underlying event 4 Use the FIPIO Diagnostic Objects Section 5 4 page 58 to detect the underlying event PLC processor stopped or on failure PLC processor response Outputs Software error outputs reset to default state or hold their present state depending on configuration Hardware error EEPROM or hardware failure output state will be undetermined Inputs PLC stops responding to inputs in any error state Depending on the configuration of the FIPIO master the FIPIO master stops communicating with the LUFP1 gateway or the FIPIO master forces outputs to 0 and refreshes the inputs or the FIPIO master holds outputs in their last state and refreshes the inputs If the FIPIO master stops communicating with the LUFP1 gateway in the case of a Premium PLC for each Modbus Command the behavior depends on bits 0 7 of the MW p 2 c 0 0 23 parameter 0x00 Freeze The output data sent to the Modbus slave concerned retains its current value and the input memory continues to be refreshed with the data of the slaves response 0x01 No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response 0x02 Clear The output data sent to the Modbus slave concerned is reset to O and the input memory continues
186. on control 3 As regards inputs we strongly recommend that you use the List of Active Slaves LAS Service see Section 5 2 to detect the underlying event 4 Use the gateway s FIPIO Diagnostic Objects Section 5 4 to detect the underlying event 1743315 03 2009 91 7 Using ABC LUFP Config Tool Managing Degraded Modes 7 11 2 1 PLC processor stopped or on failure PLC processor response Outputs Software error outputs reset to default state or hold their present state depending on configuration Hardware error EEPROM or hardware failure output state will be undetermined Inputs PLC stops responding to inputs in any error state FIPIO master response Depending on the configuration of the FIPIO master the FIPIO master stops to communicate with the LUFP1 gateway or the FIPIO master forces outputs to 0 and refreshes the inputs or the FIPIO master holds outputs in their last state and refreshes the inputs LUFP1 gateway response If the FIPIO master stops communicating with the LUFP1 gateway in the case of a Premium PLC for each Modbus Command the behavior depends on its Offline options for fieldbus Clear The output data sent to the Modbus slave concerned is reset to 0 and the input memory continues to be refreshed with the data of the slaves response Freeze The output data sent to the Modbus slave concerned retains its current value and the input memory continues to be refreshed with the data of the slaves resp
187. on the gateway are not covered in this section as the aim here is to describe a standard configuration with 8 TeSys U motor starters This configuration is described with a view to implementing the gateway using PL7 PRO The full range of gateway configuration possibilities is set out in Appendix B 4 1 1 System Architecture The configuration described in this LUFP1 gateway implementation enables the device to command and control eight TeSys U motor starters O A i i Bsr Sia aie tars E E Configuration FIPIO il J master PLC as PL7 PRO j i Bi T TSA 57353 v5 1 suet 4 C FIPIO upstream network Modbus addresses LUFP 1 Total of 8 gateway motor starters TeSys U model a E E E E g A SJ Modbus downstream network Line Connection termination boxes See Chapter 2 for details on implementing the hardware for the standard configuration 26 1743315 03 2009 4 Software Implementation of the Gateway 4 1 2 Configuring the Motor Starters Each motor starter should be configured as follows Modbus RTU slave Modbus address 1 to 8 Start bits 0 Parity bit Stop bits When using a TeSysU motor starter with a Modbus communication module LULCO3e module the configuration parameters for the RS485 connection are automatically detected only the Modbus address of the motor starter needs to be configured po 1to8 19 200 bits s Data bits D NOTE The gat
188. onding to the LUFP1 gateway by double clicking the first free connection point In the window that appears select the family STD_P and the basic module for that family FED C32 P You also need to enter the physical address of the gateway on the FIPIO bus in the field Connection point number Entering a Comment is optional but it does make it easier to pick out the gateway from among the other devices on the same FIPIO bus 1743315 03 2009 31 4 Software Implementation of the Gateway PL PRO lufpi_tutorial_en_fedc32p_tsx57353_ety File Edit Utilities Yiew Tools PLC Debug Options Window alsiaj Lem amp Slelel s Slim elele Selim 2 r Ss Application Browser lol x Eagar fa ote E fa Structure view Logical address Communicator Base module Extension module 3 Configuration DP Hardware Configuration JZ Software ConKiguration RESO ee Program H MAST Task amp Events DFE Types Variables Animation Tables Add Modify a Device Connection point Connection point number 2 Comment LUFPI Model FEDC32 P H Documentation File Runtime Screens n EEE Ji Contiguration rsxeras3 ve1 gt AD mel Base module C32 P_ EXTENDED DEV CMPCT 32W P EXTENDED DEY CMPCT 32W EXTENDED DEY MOD 32W P EXTENDED DEY MOD 32W RED DEV CMPCT 2w P RED DEY CMPCT 2w STD DEY CMPCT SW P STD DEY CMPCT 8w STD DEY MOD amp w P b J a4a444 woo x x v
189. ons to these adjustment parameters see Appendix B However during the Software Implementation of the Gateway you will probably find it useful to know how to delete one or more TeSys U motor starters This operation is therefore described in Section 4 2 6 4 2 6 Deleting One or More TeSys U Motor Starters from the Configuration We will just look at one modification operation on the standard 8 TeSys U motor starter configuration the deletion of one or more motor starters The 8 motor starters were configured to represent the typical maximal configuration a maximum of 8 Modbus slaves It is best to delete any slaves absent from your configuration in order to avoid any degradation in performance that might be caused by the physical absence of motor starters declared in the LUFP1 gateway configuration Make the following changes to the Configuration Parameter Values Standard Config Section 4 2 4 and to the Adjustment Parameter Values Standard Configuration Section 4 2 5 D 36 For each absent TeSys U motor starter reset to zero the number of periodic command words KW p 2 c 0 0 0 and KW p 2 c 0 0 1 and the number of periodic control words KW p 2 c 0 0 2 and KW p 2 c 0 0 3 on a single slave starting with slave n 8 and working back towards slave n 1 For each absent TeSys U motor starter two of the addresses of periodic words n 1 to 16 YKW p 2 c 0 0 4 to KW p 2 c 0 0 19 will become Not used parameters starti
190. onse No Scanning The query of this Modbus Command is no longer transmitted and the input memory is no longer refreshed with the data of the slaves response If the FIPIO master forces outputs to 0 and refreshes the inputs the periodic Modbus exchanges continue to run all output Data are reset to 0 and sent to the Modbus slaves the input memory continues to be refreshed with the Data of the Modbus slaves responses If the FIPIO master forces holds outputs in their last state and refreshes the inputs the periodic Modbus exchanges continue to run all output Data stay in their last state and are sent to the Modbus slaves the input memory continues to be refreshed with the Data of the Modbus slaves responses TeSys U response Depending on the slave FIPIO scanner stopped or on failure The PLC processor provides some error and or diagnostic objects to the application if FIPIO master stop or failure input output not valid occurs Refer to the PLC user manual for their description This information must be managed in the PLC application If the FIPIO master is stopped command coming from the application the scanner stops communicating with the LUFP1 gateway If the FIPIO master is on failure the scanner stops communicating with the processor and the LUFP1 gateway LUFP1 gateway response If the FIPIO master stops communicating with the LUFP1 gateway in the case of a Premium PLC for each Modbus Command the behavior
191. oo Reserved emergency start Bit 5 Specific Fault reset authorized Bit 5 Self test Triggering test frp Bit 6 Specific Al A2 supplied Bit 6 2 Reserved low speed Bit f Specific Motor running Bits 7 11 Reserved by IEC61915 standard Bits 8 13 Motor current 2 10 0000 200 Bit 12 Specific Overload shunt trip Bit 14 Reserved Local control Bit 13 Specific Pause reserved for adjustment Bit 15 Ramping motor starting 1743315 03 2009 Bits 14 15 Specific Reserved 131 Appendix D Sample Use under PL7 PRO These statuses and commands are grouped into two sections General Status for the general operating mode of the motor starters and Motor for that of the controlled motors The last section DEBUG COMM displays the two registers IW and QW used for each motor starter This screen is shown opposite but only for the first motor starter as it is identical to the 7 others Most of the displays in this operating screen are directly linked to the MW registers which in turn contain the values of registers IW4 0 1 to IW4 0 8 and QW4 0 1 to QW4 0 8 status and command registers of the TeSys U motor starters Only the indirect commands and statuses are described below The Cmd_mon program performs the following tasks e It copies the values of words MW20 to MW27 into output registers QW 0 2 2 0 0 to QW 0 2
192. or command again in the Sub Network menu asc Sub network Monitor _ Oy x File columns TeSys U n l TeSys U ne TeSys Uns TeSys U n4 TeSys U nS TeSys U n 6 TeSys Un TeSys U n8 Select All Deselect All Select l Deselect All Select All Deselect All Select All Deselect All Select All Deselect All Select Al Deselect All Select All Deselect All Select All Deselect All FRicad Holding Reg Acad Holding Reg Read Holding Reg Read Holding Reg Acad Holding Reg Read Holding Reg Read Holding Reg Acad Holding Reg Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs A Preset Multiple Regs Preset Multiple Regs ln Area 16 bytes 512 ites 512 General Area 0 butes 388 oo00 027008 040 r 003A 0234 ain nag JSE TeSys U n4 TeSys U n 0074 O274 Select All DeselectAll Select All Ceselect All a091 0291 i UIAF D AF l E Fead iiih Reg O0CB IEN TA 4 Preset Multiple Regs OOES O2E8 0105 0305 0122 01322 O13F O33F 015C 1357 0175 0379 0196 0396 0153 01363 O1D0 O3D0 DIEL 03ED 4 Download this configuration to the gateway See Section 7 5 Check that the configuration is valid LED O GATEWAY flashing green 5 Save the configuration to your PC s hard disk 6 Use the FIPIO master PLC outputs It only remains to assign symbols and use the outputs corresponding
193. or parallel cabling see illustration on next page o TSX FP ACC 2 connector Female connector for the TSX FPG 10 coupler TSX 17 20 micro PLCs Used for daisy chain or parallel cabling o TSX FP ACC 14 box 08 Isolating tap box for bus connections to the main cable o TSX FP ACC 4 box cee TSX FP ACC 10 box Watertight tap boxes for bus connections to the main cable They alsosupport one 9 pin female SUB D connector for the PCMCIA card cable TSX FP CG 010 030 oO TSX FP ACC 3 DOX cece Isolated tap box for bus connections to the main cable Also supports two 9 pin female SUB D connectors as above o TSX FP ACC 7 terminations Set of two line terminations for adapting the impedance of both ends of an electrical segment You will need one set per electrical segment o TSX FP ACC 6 repeater Electrical repeater for joining two segments each with a maximum length of 1 000 m 1743315 03 2009 21 2 Hardware Implementation of the LUFP1 Gateway 2 Cables e TSX FP CAeere main cable e TSX FP CCee tap link cable 2 6 3 FIPIO Bus Commissioning Procedure TSX FP ACC 12 Connector pin female SUB D Shielded twisted 150 cable with a single pair of conductors red and green In lengths of 100 200 or 500 m This cable is the main trunk of the FIPIO network and is therefore used to link up connectors and tap boxes Shielded twisted 150 cable with two pa
194. ore this step for the time being it describes elements which under ABC LUFP Config Tool will come into play later on e Deleting One or More TeSys U Motor Starters from the Configuration ee Section 4 2 6 This operation described in Section 7 8 is specific to ABC LUFP Config Tool You must therefore run ABCLUFP Config Tool and load the example file provided in order to delete a motor starter e Configuring Gateway Inputs Outputs 0 0 cece ccc eeeeeeeeeeeeeeeeeeseeeeeseeeseeesseeeeseeeeas Section 4 2 7 As with PL7 PRO no operation need be performed if you use the example file provided this section describes the inputs outputs corresponding to the configuration entered during the previous steps If you want to modify the configuration or create a new one consult the relevant sections of Chapter 7 The explanations that follow seek to describe the configuration illustrated in the example The gateway inputs outputs are configured entirely under ABC LUFP Config Tool The Modbus frames configured for the various slaves or Nodes of the Modbus network or Sub Network include Data or Preset Data elements Each element is a link between the contents of the Modbus frame it represents and a precise location in the gateway memory You can configure the size of the data exchanged and the memory location for the exchanges This allows you to organize the gateway inputs and outputs as you see
195. p 2 c 0 0 27 list of active slaves LAS service are actually used A Modbus slave is present if the corresponding bit is set Modbus slave Address to 1 TeSys U motor starter 10 TeSys U motor starter 30 Altistart 48 soft start 12 See also Section 5 2 for more details on the list of active slaves service Altistart 46 soft start 42 Altivar 58 speed drive 33 X5 X15 Not used bits at 0 126 1743315 03 2009 Appendix C Standard Configuration The configuration described below is the standard configuration used when implementing the LUFP1 gateway NOTE This chapter mainly gives the user information about the performances obtained on the downstream Modbus network It allows users to decide whether for example they should change the timing of periodic exchanges with one or more of the TeSys U motor starters see Chapter 7 Configuring Modbus Exchanges The LUFP1 gateway carries out two types of exchanges with each of the 8 TeSys U motor starters These exchanges are periodic and allow you to control and monitor the motor starter Number Exchange between the LUFP1 gateway of bytes 1 and the TeSys U motor starter 0x03 Read Holding 1154105 Periodic reading 300 ms period of the TeSys U motor S Register starters status register address 455 0x01C only Function Modbus function Preset Multiple 1454115 Fenodic writing S00 ms period of the TeSys U motor Registers 2 starters status register address 704 0x0
196. parameter in decimal format ABC LUFP Config Tool will automatically convert it to hexadecimal Do the same for the Starting Address element of the Response because the gateway checks the value of this field when it receives each Modbus response If the value does not correspond to that of the query the gateway will ignore the response aec ABC LUFP Config Tool C Schneider ABC Config Tool LUFF i Tutorial cfg Fie Starting register address Tools View Help n t REXs S SORRS ST Tee ABC LUFP FIPIO MB Gateway LUFP 1 tutorial st F Alphabetic Categorized Alphabetic Categorized EAA Sub Network Value Ox02C0 705 H TeSys U n l TeSys U n2 H TeSys U n3 H TeSys U n4 H TeSys U n5 El G TeSys U rE H E Read Holding Registers a Preset Multiple Regs EE Query _ Slave Address zo gt eee Alphabetic Categorized sve of No of Registers Value Value 00201 E Of Byte Count Definition of a Constant Word Value Wher H Of Data tranemitting the word this Value will be sent kas of Checksum When receiving a ord SBC will perform a check aginst this Value IF the receiwed Word I ad PE DONS does mol eget will be discarded H TeSys U n r H G TeSys U nE Starting register address 07 02 2006 03 58 Config Line OQ This operation in no way alters the contents of the gateway memory as we do not need to change the values of the Data length and Data location fields in the
197. periodic command words for slaves m 5 to m8 Bits 0 3 Number of periods command words for slave n 5 0 TORY p20 0 1 Bits 4 7 Number of periodic command words f ri a or slave n 0t Bits 8 11 Number of periods command words for slave n 0t Bits 12 15 Number of penodic command words for slave m8 0 Number of penodic control words for slaves n 1 to n 4 Bits 0 3 Number of peroce control words for slave n 1 0 te 1 Soh WVp 2ci0 0 2 io Bits 4 7 Number of periodic contro words for slave n 2 0 to 1 Bits 8 11 Number of peroce control words for slave n 3 0 to 1 Bits 12 15 Number of periodic control words for slave n 4 0 to 1 Number of penodic control words for slaves n 5 to n a Bits 0 3 Number of periode control words for slave n 5 ToRWVip 2 cil0 3 Bits 4 7 Number of periodic control words for slawe n 5 Bits 8 11 Number of peroce control words for slave n T Bits 12 15 Number of periodic control words for slave n 6 I 114 1743315 03 2009 Appendix B LUFP1 Gateway Settings PL Parameter Access Values Description PL7 Parameter Access Values Description 7 l Address of ee Address of a We a VO if i n An Zl i 0 F x Hoi Wip 2 c 0 0 4 EAR penodic word n 1 sia EAR ORW Hape periodic word n 14 Fa LA i Lm i J Addres 5 of F Lar a J r r me s Address of SSKWip 2 ci0 0 5 kesse periodic word n 2 WRK Wp 2 c 0 0 15 xeon periodic ward n 415 Address of Sener p
198. periodic write commands commands and read instructions controls which are sent out to the Modbus slaves Each control word corresponds to a Modbus periodic read instruction and each command word to a Modbus periodic write command Each word also corresponds to a gateway input or output All of these inputs and outputs are defined by the gateway by means of its configuration parameters KW the periodic control words correspond to the inputs and the periodic command words to the outputs The gateway establishes the following correspondences between its inputs outputs and the values of its periodic command control words Periodic control words Outputs Periodic command words Fol Wip 2 c 0 0 First control word from slave n 1 OW p 2 ci0 0 First command word for slave n 1 Last control word from slave n 1 Last command word for slave n 1 First control word from slave n 2 First command word for slave n Last control word from slave n 2 Last command word for slave n First control word from slave n 8 l First command word for slave n 8 Last control word from slave n 8 Last command word for slave n 8 WOW p 2 c 0 0 25 38 1743315 03 2009 4 Software Implementation of the Gateway For the standard configuration presented here the mapping between the gateway inputs and the PLC inputs is as follows YolWip 2 c 0 0 Description Bit 8 Bit Foo Be Value of status register for motor starter YolW
199. ponse If the value does not correspond to that of the query the gateway will ignore the response 82 1743315 03 2009 7 Using ABC LUFP Config Tool ac ABC LUFP Config Tool C gt Schneider ABC Config Tool LUFP1 Tutorial cfg File Wo of Registers Tools wiew Help Hl y ROBWx s GROSS PTT Ei amp ABC LUFP FIPIO MB Gateway LUFP 1 tutorial Sub Network Alphabetic Categorized Alphabetic Categorized T TeSys U n TT TeSys U n Value Ox0001 Value 2 H T TeSys U n s F gt Preset Multiple Regs eee Value Alphabetic Categorized Definition of a Constant Word Value When transmitting the Value Oe Word this Value will be sent When receiving a Word ABC Will perform a check aginst this Value IF the recerved Word does not match it will be discarded Te of WEEE OF 02 2006 11 16 Config Line QQ 6 2 Change the number of data bytes in the Modbus query The number of bytes written to the memory of TeSys U motor starter n 4 increases from 2 to 4 as the number of registers commanded has increased from 1 to 2 Select the Byte count element in the Query and change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal ac ABC LUFP Config Tool C Schneider ABC Config Tool LUFP 1 Tutorial cfg File Byte Count Tools wiew Help H itpearxe TFE EREE LEE SEANAR FIPIO MB Eai a LUFP1 tutorial
200. r gateway inputs outputs periodic or aperiodic communications Each bit from O to 7 of the input word indicates the absence or presence of a Modbus slave slaves n 1 to 8 in that order The only FIPIO object corresponding to the list of active slaves service is described in Section 5 2 40 1743315 03 2009 4 Software Implementation of the Gateway 4 2 9 Validating and Saving the FIPIO Network Configuration Confirm the FED C32 P profile settings and configuration by clicking the button Close the FED C32 F profile settings and configuration window In the FIPIO network configuration window click again Close this window and the PLC hardware configuration window Save the PL PRO application by giving it a name 4 2 10 Assigning Symbols to the Gateway s FIPIO Objects It is advisable to assign symbols to the gateway s inputs and outputs this makes it easier to understand the PLC application that will be managing them Edit O variables using PL7 PRO and select the address 0 2 2 0 FED C32 P if for example the gateway is located at address 2 You can also assign symbols to the configuration and adjustment parameters described in the previous sections as well as to the gateway s FIPIO diagnostic objects but this is not as useful as it is for the inputs and outputs Once defined these symbols are used in the various FED C32 P profile configuration and monitoring windows
201. rchitecture cceccecsesssseeeeeseeesseeseeesseeseees 26 4 1 2 Configuring the Motor Starters cccececseeeeeeeseeeeeees 27 4 1 3 Modbus Cycle Time cscstisinivicccttereucdtcancetavSriancseveeabarteesets 27 4 1 4 Managing Degraded Modes With the Gateway Default CONMGUNAUON eee E E A 27 4 2 Gateway Configuration under PL7 PRO c cccseeeeeees 31 4 2 1 WorldFIP Mode cccccseeeceeeeeeeeseeeeeeeeeaaeeeeeeeessaaeeeeess 31 4 2 2 Adding the LUFP1 Gateway under PL7 PRO 31 4 2 3 Configuring and Adjusting the LUFP1 Gateway 33 4 2 4 Selecting and Adding the Profibus DP Master Station 34 4 2 5 Adjustment Parameter Values Standard Configuration 35 4 2 6 Deleting One or More TeSys U Motor Starters from the COMNGUPAUON rasei eee a a ai Re EN RF 36 4 2 7 Configuring Gateway Inputs Outputs eee 38 4 2 8 Description of Services Assigned to Gateway O 40 4 2 9 Validating and Saving the FIPIO Network COMO UN AON ita ss osier cone soadcameceamuanersaneantruieds 41 4 2 10 Assigning Symbols to the Gateway s FIPIO Objects 41 4 2 11 Checking the Operational Status of the Gateway 42 4 2 12 Modifying the Gateway Parameters in ONLINE Mode 43 4 2 13 Debugging and Using the Gateway Configuration 43 4 2 14 Developing a FIPIO Application ccccceeceeeeeeeeeee 43 5 FIPIO Objects Available for Programming 44 5 1 Peri
202. re noted as being Read Only or RO and only the 16 bit word read command R W 0x52 can be used with them All the other gateway s internal registers can be read and written using the PKW service they are noted as being Read Write or R W and the 16 bit word read and write commands R W 0x52 or 0x57 can be used with them 1743315 03 2009 51 5 FIPIO Objects Available for Programming DN 255 Broadcast to all Modbus slaves This DN value must only be used for write operations R W N Ox4E in the event of a read operation On the Modbus network the command generated uses the address 0 this means that all the Modbus slaves must accept the command although none of them will acknowledge it The drawback with the broadcast command is that the gateway has no way of checking whether the Modbus slaves have received the command Even if there are no slaves present on the Modbus network the gateway will still return a valid PKW response R W N OK NOTE This feature can be particularly useful if you need to perform an urgent command on all the slaves at the same time Incorrect address Any value other than those indicated above will elicit an error code from the gateway R W N Ox4E Read Write R W R W 0x00 R W 0x52 R W 0x53 R W 0x57 R W 0x58 52 Reset command and response As long as R W remains at 0x00 no command will be generated on the
203. ries E g The value of this field is set to the code for the Preset Single Register command write the value of an output word namely 0x06 word affected by the command E g The value of this field should be changed by entering the address of the CMD command register namely 400 0x0190 This value will be automatically converted to hexadecimal if the user enters it in decimal Preset Data 2 bytes Data Location Address in the gateway s output data memory 0x0200 to or more fora 0x0233 of the datum to be transmitted in the Preset Data field of the query data block frame NOTE The Data location field is used for each frame that conveys data between the Modbus slaves and the FIPIO master In this instance it designates the starting address of the data block to be transmitted Register 2 bytes Address of an output word or of a register in the Modbus slave s memory This Address field designates the memory object to which the command relates NOTE This field is common to all Modbus command queries which seek to access one or more locations in the memory of a Modbus slave When accessing several memory locations the Register field designates the address of the first 98 1743315 03 2009 7 Using ABC LUFP Config Tool A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION You must use even values for the Data Location field i e 514 516 518 etc The selection of odd locations complicates
204. rmat 1 stop bet bet at 0 Bits 10 17 Modbus format No parity bes at 0 Bits 12 1 amp Not used bits at 0 i EPSA PE Bits D 7 Modbus response timeout 300 ms 3 x 100 ms ey Ri Nn a oc I f 1 hz i i a 3 DN Bits 6 15 Number of frame retransmissions over the Modbus network 2 60 15 Bits 0 7 Time taken by gateway to reconnect Modbus slave following a break in fo A 2 00 22 30 Ox007E communication 305 30 x 1 5 Bits 8 15 Not used bits at 0 1 g ro Bits 0 7 Behavior on losing FIPO network Reset penodic command word tii aAA vales transmitted to Modbus slaves L56 byte 2 ce ace Si 0x020 Bits 6 15 Behavior on losing Modbus network Reset periodic control word valves transmitted by Modbus slaves L568 byte 2 MANo 2 00 24 00000 Not used bits at 0 i in T ANN E hise Cycle time of fast penodic commands 200 ms 20 x 10 ms M20 230 DAT Cycle time of normal penodic commands 800 ms 20 x 10 ms hie Oana aic Cycle time of fast penodic controls 300 ms 30 x 10 ms a Gage andianentden Cycle time of normal perodes controls 1 600 ms 180 x 10 ms Cycle time settings for penodic commands n 1 to 16 000 it O Prd command n i fast D Bit 5 Prd command n 6 fast 0 a RAN 2 cl 0 27 O66 0001 Bit 1 Prd command n 2 normal 1 Bit 6 Prd command n 7 fast 0 LAUR t Prd command n 3 fast 0 Bit 7 Prd command n 8 fast 0 010 it 3 Prd command n 4 normal 1 Bit
205. rongly recommend that you read this manual when using ABC LUFP Config Tool the present guide will limit itself to the ABCLUFP Config Tool features relevant to a LUFP1 gateway implementation 7 3 Connecting to Disconnecting from the Gateway In the ABC LUFP Config Tool the connection to the gateway must be performed manually But first you should check which serial port the ERTE Te A hr ellis mnt ner ABCLUFP Config Tool will use for this connection IN File Fieldbus Tools view Help the Tools menu the Port sub menu will reveal a el EE J v comi which serial ports COM1 COM2 etc are currently Upload configuration from A6C UUFR com4 available If several COM ports are available select pi s8 5 Download configurationto acute MgA thutor lal the port you intend to use for connecting to and Stare Lageinig configuring the gateway Devices as oe Fieldbus Type FIP 10 Protile FED C2 An example is given here NOTE If all the serial ports of your PC are already used by other applications you must first close ABC LUFP Config Tool then free a serial port by disconnecting closing or terminating an application that currently uses a serial port Afterward restart ABC LUFP Config Tool because COM ports are only scanned during its start up the freed COM port should now be useable by it To connect ABC LUFP Config Tool to the gateway e right click on the ABC LUFP element
206. s slave in order to have access to it in ABC LUFP Config Tool from any configuration and at any time These two features are only available provided that there are fewer than 8 Modbus slaves declared which is not the case in the standard configuration as it comprises 8 TeSys U motor starters Adding a new type of Modbus slave Use one of the two methods described below a Select Sub Network then choose Add Node from the Sub Network menu A new node is added after all the other configured nodes By default its name is New Node b Select one of the nodes located under the Sub Network element then choose Insert New Node from the menu with the same name as the selected node A new node is added just before the selected node By default its name is New Node All of the steps in configuring the new node are described in Section 7 11 Copying a previously configured Modbus slave Select the node corresponding to the slave whose configuration you want to copy then choose Copy from the menu with the same name as the selected node Keyboard shortcut Ctrl C Then use one of the two methods described below a Select Sub Network then choose Paste from the Sub Network menu A new node is added after all the other configured nodes Its name and its whole configuration are identical to that of the node you copied Keyboard shortcut Ctrl V b Select one of the Su
207. s accessories are available in the Schneider Electric catalogue 1 Hubs junctions and line terminations EV EWS GCOS TUD seisis deere ecient bus topology with LU9GCO3 splitter boxes O VW3 A8 306 TF3 T junction DOX cc eeeeeeeeee eens bus topology with VW3 A8 306 TF3 T junction boxes O 2 way TSXSCA62 subscriber connector bus topology with SCA junction boxes O TSXCASO SCA junction DOX cee cece ceeeeeeeeeeeeeeeees bus topology with SCA junction boxes LI VW3 A8 306 RC double termination all topologies 2 Cables VW3 A8 306 Ree Modbus cable cccceceeeee ees bus topology with SCA junction boxes VW3 A68 306 Modbus Cable cccceeceeeeeeeeeees bus topology with SCA junction boxes Shielded double twisted pair Modbus cable bus topology with branch boxes This passive box has 8 female RJ45 connectors Each of these connectors can be connected to a Modbus slave to a Modbus master to another Modbus hub or to a line termination This passive box includes a short lead with a male RJ45 connector allowing it to be connected directly to a Modbus slave without having to use a different cable It is fitted with 2 female RJ45 connectors for the connection of two Modbus cables of the VW3 A8 306 Ree type This passive box has a printed circuit fitted with screw terminals
208. s arbitrator Green Initialization and configuration of the gateway Flashing green Gateway in operation Flashing red green Configuration absent invalid Use ABC LUFP Contig Tool to load a valid configuration e IfLED does not flash from red to green and if LEDs and all flash at the same time at a frequency of 2 Hz this means that the physical gateway address is already used by another FIPIO device or that it has been set at 0 with the gateway s coding wheels Try to resolve this address conflict by viewing the FIPIO network configuration in PL7 PRO If necessary modify the addresses in the configuration Also check the physical address configured on the gateway using the coding wheels see Section 2 7 1 e f both identically addressed devices are reconnected to FIPIO network simultaneously then the four LEDs mentioned above will not flash In this case only LED will flash and then only discontinuously and in an irregular manner This happens for example when you disconnect and then reconnect the bus arbitrator 1743315 03 2009 25 4 Software Implementation of the Gateway 4 1 Introduction This chapter presents the implementation of the LUFP1 gateway in PL7 PRO with a Schneider Electric Premium PLC e g PLC TSX 57353 v5 1 acting as master and FIPIO bus arbitrator via the FIPIO link built into its processor card NOTE The various configuration possibilities for Modbus exchanges
209. s command the corresponding bit switches to 0 It will return to 1 as soon as the gateway receives a valid response from the slave If several periodic words or several Modbus commands are configured for the same Modbus slave then it only requires one of the words to generate valid communications for the corresponding LAS bit to be set to 1 NOTE e You must configure at least one periodic command or control word per slave profile FED C32 P or at least one Modbus command per slave ABC LUFP Config Tool and profile FED C32 If not the slave will be considered permanently absent bit at 0 e f you want to communicate with a Modbus slave using the PKW service only be aware that the LAS and PKW services are totally disassociated a PKW response from a Modbus slave will not set to 1 the corresponding bit in word IW p 2 c 0 0 27 Standard configuration 8 TeSys U devices If you delete any motor starters from the configuration see Section 4 2 6 you will need to adapt the above table accordingly If for example you delete 3 motor starters it has to be the last 3 whichever Modbus addresses are used the bits corresponding to TeSys U motor starters n 6 7 and 8 namely bits X5 X 7 will take on the value Not used bits at 0 48 1743315 03 2009 5 FIPIO Objects Available for Programming Configuration under PL7 PRO profile FED C32 P The absence from the configuration of one or more Modbus slaves entails the same modificat
210. signed for this purpose This will be particularly useful when you are working on your PLC applications and configurations However it only shows data from the Data and Preset Data fields configured in the Query and Response elements of a single Modbus slave 1743315 03 2009 71 7 Using ABC LUFP Config Tool As the gateway s LAS and PKW services are not located in the memory zones reserved for exchanges with the Modbus slaves the input and output data of these services cannot be viewed in the same way Only PL7 PRO and the FIPIO master can access such data To monitor the contents of the HECE olx gateway s memory start by File Node Command Columns View selecting the node corresponding amp 2 i to the Modbus slave whose data ResdHolling Registers Query _ i Slave Address Function code Starting register address Number of registers Checksum you wish to VIEW and then Value Value Value Eror check type Error check start byte choose Monitor from the menu om 0x03 00000 0 0000 CRC 00000 with the same name as the Read Holding Reyisteis Respurise p revi ous y se e cte d no d e A Slave ddress Function code Byte count Data Checksum monitoring window then appears In Area 16 bytes 512 Out Area 16 bytes 512 General 4rea 0 bytes 992 ooo0 a 0200 aj 0400 ry 0007 0207 0407 000E 020E 040E se ae ge 0023 I 0333 x 0433 z The
211. sses more than once in this area the cormesponding locatons will be displayed in red in the General Area pane of the Sub network Monitor window out it will mot affect the operation of the gateway Data transfer order FIPIO network LSB first and MSB last Swapping LUFF 1 gateway MSB stored in the lowest memory address Modbus RATU metwork MSB first and LSB last The opton which should be selected for Modbus data stored in the gateways memory is Moa swapping This option relates to all Data and Preset data felds in the Modbus query and response frames 1743315 03 2009 113 Appendix B LUFP1 Gateway Settings The settings described here correspond to the configuration and adjustment parameters for the LUFP1 gateway They only exist when the gateway is used according to standard profile FED C32 P The exchange modes for the corresponding FIPIO objects are described in Section 5 6 Once they have been downloaded to the gateway the values of these parameters can be read and or replaced using the gateway s PKW service see Section 5 3 5 NOTE Some of the configuration and adjustment parameters cannot be modified after the initial setup of the gateway using the PLC See the Configuration Parameters and Adjustment Parameters tables in Chapter 4 2 Configuration Parameters The configuration parameters enable the gateway to configure the Modbus commands that it exchanges with the Modbus slaves The
212. status register is forced to 0 if the corresponding TeSys U motor starter is missing 4 1 4 2 Degraded Mode Description This description takes into account the following elements but only applies to the standard configuration described here e The PLC processor e The FIPIO master 28 1743315 03 2009 4 Software Implementation of the Gateway e The LUFP1 gateway e The Tesys U starters controllers PLC processor stopped or on failure PLC processor response Outputs Software error outputs reset to default state or hold their present state depending on configuration Hardware error EEPROM or hardware failure output state will be undetermined Inputs PLC stops responding to inputs in any error state FIPIO master response Depending on FIPIO master configuration the FIPIO master stops to communicate with the LUFP1 gateway or the FIPIO master forces outputs to 0 and refreshes inputs or the FIPIO master holds outputs in their last position and refreshes inputs LUFP1 gateway response If the FIPIO master stops communicating with the LUFP1 gateway case of a Premium PLC the periodic Modbus exchanges continue to run all output data is reset to 0 and sent to the Modbus slaves the input memory continues to be refreshed with the Modbus slaves response data If the FIPIO master forces outputs to 0 and refreshes the inputs the periodic Modbus exchanges continue to run all output data is reset to 0 and sent to the
213. t All Select All Deselect All Select All Deselect A Select All Deselect All Select All Deselect All Select All DeselectAll Read Holding Reg Preset Multiple Regs Read Holding Reg Preset Multiple Regs Read Holding Reg Preset Multiple Regs Read Holding Reg Preset Multiple Regs Read Holding Reg Preset Multiple Regs ln 4rea 16 bytes 512 ogai o400 z OO1D nie Hea TeSys U n4 TeSys U n5 0074 select All DeselectAll Select All _Ceselect All a 08k Nhe REE Ral Read Hodna Reg noce Preset Multiple Regs OOES8 0105 O12 O13F 015C 0179 0196 01D DIE o Response Query Collision a Trigger or Statusbytes Reserved To see which memory locations are occupied by data from the command we are interested in simply uncheck the box corresponding to the Preset Multiple Registers command in the TeSys U n 4 node as shown above This reveals that the Modbus data transmitted with the query for the command occupy 2 bytes starting at Ox0206 NOTE Only memory locations 0x0200 to 0x0233 can be used max size of input data 52 bytes Using any other address in the gateway s output data memory area 0x0234 to Ox03FF will throw the gateway into non operational mode signaled by the sudden red green flashing of LED Gateway LEDs and will also flash at a frequency of 2 Hz You can ignore the size indications on the graphics in th
214. t communications with the selected node see Node menu below Select Send the Modbus command in the upper pane see Command menu below ee stop Resume refreshing the data in the lower pane 72 1743315 03 2009 7 Using ABC LUFP Config Tool The menus of this window allow you to perform the following actions e File menu The Exit command closes the Monitor window thus returning to ABC LUFP Config Tool e Node menu The Start Node command restarts all the communications configured for the node currently monitored Since a node is active by default this command is only useful if the node has been explicitly stopped using the Stop Node command The Stop Node command stops all the communications configured for the node currently monitored This means that all Commands configured for the node are inhibited Note The Stop Start Node commands can be particularly useful when used to isolate one or more nodes in order to investigate Modbus communication problems e Command menu The Select Command command opens a Select Command window that enables you to select a Modbus command see chapter 7 11 2 Once selected the Query and Response frames of this command will be displayed in the upper part of the Monitor window You can then edit the value associated with each field of the Query frame before sending the command using Send Command see below Th
215. t is 1 000 m Follow this rule Number of repeaters 2 Sum of lengths in km lt 22 The longest FIPIO network that can be implemented under this rule would be 15 km long and would require 14 repeaters 14 2 15 22 Do not connect more than 32 master or slave stations per segment not counting repeaters e Cable routing keep the bus away from power cables at least 30 cm make crossings at right angles if necessary and connect the cable shielding to the earth on each unit For more details about connections see the FIPIO Bus FIPWAY Network Reference Manual ref TSX DR FIP F for the French version TSX DR FIP E for the English version TSX DR FIP G for the German version and TSX DR FIP S for the Spanish version This manual also contains details on the operating characteristics and implementation of a FIPIO field bus In addition the manual Electromagnetic Compatibility of Industrial Field Buses and Networks ref TSX DGKBL F for the French version ref TSX DGKBL E for the English version and ref TSX DGKBL G for the German version contains valuable rules and precautionary measures for wiring up a FIPIO field bus A number of accessories are available from the Schneider Electric catalogue to facilitate the connection of stations on a FIPIO network 1 Connectors tap boxes and line terminations o TSX FP ACC 12 connector Isolating connector for equipment with a 9 pin female SUB D connector Used for daisy chain
216. te LUFP1_FEDC32_Example cfg The system architecture for this configuration is identical in all respects to the one described in Chapter 4 The example is provided mainly to assist you in understanding the uses and possibilities of ABC LUFP Config Tool e Adding the LUFP1 Gateway under PL7 PRO ccccccccceeeeeeeeeeeeeeeeeeeeeeesaeeeesaaeeeeaaeeeseaes Section 4 2 2 Select basic module FED C32 instead of basic module FED C32 P e Configuring and Adjusting the LUFP1 Gateway 0 0 eee reer rere eee eeeeeeeeaaaaias Section 4 2 3 Do not double click on basic module oi PL7 PRO Ignore the description of how configuration and adjustment parameters are downloaded from the FIPIO master PLC to the LUFP1 gateway When ABC LUFP Config Tool is used and the configuration thus downloaded from ABC LUFP Config Tool see next steps the parameters will be located on the gateway only From the viewpoint of PL7 PRO and the FIPIO master PLC the gateway will have a local configuration as the gateway cannot be configured under e Configuration Parameter Values Standard Configuration ccccccccceeeeeeeeeeeeaeeeesaaeees Section 4 2 4 Ignore this step for the time being it describes elements which under ABC LUFP Config Tool will come into play later on Adjustment Parameter Values Standard Configuration cccccccecseeeeeeeeeeeneeeeeeaeeees Section 4 2 5 Ign
217. teway See Section 7 5 Check that the configuration is valid LED GATEWAY flashing green 5 Save the configuration to your PC s hard disk 6 Use the FIPIO master PLC inputs It only remains to assign symbols and use the inputs corresponding to the new Modbus data read on motor starter n 2 This gives us the mapping shown on the next page derived from the one used for the standard gateway configuration Changes in relation to the standard configuration are flagged by a grey background except for the reserved word lW p 2 c 0 0 26 1743315 03 2009 81 7 Using ABC LUFP Config Tool Perodic communications Control of TeSys U motor starters Periodic communications Control of TeSys U motor starter Periodic communications Free locations YolWip 2 c 0 0 YolWip 2 c 0 0 1 YolWip 2 c 0 0 2 YolWip 2 c 0 0 3 YolWip 2 c 0 0 4 YolWip 2 c 0 0 5 YolWip 2 c 0 0 6 YolWip 2 c 0 0 7 YolWip 2 c 0 0 8 YolW p 2 c 0 0 9 YolWip 2 c 0 0 10 YolWip 2 c 0 0 11 YolW p 2 c 0 0 12 YolWip c 0 0 13 YolWip 2 c 0 0 14 YolW p 2 c 0 0 15 YolW p 2 c 0 0 16 AQ YolWip 2 c 0 0 25 Bit 15 Bit 6 Bit Fo Bit O Value of status register for motor starter Free memory location Value of KF Status Register Value of K7 Status Register 3 free format Not used 10 words pL IWp 2 c10 0 26 Reserved 1 word a ala ak 4 IWip 2 c 0 0 27 lta anive Modbus
218. teway if Update mode is set to Change of state on address trigger In this case it specifies the address in the gateway s output memory 0x0200 to 0x0233 of an 8 bit counter managed by the FIPIO master The FIPIO master updates this counter in the same way as the other gateway outputs see Section 5 1 3 When the value located at this address is changed by the FIPIO master to any value other than zero the query configured with a Change of state on trigger for that address is transmitted to the Modbus slave by the gateway Unlike the On data change and Change of state or Cyclically modes this mode enables you to send a command on a specific order from the FIPIO master if for example the latter is unable to update all the data for any given query at the same time NOTE The trigger byte does not have to be an output updated by the FIPIO master It is quite possible for it to be an input between Ox0000 and Ox0033 in which case theexchanges of the command currently being configured will be conditioned by the Modbus slave that upd ates the byte Update mode This element is used to specify the transmission mode for the query on the Modbus network It takes one of the following four values Cyclically Default communication mode The query is transmitted periodically over the Modbus network see Update time This is the communication mode used systematically for all Modbus commands generated by
219. the 1st Fault Register control address 452 0x01C4 The operation is a very simple one and consists merely of changing the value of the Starting Register Address element in the Query of the Read Holding Registers command Modbus command for reading values of multiple registers Select this element then change its value as shown at the top of the next page You can enter the address of the parameter in decimal format ABC LUFP Config Tool will automatically convert it to hexadecimal arc ABC LUFP Config Tool C Schneider ABC Config Tool LUFP1 Tutorial ctg File Starting register address Tools View Help aspire ABC LUFP FIPIO MB Gateway LUFP1 tutorial ces Configuaion o O Confguaton S Alphabetic Categorized Alphabetic Categorized cR SubNetwork Walue Ox01C Value Ee H TeSys U ni py TeSys U n 2 Ee Ty TeSys U n3 B Read Holding Registers 3 Ses Query po of Slave Address of Function code ting register address f Eg ister addre registers E Number o of Checksum ee H E Response Configuration iguratior o E Preset Multiple Regs Value Alphabetic Categorized H C TeSys Unt Definition of a Constant Word Value When vae i J TT TeSys U n5 transmitting the Word this Value will be sent ia When receiving a ord ABC will perform a HL TeSys U nb check aginst this Value If the received Word H O TeSys U n7 does not match it will be discarded H o TeSys U
220. the counter is incremented Trigger byte This element is only used by the gateway if the element Trigger byte is set to address Enabled In this case it specifies the address in the gateway s input memory 0x0000 to 0x0033 of an 8 bit counter managed by the gateway The FIPIO master reads the value of this counter in the same way as the other gateway inputs see Section 5 1 3 When the gateway receives a response to the associated Modbus command it increments the value of this counter by one unit value value 1 This mode keeps the FIPIO master informed when a new response is available This can be useful for example where there is a chance that the data from two consecutive responses could be identical For example with the ATS48 we do not want the response to be event driven so we will retain the default configuration 1743315 03 2009 97 7 Using ABC LUFP Config Tool 7 12 2 4 Configuring the Content of the Query Frame The window below is obtained using Edit Transaction from the Query menu Unlike the tree structure in the main ABCLUFP Config Tool window this display has the advantage of showing all of the frame s fields along with their values The values displayed below are the values assigned by default to the Modbus command query we have created The correspondence with the content of the corresponding Modbus frame is shown underneath ABC OP x Slave Address Function code R
221. the periodic control words configured by the user under PL7 PRO On data change The gateway transmits the query over the Modbus network when at least one data item in the query is modified by the FIPIO master This is therefore an aperiodic communication mode that works in a similar way to the indexed periodic variables PKW service described in Section 5 3 All the data from a single query must therefore be updated at the same time by the FIPIO master If you are uncertain as to whether your software is able to update all the output data from a query at the same time we recommend using Change of State on trigger mode rather than On data change Single Shot This transmission mode only allows a single Modbus exchange for the whole of the time that the gateway is operating This exchange takes place just after the initialization of the gateway Change of state on trigger With this aperiodic communication mode the Modbus query is sent every time that the FIPIO master changes the value of an 8 bit counter designated by the Trigger byte address element See the description of this element for further information about how to use this communication mode Change of state or Cyclically In this communication mode a combination of the Cyclically and On data change modes the query is transmitted periodically over the Modbus network see Update time and also whenever one of the outputs in the query is modif
222. these locations are not to be used If they were the mapping would overwrite the stored data with data from the services 128 1743315 03 2009 Appendix C Standard Configuration Output Data Memory Area The gateway has 52 output bytes Only the first 16 bytes are used Address Description Value of command register for motor starter Value of command register for motor starter Periodic 0x0204 Value of command register for motor starter communications Command of NxO20 1 word Value of command register for motor starter TeSys U motor starters OxO2Z0A 1 word Value of command register for motor starter word Value of command register for motor starter Value of command register for motor starter Value of command register for motor starter Free output area 36 bytes Reserved memory locations 4 bytes not used by gateway 0x0238 PKW service COMMAND Reserved memory locations a 5 bytes 1 0x023F oe Unusable output area 443 bytes OxOSFF 1 See note on PKW service RESPONSE in the previous table Total Number of Modbus Queries and Responses The total number of Modbus queries and responses is 32 2 periodic queries and 2 periodic responses for each of the 8 TeSys U motor starters Since the total number of Modbus queries and responses one can configure for a single gateway is limited to 52 whichever profile is used FED C32 or FED C32 P there are 20 spare Modbus queries and respons
223. tinue to run all output data is reset to 0 and sent to the Modbus slaves 1743315 03 2009 29 4 Software Implementation of the Gateway the input memory continues to be refreshed with the Modbus slaves response data Tesys U response Periodic Modbus exchanges continue to run Command registers 704 are forced to 0 and the motors are stopped Status registers 455 are transmitted to the gateway LUFP1 gateways disconnected on FIPIO side PLC processor response The PLC processor provides some error and diagnostic objects coming from the FIPIO master in case of slave disconnection from the application Refer to the PLC user manual to have their description This information must be managed in the PLC application FIPIO master response The FIPIO master provides the processor with some error and diagnostic objects in case of FIPIO slave disconnection LUFP1 gateway response Periodic Modbus exchanges continue to run all output data is reset to 0 and sent to the Modbus slaves the input memory continues to be refreshed with the data of the Modbus slaves responses Tesys U response Periodic Modbus exchanges continue to run Command registers 704 are forced to 0 and the motors are stopped Status registers 455 are transmitted to the gateway LUFP1 gateways failure PLC processor response The PLC processor provides some error and diagnostic objects coming from the FIPIO master in case of slave failure
224. tion with the Modbus slave Retries This element indicates the number of retransmissions carried out by the gateway if there is Default value 3 no response from the Modbus slave to a query or if the response is incorrect This retransmission process ceases as soon as the gateway gets a correct response within a given time If none of the retransmissions elicits a correct response the Modbus slave is deemed to be off line but only as regards the command in question The gateway then uses the Offline options for sub network and Reconnect time 10ms elements and LED MODBUS becomes red It will only revert to green when the Modbus command receives a correct response following reconnection see the element Reconnect time 10ms If the number of retransmissions is set to 0 this process will not be executed Timeout time This element represents the time that the Modbus slave will wait for a response If a 10ms response has not reached the gateway within the given time as defined by this element the gateway tries retransmitting This process continues until it reaches the last Default value retransmission allowed see Retries then the gateway declares the Modbus slave offline 10ms x 100 1s__ but only for the command to which the element timeout time 10ms belongs 1743315 03 2009 95 7 Using ABC LUFP Config Tool Configuration Description element Trigger byte This element is only used by the ga
225. tive motor starter registers 16 bit words The operating duration addresses 119 for the MSB and 120 for the LSB is read on TeSys U motor starter n 8 address 8 The result of the read operation value of the register at 119 and value of the register at 120 is 0x000D and 0OxC9C4 total operating duration OxOOODC9C4 903 620 seconds or 251 0055 hours Both of the response PWE words are therefore used 1743315 03 2009 53 5 FIPIO Objects Available for Programming PKW Command DN 0x08 RAW 0x53 read32 PWE 0xeses PKW Response WIWip 2 cA0 0 28 0x0077 PKE 119 RUWWIN 0x53 read32 OK PWE 0x000D used OxCotd used Output Sop 2 c0 0 28 Ox0077 oO p 2 cV0 0 2 Pola 2 cv0 0 29 QWip 2 cl0 0 30 o QWip 2 c 0 0 34 Ox0000 Sol VWiyp 2 cv0 0 30 Pol Vp 2 e003 oxdoo0 Dreses e Sample writing of the value of two consecutive motor starter registers 16 bit words The timeout and threshold for the thermal reset addresses 607 and 608 are written to TeSys U motor starter n 2 address 2 with the following values 90 s 0x005A and 60 0x003C The result of the write operation is a simple acknowledgement as no value is returned in the PWE of the response instead of inserting one or two values the gateway forces both words of the PWE to 0x0000 PKW Command Meaning PKE 607 DN 0x02 RAN 0x58 writes PWE 0x005A Ox003C PAW Response aWip2 c 0 0 28 Ox025F DN 002 RAN
226. to the new Modbus data sent to motor starter n 4 This gives us the mapping shown on the next page derived from the one used for the standard gateway configuration Changes in relation to the standard configuration are flagged by a grey background except for the two reserved words QW p 2 c 0 0 26 and QW p 2 c 0 0 27 1743315 03 2009 85 7 Using ABC LUFP Config Tool Bite PLC output weeeeeeeee DIt 8 Bit fo YoQW p 2 ci0 0 Value of command register for motor starter YoQWip 2 cl0 0 1 Value of command register for motor starter Periodic communications oQW p 2 c 0 0 2 OW p 2 cli0 0 3 Free memory location Sree cee saat art YoOQWi p Z cl0 0 8 Value of Command Register Tes Sede OQW p 2 cl 0 0 9 Value of 2nd Command Register Periodic communications gas c 0 0 10 B Not used Free locations QWip ei 40 0 25 16 words ToQ Wi p 2 ci0 0 26 QWip 2 c 0 0 28 PKE Address of the datum to be read written Apenadic communications a AAT 7 Ale fst co queried slave command Indexed periodic variables PKW service COMMAND YoOQW p 2 cl0 0 30 PWE Value to be written 1st word oQW i p 2 cl0 0 31 PWE Value to be written 2nd ward 7 11 Changing a Modbus Slave Configuration Configuring a Modbus slave itself remains very simple because it only involves the name and the Modbus address of the node to which it corresponds By contrast configuring Modbus commands is a more co
227. u will need to make changes to the fields Bake LUN US in one of the two diagrams below depending on whether it is a Read Holding Registers command or a Preset Multiple Registers command see Section 7 10 The correspondence between the different elements in these tree structures and the standard Modbus terminology is shown on the right Feed Hiig Fep Modbus command name M il Cape Modbus query Frame 1 N of 1st word MSB LSB Humber of words MSB LOB CRO16 LSBs MSB Modbus response f Frame 4 Word values MSB LSB CRO16 LSBs MSB OO F Hh firai Modbus command name Ti Modbus quer f Frame NM of Ist word MSB LSB Number of words MSS LSB Word values MSB LSB CRC16 LSB MSB Modbus response f Frame l N of ist word MSE LSB Number of words MSS LSB CRC16 LSB M5B NOTE In all cases the Query Slave Address and Response Slave Address elements are automatically updated by ABC LUFP Config Tool according to the node in which the command is located Their values are not usermodifiable Likewise the Query Function code and Response Function code fields depend on the nature of the Modbus command and cannot be changed by you The operations to be carried out are much the same as those used for changing the default commands For the Read Holding Registers command see Section 7 10 1 and Section 7 10 3 For the Preset Multiple Regs
228. utive 16 bit words or a 32 bit Dword This command is used mainly for modifying the value of two 16 bit registers located at two consecutive addresses on the same Modbus slave The value of output QW p 2 c 0 0 30 1st word of PWE is written into address PKE and the value of output QWi p 2 c 0 0 31 2nd word of PWE is written into address PKE 1 NOTE This command should be preferred to the 16 bit word write command R W 0x57 when using the PKW service to update a large number of consecutive registers on a Modbus slave 1743315 03 2009 5 FIPIO Objects Available for Programming Read Write Error R W N R W N 0x4E This specific value enables the gateway to signal a PKW command runtime error to the FIPIO master In this case the gateway uses the LSB of the 1st PWE word in the response to return an error code to the FIPIO master e 0x04 if no Modbus response or an erroneous Modbus response is received e 0x01 to 0x08 including 0x04 if an exception response is received from the Modbus slave This value will correspond to the exception code see Appendix E R W N Oxee Copies the value of the R W command register see above thereby also acknowledging the command 5 3 4 Sample Uses of PKW Service The examples below illustrate commands addressed to Modbus slaves consisting mainly of the 8 TeSys U motor starters described in Chapter 4 e Sample reading of the value of a motor starter register 16 bit word The 1st
229. utputs corresponding to the gateway s PKW service The purpose of this two stage update procedure is to isolate the use of the outputs from the rest of the program LUFP1 Gateway Diagnostics The FIPIO Diagnostics operating screen provides a graphic example of the use of the list of active slaves LAS service specific to the gateway and of the FIPIO diagnostic objects that a TSX Premium PLC assigns to the stations on its FIPIO network See the PL7 PRO user manual or online help for more details about using FIPIO diagnostics on Premium PLCs The screen is divided up into three separate frames as illustrated below e List of active Modbus slaves Each TeSys U n in this frame indicates that the corresponding TeSys U motor starter is present The hexadecimal value in the top right corner is that of the FIPIO input for the list of active slaves LAS service namely IW p 2 c 0 0 27 See Section 5 2 for a detailed description of the LAS service Ninis amp Ie oits Aand 0 List of modbus Active Slaves the LAS service input word have been reset by the gateway TeSys Und TeSys U nz TeSys U n4 Modbus slaves n 3 and 5 are therefore absent TeSys U nb TeSys U nT TeSys U n The LUFP1 box uses a system bit on the Premium PLC to indicate whether the gateway is present on or absent from the FIPIO network colored blue or red accordingly This system bit SW128 X2 in this example is described in Section 5
230. way 52 bytes accessible by the FIPIO master in the form of output data see memory structure section 6 1 3 for the mapping between the addresses of these bytes and the gateways FIPIO objects Outputs 460 output bytes maccessihle to the FIFI master due to the use of profile FED C32 FED C32 F outputs reserved for the LAS and PEW services and the presence of two reserved words Addresses Output data area aa _ Quiputs accessible to the FIPIO master i Taw 00233 ale ae Ux or Outputs inaccessible to the FIPIO master e355 460 bytes 112 1743315 03 2009 Appendix A Technical Characteristics LUFP1 gateway 1024 bytes inaccessible to the FIPIO master memory structure Addresses General data area 0x051F 285 bytes General data 0x0 520 Output area reserved for the Mailboxes Ox083F Cpg Internal area reserved for the management Ox OF BE of the upstream network 384 bytes area not used by the LUFP1 gateway 0x070 Intemal area reserved for the control registers Ox0 7 FO G2 bytes MSB first for 18 bit data Ox0 7 FE Gateway status FIPIO master command OxO FF 2 reserved bytes on the LUFP 1 gateway NOTE You can use this data area to store data from a Modbus response that you don t want to pass on to the FIPO master You can also use this area for data transfers between commands as this area is both an input and an output area In this case always use OOJOO as the starting address If you use the same addre
231. way configuration FIPIO setup objects Adjustment MVWWip 2 c 0 0 20 to These FIPIO objects do not exist and oMW p 2 cl0 0 49 the corresponding internal registers are Configuration _ KW p 2 c 0 0 to therefore not accessible via the KWip 2 c 0 0 29 gateways PAW service The main advantage of ABC LUFP Config Tool lies in the possibility of configuring the gateway s Modbus scanner more precisely than under PL7 PRO in that each Modbus command has its own configuration However using this implementation method for the LUFP1 gateway substantially modifies the operating principle described and illustrated in Chapter 7 The differences are set out below 62 1743315 03 2009 6 Advanced ABC LUFP Config Tool The exchanges between the gateway acting as Modbus master and the Modbus slaves are configured entirely using ABC LUFP Config Tool This configuration tool really goes into the details exchange timeouts communication modes frame content etc which makes it somewhat harder to use A chapter of this guide has therefore been given over to the subject Chapter 7 By configuring Modbus command queries and responses with this tool the user creates links between part of the contents of the Modbus frames and the contents of the gateway s physical memory input memory for the contents of the Modbus responses and output memory for the contents of the queries NOTE Only use the address ranges indicated in this guide
232. with a PLC using FIPIO You need to use PL7 PRO to configure the gateway and thus interface a FIPIO master with Modbus slaves The example used in this implementation enables the FIPIO master to dialog with 8 TeSys U motor starters describes all the FIPIO objects associated with the LUFP1 gateway and which you can use with PL7 PRO is dedicated to a third party application ABC LUFP Config Tool which enables the gateway to be configured in greater detail than as set out in Part I This part therefore supersedes chapt 4 describes an alternative method for configuring the LUFP1 gateway Rather than using PL7 PRO the gateway is configured with third party software known as ABC LUFP Config Tool allowing for more detailed configuration of the LUFP1 gateway The example used in this implementation is the same as in Chapter 4 describes how to use ABC LUFP Config Tool to create or modify a configuration for the gateway but only in the context of an Advanced Implementation of the Gateway It also presents the various software functions add or delete a Modbus slave add or modify a Modbus command etc and the changes to be made regarding advanced gateway implementation operations with PL7 PRO Chapter 6 contains the full set of Appendices which supplement the first two parts Technical Characteristics describes the technical aspects of both the gateway and the networks it is interfaced with namely the FIPIO and Modbus RTU networks
233. y default because for a 16 bit datum the most significant byte MSB is placed first in the Modbus frame and is always written MSB first into the gateway s memory by a FIPIO master Swap 2 bytes The bytes to be transmitted are swapped two by two Swap 4 bytes The bytes to be transmitted are swapped four by four This is rarely used as it only relates to 32 bit data It works along the same lines as Swap 2 bytes Example We will be using the No swapping value because the two bytes ofthe value to be written into the ATS48 s CMD register as transmitted by theFIPIO master are placed in the gateway memory MSB first 1743315 03 2009 99 7 Using ABC LUFP Config Tool Field in the Size in Description frame the frame Checksum 2 bytes Error check type Type of error check for the frame Default method Error check start byte Indicates the number of the byte in the frame from which the checksum calculation should begin The first byte in each frame carries the number 0 NOTE The calculation of a frame s checksum should always begin with the first byte Do not change the error check start byte from its default of zero A non zero value will result in an incorrect CRC and all Modbus communications will return an error 7 12 2 5 Configuring the Content of the Response Frame The window shown below is obtained using Edit Transaction from the Response menu The values displayed are those assig
234. y indicate the nature of any errors detected either by the gateway or by the FIPIO master See Sections 5 4 2 and 5 4 3 fora description of the explicit objects introduced here Diagnostics Explicit exchanges WMD 2 2 Module 0 W00 2 Status Galewaris missing AMAD 2 2 Standard internal Fault 0 0 2 Channel Status The Diagnostics program includes all the ST instructions for generating the explicit FIPIO diagnostic commands The program handles the following tasks The example opposite illustrates one type of error gateway out of supply e A timeout TM4 is used to generate two explicit diagnostic commands every 5 seconds One of these commands reads the Module status and the other reads the Standard channel status e A second timeout TMB5 is used to prolong the Read status in progress alert MW p 2 c 0 0 X0 by 500 ms so that it can be seen in the Exchange management status line of the FIPIO Diagnostics screen This indicates the activity triggered by the two explicit diagnostic commands see previous point 1743315 03 2009 135 Appendix E Modbus Commands Only the Modbus commands shown in the table opposite are supported by the gateway The structure of the query and response frames for each of these commands is described in the rest of this chapter Broadcast 1 Modbus command Read Holding Registers Preset Single Register Preset Multiple Registers 1 The co
235. y means of 30 configuration parameters and 20 adjusiment parameters tansmified to the gateway by the FIPKO master on conmechon FED 32 Simplified profile for the FIPIO master configured using ABC LUFP Config Tool Charattensics common to both profles 32 input words o Vfp2 010 0 to Wip 20c0 0 31 32 output words SO Wip cif 0 to OWip 2 ci0 0 31 Standard connections male pin SUB D connector single transmission rate 1 Mbit s FIPIO station of slave type FIPS address configured using 2 coding wheels address between 1 and 29 In the case of Prenwum PLCs addresses 0 and 63 are reserved standard FIPIO diagnostics but without input validity Available inputs outputs 26 input words S6lVWip 2 c10 0 to SolWip 2 cV00 25 amp 26 output words OWip2 cli0 0 to OViip 2 cV0 0 25 for profile FED C32 profile FED C32 F is limited to a sum total of 26 words List of actve slaves LAS service occupies word 3 WVip 2 ch 0 0 27 Indexed periodic variables PRVN service occupies words VWip 2 ci0 0 25 to Wip 2 c0 0 31 and SQV Wip 2 010 025 to W0Wp 2 20 0 31 Modbus RTU Physical media R5485 serial link characteristics Network topology Multipoint linear topology with adapted line terminations impedance of 120 in parallel wiih a capacity of 1 nF Transmission rate 1 200 to 57 600 kbits s Data bits amp subscnber addresses 1 to 24 7 Address 0 reserved for broadcasting Addresses 65 125 and 127 reserved if
Download Pdf Manuals
Related Search
Related Contents
Samsung SGH-Z810 Užívateľská príručka - Polaris Brasil Clique aqui para abrir ou baixar Índice Sony Ericsson W880i Samsung 스마트카메라 WB50F User Manual Copyright © All rights reserved.
Failed to retrieve file