Home
6. Configuring the Gateway
Contents
1. Fle eta Tock view Help ey EREE z phabetic Categorized phabetic Categorized OebtSliOlieexx SS aBOSRT Bae g 9 Byte swap No swapping Byte swap No swapping ABC LUFP Master Mode LUFP7 tutorial 4 Data length 0x0004 Devi Canai Data location 0x0208 544 Jevices onfiguration IW aaa a 2j Alphabetic Categorized TeSysUn T TeSys U n 2 Byte swap No swapping 4 T TeSys U n 3 Data length 0x0002 T TeSys U n 4 Data location 0x0208 Read Holding Registers Configuration Configuration El Preset Multiple Regs Alphabetic Categorized Alphabetic Categorized J E Query Byte swap No swapping Byte swap No swapping Cf Slave Address B yte swap 0x0004 Data length Ox0004 Hf Function code The byte swapping method to use on the data This is used Data location 0x0208 z 0 0220 Lf Starting register address to change the data order of High Byte Low Byte Swap 2 EY Number of registers bytes will change from Bytel Byte2 Byte3 Byted to of Byte Count Byte2 Bytel Byte4 Byte3 Swap 4 bytes will change from E Bytel Byte2 Byte3 Byte4 to Byte4 Byte3 Byte2 Bytel Ef Checksum Ad 27 01 2006 17 34 Config Line 4 To check that these changes have been entered into the configuration choose Monitor from the Sub Network menu again aac Sub network Monitor OF x E
2. 008 42 4 3 Description of Services Assigned to Gateway I O 43 5 Gateway Initialization and Diagnostics 44 9 1 Ul Manage Cis ceiasnevecteia tet ou ciace tedaaccSiunaredcewnerernetaevaedconts 44 5 1 1 Profibus DP master command Word c0cceeeeeeees 45 5 1 2 Gateway Status Word cccccccccsssssseeseesseesseeseeessensees 45 5 2 Diag osic and Comro seene ae n E E wavepiiauentnenets 45 5 2 1 Profibus DP master command Word c0ceeeeeeeees 45 5 2 2 Gateway Status Word ccccccecssssseessesseesseeeseessensees 46 5 3 SIMPlified Operat rio eel aena a eeraa dai 46 5 4 Description of the Profibus DP master command Word 47 1744087 03 2009 5 5 Description of the Gateway Status Word cccccceeeeeeee 49 6 Configuring the Gateway scceesssseeseseeeees 51 6 1 Connecting the Gateway to the Configuration PC 51 61 12 PINS OUNS sis hays ares eet a a deco scanett anne cede rE 52 6 1 2 RS 232 Link Protocol ccccccccecceeeeeeeeeeeseeeeeseeeeeeaes 52 6 2 Installing ABC LUFP Config TOol ccccceeseeeeeeeeeeeeeees 53 6 3 Connecting to Disconnecting from the Gateway 54 6 4 Importing the Gateway Configuration cceceeeeneeeeeees 55 6 5 Transferring a Configuration to the Gateway c08 56 6 6 Monitoring the Content of the Gateway s Memory
3. 56 6 7 Deleting a Modbus Slave cccccccssssscecseeeeeesseseeeeseeesens 59 6 8 Adding a Modbus Slave ccccceeccecesseeeeeeeneeeeeaeeeeeesaaeeeees 60 6 9 Changing the Periodic Data Exchanged with a Modbus SIV Cire satya EAE Saale ete ale E E 62 6 9 1 Replacing a Periodic Input Data Element 62 6 9 2 Replacing a Periodic Output Data Element 63 6 9 3 Increasing the Amount of Periodic Input Data 64 6 9 4 Increasing the Amount of Periodic Output Data 69 6 10 Deleting Aperiodic Parameter Data cccceeceeeeeeeeeee 74 6 11 Changing a Modbus Slave Configuration c cc 76 6 11 1 Changing the Name of a Modbus Slave 0 TT 6 11 2 Changing the Address of a Modbus slave TT 6 11 3 Changing the Name of a Modbus Command or TransachoNs anon n eea aS 78 6 12 Adding and Setting Up a Modbus Commanid 79 6 12 1 With the TeSys U Motor Starters cceeeeeeceeeeeeees 79 6 12 2 With a Generic Modbus Slave cccccccsseeeeeeeeeeees 82 6 12 3 Adding a Special Modbus Command 0000000 95 6 13 Configuring the General Characteristics of the Gateway 101 6 13 1 Fieldbus Element deie E tance het 101 6 13 2 ABC LUFP Element ccccccccecseeeeeeseeeeeeseeees 102 6 13 3 Sub Network Element ccccceeeeee
4. NOTE Do not use the Symbolic Names option to name the I O exchanged with the gateway This operation is useless because the symbols you shall define under SyCon would not be exported and retrieved under PL7 PRO NOTE If the Length of input data or the Length of output data configured for the gateway under SyCon differs from the total size of the gateway input memory area or the total size of the gateway output memory area under ABC LUFP Config Tool the gateway shall refuse going on line LED off and LED red and the configuration error shall be indicated LED flashing red at 1 Hz Please see chapter 3 1744087 03 2009 37 4 Software Implementation of the Gateway 4 2 7 Saving and Exporting the Profibus DP Network Configuration Save the configuration by giving ita name Save or Save As option from the File menu The configuration of the Profibus DP network is then saved in a pb file In order to export this configuration for PL7 PRO follow these steps e Select the line that corresponds to the Profibus DP master TSX PBY 100 e Run the Export ASCII option from the File menu The newly created file bears the cnf extension NOTE the filename must include a name limited to 8 characters and a 3 character extension here cnf e Once these operations are completed quit SyCon 4 2 8 Importing the Configuration of the Profibus DP Network unde
5. 1744087 03 2009 81 6 Configuring the Gateway The operations to be carried out are similar to changing the default commands For the Read Holding Registers command please see chapter 6 9 1 and chapter 6 9 3 For the Preset Multiple Regs command please see chapter 6 9 2 and chapter 6 9 4 6 12 2 With a Generic Modbus Slave In this chapter we will add and configure Modbus commands differing from the LUFP7 defaults Please see Appendix F Modbus Commands for a list of the Modbus functions supported by the LUFP7 gateway If you need to use a command which is not supported by the gateway you can configure one A command of this sort is included in a specific element called Transactions or becomes a new Modbus command in its own right Please see the next paragraph for further details on this subject For our example we will use an 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 unique 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 Since the gateway s default 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 in its place see chapter 6 7 and
6. Objets syst me Constantes ET Pkw_service FB FB pr d finis PKW Service _ E S y Tables d animation E Lutpr_inputs_outputs i Farameter_read_write EEE _tead_ Each of the groupings presented above is described in an Dossier independent chapter 120 LUFF Gateway Exchanges Supervision Control PEW Service 1744087 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 further detail review the actual content of the example under PL7 PRO The source code has comments to help you understand how this works Each program file starts with a short description of the way it operates each line includes a comment Each variable used has a symbol whose name describes its use Use keyboard shortcuts Ctr1 E and Ctrl F to display the variables by addresses e g MW80 or by symbols e g Pkw_checked_boxes slave Two animation tables icon E have been created Lufp7_inputs outputs and Parameter_read_write The first animation table presents the I O that correspond to the exchanges with the LUFP7 gateway i e IW4 0 to IW4 0 15 and QW4 0 to QW4 0 15 The second table presents the I O related to the aperiodic service for reading writing the value of any motor starter parameter and also some local variables used by this service In the context of thi
7. To see which memory locations are occupied by data from the command you are interested in uncheck the box corresponding to the Preset Multiple Registers command from the TeSys U n 4 node as shown above We can see that the Modbus data transmitted with the query corresponding to this command occupy 2 bytes located from address 0x0208 Memory locations 0x0200 and 0x0201 are reserved see chapter 5 So you will not be able to place any Modbus data in these locations The sizes displayed above the graphics areas of this window In Area 32 bytes and Out Area 32 bytes correspond to the total input and ouput sizes you must configure using the modules presented under SyCon see point 6 You may wish to place the 4 bytes of Modbus data which will be transmitted by the gateway for this command into memory once the changes have been made There are two methods 1 Move all the other output data by 2 bytes which may be a tedious process 2 Change the memory location of the block of data transmitted The first solution is preferable as it avoids leaving any holes in the gateway s memory thus optimising the transfer of all of the data from the Profibus DP master PLC The TSX PBY 100 coupler can exchange up to 242 output words with Profibus DP slaves If communication with a larger number of slaves is required limit the volume of exchanges with the LUFP7 gateway In that case leaving such blanks in the gatew
8. ccccccseeeeeeeseeeeeees 8 Tos Terminology A r E 8 1 4 Introduction to the Communication System Architecture 9 1 5 Principle of Gateway Configuration and Operation 10 2 Hardware Implementation of the LUFP7 Gale WAY aara a esneneawia aetereucetaest 12 2 OM IRE CEIDE teats dane uated sie dad enna hacia it Taa ada E NAN 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 cccccsceeececeeseeeeeeeeeeeeeeeeeeesaaeeeees 14 2 5 Connecting the Gateway to the Modbus Network 14 2 5 1 Examples of Modbus Connection ccccceeeeeee scenes 15 20 2 PIOUS sce cuasnee oust a E aE ADORAT 17 2 5 3 Wiring Recommendations for the Modbus Network 18 2 6 Connecting the LUFP7 gateway to the Profibus DP NE IWOMK AE E EE E ess nituccatiteatuad etree E 20 2 Ole PINOS eaa 20 2 6 2 Wiring Recommendations for the Profibus DP Network 21 2 Configuring the Profibus DP Communication Features 23 2 7 1 Encoding the Gateway ACCIeSS ccceceeseeeeeeeeeeees 23 2 7 2 No Internal Line Termination cccccceseeeeeeeeeeeeeeeeees 24 3 SighallN Goce eesicenet serene Sanaa eame aan tucneaeemucetuaeeeue 25 4 Software Implementation of the Gateway 27 A AM OCUCUON iisa eaa a asian waaiee 27 4 1 1 System Architecture ccce
9. pi TEn When receiving a Word ABC will perform a EA Sub Network Walue Ox01C7 452 Bl T TeSys U n l Hl TeSys U nz E 4 TeSys U n3 Ela Read Holding Registers O BS tue ee Slave Address ve Function code eng 2 tating reaister address Gf Number of registers PE Checksum eC Preset Multiple Regs Value Alphabetic Categorized H T TeSys U rd Definition of a Constant Word Value When vae MEE Hh d 4 transmitting the Word this Value will be sent O01 C4 H a TeSys U nE check aginst this Value If the received ord TeSys Un does not match it will be discarded 0 TeSys Un Starting register address 27 01 2006 14 44 Config Line This operation in no way changes the content of the gateway s memory because we do not need to change the values of the Data length and Data location fields of the Data element of the Response to the aforementioned command So no additional operations will be necessary either in ABC LUFP Config Tool or in SyCon On the other hand the Profibus DP master PLC software will have to take account of the change in the nature of the corresponding input In Appendix C Input Data Memory Area paragraph the description of the word located at address 0x0006 becomes value of the motor starter ist default register This word corresponds to the PLC input word IW4 0 3 see chapter 4 2 9 62 1744087 03 2009 6 Configuring the Gateway 6 9 2 Replacing a
10. 84 1744087 03 2009 6 Configuring the Gateway LUFP7 gateways failure PLC response The PLC processor provides some error and diagnostic objects coming from the Profibus master in case of slave failure to the application Refer to the PLC user manual to have their description This information must be managed in the PLC application Profibus master response LUFP7 gateway response In case of a failure the gateway stops to communicate with the Profibus master and the Modbus slaves Slave response Depending on the slave The Profibus master provides the processor with some error and diagnostic objects in case of Profibus slave failure LUFP7 gateways disconnected on Modbus side or slave failure PLC response The processor gives access to the gateway status word coming from the Profibus master input table and to the gateway command word coming from the output table These 2 words must be managed in the PLC application in order to detect if a Modbus slave is missing Profibus master response The Profibus master must be configured to access the gateway status and command words in order to provide Modbus diagnostic information LUFP7 gateway response The behavior depends on the different options Timeout time number of Retries Reconnect time and Offline option for sub network Slave response In case of a Modbus disconnection the behavior depends on the slave In case of a slave failure undetermined state w
11. 100 us is the smallest interval that can be configured The LUFP7 gateway is a modular Profibus DP device i e the size of its I O exchanges on the Profibus DP network is configured by combining several modules together see below Supported and not supported Profibus DP services cont d The length of the gateway s diagnostic data should remain equal to 6 NOTE There are no parameter data the User _Prm_Data_Len and User _Prm_ Data parameters are therefore omitted Names of the bitmap files used by SyCon to display the gateway s connection status Beginning of the section where the modules used for configuring the sizes of the gateway inputs and outputs are defined 1744087 03 2009 Appendix B LUFP7 Gateway GSD File Module EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module IN OUT EndModule Module EndModule INPUT Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module INPUT EndModule Module
12. A 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway 2 5 1 Examples of Modbus Connection e Bus topology with LU9 GC3 splitter box The connections are shown below LUB LUS LU2B LU2S LUFP7 gateway Modbus cable Modbus splitter box LUI GC3 Modbus cables VW3 A8 306 R Line terminators VW3 A8 306 R Modbus T junction boxes VW3A8306TF with cable Modbus cable to another splitter box TSX CSA 00 replaces 5 1 2 3 4 5 6 ri NOTE It is advisable to place a line terminator at each end of the bus to avoid malfunctions on the communication bus This means that a tee should not have a free connector It is either connected to a slave or to the master or there is a line terminator NOTE It is important to connect the bus to the IN input of the splitter box Connection to another splitter box is made via the OUT output 1744087 03 2009 15 2 Hardware Implementation of the LUFP7 Gateway Bus topology with VW3 A8 306 TF3 T junction boxes This topology uses VW3 A8 306 TF3 T junction 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 with the splitter box The lead between the T junction box and the slave or the Modbus g
13. INPUT EndModule 1 1744087 03 2009 TAOTE 10 12 14 16 32 64 128 10 12 14 LG 32 64 Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte 0x30 32 64 word word word word word word word word word word word 0x10 32 word word word word word word word word word word 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 Ox7 F Uxs O sco EMONSA OCO Osc Es Cac 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 Ox5F 0x40 0x5F Definition of the rn ouT inputs size outputs size INPUT and OUTPUT modules Modularity under SyCon one can combine all three types of modules I O inputs and outputs up to the maximum number of modules Max Module the maximum number of input bytes Max_Input_Len the maximum number of output bytes Max_Output_Len and the total maximum number of input and output bytes Max_Data_Len You must not exceed any of these four limits Example 1 should the gateway exchange 83 input bytes and 33 output bytes you could combine the following modules e INPUT 64 Byte 32 word e INPUT 16 Byte 8 word e INPUT 2 Byte 1 word e INPUT 1 Byte e OUTPUT
14. NoScanning The query is no more 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 re transmissions If the Modbus slave has still not responded correctly following Default value these re transmissions the gateway stop sending it the corresponding query for a period of 40ms x 1000 _ time which can be adjusted using Reconnect time 10ms 10s When this period is over the gateway attempts to restore communication with the Modbus slave Retries This element indicates the number of re transmissions carried out by the gateway if there is no response from the Modbus slave to a query or if the response is incorrect This re transmission process ceases as soon as the gateway gets a correct response within a given time If none of the re transmissions has allowed the gateway to obtain a correct response the Modbus slave is deemed to be off line but only in relation to the command in question The gateway then uses the Offline options for sub network and Reconnect time 10ms elements and the LED MobBus becomes red This LED will only revert to a green state if the Modbus command is answered with a correct response once the reconnection has started see element Reconnect time 10ms If the number of
15. The structure of an exception response is independent of the Modbus command associated with the Function field of the query involved The whole frame of an exception response is shown below 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 of the query involved Command code with exception indicator The value of this field is set to Ox80 the value of the Function field of the query involved Slave Address Function Code indicating the nature of the error which has caused the exception response see table Exception Code on next page Checksum Lo Checksum Hi Error check 134 1744087 03 2009 Appendix F Modbus Commands mame a me Description of the exception exception 0x01 ILLEGAL FUNCTION The query s Function command code is not implemented in the Modbus slave software or it is unable to process it for the moment 0x02 ILLEGAL DATA The combination of the query s Starting Address and No of Registers fields ADDRESS or assimilated fields gives access to one or more addresses which are not accessible on the Modbus slave 0x03 ILLEGAL DATA The value of one of the Modbus query s fields is outside the authorized limits VALUE This error does not affect the content of the Data or assimilated fields as this error only takes account of the fields used for managing the Modbus pro
16. 2 Configuring the Profibus DP Communication Features This configuration must be carried out when the gateway is turned 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 circuits 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 Profibus address as the communication speed on the Profibus network 9 6 kbits s to 12 Mbits s is automatically detected by the gateway 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 LUFP7 gateway is identified on the Profibus DP bus by its address ranging from 1 to 99 2 3 7 Units R on The gateway s Profibus DP address depends on the position of the two 6 O coding wheels represented on the left in their factory setting positions S L default address 2 1 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 D o units Oo O 9 L 1744087 03 2009 23
17. 2 Hardware Implementation of the LUFP7 Gateway Any change to the gateway s address shall be taken into account only once it is powered on again Examples Address 19 Address 73 COS Units oO O on Units 6 O Tens 2 2 No Internal Line Termination The LUFP gateway has no active line termination You must use a Profibus DP connector with such a termination if you place the gateway at one of the ends of a bus segment 41744087 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 S lt LUFP7 S 0 O Q a a O e se 1 ONLINE 2 OFFLINE 3 NoT USED 4 FIELDBUS DIAG 5 MODBUS 6 GATEWAY ILIM SBOOE LED gt Gateway state LED gt Gateway state Off Profibus DP bus Gateway off line Off Profibus DP bus gateway on line ONLINE i j OFFLINE Green Profibus DP bus Red Profibus DP bus Gateway off line Gateway on line exchanges are impossible exchanges are possible Off Gateway initialization achieved Flashing red 1 or 2 Hz Gateway configuration error 1 Flashing red 4 Hz Error when resetting the gateway on Profibus DP 1 Off No power Off No power Flashing green No Flashing red green Configuration absent not valid ee con m ancalons L Use ABC LUFP Config Tool to load a valid configuration communications OK G
18. 93 75 187 5 500 1 500 or 12 000 kbits s e Maximum network length the length of each segment from one line termination to the other is limited and depends upon the transmission rate Using one two or three repeaters makes it possible to put such segments end to end one can thus derive the maximum total length of the network without changing the maximum length of each segment Maximum Max network length Transmission rate segment length with the three repeaters Up to 93 75 kbits S o oo eeeeeeeeeseeeee 1 200 m 3 937 ft 4 800 m 15 748 ft 187 5 kbits S 00 0 ee eee eeeeee neces 1 000 m 3 281 ft 4 000 m 13 123 ft 500 kbits s 400 m 1 312 ft 2 000 m 6 567 ft 1 500 kbits s 200 m 656 ft 800 m 2 625 ft 12 000 kbits s 100 m 328 ft 400 m 1 312 ft Profibus DP e Maximum number of stations 32 stations per segment repeater included up to characteristics 126 stations with all three repeaters repeaters included Address 126 is reserved cont d and should therefore not be used for exchanging data e Possible types of stations there are three types of Profibus DP stations Class 1 DP master DPM1 PLC PC etc exchanging information with DP slaves Class 2 DP master DPM2 A programming bus configurating or commissionning device used to configure the Profibus DP network upon commissioning and operation or supervision DP slave Peripheral device that exchanges data cyclically with the
19. It allows the user to decide whether for example he should change the period for cyclical exchanges with one or more of the TeSys U motor starters see chapter 6 Configuring Modbus Exchanges The LUFP7 gateway carries out four types of exchanges with each of the 8 TeSys U motor starters The first two exchanges are cyclical and allow you to control and monitor the motor starter The last two exchanges are aperiodic only when there is a change in the values of the data to be transmitted to the motor starter and allow you to read and change the value of any motor starter parameter Modbus function Number of Exchange between the LUFP7 gateway bytes 1 and the TeSys U motor starter Read Holding 115 105 Periodic reading 300 ms period of the TeSys U motor Registers starter s status register address 455 0x01C7 only Preset Multiple 4454115 Periodic writing 300 ms period of the TeSysU motor Registers starter s status register address 704 0x02C0 only Read Holdin Aperiodic reading of the value of a single parameter for a 0x03 Register J 11 5 10 5 single TeSys U motor starter at a time function and J address supplied by the user Preset Single Aperiodic writing of the value of a single parameter for a 0x06 J 11 5 11 5 single TeSys U motor starter at a time function and Register address and value supplied by the user 1 Number of bytes in the Query number of bytes in the Response plus a period of sile
20. Periodic communications a 0x0208 1 word Value of the motor starter command register Controlling 0x020A 1word Value of the motor starter command register TeSys U motor starters i 0x020C 1word Value of the motor starter command register 0x020E 1word Value of the motor starter command register 0x0210 1word Value of the motor starter command register O ere 0x02 12 1 byte Slave no 0x01 to 0x08 Aperiodic communications 0x0213 1 byte Function number 0x03 Reading the value of a 0x0214 1word Address of the parameter to be read Oxxxxx motor starter parameter QUERY P l 0x0216 1word Number of parameters to be read 0x0001 a 0x0218 1 byte Slave no 0x01 to 0x08 Aperiodic communications 0x0219 1 byte Function number 0x06 Writing the value of a 0x021A 1word Address of the parameter to be written Oxxxxx motor starter parameter QUERY l 0x021C 1word Value of the parameter to be written Oxxxxx Aperiodic communications 0x021E 1 byte Read parameter query counter Trigger bytes for the queries 9 x021F 1 byte Write parameter query counter 0x0220 1 byte Free output area 0x02F3 1 byte 212 bytes 0x02F4 1 byte Unusable output area 0x03FF 1 byte 268 bytes Total Number of Modbus Queries and Responses The total number of Modbus queries and responses is equal to 36 2 periodic queries and 2 periodic responses for each of the 8 TeSys U motor starters plus 2 aperiodic queries and 2 aperiodic response
21. Slave MSB Function LSB 1620000 Written parameter address 16 0000 Written parameter address 1620000 Written parameter value 16 0000 Written parameter value 1620000 Queries counters Responses counters Read counter MSB a Read counter M B a 1670100 Write counter LSB o ta ALTA Write counter LSB ao The Pkw_service program includes the ST instructions that use the settings and values from the first frames of the previously described PKW Service operation screen These instructions are mainly designed to update the PLC outputs that relate to the commands of the aperiodic parameter reading writing service QW4 0 9 to QW4 0 11 for the read command QW4 0 12 to QW4 0 14 for the write command and QW4 0 15 for the counters associated to these two commands This program processes the following tasks 126 Test of all the checkboxes from the Slave and Command parts of the screen If none of the boxes from each of these two parts is currently checked one of them will be checked by default Slave TeSys U no 1 Command Parameter Reading Comparison of the values that correspond to these checkboxes over two consecutive PLC cycles in order to keep only one checked box at any given time in each part When the SEND command button is detected as being pushed this program first updates some local variables then updates the outputs that relate to the aperiodic parameter reading writing service
22. Slave identification number see Profibus DP standard Identifiers that characterize the slave s group see Profibus DP standard Slave s address on the bus Value 0x00 0x01 if the slave is a compact modular equipment device Value 0x00 0x01 if the slave is inactive active on the network Size a bytes of the parameters data block for that slave Size b bytes of the configuration data block for that slave Size c bytes of the data block used for that slave Parameters data block for that slave Configuration data block for that slave Data block used for that slave 129 Appendix E Profibus DP Data and Diagnostics For the LUFP7 gateway default configuration the following response is received from the TSX PBY 100 coupler Bytes Name Value Bytes Name Value 0 1 Total length 0x0019 14 Group Flags 0x00 2 Number of IW 0x10 15 Address ID 1 0x02 3 Number of QW 0x10 16 Modular slave 0x01 4 5 IW offset 0x0000 17 Active slave 0x01 6 7 QW offset 0x0000 18 19 Settings size 0x0000 8 Station Status 0x38 20 21 Configuration data size 0x0001 9 Watchdog Factor 1 0x14 22 23 Size of the data used 0x0000 10 Watchdog Factor 2 0x01 Settings 11 Min TSDR 0x0B 24 Configuration data Ox7F 12 13 PNO _Identifier Ox071F Data used 1 This value corresponds to the gateway address on the Profibus DP network and its value depends on the position of the two coding wheels described in chapter 2 7 1 NOTE Depending on the network configura
23. The LUFP7 gateway only requires 16 words whether for inputs or for outputs Therefore we could use a size of 32 words However it is preferable to keep the default value should other slaves be configured Diagnostic length 32 bytes 6 to 244 bytes Determines the maximum length of a diagnostic on the Profibus DP network NOTE This length should be sufficient to host the longest diagnostic for all the slaves on the network If the length is insufficient the slaves concerned shall not be active on the bus because their diagnostic shall be invalid The diagnostic length is equal to 6 bytes in the case of the LUFP7 gateway 38 1744087 03 2009 4 Software Implementation of the Gateway 4 2 9 Configuring the Gateway I O under PL7 PRO Using the information located in the selected cn file PL7 PRO establishes a direct relation between the data for each Profibus DP slave and its equivalent I O To view the LUFP7 gateway I O click on the line of the address 2 station in the PROFIBUS DP slave configuration frame fe TSX PRY 100 RACK O POSITION 4 OF x Configuration 7 D signation COUPLEUR PROFIEUS OF Contiguration esclave PROFIBUS OP Configuration g n rale PROFIBUS DOP Tache Sorties Mast K Maintien tf RAZ Mombre wiv Longueur de diagnostic En mots ize En octets E Outil PROFIBUS OFP Configuration maitre i hilsche Fichier de configuration PROFIBUS DOF Charger CMF CAP
24. This two times update procedure is intended to cut off the outputs update from the rest of the program The output data of the gateway are update on a conditionnal basis 1744087 03 2009 Appendix D Sample Use under PL7 PRO Parameter Reading gt Updates the QW4 0 9 to QW4 0 11 outputs in order for the gateway to issue the corresponding Modbus reading query data displayed in the Query LUFP7 Outputs part of the READING of a parameter value frame An 8 bit local counter is incremented each time a new query is issued the 0 value being reserved it will be replaced with 1 then transmitted to the gateway using the MSB byte of the QW 4 0 15 output The response from the polled slave will then be used by the gateway in order to update the I W4 0 9 to IW4 0 11 inputs data displayed in the Response LUFP Inputs part of the READING of a parameter value frame Each time such a response is received the gateway increments the MSB byte of the IW4 0 15 input in order to tell the Profibus DP master that it has received a new response This 8 bit counter is not used in this example Parameter Writing gt Updates the QW4 0 12 to QW4 0 14 outputs in order for the gateway to issue the corresponding Modbus writing query data displayed in the Query LUFP Outputs part of the WRITING of a parameter value frame An 8 bit local counter is incremented each time a new query is issued the 0 value being reserv
25. With the gateway s default configuration this option is set to 3 Reconnect time This option defines the amount of time the gateway will wait before it tries to communicate again with a Modbus slave that was previously declared as missing It is defined at the Query level of each command or transaction sent to the different slaves With the gateway s default configuration this time is equal to 10 sec 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 Offline options for sub network This option affects the data sent to the Profibus master if there is no response coming from a slave It is defined at the Response level of each command or transaction sent from the different slaves This option can take 2 values Clear All data sent to the Profibus master is set to 0 Freeze All data sent to the Profibus master retains its current value With the gateway s default configuration Clear option is selected and Tesys U status registers and aperiodic input
26. all slaves are activated Example In the case of the default configuration if CD 5 then the 5 first slaves TeSys U n 1 to TeSys U n 5 will be activated while the 3 remaining slaves TeSys U n 6 to TeSys U n 8 will be inhibited 1 By default all nodes are activated Hence it is not necessary to enable a node that has not been disabled first 48 1744087 03 2009 5 Gateway Initialization and Diagnostics 5 5 Description of the Gateway Status Word The input word located at addresses 0x0000 MSB and Ox0001 LSB in the gateway s input memory constitutes the gateway s status word Its structure is described below ee ABC_HS_SEND New gateway diagnostic See description of bit 15 of the Profibus DP master command word FB_HS_ CONFIRM ABC_HS_CONFIRM Acknowledgement bit of a Profibus DP master command See description of bit 14 of the Profibus DP master command word FB_HS_SEND ABC_DU Modbus exchanges activated The gateway activates this bit to tell the Profibus master that all Modbus data located in its input memory area has been updated at least once since the last activation of FB_DU ABC_DU means ABC Data Updated This Modbus input data includes every data in responses from all Modbus slaves for both periodic commands and aperiodic commands This bit is deactivated by the gateway when the FB_DU bit is deactivated that is to say when the Profibus master demands a shut
27. look like the one below aec ABC LUFP Config Tool C Schneider ABC Config ToolLUFPT Tutorial cfg File a Un i Tools View REHATI Master Mode LUFP yee Configuration Alphabetic Categorized TE Pe ead mm Registers slave address 1 H E Preset Multiple Regs Transactions 1 3 aE Transactions 2 Slave address Hl TeSys U n2 The address of the slave TeSys Unit 2740142006 18 31 Config Line Q 2 Deleting the read command for a parameter Select the personalized Transactions 1 command and delete it with the De 1 key or Delete from the menu whose name corresponds to the name of the selected node A request for confirmation appears asking you whether or not to proceed deleting the Transactions 1 command In this case confirm with the Yes button ABC LUFP Config Tool Ed Are you sure you want to Delete Transactions 17 3 Deleting the write command for a parameter Back in the main ABC LUFP Config Tool window the Transactions 1 command has been deleted The second personalised command Transactions 2 is automatically renamed Transactions 1 but retains all of its setup Now delete this one in the same way as you did with the previous command TA 1744087 03 2009 6 Configuring the Gateway 4 Checking the new memory occupation If you wish to check how much of the gateway s memory is now occupied select Sub Network and choose Mo
28. the Modbus query is sent every time that the Profibus DP master changes the value of an 8 bit counter designated by the Trigger byte address element Please see the description of this element for further information about how to use this communication mode 87 6 Configuring the Gateway Configuration Description element Update time This element is only used by the gateway if Update mode is set to Cyclically In this 10ms case it specifies the query s transmission period on the Modbus network Default value 10ms x 100 1s Returning to our example employing the ATS48 at address 10 we Alphabetic Categorized will use the configuration shown opposite The most notable points of this configuration are Offline options for fieldbus Clear e Ondisconnection the data is reset on one of the two networks neon time 1Ums Re a l etries e 3re transmissions with a 100 ms timeout Timeout time 10ms 10 e Periodic communications with a cycle time set to 300 ms Trigger byte address OxO5FF Update mode Cyclically Update time 1Ums ci 6 12 2 3 Configuring the Response Next select the Response element from the Modbus command Alphabetic Categorized The various elements of the configuration of the response for this aT ine optione for sub network Clear ii command are shown opposite The values displayed correspond to Tigger bite Disabled the default values for any new command Tigger byle addes
29. 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 On the contrary configuring Modbus commands is much more complete and is the subject of a separate object of its own see chapter 6 12 You will need to change the configuration of a Modbus slave when you add a new Modbus unit see chapter 6 8 using any method Changing the name of the node which corresponds to a Modbus slave is used to distinguish it from the other nodes when the configuration of its Modbus commands has been changed for instance 76 1744087 03 2009 6 Configuring the Gateway 6 11 1 Changing the Name of a Modbus Slave To carry out this operation select the node which corresponds to the Modbus slave involved Devices section and perform one of the four following 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 asc ABC LUFP Confi
30. 15 in the gateway s status word If these two values are different this means that the gateway has transmitted a new diagnostic to the Profibus master To tell the gateway that it has read a diagnostic the Profibus master must copy the value of the ABC_HS_SEND bit to the FB HS CONFIRM bit This allows the gateway to issue a new diagnostic Summary e If FB HS CONFIRM ABC_HS SEND gt The gateway s status word contains a diagnostic which has already been acknowledged by the Profibus master So the gateway is free to use this status word to place another diagnostic there Else gt A new diagnostic is available in the gateway s status word The Profibus master can read this diagnostic but must also copy the value of ABC_HS SEND to FB_HS CONFIRM in order to allow the gateway to generate new diagnostics 14 FB _HS_SEND Toggle bit New command from the Profibus master Before changing the value of FB_DU the Profibus master must compare the values of FB HS SEND and ABC_HS_CONFIRM bit 14 of the gateway s status word If these two values are different this means that the gateway has not yet acknowledged the previous Profibus DP master command Else the Profibus master can issue a new command updating the FB_DU bit according to the nature of its command shutdown or activation of Modbus exchanges then toggling the value of the FB HS SEND bit to inform the gateway that it has sent it a new command Summary e if FB HS SEND ABC
31. 256 OxFF gt 0x00 In the case of disconnection of one or several devices on the Modbus sub network the LUFP7 gateway will first report re transmission errors several times and then the error A Modbus slave is missing or Several Modbus slaves are missing Later on when the LUFP7 makes a reconnection attempt only the re transmission error will be reported Due to this the indication of the errors A Modbus slave is missing or Several Modbus slaves are missing may be perceived as very brief 50 1744087 03 2009 6 Configuring the Gateway Each part of this chapter describes a separate step allowing the user to personalize the gateway configuration according to his own particular needs Each part gives an introduction to a basic operation isolating it from the rest of the configuration and describing the operations to be carried out using ABC LUFP Config Tool mainly and SyCon where necessary and their implications for the gateway s general behaviour In each case the first two steps are required as they allow you to establish the dialogue between the gateway and the PC software allowing you to configure it that is to say ABC LUFP Config Tool We strongly recommend that you read chapter 4 because all of the operations carried out in ABC LUFP Config Tool or SyCon are based on the principle that we are using the default configuration of the LUFP7 gateway 6 1 Connecting the Gateway to the Configuration PC This
32. 32 Byte 16 word OUTPUT 1 Byte Example 2 should the gateway exchange 33 input bytes and 34 output bytes you could use the following combination e IN OUT 32 Byte 16 word e INPUT 1 Byte e OUTPUT 2 Byte 1 word 115 Appendix B LUFP7 Gateway GSD File Module INPUT EndModule Module OUTPUT EndModule Module OUTPUT EndModule 1 Module OUTPUT EndModule Module OUTPUT EndModule Module OUTPUT EndModule 1 Module OUTPUT EndModule Module OUTPUT EndModule Module OUTPUT EndModule 1 Module OUTPUT EndModule Module OUTPUT EndModule Module OUTPUT EndModule Module OUTPUT EndModule 116 128 10 12 14 16 32 64 128 Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte 64 word 0x20 1 2 E gt 4 5 7 8 16 32 64 word word word word word word word word word word word 0x40 0xX7F 0x60 0x61 0x62 0x63 0x64 0x65 0x64 0x67 Ox6F 0x80 0x5F 0x80 0xX7F 1744087 03 2009 Appendix C Default Configuration The configuration described below corresponds to the LUFP7 gateway s default configuration NOTE This chapter mainly gives the user information about the performance obtained on the downstream Modbus network
33. 6 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 whose name corresponds to the name of the selected node Keyboard shortcut Ctrl c Then use one of the two methods shown 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 Sub Network nodes then choose Insert from the menu whose name corresponds to 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 60 1744087 03 2009 6 Configuring the Gateway 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 s memory and this Modbus slave All of these operations are described in chapter 6 11 and in chapter 6 12 A WARNING DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY RANGES If the user chooses to add a Modbus slave by copying the configuration of an existing Modbus slave the user must change the added device s Modbus address and the memory
34. Byte Swap 2 B N B N Ef Byte count bytes will change from Byte1 Byte2 Byte3 Byted to yte swap o swapping yte swap o swapping g Byte2 Bytel Byte4 Byte3 Swap 4 bytes will change from 00010 Data length 0x0010 E Checksum Bytel Byte2 Byte3 Byte4 to Byte4 Byte3 Byte2 Bytel Data location Ox0004 00020 Data 27 01 2006 16 02 Config Line 4 To check that these changes have been entered into the configuration choose Monitor from the Sub Network menu again asc Sub network Monitor Of x File Columns TeSys U n l TeSys U n TeSys U rnd TeSys Urn 4 TeSys U n5 TeSys U nb TeSys Unf TeSys U n8 Read Holding Regi Read Holding Regi Read Holding Redi Read Holding Redi Read Holding Redi Read Holding Redi Read Holding Regi Read Holding ay Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Transactions 1 Transactions 2 In eS 48 bytes 513 fF Quit Are 32 bytes 512 General Area O bytes 944 O00 O400 Ta re 0057F TeSys U n l Te5ps Une TeSys U n a 0451 007d Select All DeselectAll Select All Deselect Al SelectAll Des 0460 ae Read Holding Regi COREPER A Read Holdi Anne aa Preset Multiple Regs Preset Multiple Regs b Preset Multi ane 0105 Transactions 1 Oar 3 nar Transactions 2 ne39 015C 0544 0179 In Area 48 bytes 512 OSSF 0196 oo
35. Config Tool e Start bits 1 bit only e Stop bits 1 or 2 bits configuration using ABC LUFP Config Tool 110 1744087 03 2009 Appendix A Technical Characteristics Structure of the LUFP7 e 2 bytes for the diagnostics of errors on the downstream network by the gateway gateway s memory see chapter 5 e 242 bytes accessible by the Profibus DP master in the form of input data see Appendix Inputs C Input Data Memory Area paragraph for default use of these input data e 268 input bytes inaccessible by the Profibus DP master due to the maximum number of input bytes that can be exchanged with the gateway see chapter 4 2 6 Addresses Input data area Ox0000 Gateway status word Ox0001 unless Control Status Byte Disabled AOE Inputs accessible by the Profibus DP master 242 bytes OxO0F3 Ox00F4 Inputs inaccessible by the Profibus DP master 0x01 FF 268 bytes Structure of the LUFP7 e 2 bytes for the activation or inhibition of the downstream network by the gateway gateway s memory see chapter 5 e 242 bytes accessible by the Profibus DP master in the form of output data see Appendix C Default Configuration Output Data Memory Area for default use of this output data e 268 output bytes inaccessible by the Profibus DP master due to the maximum number of output bytes that can be exchanged with the gateway see chapter 4 2 6 Outputs Addresses Output data area 0x0200 Profibus DP master
36. Frame objects in the ABC LUFP Config Tool user manual entitled AnyBus Communicator User Manual for further information about how to handle Transaction type commands The LUFP7 gateway s default configuration includes two Transaction commands These are aperiodic commands used for reading and writing the value of a Modbus slave parameter necessarily a TeSys U motor starter with the default configuration They are configured solely for the TeSys U n 1 node as the address of the slave is controlled by the Profibus DP master via the first byte of the Data field which corresponds to the Slave Address field in standard Modbus commands This allows the Profibus DP master to send this command to all of the Modbus slaves slave by slave through the first byte of the Data field The remaining fields of the frames used by these two commands are also placed in the same Data field So the Profibus DP master has access to all of the content of the frames in these two commands 6 12 3 3 Using Variable Data Fields in Transactions A Variable Data field is similar to a Data field but has no predefined length Instead a length character i e a number of bytes or an end character is used to indicate the significant length of the data field Each Variable Data field is also protected with a Maximum Data Length that prevents any overflow when there is no end character where one is
37. Gateway 6 3 Connecting to Disconnecting from the Gateway In ABC LUFP Config Tool the connection to the gateway must be performed manually But first you should check which serial port ABC LUFP Config zer ABC LUFP Config Tool C Schneider ABC Config Tool LUFP T Tool will use for this connection In the Tools menu the Port File Fieldbus Tools view Help sub menu will reveal which serial ports COM1 COM2 etc are D e u y oo currently available If several COM ports are available select in a Usloed configuration from ABC LUFP this sub menu the port you intend to use for connecting to and ABC LU k es configuration ta ABG LUEP configuring the gateway Start Logging An example is given on the right 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 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 F button Once connected you can disconnect ABC LUFP Con
38. Lo in all other cases e Use the commands generated by buttons START and _ST P to set the motor starter in off pause or in pause mode bit 13 of the command word NOTE The pause mode should not be used for a normal application you should rather use the FOR REV and STOP buttons see below e Activate the fault reset command bit 3 of the command word if the user pressed the _ RAZ button and the fault LED is on Il Once this command is on it is cancelled as soon as the LED goes off LI e Activate the self test command trip of the motor starter bit 5 of the command word if the user pressed the TEST button and the Tripped LED is off L___ Once the command is on it is cancelled as soon as the LED goes on e Evaluate 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 e 3 125 FLA is then used to evaluate the current The maximum value is therefore equal to 63 i e 196 875 FLA e Use buttons _FOR REY and STOP exclusively to enable only one of the three following controls at a time while resetting the other two to zero in descending priority order stopping bit 2 of the command word run forward bit 0 and run reverse bit 1 Reading and Writing any TeSys U Motor Starter Parameter NOTE Although the term PKW is used in the current exampl
39. Modbus query frames NOTE If the value of a field from the response of a Modbus slave is different from that configured via ABC LUFP Config Tool the response will be rejected by the gateway It will then proceed to a re transmission of the query provided that at least one re transmission has been configured for this command see chapter 6 12 2 2 1744087 03 2009 93 6 Configuring the Gateway Field in the Size in the ae Description frame frame Slave Address 1 byte Identical to that of the query s Slave Address field 1 byte Identical to that of the query s Function field Code Register 2 bytes Identical to that of the query s Register field since the Modbus response of Address any Preset Single Register command is an echo to the corresponding query Here you should also enter the address of the memory 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 0x0002 to or more for a OxXOOF3 of the item of data received in the Preset Data field for the block of data response s frame NOTE Check that the data is located at even addresses in order to align the Modbus data in 16 bit format on the lW4 0 x inputs of the Profibus DP coupler 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 byte
40. Ox05FF These elements allow you to configure a single aspect of managing the command described below Each of them is described in order in the table below 88 1744087 03 2009 6 Configuring the Gateway Configuration Description element Offline options for sub network Trigger byte Trigger byte address This element affects the input data sent to the Profibus DP master but only for the data of 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 Profibus DP master for this Response is set to 0x0000 resetting of the input data in the gateway s memory Freeze All data sent to the Profibus DP master for this Response retain their current values the input data in the gateway s memory is frozen This element is used by the gateway to activate the unitary incrementation of an 8 bit counter in order to notify the Profibus DP master of the receipt of a new response to the associated Modbus commana 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 b
41. Periodic Output Data Element We will use the node corresponding to TeSys U n 6 motor starter for our example We will replace the control of the Command Register address 704 0x02C0 with the control of the 2nd Command Register address 705 0x02C1 The operation consists of changing the value of the Starting register address element in the Query and the one of the Preset Multiple Registers command Modbus command for writing values of a number of registers in the Response Select Starting register address from the Query then change its value as shown below You can enter the address of the 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 ABC LUFP Master Mode LUFP tutorial ss a Alphabetic Categorized Alphabetic Categorized eo cack Value Ox02C0 PA 705 H Ey TeSys U n l H G TeSys U nz H TeSys U n3 H TeSys Urd H TeSys U n 5 El TeSys U n6 H _ Read Holding Registers J L Preset Multiple Regs Po bee Slave Address a A T pa BREE ering register address Alphabetic Categorized 3 of Number of registers Yalue cel po Of Byte Count Definition of a C
42. Read Holding Registers Command 0x03 Elements under ABC Modbus frame fields Size LUFP Config Tool Modbus Slave Address Slave no 1 byte query Function Code 1 byte Starting register address No of the 1st word MSB LSB 2 bytes Number of registers Number of words MSB LSB 2 bytes Checksum CRC16 LSB MSB 2 bytes Modbus Saen Ct te response 1 byte Byte count 1 byte Data 2 bytes e a 1 mone 2 bytes 2 bytes 132 1744087 03 2009 Appendix F Modbus Commands Chapter 6 12 also shows a few examples of correspondences between the elements displayed in ABC LUFP Config Tool and the corresponding Modbus frame fields See also Chapter 6 12 2 and chapter 6 12 3 if the implementation of one of these commands would be incompatible with its implementation in the gateway for example You then have to create a special Modbus command to compensate for this incompatibility NOTE Here the notions of input and output and assimilated are irrelevant as all Modbus commands have access to all of a Modbus slave s memory However these names are retained in order to comply with the terms used in the standard Modbus documentation Read Holding Registers Command 0x03 Frame Field Value or properties Query Starting Address MSB Starting Address LSB Address of the 1st output internal register Number of points PF Number of points PA Number of output internal registers Response
43. Starter Status Register Read Holding Registe gl 30 01 2006 11 19 Config Line 7 aec ABC LUFP Config Tool C Schneider ABC Config Tool _LUFP Tutorial cfg Fie Request for Status Query Tools View Help Di t BOeaxx s aHa ABC LUFP Master Mode LUFP tutorial Configuration Fieldbus Alphabetic Categorized mm ABC LUFP al Sub Network S J TeSys U n 1 Offline options for fieldbus Clear Reconnect time 10ms 1000 B Read Holding Registers Retries l 3 B equest for Status Query Timeout time 10ms 30 a Status Response Trigger byte address OxO5FF a Preset Multiple Regs Update mode Cyclically E Starter Command Query Update time 10ms 30 2 Response Transactions 1 Offline options for fieldbus Transactions 2 The action to take for this transaction if the fieldbus goes offline This option affects the data that is sent out the sub network Ty TeSys U n 2 xl Request for Status Query 30 01 2006 11 37 Config Line 4 6 12 Adding and Setting Up a Modbus Command 6 12 1 With the TeSys U Motor Starters With TeSys U motor starters the main use of adding a Modbus command allows you to control or monitor additional registers without having to change the elements in the default configuration So the operation of the periodic and aperiodic communication services remains
44. 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 protocol 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 1744087 03 2009
45. Value of the 0 Periodic communications AQW4 0 16 Command Register Value of the 0 Controlling motor starter TeSys U QW4 0 17 ond Command Register 8 Transferring the Profibus DP coupler configuration Once changes have been made to the Profibus DP coupler configuration it is necessary to validate the hardware configuration of the PLC rack and to transfer the whole application to the Premium PLC on which the coupler is located Please see chapter 4 2 12 1744087 03 2009 73 6 Configuring the Gateway 6 10 Deleting Aperiodic Parameter Data If your PLC application does not need the aperiodic service for reading writing parameter data on Modbus slaves you can delete the associated commands If you also intend to add Modbus data and therefore use new locations in the gateway s memory it is preferable to delete the aperiodic commands from the start so that you can reuse the memory locations On the other hand if the only configuration operation you wish to carry out on the LUFP7 gateway consists of not using the aperiodic service for parameter data you can simply not use this service Go straight on to step 8 If you decide to delete the aperiodic commands you will need to carry out the following operations 1 Displaying parameter data commands Select the very first node of the downstream Modbus network TeSys U n 1 and expand the tree structure showing its commands and transactions The screen should
46. _ HS CONFIRM gt The Profibus DP master command word still contains a command which has not yet been acknowledged by the gateway So the Profibus master cannot use this word to place a new command in it Else gt The previous command of the Profibus master has been acknowledged by the gateway which allows it to transmit a new command In this case it changes the value of the FB_DU bit then toggles the value of the FB_HS_SEND bit FB_DU Modbus exchange startup Reserved if Diagnostic and Control The setting of this bit to one by the Profibus master allows communications between the gateway and the Modbus slaves Resetting it to zero is used to inhibit them When the Profibus master sets this bit to one it is preferable for all of the output data it has placed in the gateway s output memory to be up to date FB DU means FieldBus Data Updated If they are not this data will be transmitted to the Modbus slaves as is NOTE As long as FB_DU is not set to 1 by the Profibus DP master the gateway does not send any Query to the Modbus slaves This bit is primarily used by a Profibus DP master to prevent the gateway from sending invalid data to them CC Control Code for activation deactivation of Modbus slave s Code of the command sent by the Profibus master to the gateway in order to activate or inhibit the communications with one or more Modbus slaves see CC CD table CD Control Data for activation deactiv
47. case it designates the starting address of the block of data to be transmitted A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION The user must use even values for the Data Location field i e 514 516 518 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 users configuration unintended equipment operation may result Failure to follow this instruction can result in death serious injury or equipment damage 1744087 03 2009 91 6 Configuring the Gateway Preset Data continued 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 that is to say the one located at 0x0220 with the gateway s default configuration Data length Length of the block of output data in the gateway s memory whose values must be transmitted in the Preset Data field of the query s 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 register 16 bit the value of the Data length field must be set to 2 See the documentation
48. changed by the user and its value is greyed out to inform ARE him of the fact ABC LUFP Config Tool updates the value of this field automatically using the function code for the corresponding Modbus command NOTE This field is common to queries for all Modbus commands E g The value of this field is set to the code for the Preset Single Register command writing the value of an output word that is to say 0x06 Ae 2 bytes Address of an output word or of a register in the Modbus slave s memory So this field designates the memory object to which the command relates NOTE This field is common to queries for all Modbus commands whose purpose is 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 word affected by the command E g The value of this field should be changed by entering the address of the CMD command register that is to say 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 0x0202 to or more for a Ox02F3 of the item of data to be transmitted in the Preset Data field for the block of data query s frame NOTE The Data location field is used for each frame that allows you to exchange some data between the Modbus slaves and the Profibus DP master In this
49. command are identical you will need to make changes to the fields HfeiiteinteMiameltisgin one of the two diagrams below depending on whether this is the Preset Multiple Regs command or a Read Holding Registers command see chapter 6 9 The correspondence between the various elements which appear in these tree structures and the standard Modbus terminology is located to their right 80 1744087 03 2009 6 Configuring the Gateway Seed Cammy Functionno S no T Wee i Byte Count a Name of the Modbus command S _ Modbus quer t Frame 1 __ Slaveno o o ___ No of the 1st word MSB LSB a Number of words MSB LSB E ___ Number of bytes Oo ___ _ Values of the words MSB LSB CRC16 LSB MSB Arpas A4 _ Modbus response Slave no No swapping 00002 00204 Name of the Modbus command _ Modbus quer Frame J 7 CRC16 LSB MSB Lana Feeigatie ee E A eee eee _ Modbus response T Frame 1 Byte swap No swapping Data length 00002 Data location 0 0004 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 cannot be changed by the user In the same way the Query Function code and Response Function code fields depend on the nature of the Modbus command and cannot be changed by the user
50. data are forced to 0 4 1 4 2 Degraded Mode Description This description takes into account the following elements The PLC processor The Profibus master The LUFP7 gateway The Tesys U starters controllers 1744087 03 2009 29 4 Software Implementation of the Gateway 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 PLC stops responding to inputs in any error state Profibus master response Depending on master configuration the master stops to communicate with the LUFP7 gateway or forces Profibus outputs to 0 and refresh inputs or holds Profibus outputs in their last position and refreshes inputs LUFP7 gateway response If the master forces Profibus outputs to 0 and refreshes the inputs periodic Modbus exchanges continue to run with outputs set to 0 input memory continues to be refreshed aperiodic Modbus exchanges are stopped If the master holds Profibus outputs and refreshes the inputs periodic Modbus exchanges continue to run with output memory associated hold in their last position input memory continues to be refreshed aperiodic Modbus exchanges are stopped Tesys U response If the master forces the outputs to 0 periodic Modbus exchanges continue to run Command registers are set to 0 and m
51. following chapters each byte of the query and Value cannot be changed Modbus response frames of a Modbus command are Slave Address address 1 to 247 described one after another with the exception of the fields shown opposite These are always present in Value cannot be changed code of the queries and responses of all Modbus commands Function the Modbus command The Slave Address and Function fields are the first fie oe pede P a oi two bytes of these frames The two bytes of the Checksum are their last two bytes Checksum Lo Checksum Lo Type of error check Checksum Hi Number of the 1st byte checked The descriptions of the Modbus frames which appear in the following chapters are mainly intended to help you to configure the gateway s Modbus exchanges using ABC LUFP Config Tool Please see the documentation of each Modbus slave to check for any restriction regarding these frames number of registers which can be read or written in a single Modbus command for example It is a better idea to get hold of a standard Modbus document such as the guide entitled Modicon Modbus Protocol Reference Guide ref PI MBUS 300 Rev J so that you can see the correspondence between the elements displayed in ABC LUFP Config Tool and the content of the corresponding Modbus frames Here is an example of a correspondence for a full frame including the start and end of frame fields shown above based on the
52. for each Modbus slave to find out the maximum amount of 8 bit data which can be placed in Data type fields in queries and responses for this slave With the ATS48 for instance it is limited to 30 16 bit words Data length field limited to lt 60 Field in the Size in the a Description frame frame Preset Data continued Checksum 92 Byte swap Specifies whether the output data bytes to be transmitted to the Modbus slave must be swapped before being placed in the Modbus frame or not The three possible values are as follows No swapping Default configuration The data is sent in the same order as they appear in the gateway s memory This is the case which must be used by default because for an item of 16 bit data the most significant byte is placed first in the Modbus frame and is always written into the gateway s memory by a Profibus DP master with the most significant byte first 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 The principle is similar to that of the previous case Swap 2 bytes E g We will be using the No swapping value because the two bytes of the value to be written into the ATS48 s CMD register as transmitted by the TSX PBY 100 coupler are placed into the gateway s memory in most significant least significant order Error
53. from the one taken into account by the Profibus DP coupler with respect to the gateway difference in the total length of input data the LED FiELDBUS DIAG therefore becomes flashing red at a frequency of 1 Hz providing that the gateway is connected to the Profibus DP network and to its DPM1 master Saving this configuration to your PC s hard disk see chapter 4 2 7 Changing the number of data transmitted by the Profibus DP coupler Under SyCon change the list of modules configured for the gateway see chapter 4 2 6 Since we have added 4 bytes after the output data in the gateway memory the coupler should be configured to issue an additional 4 byte output data block for the gateway In this case add an INPUT 4 Byte 2 word module after the module configured for the gateway as the number of input bytes in the default configuration is even word aligned NOTE Make sure that the total input and ouput sizes of the configured modules are the same as the exchange sizes displayed in the Sub network Monitor In the current example In Area 32 bytes and Out Area 36 bytes imply that the modules combined under SyCon must have a total of 16 IW and 18 OW 72 1744087 03 2009 6 Configuring the Gateway In this example the modules sict tax Medule Symbol Type T agar tT Type 0 agar o configured for the gateway are 1 1 IN OUT 32 Byte ModulelIw O listed on the right 2 1 OUTPUT 4 Byte Modulez
54. increased from 1 to 2 Select the Byte count element from the Query and change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal aec ABC LUFP Config Tool Ch Schneider ABC Config Toob LUFPT Tutorial cfg File Byte Count Tools wiew Help Hi neax S BOS ST 7 Bas ABC LUFP Master Mode LUFP E7E a Subnav Alphabetic Categorized Alphabetic Categorized H T TeSys U n2 Value Ox 2 Value 4 Al TeSys Una Ely 4 TeSys U n4 Pla Read Halding Registers E O Preset Multiple Regs e Liss of Function code Value Alphabetic Categorized Definition of a Constant Byte Value When transmitting the Value D04 Byte this Value will be sent When receiving a Byte ABC will vt j i petform a check aginst this Value IF the received Byte does e Loun not match it will be discarded ween fz fz BE Checksum TA Panik 27 01 2006 17 15 Config Line QB 1744087 03 2009 69 6 Configuring the Gateway 3 Changing the location of the Modbus data transmitted into the gateway s memory As the number of bytes written See previous step has increased from 2 to 4 the Modbus data to be transmitted to the TeSys U n 4 motor starter must be placed at a different location in the gateway s memory and the size of the memory occupied must also be adjusted appropriately If you are not certain how m
55. 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 ABC LUFP Config Tool offers the possibility of independently saving and loading the configuration of a node on the downstream Sub Network For instance this will allow you to build a library of Modbus slave templates so that 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 whose name corresponds to the name of the selected node A dialog box will then appear asking you to save the configuration export in XML format To insert a node using the XML file containing a Modbus slave configuration as a template use one of the two methods shown below a Select Sub Network then choose Load Node 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 it was configured w
56. may result Instead of using 8 bit or 16 bit writes you should write to the Profibus DP Master Command Word on a bit by bit basis For example to update FB_DU you should only write the value of bit 13 i e QW4 0 X13 in the case of the default configuration without modifying the other bits of this word Failure to follow this instruction can result in death serious injury or equipment damage The values of the CC and CD fields are described in the table below Description of the command 00000 Nocommand OOS 2 10000 Disable a node Modbus address The gateway inhibits a the Modbus exchanges Commands of the slave to and Transactions configured for the corresponding Modbus disable slave Note In the case of the LUFP7 default configuration please note that disabling the slave at address 1 i e TeSys U n 1 will also inhibit the two Transactions designed to read write any parameter of any slave 2 10001 Enable a node Modbus address The gateway activates all the Modbus exchanges Commands of the slave to and Transactions configured for the corresponding Modbus enable slave 2 10010 Enable several Number of The gateway activates all the Modbus exchanges Commands nodes 1 Modbus slaves to and Transactions configured for the first CD Modbus slaves enable and inhibits a l the Modbus exchanges configured for the rest of the Modbus slaves If CD is equal or greater than the total number of slaves then
57. oY Checksum 4 4 gt Slave Address 30 01 2006 10 53 Config Line 4 Slave ddress 30 01 2006 10 56 Config Line asc ABC LUFP Config Tool C Schneider ABC Config To Ea File TeSysUn 1 Tools View Help IS ORES Master Mode LUFP tutorial Configuration Alphabetic Categorized EL spe rT Tetye Un a Slave address 1 TeSys U cae base y 7 i x Slave address a EET Un 30 01 2006 10 asc ABC LUFP Config Tool C Schneidert ABC Config To Mi Ea File TeSysUn 1 Tools View Help DSSA Be X sr wm ABC LUFP Master Mode LUFP7 tutorial Devices gt El Wy Sub Network 2j Alphabetic Categorized E TeSys U n l JE i TeSys U n 2 Slave address TeSys U n 3 E a on xl Slave address Tae n 30 01 42006 e 6 11 3 Changing the Name of a Modbus Command or Transaction To rename a Modbus Command or Transaction 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 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
58. re transmissions is set to 0 the process described above will not be run 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 configured using the timeout time 10ms element the gateway proceeds to a re transmission This process continues Default value until it reaches the last re transmission allowed see Retries then the gateway declares 10ms x 100 1s ib Vlodous slave off line but only for the command to which the timeout time 10ms elongs to Default value 3 86 1744087 03 2009 6 Configuring the Gateway Configuration Description element Trigger byte address Update mode 1744087 03 2009 This element is only used by the gateway if Update mode is set to Change of state on trigger In this case it specifies the address in the gateway s output memory 0x0202 to Ox02F3 of an 8 bit counter managed by the Profibus DP master When the value located at this address is changed by the Profibus DP master but different from zero the query configured with a Change of state on trigger related to this address is transmitted to the Modbus slave So the Profibus DP master must have access to this counter in the same way as for the periodic output registers sent to TeSys U motor starters In comparison to the On data change mode this mode allows you to send a command o
59. reconnect the slave missing with the same sequence every 10 seconds Tesys U response If the LUFP7 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 32 1744087 03 2009 4 Software Implementation of the Gateway 4 2 Gateway Configuration under PL7 PRO and SyCon The Profibus DP master must be configured so that it has access to all of the data described in Appendix C Default Configuration Input and Output data Memory The following chapters describe the steps in PL7 PRO version V3 0 and SyCon version V2 5 0 0 which you will need to go through so that the gateway is correctly recognised by the Profibus DP master PLC NOTE The Profibus DP network which is described in the following chapters only includes one master TSX 57353 v5 1 TSX PBY 100 and one slave LUFP7 gateway So you will need to adapt the addressing of the inputs and outputs shown below IW and QW according to any other slaves on the Profibus DP network which you need to configure 4 2 1 Setting Up the Hardware Configuration under PL7 PRO Under PL7 PRO create a new application or open an ap
60. s memory Please see chapter 6 12 which describes all of the changes you can make to the configuration of each of the Modbus commands 6 8 Adding a Modbus Slave This operation allows you to add a Modbus slave whose type is different from those of the other Modbus slaves in the configuration On the other hand if the slave type is the same as one of the previously configured slaves it is preferable to copy this slave rather than to create a new one An additional import export feature also allows you to individually save the complete configuration of a Modbus 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 less than 8 Modbus slaves declared which is not the case in the default configuration as it comprises 8 TeSys U motor starters Adding a new type of Modbus slave Use one of the two methods shown 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 whose name corresponds to the name of 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 chapter
61. 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 a 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 Ensure that you 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 LUFP7 gateway LUFP7 gateway Seen from underneath Configuration RJ45 RS232 RS485 convertor 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 configurator also allows you to carry out a few diagnostics on the gateway 1744087 03 2009 51 6 Configuring the Gateway 6 1 1 Pin Outs LUFP7 Configuration Female RJ45 Male RJ45 3 D B D A 6 10 V L8 0V Straight POWERSUITE cable RS485 RS232 converter PC COM Male RJ45 Female RJ45 Female 9 point SUB D Male 9 point SUB D NOTE The inversion of the Rx and Tx signals between the gateway and the PC is shown on the 9 point SUB D connectors because beyond this junction
62. the Periodicity of Modbus exchanges bit is read to determine whether the periodicity of the Modbus communications has been maintained 4 the values of EC and ED are read to check for any error detected by the gateway on the Modbus network see table below 5 the value of the ABC_HS_SEND bit is copied to the FB_HS CONFIRM bit This last step is very important if the system is designed to read the gateway diagnostics and perform some action depending on the result Copying of the value of the ABC_HS_ SEND bit to the FB_ HS CONFIRM bit allows the gateway to transmit a future diagnostic preventing the loss of subsequent error information 1744087 03 2009 49 5 Gateway Initialization and Diagnostics A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION The user must ensure the Profibus master programming concludes read operations by copying the value of the ABC_HS_ SEND bit to the FB HS CONFIRM bit If this step is omitted in applications where gateway diagnostics will be read and acted upon future diagnostics information will be blocked Depending on the user s configuration unintended equipment operation may result For example the disappearance of a Modbus slave EC 2 0001 may have perturbing consequences on the communications with the other slaves due to the future reconnection attempts and timeouts with this faulty Modbus slave AS a consequence and depending on the needs of your application it may be very important for the P
63. the gateway s system aspects e Control Status Word The three possibilities offered for this property are described in chapter 5 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 shows that the physical interface of the downstream network of the gateway Modbus is a serial link 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 LUFP7 gateway Master Mode must be selected The other possibilities available are reserved for other products from the same family as this gateway 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 Only 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 1744087 03 20
64. with the two following exceptions e In the Variable Data the Byte Limits renamed as Byte count and with Minimum Value 0x02 and Maximum Value Ox0A this field is removed from the Response because it is now included in the data retrieved from the frame of the Response and copied into the input memory of the gateway look at the values of IW2 0 2 Ox0005 to get convinced of this fact e In the Variable Data the Object Delimiter Length Character becomes Object Delimiter Length Character visible this instructs the gateway to retrieve the length character 1 byte from the Response frame of the Modbus slave instead of evaluating it with the Response frame s remaining length As these two modifications mutually compensate one another in the specific case of a Read Holding Register command the results described at the end of Example 1 also apply here 6 13 Configuring the General Characteristics of the Gateway Fieldbus Ta Startlnit wa Fieldbus specific st Endinit L dg ABC LUFP I z This operation relates to the gateway s general characteristics Fieldbus to Sub Network elements whereas the previous chapters described the configuration of the Modbus slaves elements located under the Sub Network element The Fieldbus element describes the upstream network that is to say the Profibus DP network in the case of the L
65. your own configuration 2 User of TeSys U Products from scratch see ABC User Manual 2a with 8 slaves See Ch 4 4 Loss of Communication See Chapter See Chapter 4 1 4 1 The variables described are and Chapter 6 11 2 2 7 Reconnect time 2b reducing the number of slaves unit 10ms default value 10s See Chapter 6 Using ABC LUFP Config Tool Retries default value 3 install 6 2 Timeout time connect 6 1 unit 10ms default value 1s remove slaves 6 6 2c access to new variables 5 Signaling of faults and status Diagnostics See Chapter 6 Signaling defaults and gateway status Using ABC LUFP Config Tool to access p See Chapter 3 by LEDs on the front other registers than standard 704 Command and 455 Status with the same request replace a register with another for p See Chapter 5 instance 455 with 458 expand the size the number of registers with a supplementary request add up extra commands other operations 6 7 to 6 11 Gateway initializing mode and description of diagnostics information 1744087 03 2009 7 1 Introduction 1 2 Introduction to the LUFP7 Gateway The LUFP7 gateway allows a master located on a Profibus DP 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 interfa
66. 00 button allows you to refresh the values of these counters Eher Emer 0x00 When you run this command in off line mode all of the values displayed are replaced by the word Unknown to show that they cannot be read on 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 and or Transactions Since retransmission errors tend to lower the general performances of the Modbus communications you should undertake actions to prevent these retransmission errors from increasing 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 this configuration and be configured appropriately Bitrate bits s The gateway supports a limited number of Alphabetic Categorized communication speeds Pirate hits s Alphabetic Categorized Choose the speed that suits ne Bitrate bits s 19200 your Modbus network i Data bits g TON Physical standard se Parity None Data bits 8 bits required Geen een R
67. 0204 to replace the Number of registers field of the FC 0x03 the Profibus DP master uses this output data field to set the number of status registers from 1 to 5 he wants to read from the TeSys U slave 1 Checksum field mandatory CRC at 0x0000 o The Response is made of the following fields in this order 1 Byte Constant field renamed as Address 0x01 address of the Modbus slave 1 Byte Constant field renamed as Function code 0x03 function code of a Read Holding Registers command 1 Byte Limits field renamed as Byte count and with Minimum Value 0x02 and Maximum Value Ox0A to emulate the Byte count field of the FC 0x03 these limits restrict the Response for reading from 1 to 5 registers 2 to 10 bytes 1 Variable Data field that replaces the standard Data field generally used for the FC 0x03 its properties are set as follows e Byte swap No Swapping The default case for a Profibus DP master e Data location Ox0005 The data begins at 0x0005 with the Length Character see below thus the significant data really begins at Ox0006 this aligns the 16 bit data on even memory addresses e End Character Value Ox00 Not used here e Fill un used Bytes Enabled In this example the not up to date input data read from the TeSys U slave wil
68. 09 103 6 Configuring 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 OxOOF3 where the Modbus Responses counter is copied into As any other used input memory data this byte will increase the size of data exchanged with the Profibus DP master 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 Ox0000 to 0x00F3 where the Modbus Queries counter is copied into As any other used input memory data this byte will increase the size of data exchanged with the Profibus DP master 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 emitted by the gateway retries included Finally a useful command from the Help menu will allow you to check the software versions of the LUFP7 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 get this information execute the About command
69. 0x0613 The result of the reading is 0x0002 magnetic fault Output Value Meaning MSB LSB HAW4 0 9 Slave no Function no AHAW4 0 10 Parameter address input Value Meaning MSB LSB IW4 0 9 not used Slave no IW4 0 10 Slave no Number of bytes AWQW4 0 11 Number of parameters QW4 0 15 Trigger byte for the query PF e Sample writing of a motor starter parameter Writing of the 2nd command register address 705 0x02C1 on TeSys U motor starter no 7 at the value 0x0006 clear statistics reset thermal memory The initial values of QW4 0 15 and IW4 0 15 are equal to 0x0713 The result of the writing is a command echo that is to say that the values of the address parameter and value to be written fields are identical in both the query and the response Output Value Meaning MSB LSB Input Value Meaning WSB LSB Trigger by forthe query PF There is no error check performed on data transmitted using the aperiodic services described above Incorrect values written to the outputs that correspond to the aperiodic communication services will lead to the transmission of an incoherent Modbus frame This incoherent Modbus frame may return an error or lead to unexpected behavior of the slave devices A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION 14 0 1 IW4 0 15 Trigger byte for the response PF The user must perform error checking and appropriate error hand
70. 121 7 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 1744087 03 2009 Oxecee Dtfecee e000 ABC LUFP Config Tool ASIC ATS ATV CRC LED DP DPM1 DPM2 Fieldbus FMS GSD Handshake LRC LSB 138 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 th
71. 1744087 TeSys U LUFP7 Profibus DP Modbus RTU Gateway User s Manual 03 2009 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 1744087 03 2009 Table of Contents Safety Information cccceeeeseeeeeeeeeseeeeeeeseeeeeenenenes 4 1 IntrodUCti Nnna a 6 1 1 Introduction to the Users Manual ccceeeseeeeeeeeeeeeeees 6 1 2 Introduction to the LUFP7 Gateway
72. 5455 Parity Choose the parity according to the format chosen for communications on your Modbus network Physical standard RS485 Parity Ki Bitrate bits s 19200 required Physical standard Be Data bits g Stop bits Parity None Stop bits 1 or 2 bits Physical standard A5485 soar Alphabetic Categorized Bitrate bitas 19200 Data bits a Parity Hone Physical standard WAEI Stop bits Odd h Even 1744087 03 2009 105 6 Configuring the Gateway 6 14 Adding a Broadcaster Node A broadcaster node does not correspond to any Modbus slave in particular as it applies to all Modbus slaves All the commands which will be configured for this node will be transmitted with the Slave Address field set to 0x00 This means that all of the slaves will run the command but that none of them will respond to it To add a broadcaster node select Sub Network then choose Add Ei Sub Metwork Broadcaster from the Sub Network menu The broadcaster node created in Eh Broadcaster this way does not count in the limit on the number of configurable nodes A pe simple example is shown opposite 7 Br Function code The addition and configuration of a Modbus command in the list of broadcaster i ie ae node commands is done in the same way as for other nodes but with the si ll following differences ot Data The list of standard Modbus commands which can be used in broadcast is E Checksum sm
73. 7 gateway use an INPUT 16 Byte 8 word module and an OUTPUT 6 Byte 3 word module Under PL7 PRO for a TSX PBY 100 coupler inserted into the slot 2 of a TSX Premium PLC these I O translate into the following Outputs 3 words WQAW2 0 Gateway Control Word Inputs 8 words IW2 0 Gateway Status Word IW2 0 1 TeSys U Status Register 455 IW2 0 2 Significant Data length bits 0 7 QW 2 0 1 TeSys U Command Register 704 WQAW 2 0 2 Number of registers to read 1 5 IW2 0 3 1st status register 455 IW2 0 4 2nd status register 456 IW2 0 5 3rd status register 457 IW2 0 6 4th status register 458 IW2 0 7 Sth status register 459 100 1744087 03 2009 6 Configuring the Gateway For a motor starter commanded into RUN mode QW2 0 1 0x00071 its status can be read in IW2 0 1 0x0043 but also from IW2 0 3 to IW2 0 7 depending on the number of registers actually read YQW2 0 2 0x0001 to 0x0005 Resulting Value of QW2 0 2 Inputs 0x0001 0x0002 0x0003 0x0004 0x0005 IW2 0 2 OxeeQ2 Oxee04 Oxee06 Oxee08 OxeeO0A IW2 0 3 0x0043 0x0043 0x0043 x0043 IW2 0 4 OxFFFF 0x0000 Ox0000 IW2 0 5 OxFFFF OxFFFF Ox000D IW2 0 6 OxFFFF OxFFFF OxFFFF IW2 0 7 OxFFFF OxFFFF OxFFFF OxFFFF 0x0000 Please note that the gateway sets to OxFF the Filler Value any byte located beyond the last significant byte Example 2 The configuration described in Example 1 is also used here
74. 7A 01B3 0595 01D0 OSBdO OLED SEE 05CE eal To see which memory locations are occupied by data from the command you are interested in uncheck the box corresponding to the Read Holding Registers command from the TeSys U n 2 node as shown above We can see that the Modbus data received in response to this command occupy 2 bytes located from address 0x0004 The memory locations 0x0000 and 0x0001 are reserved see chapter 5 So you will not be able to place any Modbus data in these locations The sizes displayed above the graphics areas of this window In Area 32 bytes and Out Area 32 bytes correspond to the total input and ouput sizes you must configure using the modules presented under SyCon see point 6 You may wish to place the 16 bytes of Modbus data which will be received by the gateway for this command into memory once you have made the changes There are two methods 1 Move all the other data by 14 bytes which may be a tedious process 2 Change the memory location of the block of data received The first solution is preferable as it avoids leaving any holes in the gateway s memory thus optimising the transfer of all data to the Profibus DP master PLC The TSX PBY 100 coupler may exchange up to 242 input words with Profibus DP slaves If communication with a larger number of slaves is required limit the volume of exchanges with the LUFP7 gateway In that case leaving such blanks in the gat
75. 8 nodes limit has not been reached yet Add Node 4dd Broadcaster Load Mode Sub Metwork Status Sub Network Monitor Allows you to view the correspondence between the data from Modbus commands and the content of the gateway s memory Examples of how to use this command are shown in chapters 6 9 3 6 9 4 and 6 10 WE 104 1744087 03 2009 6 Configuring the Gateway 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 which is the case with the gateway s default configuration Add Broadcaster Allows you to add a broadcaster node see chapter 6 14 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 chapter 6 8 This command is not available if there are already 8 Modbus slaves which is the case with the gateway s default configuration Sub Network Status In on line mode see chapter 6 13 2 this command displays a window summarizing the values of the gateway s error counters Retransmission Error 064 These counters are also used by the gateway to update the OE PEE E ny Im i s Multiple Nodes Missing 0x00 value of its status word see chapter 5 2 2 The Update ere 0
76. Address MSB Starting Address LSB Address of the 1st output internal register Number of Registers MSB Number of Registers LSB Number of output internal registers Byte Count Number of data bytes number of output internal registers x 2 Data first register MSB Byte swap No swapping or Swap 2 bytes Data length Value of the Byte count field oie Data location Address in the gateway s output memory Response Address of the 1st output internal register Number of output internal registers Modbus Protocol Exception Responses When it cannot process a command dictated 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 LUFP7 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 If you want the software application for your Profibus DP master to be able to specifically manage exception responses you can replace the Modbus command in ABC LUFP Config Tool with a personalized command see chapter 6 12 3 2 This then allows you to feed back the Slave Address and Function fields to the Profibus DP master Failure to follow this instruction can result in death serious injury or equipment damage
77. Byte count Number of data bytes Number of output internal registers x 2 Data first register MSB Ny eee ee i Data premier registre Pf Byte swap No swapping or Swap 2 bytes Fae Data length Value of the Byte count field Data demierregisire PF _ Data location Address in the gateway s input memory Data dernier registre Pf Preset Single Register Command 0x06 Frame Field _ _ _ Value or properties Query Register MSB f Register LSB Address of the output internal register Preset data MSB Byte swap No swapping or Swap 2 bytes 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 Sa Preset data MSB Data location Address in the gateway s input memory NOTE These data are an echo to the query So in most cases there is no Preset data LSB need to feed them back to the Profibus DP master NOTE Instead of creating a link between the echo of the response to the Preset Single Register Command 0x06 and the memory area dedicated to the Profibus DP inputs 0x0002 0x00F3 you d better link it with the address 0x0400 1744087 03 2009 133 Appendix F Modbus Commands Preset Multiple Registers Command 0x10 Frame Field Value or properties Query Starting
78. E DATA FIELD IN A MODBUS FRAME Do not use more than one Data field per Modbus frame Multiple Data fields in a single Modbus frame may not be executed in the proper order by the gateway leading to unintended consequences It is preferable for the master to set this data as only one Data field even if this means that in between constants would become part of this Data and thus be exchanged with the master Concerning Variable Data there can be only one such field in any Modbus frame Query or Response Thus the Add Variable Data command of ABC LUFP Config Tool will be disabled if the current frame already includes a Variable Data field Failure to follow this instruction can result in death serious injury or equipment damage Constants in Byte Word or DWord format place the values of these constants in Modbus query frames constants in Query elements or by comparing them to the values located in the Modbus responses constants in Response elements These comparisons are used to accept identical values or reject different values the Modbus responses in the same way as for standard Modbus commands The Profibus DP master does not have access to these constants They are mainly used to replace fields such as Slave address Function Starting Address etc Please refer to the section on Produce Consume Menu in chapter 5 4 2 Transaction and in chapter 5 5
79. FP from the File menu or click on the button in the ABC LUFP Config Tool toolbar ABC LUFP Config Tool N Checking Fieldbus type NOTE During this very fast test the PC should not carry out any other operations as this could lead to ABC LUFP Config Tool apparently freezing up and slow 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 ABC LUFP Config Tool initializes a check test of the gateway type 2 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 see page 25 If this LED is flashing red green save the configuration you were editing open the file containing the default configuration for LUFP7 gateways then transfer it to the gateway This will restore it to a Known initial state You can then continue with the configuration you were transferring and make any corrections which may be necessary If the gateway and its master DPM1 are both connected via a Profibus DP network LED FIELDBUS DIAG see page 25 will begin to flash red at a frequency of 1 Hz if changes have to be made under SyCon This occ
80. L7USERALUFP CNF Donn es esclave PROFIBUS DOP wal ID Act ID Gr Watch Dog 01203 1 0 1 Sgmbole Sgmbole Ow 404 OWw4 0 2 Total Mb esclaves Mei slw Mb Gly f fie fie If you use the vertical sliders in the PROFIBUS DP slave data frame you can see that the gateway s 16 input words have been allocated to inputs IW4 0 to IW4 0 15 and that its 16 outputs words have been allocated to outputs QW4 0 to QW4 0 15 1744087 03 2009 39 4 Software Implementation of the Gateway The correspondence between the content of the gateway s input memory see Appendix C Input Data Memory paragraph and the PLC inputs IW4 0 to IW4 0 15 is given in the following table ae _ Managing the downstream Modbus network Periodic communications Monitoring of TeSys U motor starters Value of the motor starter status register Aperiodic communications HIW4 0 9 Free memory location Slave no 0x01 0x08 Reading the value of a motor starter Function No 0x03 parameter RESPONSE Aperiodic communications Slave No 0x01 0x08 Writing the value of a motor starter parameter RESPONSE Aperiodic communications HIW4 0 15 Read parameter Write parameter et 3 0 VU Trigger bytes for the responses response counter response counter The correspondence between the content of the gateway output storage see Appendix C Output Data Memory paragraph and the outputs of the QW4 0 to
81. Modbus network Refer to chapter 5 2for a detailed description of that service and to Appendix C LUFP7 Gateway Initialization and Diagnostics paragraph for an advanced sample use In the case of the gateway s default configuration under ABC LUFP Config Tool the Control Status Byte field of the ABC LUFP element is equal to Enabled but no startup lock Periodic communications inputs The value of each of the 8 words for this service corresponds to the value of the status register of a TeSys U motor starter register located at address 455 Periodic communications outputs The value of each of the 8 words for this service corresponds to the value to be sent to the command register of a TeSys U motor starter register located at address 704 Refer to Appendix D Controlling and Supervising the 8 TeSys U Motor Starters for a sample use of these periodic communications services Aperiodic communications Refer to Appendix D Reading and Writing Any TeSys U Motor Starter Parameter paragraph for a simple example of these aperiodic communications These aperiodic communications services offer functions similar to those of parameter area PKW which can be found on certain Schneider Electric products such as some ATV drives e Sample reading of a motor starter parameter Reading of the 1st fault register address 452 0x01C4 on TeSys U motor starter no 5 The initial values of QW4 0 15 and IW4 0 15 are equal to
82. Ne Ie Navigateur Applica Miel E3 H Programme E Types OFB Ey Variables Objets m moire Objets syst me Constantes FE pr d finis E S Tables d animation 1744087 03 2009 AEE EE E s m dr 4 T59 PEY 100 m D Zone de saisie epee Tune Symbol Commet CH ded MODERR EBOOL hlwdMOo WORD Mwa MODI WORD Mw MOD WORD PE CH4 0 CH sel ERR EDOL lwo WORD Gateway status Gateway Status word lw 4 0 1 WORD Motor starter status_1 TeSys U Status register forthe TeSys Uno 1 mokor starter ea pG 0 2 WORD Motor starter status 2 TeSys U Status register forthe TeSys U no 2 motor starter ralwt 0 3 WORD Motor starter_status 3 TeSys U Status register forthe TeSys U no 3 motor starter lw 0 4 WORD Motor starter status 4 TeSys U Status register forthe TeSys U no 4 motor starter mlw 4 0 5 WORD Motor starter_status 5 TeSys U Status register forthe TeSys Uno 5 motor starter mal 0 6 WORD Motor starter status 6 TeSys U Status register forthe TeSys U no 6 motor starter lw WORD Motor starterstatus 7 TeSys U Status register forthe TeSys U no 7 motor starter eaa L AT WORD Motor starter_status amp TeSys U Status register forthe TeSys U no motor starter mlw 4 0 9 WORD Resp_read_par slave Read command Response Mot used MSB Slave LSB lw 0 10 WORD Resp_read_par_funection_bytes Read command Response Function WMSE Number of bytes L56 mlw 4 0 11 WORD Resp read par w
83. Profibus DP master is shown below in order to highlight the role of the gateway s memory in these exchanges TeSys U motor starters LUFP7 Gateway Profibus DP master Outputs Outputs TSX 57353 TSX PBY 100 lt lt memory zone Modbus Profibus DP 5 INPUT data gt Inputs Un ay Inputs NOTE The total number of input and output bytes should be less than or equal to 416 bytes It is therefore not possible to configure both the maximum number of input bytes and the maximum number of output bytes which are both equal to 244 bytes Input Data Memory Area The gateway has 244 input bytes Only the first 32 bytes are used Byte 0x0012 is used for adjusting the following 16 bit data so that they can be aligned on even addresses and for obtaining a total size of 32 input bytes One should therefore configure only one 32 byte input output module using a Profibus DP configuration device such as SyCon Address _ Size__Description Managing the downstream Modbus network 0x0000 1 word Gateway status word 0x0002 1 word Value of the motor starter status register 0x0004 1 word Value of the motor starter status register Periodic communications 0x0006 1 word Value of the motor starter status register 0x0008 1word Value of the motor starter status register Monitoring of Ox000A 1 word Value of the motor starter status register TeSys U motor starters 0x000C 1 word Value of the motor starter status register Ox000E 1 wor
84. QW4 0 15 automatic controls is as follows Service PLC output Periodic communications Controlling eee ce GLOW RANEI Aperiodic communications Slave No 0x01 0x08 Reading the value of a motor starter parameter QUERY Aperiodic communications Slave number PANEON 0x01 0x08 0x06 Writing the value of a AQW4 0 13 Address of the parameter to be written Oxxxxx motor starter parameter QUERY AQAW4 0 14 Value of the parameter to be written Oxxxxx Aperiodic communications 5 Read parameter Write parameter T QW4 0 15 Trigger bytes for the queries query counter query counter 40 1744087 03 2009 4 Software Implementation of the Gateway 4 2 10 Validating and Saving the Configuration of the TSX PBY 100 Coupler Validate the various operations conducted under PL7 PRO using the button Close the configuration window of the TSX PBY 100 coupler In the PLC s hardware configuration window click on the button again Save the PL7 PRO application by giving it a name 4 2 11 Allocating Symbols to the Gateway Inputs and Outputs Allocating symbols to the gateway I O is possible under PL7 PRO through the Variables I O menu Once these symbols are defined they are used in the configuration window of the TSX PBY 100 coupler previously described wy PL PRO LUFP TUTORIAL EXAMPLE Fichier Edition Services Vue Outils AP Debug Options Fen tre S e alae sa Slo Ee BIE 2
85. Sys U motor starters Configuration a its in Sn r Profibus DP PC J N master PLC E es ETE TSX 57353 v5 1 O hee sien TSX PBY 100 e 2 490 NAE 911 00 Profibus DP upstream network LUFP7 Total of 8 gateway motor starters TeSys U model ao J ra Modbus downstream network Line Connection termination boxes Please see chapter 2 for the hardware implementation of the default configuration 1744087 03 2009 27 4 Software Implementation of the Gateway 4 1 2 Configuring the Motor Starters Each motor starter should be configured as follows Modbus RTU slave Start bits Modbus address 0 19 200 bits s Parity bit Data bits CBS 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 4 1 3 Modbus Cycle Time The LUFP7 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 default management for degraded modes is described below Please see chapter 6 12 2 1 if you would like to change the way that degraded modes are managed within the gateway 4 1 4 1 Description of the Gateway Degraded Mode Options Offline opt
86. Then you should save and export the configuration of the Profibus DP network as described in chapter 4 2 7 7 Configuring the Profibus DP master PLC outputs under PL7 PRO import the new configuration of the Profibus DP network see chapter 4 2 8 Words QW4 0 16 and QW4 0 17 are now displayed in the PROFIBUS DP slave data frame of the TSX PBY 100 coupler configuration window providing that the address 2 station is selected in the list of the PROFIBUS DP slave configuration frame We get a correspondence derived from the one used for the gateway default configuration The changes in relation to the default configuration are shown by a greyed out background like the free memory locations SP Managing the downstream Modbus network QW4 0 Periodic communications Controlling D i Aperiodic communications n Slave number ma ee 0x01 0x08 0x03 Reading the value of a YQW4 0 10 Address of the parameter to be read Oxxxxx motor starter parameter QUERY QW4 0 11 Number of parameters to be read 0x00071 Aperiodic communications o Slave number Function number _ RINE 0x01 0x08 0x06 Writing the value of a YQW4 0 13 Address of the parameter to be written Oxxxxx motor starter parameter QUERY WQW 4 0 14 Value of the parameter to be written Oxxxxx Aperiodic communications of Read parameter Write parameter 11 z bb f 6QW4 0 15 Trigger bytes for the queries query counter query counter ar nee
87. Tsdr_1 5M MaxTsdr_3M MaxTsdr_6M MaxTsdr_12M Supported hardware features PRPRPPRPRPRPRPEER 60 60 60 60 60 100 150 250 450 800 Redundancy 0 Repeater_Ctrl_Sig a 2 24V_Pins 0 Implementation_Type SPC3 Supported DP features Freeze Mode_supp Sync_Mode_supp Auto_Baud_supp Set_Slave_Add_supp 1 I 1 0 Maximum polling frequency Min Slave_Intervall 1 Maximum supported sizes Modular Station 1 Max_Module S 2a Max_Input_Len zaa Max_Output_Len 24A Max_Data_Len LS Modul_Offset ail Fail Safe e Slave_Family o Max Diag _Data_Len o 6 Bitmap_Device LUFP7_R Bitmap_Diag XLU D Bitmap_SF Ane io Definition of modules 114 time for supported baudrates not supported IRIE gt not connected supported supported supported not supported 100 us modular state CLEAR not accepted Communication rates supported by the LUFP7 gateway All rates should be mentioned in this section The gateway supports all the baud rates of the Profibus DP networks Maximum response time of the gateway depending on the baud rate of the Profibus DP network The response times specified for the gateway are standard values compatible with the TSXPBY 100 coupler for example General hardware characteristics specific to Profibus DP Supported and not supported Profibus DP services Maximum polling frequency Minimum polling interval
88. UFP7 gateway The ABC LUFP and Sub Network elements describe the downstream network that is to say the Modbus RTU network in the case of the LUFP7 gateway and allow you to identify the software version in the gateway F Sub Network H TeSys Uni TeSys U n TeSys U n 3 TeSys U n 4 TeSys U n 5 TeSys U n b TeSys U n f TeSys U n S The configuration of these three elements plus the commands they give access to are described in the next three chapters E i p i ssi 6 13 1 Fieldbus Element Below this element there is a list of the mailboxes configured by default These elements are not described here as they are only designed for the internal management of the gateway These mailboxes can neither be changed nor deleted Both their number and their nature depend on the type of upstream network 1744087 03 2009 101 6 Configuring the Gateway When the Fieldbus element is selected you can select the Configurations type of upstream network Profibus DP with the LUFP7 Alphabetic Categorized gareway Fieldbus Type If your PC is connected to the gateway using the PowerSuite Profibus DP v cable and you are using ABC LUFP Config Tool in on line z mode when ABC LUFP Config Tool starts up the type of Modbus RTL upstream network will be automatically detected The only command accessible from the Fieldbus menu is Restore Default Mailbox
89. active DPM1 station to which it is linked e Mono master or multi master network e Hybrid access method Acyclical communication between masters using the transfer of a token synchronisation cyclical master slaves communications application data transfers e Up to 244 input bytes and 244 output bytes per DP slave typical exchange of 32 bytes per slave e Operating modes Functional operations cyclical I O exchanges resetting to zero input reading and output resetting or disruption only inter master functions are allowed e Input Freeze Mode and or output Sync Mode synchronisation of all DP slaves e Other services offered Verification of DP slaves configuration Advanced diagnostics on three hierarchical levels Allocation of DP slaves addresses DP slaves provided with a watchdog triggering timeout Protection of DP slaves access to I O e Possibility to connect or disconnect a station without impacting on communications between other stations 108 1744087 03 2009 Appendix A Technical Characteristics e Performance results diagram presenting the bus cycle time of a mono master Profibus DP network according to the number of DP slaves present on 5 15 MBit s that network with 2 input bytes and 2 s 12 MBit s output bytes per DP slave 5 10 20 pelnos 18 Bus cycle time ms AQ kBt s bh Test conditions minimum slave time interval 200 us TSDI 37 x dura
90. aller Only functions 0x06 and 0x10 can be used see list in chapter 6 12 2 The command is made up of a query but does not include any response The query bears the name of the command itself instead of the name Query Also each broadcast command only consumes one of the 100 queries and responses allowed by the gateway as there is no possible response for such a command The value of the query frame s Slave Address field is set to 0x00 Please see chapter 6 12 2 2 for further details on how to configure a Modbus query 106 1744087 03 2009 Appendix A Technical Characteristics Environment Height 120 mm Width 27 mm Depth 75 mm connectors 4 724 in 1 063 in 2 953 in Plastic housing with snap on connection to DIN rail 24V regulated 10 Power supply Maximum consumption 280 mA typically around 100 mA Maximum internal consumption for all of the gateway s electronic cards relating to the internal 5V PSU 450 mA Protection class IP20 Maximum relative humidity 95 without condensation or seepage according to IEC 68 2 30 According to IEC 68 2 1 Ab IEC 68 2 2 Bb and IEC 68 2 14 Nb Ambient air temperature e Storage 55 C 3 to 85 C 2 around the device in a dry 72 4 F to 61 6 F 181 F to 189 F environment e Operation 5 C 3 to 55 C 2 17 6 F to 28 4 F 127 F to 135 F E 214107 certificate UL open type category The product should be
91. alue Read command Response Read value lw 012 WORD Resp write_par slave function Write command Response Slave MISE Function LSB lw O13 WORD Resp write_par address Write command Response Parameter address salw 4 0 14 WORD Resp write _par_vwalue Write command Response Written parameter value melt 0 15 WORD Count_read_write_par_in S bit counters For parameter read MISE i write LSB responses swt 0 16 WORD swt O17 WwORO loca Uss O MODIF INS 4 41 4 Software Implementation of the Gateway 4 2 12 Using and Monitoring the TSX PBY 100 Coupler Configuration After validating all the changes previously made you may check the configuration of the TSX PBY 100 coupler the Profibus DP network and the LUFP7 gateway by downloading the PL7 PRO application to the PLC and conducting a monitoring operation using the TSX PBY 100 coupler debug screen gt Transfer the application from the PC to the PLC by running the Transfer program option from the PLC menu or click on the Fil button and selecting PC gt PLC gt Switch from the OFFLINE to the ONLINE mode by running the Connect option from the PLC menu or click on the H button gt Initialize and start the PLC application using the Init and Run options from the PLC menu gt Open the Hardware configuration im TSX PBY 100 RACKO0 POSITION 4 lel Es and the TSXPBY100 board Mise
92. and outputs of all types with the Modbus slaves cyclically aperiodically or in an event driven way All of these Modbus exchanges make up the gateway s Modbus scanner and we use the ABC LUFP Config Tool software application to configure this scanner s exchanges Every item of data exchanged in this way is made available for the Profibus DP master which can gain access to it in a number of ways cyclical aperiodic or event driven exchange The diagram on the preceding page illustrates the distribution of several slaves throughout three downstream Modbus RTU networks each of these networks being interfaced with the Profibus DP master PLC using an LUFP7 gateway 1 5 Principle of 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 on board Modbus software cohabit with the specific features of the network upstream of each of them Profibus DP in the case of the LUFP7 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 10 1744087 03 2009 1 Introduction Each LUFP7 gateway is shipped pre configured so as to make it easier to ope
93. anged with one of the Modbus slaves With each of these operations we shall take the default configuration of the LUFP7 gateway as an example that is to say that any changes previously made will have been cancelled at the start of each operation In addition the operations to be carried out are shown as part of a targeted example Do not forget 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 6 9 1 Replacing a Periodic Input Data Element We will use the node corresponding to TeSys U n 3 motor starter for our example We are trying to replace the monitoring of the TeSys U Status Register address 455 0x01C7 with the monitoring of the 1st Fault Register address 452 0x01C4 The operation consists of changing the value of the Starting register address element of the Query from the Read Holding Registers command Modbus command for reading the values of a number of registers Select this element then change its value as shown below You can enter the address of the parameter in decimal format ABC LUFP Config Tool will automatically convert it to hexadecimal ABC LUFP Master Mode LUFP tutorial i Alphabetic Categorized Configuration Alphabetic Categorized A ABC LUFP
94. anges bit 12 error code bits 8 11 and unit nature of the data element related to the error code bits 0 7 Bit 15 of the Profibus DP master command word is then set to the same value as bit 15 of the gateway status word to notify the gateway that the diagnostic has been taken into account and it can therefore deliver a new one 1744087 03 2009 Appendix D Sample Use under PL7 PRO Controlling and Supervising the 8 TeSys U Motor Starters The Supervision Control operating screen see picture below is meant to monitor the status of the 8 TeSys U motor starters numbered from 1 to 8 It is also meant to control them individually using several buttons Registers 455 and 704 of each of the 8 TeSys U motor starters are used to conduct this control and supervision 455 TeSys U status register IEC61915 704 IEC61915 command register Bit O Motor starter ready Bit O Reserved Run forward Bit 1 0 0 Contactor in the ON position i Bit 1 Reserved Run reverse Bit 2 Fault trip or dropout Bit 2 Reserved stopping BIT 3 esecensese Alarm presence Bit 3 Reset Bit 4 a Specific Tripped MEJI Bit 4 00 00 Reserved emergency start Bit 5 0 00 Specific Fault reset authorized BILD sasian Self test Triggering test trip Bit 6 Specific A1 A2 supply Bit 6 Reserved low speed Bit 7 Specific Motor running Bits 7 11 Reserved by
95. ata is limited to 416 bytes max 1744087 03 2009 11 2 Hardware Implementation of the LUFP7 Gateway 2 1 On Receipt After opening the packaging check that you have an LUFP7 Profibus DP Modbus RTU gateway equipped with a detachable power connector 2 2 Introduction to the LUFP7 Gateway The cables and other accessories for connecting to Profibus DP and Modbus networks need to be ordered separately ef gt ef e amp te Sate o0 o 0 Qu ie Legend NN se NN Detachable power connector for the AA gateway 24V 10 A si Wa Female RJ45 connector to a PC 1 running ABC LUFP Config Tool E configuration software i 3 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 Profibus DP connector 7 7 Configuration Modbus RTU 12 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway The LUFP7 enables communications between a Profibus network and Modbus devices for the purpose of industrial automation and control As with any component used in an industrial control system the designer must evaluate the potential hazards arising from use of the LUFP7 in the application A WARNING LOSS OF CONTROL e The designer of any control scheme must c
96. ateway Red Green Gateway currently being initialized Loss of communication with and configured a FIELDBUS DIAG at least one Modbus slave Flashing green Gateway is in running 2 order Configuration OK Exception code coming from a command or a transaction 1744087 03 2009 25 3 Signaling 1 Specific errors indicated by the LED FiELDBUS DIAG e Flashing red LED 1 Hz input and or output data length is invalid Check the overall length of the gateway data under ABC LUFP Config Tool Monitor option from the Sub Network menu then adjust exchanges with the gateway accordingly using the Profibus DP network configuration software e g SyCon e Flashing red LED 2 Hz User parameter data length and or content is invalid e Flashing red LED 4 Hz Error when resetting the ASIC in charge of Profibus DP communications 2 The LED MobBus becomes red when one or more Modbus slaves fail to respond to the gateway in the expected fashion This can be caused by Loss of communications e g a broken or disconnected cable Writing incorrect values to the outputs corresponding to the two aperiodic read write services see chapter 4 3 NOTE When LED MobBus is flashing red due to a simple loss of communications the LED will revert to a green state when communications are restored When LED 5 is flashing red due to the use of incorrect values with the aperiodic read write services the
97. ateway of the command related to the button pressed by the user This is done only once the gateway acknowledges the previous command i e once bit 14 of the gateway status word has the same value as bit 14 of the Profibus DP master command word In that case bit 13 of the Profibus DP master command word is updated in accordance with the user command and the value of its bit 14 is inverted to notify the gateway of the presence of a new command NOTE The LED the two buttons and the related processings should not be used with the gateway default configuration as the choice retained for the Control Status Byte option is Enabled but no startup lock see chapter 5 and chapter 5 2 These elements are therefore only meant to make this example compatible with the Enabled option see chapter 5 1 The Handshake_lufp7 program also assists the screen described on the previous page in conducting the following tasks 122 Display the button meant to take the content of the gateway status word into account This button is displayed only if a new diagnostic is available i e if the value of bit15 of the gateway status word is different from that of bit 15 of the Profibus DP master command word When the user presses that button the content of the gateway status word is analyzed in order to generate four separate messages according to the following data gateway input data update validity bit 13 periodicity of Modbus exch
98. ateway is an integral part of this box The connections are shown below LUFP7 Gateway Line termination Towards 3 Modbus slaves Line termination Towards 3 Modbus slaves 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway e Bus topology with SCA junction 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 LUFP7 gateway The connections are shown below VW3 A68 306 TSXSCA62 Modbus LUFP Gateway ae 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 LUFP7 connector VW3 A68 306 cable for TSXSCA62 box _ Female RJ45 Male RJ45 Male 15 point SUB D 1744087 03 2009 17 2 Hardware Implementation of the LUFP7 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 statio
99. ation of Modbus slave s Data item associated with the CC control code see CC CD table 1744087 03 2009 47 5 Gateway Initialization and Diagnostics The correct use of this command word by the Profibus master to transmit a new command to the gateway goes through the following steps e checking of FB_HS SEND ABC_HS CONFIRM If FB _HS_SEND ABC_HS_ CONFIRM then e the Modbus exchange startup command FB_DU is updated e the control of the Modbus slaves through CC and CD is updated if the master wants to inhibit activate one or more slaves e the value of the FB_HS_SEND bit is inverted NOTE It is possible to simplify this use as follows e The FB DU and FB_HS_SEND bits are set to one to activate the Modbus communications e The FB DU and FB_HS_ SEND bits are reset to halt Modbus communications Though both 8 bit and 16 bit writes to the Profibus DP master command Word are permissible in theory writing directly to the Profibus DP master command word in 16 bit format can cause errors Such 16 bit writes can disrupt the operation of the transfer of the gateway diagnostics undesired change to FB_HS CONFIRM A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION Do not write 16 bit data directly to the Profibus DP master command word Writing to this word using a 16 bit format can disrupt the transfer of Gateway diagnostics information to the master Depending on the user s configuration unintended equipment operation
100. ay memory is not advisable For this example we will use the second method This is directly after the input data for the gateway s default configuration When selecting a value for the Data Location field data must be located at even addresses in order to align the Modbus data in 16 bit format on the QW4 0 x outputs of the Profibus DP TSX PBY 100 coupler 70 1744087 03 2009 6 Configuring the Gateway A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION The user must use even values for the Data Location field The selection of odd data values 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 Returning to our previous example we will place the 4 bytes of data from address 0x0220 544 in decimal 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 of the Data element from the Query one after another and change their values as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal asc ABC LUFP Config Tool C Schneider ABC Config Tool LUFP 7 Tutorial cfg
101. by the word MWO E g MW10 MWO X13 is allowed but not IW4 0 1 MWO X13 Furthermore the input and output words are copied one by one as PL7 PRO does not support expressions such as IW4 0 1 8 Sr0 sub program calling loop whose purpose is to control and monitor of the 8 TeSys U motor starters Upon each iteration of this loop the word MW0O Module takes a value from 0 to 7 in order to be used as an index for words MW10 to MW17 inputs and MW20 to MW27 outputs 1744087 03 2009 General Status Ready ON Start PAUSE 1 Stop Alarm Fault Fault reset Fault reset Tripped Shunt Trip Test Trip MOTOR Motor current Motor current Run Forward Run Reverse Stopping DEBUG COMM TeSys U command TeSys U status n 1 2 Bk SHUNT TEST SHUNT TEST REY 3 1OP 1670001 1670203 123 Appendix D Sample Use under PL7 PRO 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 MWO between 0 and 7 as it is used to index the status word and the command word of the same motor starter The sub program assists the screen presented on the previous page in conducting the following tasks e Determine the overall status of the motor starter with in case of triggering tripped EEN if the contactor on the motor starter is in the ON position or
102. ccecsesssseseesseeeseeeseeeseeeeees 27 4 1 2 Configuring the Motor Starters cccccecseeeeeeeeeeeeeees 28 4 1 3 Modbus Cycle Time ccccccceccssseecceeesseeseeessesseaseeess 28 4 1 4 Managing Degraded Modes With the Gateway Default Configura honu aeaa iene a te dasdinvdadsr A 28 4 2 Gateway Configuration under PL7 PRO and SyCon 33 4 2 1 Setting Up the Hardware Configuration under PLT ol Oaa A Ene a A 33 4 2 2 Creating a Profibus DP Network under SyCon 34 4 2 3 Selecting and Adding the Profibus DP Master Station 34 4 2 4 Setting up the Gateway Description Files 0 35 4 2 5 Selecting and Adding the Gateway to the Profibus DP NE TW ON casasacncscuncnse A AE RE EEEE 36 4 2 6 Editing and Configuring the Gateway cc eeeeee 36 4 2 7 Saving and Exporting the Profibus DP Network GCORMGUNAUOIN ses ctsataccenyreact EAE 38 4 2 8 Importing the Configuration of the Profibus DP Network under PL7 PRO ccccssssseeeseesseesseeeeeessees 38 4 2 9 Configuring the Gateway I O under PL7 PRO 39 4 2 10 Validating and Saving the Configuration of the TSX PBY 100 COUIET nesi naia a iea 41 4 2 11 Allocating Symbols to the Gateway Inputs and OUMU eoar a N EEEE N ees 41 4 2 12 Using and Monitoring the TSX PBY 100 Coupler Configuration ac ccac cue std seutnsaneeataneCaareeceudahedceansnactadasdecnadead 42 4 2 13 Developing a Profibus DP Application
103. ce many products marketed by Schneider Electric with a Profibus DP 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 Profibus DP master Hence an output is a command signal sent to a Modbus slave whereas an input is a monitoring signal generated by this same Modbus slave The diagram below shows the flows of inputs and outputs exchanged between a Profibus DP master and Modbus RTU slaves via the LUFP7 gateway Profibus DP Master an INPUTS OUTPUTS LUFP7 Gateway 490 NAE 911 00 w en j ree T E z RS Pra Ai ee ee ee s as a E Eo LETERE oo aije LL I fs 5 x TeSys U e000 a T Wa Cet j at 4 iy re Eo fe Eo Ta Wt f a ah ha eh te r te Le e iria iia
104. chapter 6 8 NOTE We strongly advise you not to delete the TeSys U n 1 node as it contains the commands corresponding to the read and write services for a parameter in a Modbus slave After creating the new node we asc ABC LUFP Config Tool C Schneideri ABC Config Tool LUFP Tutorial cfg rename it and assign it Modbus File ATS48 Tools view Help address 10 as shown at right MES Master Mode LUFP ite wan We then add the Preset Single e Febe A are ee EEEO Register command by ea SubNetwork ia address 10 choosing Add Command from iy TeSys the ATS48 menu oe i Slave address al gal n The address of the slave EEE 31701 2006 19 08 Config Line B 2 asc Select Command File Command In the window which appears shown opposite select the 0x06 Preset nx Single Register command and choose Select from the File menu Back in the main ABC LUFP Config Tool window the Preset Single Register command now appears in the list of Modbus commands for the ATS48 node i A i preni Regie p DE Preset Single Register Preset Multiple Flos 82 1744087 03 2009 6 Configuring the Gateway Expand the full tree structure for this command shown below The correspondence between the various elements which appear in this tree structure and the standard Modbus terminology is located to its right Name of the Modbus slave Name of the Modbus command J F
105. check type Type of error check for the frame Default method This is the method adopted for the Modbus RTU protocol It cannot be changed Error check start byte Indicates the number of the byte in the frame from which the calculation of the checksum 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 wil return an error 1744087 03 2009 6 Configuring the Gateway 6 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 shown in it correspond to the values assigned by default to the Modbus command response we have created The correspondence with the content of the corresponding Modbus frame has been added underneath this window Jolki Slave Address Function code Register address Preset data Checksum Value Value Data location Data length Byte swap Error check type Error check start byte 00A Ox06 Oe Q000 OOOO 0x002 No swapping CAC Ox0000 Word number Edit the values which are not greyed out one after another There is a description of them below but also see the previous chapter as the nature of the content of response frames is very similar to that of the fields in
106. command word 0x0201 except if Control Status Byte Disabled 0x0202 Outputs accessible by the Profibus DP master 0x02F3 242 bytes 0x02F4 Outputs inaccessible by the Profibus DP master 0x03FF 268 bytes 1744087 03 2009 111 Appendix A Technical Characteristics Structure of the LUFP7 e 1 024 bytes inaccessible through the Profibus DP master gateway s memory Addresses General data area Ox0400 Input area reserved for the Mailboxes Ox051F 288 bytes Ox063F 288 bytes Ox0640 Internal area reserved for the management of the upstream network Ox07BF 384 bytes area not used by the LUFP7 gateway Ox07CO Internal area reserved for the control registers Ox07FE Gateway status Profibus DP master control NOTE You can use the general data area for Modbus input data from Modbus responses if you do not want the Profibus DP master to have access to them You can also use this memory area for data transfers between commands and or transactions as this area is both an input and an output area In this case always use 0x0400 as the starting address If you use multiple times the same addresses in this area the corresponding memory locations will be displayed in red in the General Area section of the Sub network Monitor window However this will have no consequences on the gateway during run time Data transfer order e Profibus DP network MSB first and LSB last swapping e Modbus RTU network MSB fi
107. cts in line with our policy of continuous development The information given in this document may be modified without notice and must not be interpreted as binding in the part of Schneider Electric Related Documents Title of Documentation Reference Number AnyBus Communicator User Manual ABC_User_Manual pdf SDN 7061 059 Safety Guidelines for the Application Installation 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 1744087 03 2009 5 1 Introduction 1 1 Introduction to the User s Manual Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Appendix A Appendix B Appendix C Appendix D Appendix E Appendix F Appendix G describes the gateway the user guide 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 thumb wheels and outside cables and connectors the gateway describes t
108. d 057A 0iB3 0101DAN 0555 O1D0 0034 0SE O1ED OSCE E Response Query E Collision E Trigger or Statusbytes Reserved 4 Transferring this configuration to the gateway Please see chapter Erreur Source du renvoi introuvable Check that the configuration is valid LED Gateway flashing green However the gateway configuration is now different from the one taken into account by the Profibus DP coupler with respect to the gateway difference in the total length of input data the LED Fie_pBus Diac therefore becomes flashing red at a frequency of 1 Hz providing that the gateway is connected to the Profibus DP network and to its DPM master 5 Saving this configuration to your PC s hard disk See chapter 4 2 7 66 1744087 03 2009 6 Configuring the Gateway 6 Changing the amount of data received by the Profibus DP coupler Under SyCon change the list of modules configured for the gateway see chapter 4 2 6 Since we have added 16 bytes after the input data in the gateway memory the coupler should be configured to receive a block of input data with 16 bytes more from the gateway In this case add an INPUT 16 Byte 8 word module after the module configured for the gateway as the number of input bytes in the default configuration is even word aligned Stot taxpodute Symbol Type t adar t type o Adar o 1 1 INfOUT 32 Byte Hodulel IW E l1 INPUT 16 Byte Modules IW 16 Then you should save a
109. d Value of the motor starter status register 0x0010 1 word Value of the motor starter status register Eoo L M O OD 1 byte _ Free memory location Aperiodic communications 0x0013 1 byte Slave no 0x01 to 0x08 0x0014 1 byte Function number 0x03 Reading the value of a motor starter parameter 0x0015 1 byte Number of bytes read 0x02 RESPONSE 0x0016 1 word Value of the parameter read Oxxxxx Aperiodic communications 0x0018 1 byte Slave no 0x01 to 0x08 T 0x0019 1 byte Function number 0x06 Writing the value of a 0x001A 1word Address of the parameter written Oxxxxx motor starter parameter RESPONSE 0x001C 1 word Value of the parameter written Oxxxxx Aperiodic communications Ox001E 1 byte Read parameter response counter Trigger bytes for the responses Ox001F 1 byte Write parameter response counter 0x00F3 1 byte 212 bytes Ox01FF 1 byte 268 bytes 118 1744087 03 2009 Appendix C Default Configuration Output Data Memory Area The gateway has 244 output bytes Only the first 32 bytes are used One should therefore configure only one 32 byte input output module using a Profibus DP configuration device such as SyCon Managing the downstream 0x0200 1 word Profibus DP master command word Modbus network 0x0202 1 word Value of the motor starter command register 0x0204 1 word Value of the motor starter command register Seed beaut 0x0206 1 word Value of the motor starter command register
110. d 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 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway 2 6 Connecting the LUFP7 gateway to the Profibus DP Network Connect the SUB D 9 point male plug on SUB D the Profibus DP connector to the 9 points Profibus DP plug on the LUFP7 gateway female connector Connections are i
111. d configuration screen The third and fourth file lufp7_tutorial_EN_tsx57353 stx and lufp7_tutorial_EN_tsx57202 stx are PL7 PRO files and therefore represents the actual example for a TSX Premium PLC with respectively a TSX57353 processor and TSX5 7202 processor The next chapters deal with its content and the way to use those files The configuration of the two SyCon files corresponds exactly to what is described in the previous chapters Therefore their content is not detailed here However the PL7 PRO file is described below based on the structure of the program sections used and the related operating screens Overview of the LUFP7 Tutorial Example In this example the various program sections and sub i Navigateur Application programs icon E and also the operations screens icon p Ta ala P are organized as follows Fa Vue Structurelle LUFP gateway initialization and diagnostics E Handshake_lufp7 Ei Handshake master Configuration logicielle 7 ry Programme LUFP7 Gateway Exchanges Saa 2 2 E J Sections e Control and supervision screen for the 8 TeSys U motor Pp boa ET Cmde_mon starters ST Pkw_ service lt a st Handshake_lufp Bi Cmde mon 2 st Handshake master E Sro os Supervision Control D Ev nements J Types OFE i gis 5 Variables e Reading and writing of any TeSysU motor starter E Diemer parameter service similar to the parameter area PKW
112. data area A WARNING MISCONFIGURATION OF LUFP GATEWAY S DATA AREAS Configure your Profibus master so that it has access to the first two bytes of the gateway s output data area as well as to the first two bytes of the gateway s input data area Failure to configure access to these bytes can result in an inability to stop Modbus communications and prevent logging of error conditions for later evaluation Either consequence may cause unintended equipment operation Failure to follow this instruction can result in death serious injury or equipment damage See chapter 4 2 for more information 5 3 Simplified Operation The two 16 bit registers located at addresses 0x0000 0x0001 inputs and Ox0200 0x0201 outputs are no longer used Thus these two addresses can be used to exchange data with the Modbus slave No diagnostic is sent back to the PLC The Profibus master s command word and the gateway s status word do not exist during simplified operations 46 1744087 03 2009 5 Gateway Initialization and Diagnostics 5 4 Description of the Profibus DP master command Word The output word located at addresses 0x0200 MSB and 0x0201 LSB in the gateway s output memory constitutes the Profibus DP master command word Its structure is described below FB_HS CONFIRM Acknowledgement bit of a gateway diagnostic The Profibus master must compare the value of the FB HS CONFIRM bit to the value of the ABC_HS_SEND bit bit
113. dbus x configuration then select the Profibus network This option creates an empty network segment in the SyCon main window In this guide we shall immediately save this configuration and name t LUFP7 Tutorial Example pb 4 2 3 Selecting and Adding the Profibus DP Master Station Select the Master option from EALER A Insert menu or click on the E E E TT 140 CAP 811 00 button Move the mouse ne Parca pointer which now looks like a 11 ie to the position where you want to add the Profibus DP master and _s lt Remove All left click lt Remove Select the TSX PBY 100 master Vendor name Schneider Automation GmbH Station address i then click Add gt gt If required edit Ident number 01654 Description T53 _Fremium_PBY 00 its address and name GSD filename SAD _1654 GSD Once back to the SyCon main window the selected master appears in the selected insertion position Pa SyCon LUFP Tutorial Example pb T File Edt View Insert Settings Tools Window Help HAEE TSA_Premium_PBY100 Station adress OP Master TSx PEY 100 For Help press F1 PROFIBUS Config Mode 34 1744087 03 2009 4 Software Implementation of the Gateway Double click on the line that corresponds to the Master Configuration Profibus DP master to open the Master General Configuration window Description T5 Premium _PBY100 Cancel Station address 1 In the DP Support
114. de 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 whose name corresponds to the name of the previously selected node N 3 On this menu click on Delete The confirmation window shown below then appears asking you to either confirm that you want to delete the selected node TeSys U n 2 in the example shown here or cancel the operation N 46C LUFP Config Tool 4 N 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 once the window disappears Keyboard shortcut De l key Adjusting the gateway s memory optional step The data previously exchanged between the gateway and the Modbus slave which has just been deleted will free up locations in the gateway s memory If you want to optimize the exchanges between the gateway s memory and the master PLC Profibus DP coupler inputs outputs you will need to change the configuration of all the other Modbus slaves in order to adjust the content of the gateway s memory 1744087 03 2009 59 6 Configuring the Gateway However these operations are not necessary when deleting a single slave Conversely they become almost essential when most of the Modbus slaves are deleted because these deletions divide up the gateway
115. df o TET 1 EG Titel UE Et it 1 ES Tit Ja I Len l 4 He l Lez l L h wi r h i r h wi Lai k wi r in 1 i i I in 1 in A Altistart 48 Modbus RTU Slaves NOTE For more explanation about specific terms refer to the Glossary at the end of this guide 8 1744087 03 2009 1 Introduction 1 4 Introduction to the Communication System Architecture Each LUFP7 Profibus DP Modbus RTU gateway allows one of the PLCs on the Profibus DP network to command control and configure up to 8 Modbus slaves 50 commands Modbus requests can be distributed over a maximum of 8 slaves If there are more than 8 Modbus slaves you will need to use an appropriate number of LUFP7 gateways Se Ske ee Sh ml aster Master i Total of 16 Ae a motor starters Upstream network Profibus DP TeSys U model n Downstream network no 1 Modbus LUFP7 Gateway no 1 N O f gt D q O 7 LL Downstream N ea ATS48 ATS46 Modbus yw33 A48 VW3 G46301 LUFP7 Gateway no 3 m E i Downstream network no 3 Modbus 1744087 03 2009 9 1 Introduction The LUFP7 gateway behaves both as a Profibus DP slave on the upstream network and as a Modbus RTU master on the downstream network See Appendix A Technical Characteristics if you would like to read about the technical communication characteristics of the LUFP7 gateway The gateway can carry out its data exchanges inputs
116. dicates 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 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 1744087 03 2009 About the book Validity Note This document applies to all V2 gateways Functions and improvements compared to previous product version gt Increased number of instances transactions from 50 to approximately 100 Password protection for configuration upload download in LUFP9Y Sub network Line Analyzer debugging feature Improved response trigger behaviour Y VV WV MS Windows association of configuration CFG files possible A double click will automatically open the configuration file in the ABC LUFP Config Tool v Extended display functionality in node monitor updated column width and hexadecimal decimal display gt Simplified usability New and improved options menu The data and illustrations in this manual are not contractual We reserve the right to modify our produ
117. down of Modbus exchanges NOTE Once it is active this bit is not deactivated if there are any communication errors with the Modbus slaves To signal this type of error the gateway uses bit 12 of its status word Periodicity of Modbus exchanges The gateway activates this bit provided that it is periodically communicating with all of the Modbus slaves It deactivates it as soon as it loses communication with one of them The Reconnect time 10ms Retries and Timeout time 10ms elements of each of the Modbus queries see chapter 6 12 2 2 are used to determine whether communication is lost then restored NOTE If a number of periodic exchanges are configured for the same Modbus slave only one of them needs to remain active for the periodic communications with this slave to be declared active EC Error code associated with the Modbus network Code for the error detected on the Modbus network by the gateway and transmitted to the Profibus master see EC ED table 0 7 ED Error data item associated with the Modbus network Data item associated with the EC error code see EC ED table The correct use of this status word by the Profibus master to read a diagnostic generated by the gateway goes through the following steps 1 checking of ABC_HS SEND FB_ HS CONFIRM If ABC_HS SEND FB_ HS CONFIRM then 2 the value of ABC_DU is read to determine whether all of the Modbus input data are up to date 3 the value of
118. e the service for which an example is described here should not be confused with the PKW service of other products from Schneider Electric These two services are different but can also be compared due to their main purpose which consists in reading writing the value of any parameter on any Modbus slave However contrary to the true PKW service the aperiodic parameter reading writing service used here does not support the Modbus broadcast feature i e do not ever use address 0 to access all Modbus slaves at the same time In addition the internal settings of the LUFP7 gateway cannot be accessed using this service 124 1744087 03 2009 Appendix D Sample Use under PL7 PRO The PKW Service operation screen allows the user to issue the reading or the writing of a register on any Modbus slave mainly one of the 8 TeSys U motor starters from the default configuration This screen is sub divided into a number of frames described and displayed hereafter The first frame Slave Address is used to Slave Address Parameter Address select the station the aperiodic parameter C TeSys U n 1 motor starter reading writing service will poll Only one box can be checked at any given time C TeSys U n motor starter Value for WRITING Depending on the box currently checked TeSys U n 3 motor starter bo when the SEND command button is being pushed the Slave field of the reading Ti ai i Command MSB of QW4 0 9 or wri
119. e 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 programming 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 1744087 03 2009 MSB Node PA PDP PI PNO PPO Profibus PSU Sub Network TSDI TSDR XML 139 Glossary Most significant byte in a 16 bit word A term referring to the connection point of a Modbus slave under ABC LUFP Config
120. e command completes successfully the following message is displayed The import of the GSD file was successful Then install the symbols representing the gateway under SyCon The corresponding DIB files are LUFP7_S DIB LUFP7_R DIB and LUFP7_D DIB gt Copy these files into C Program Files Hilscher SyCon Fieldbus PROFIBUS BMP if this is the path where you have installed SyCon on your PC All these operations should be conducted using Windows Explorer for example as SyCon cannot proceed to their installation The symbols that represent each of these three files are given below aw z i AY 1744087 03 2009 35 4 Software Implementation of the Gateway 4 2 5 Selecting and Adding the Gateway to the Profibus DP Network b Run the Slave option from the Insert menu or click on the il button Move the mouse pointer which now looks like a Ss to the position where you want to add the LUFP7 gateway then left click In the window that appears Insert Slave x select the LUFP slave then Slave Filter click the Add gt gt button If E fal 5 Master Tx Pey 100 Zi need be edit its address and Slave type All Cancel name Gateway add ress Available slaves Selected slaves hl ab is detailed in canoes crToKORS m Add gt gt CIF60 ODPS __Addall gt gt g Remove All lt Remove Vendor name Schneider Electric Gateways Station address 2 Ident
121. eady set up by another master module 1 x0 prm_required x0 1 if the slave should be configured and set up again x1 diag_data_rdy x1 1 if the slave generated a diagnostic to be processed by the master x2 is_slave_diag x2 0 1 if the diagnostic was created by the master by the slave x3 wdt_active x3 1 if the slave s watchdog is active x4 freeze_mode x4 1 if the selected slave inputs are frozen x5 sync_mode x5 1 if the selected slave outputs are frozen x6 non utilis x inactive 2 x0 x6 unused x7 diag_overflow 3 master_address 4 5 PNO_ identifier 6 244 128 specific_diag unused x7 1 if the slave is inactive excluded from the processing x7 1 if the number of diagnostic bytes exceeds the size of the reception words Address of the master module that sets up the slave Slave s identification code Optional specific diagnostic data none for the LUFP7 gateway 1744087 03 2009 Appendix E Profibus DP Data and Diagnostics Gateway Configuration Data These data are transmitted to the Profibus DP master upon gateway initialization exchanges These exchanges enable the Profibus DP master to set up configure and diagnose each of the slaves The TSX PBY 100 coupler conducts these setup exchanges but they are not documented in its mplementation Manual Please refer to the general documentation about the Profibus DP standard if you want further information about initialization exchanges If you want to rev
122. ed it will be replaced with 1 then transmitted to the gateway using the LSB byte of the QW4 0 15 output The response from the polled slave will then be used by the gateway in order to update the IW4 0 12 to IW4 0 14 inputs data displayed in the Response LUFP7 Inputs part of the WRITING of a parameter value frame Each time such a response is received the gateway increments the LSB byte of the IW4 0 15 input in order to tell the Profibus DP master that it has received a new response This 8 bit counter is not used in this example 1744087 03 2009 127 Appendix E Profibus DP Data and Diagnostics The various elements presented here are detailed in the documentation of the Profibus DP master you will have to use In the case of the TSX PBY 100 coupler of the Premium automatic controls for example these elements are detailed in the Implementation Manual TSX PBY 100 PROFIBUS DP ref TSX DM PBY 100E and in the PL7 PRO on line help help path Communication gt Profibus DP However the most important elements are reproduced here in order to make the LUFP7 gateway easier to use Gateway Profibus DP Diagnostics These diagnostics are the gateway s response to a specific command generated by a Profibus DP master This command enables the master to check the status of one of its slaves In the case of the LUFP gateway the response length is equal to 6 bytes i e the minimum standard and mandatory length for a r
123. edicated to the reading command QW4 0 9 to QW4 0 11 for the query sent by the gateway and IW4 0 9 to IW4 0 11 for the response sent back by the Modbus slave and the middle frame is dedicated to the writing command QW4 0 12 to QW4 0 14 for the query sent by the gateway and IW4 0 12 to IW4 0 14 for the response sent back by the Modbus slave Finally the lowest two frames display the counters or Trigger bytes associated to these queries and responses The queries counters are transmitted to the gateway using the QW 4 0 15 output whereas the responses counters are read using the lW4 0 15 input The contents of these two words is broken down in order to isolate the values of these 8 bit counters The example below follows the previously described example as the output and input data for the aperiodic parameter reading writing service match the settings and values of the other frames Here the value of the parameter is equal to Ox02C3 The middle frame has no valid data because the gateway has not yet been requested by the Profibus DP master to send any write command READING the value of a parameter Query LUFP Outputs Response LUFP Inputs Slave MSB Function LSB Slave LSB Read parameter address 16201C7 Function M38 Number of bytes LSB 1640302 Number of read parameters 1620001 Read parameter value 16 0 C3 WRITING the value of a parameter Query LUFP Outputs Response LUFP Inputs Slave MSB Function LSB
124. eeeeeeeeeeeeeeeees 104 6 14 Adding a Broadcaster NOde ccccccseececseeeeeeeeeeeeeeees 106 Appendix A Technical Characteristics 107 Appendix B LUFP7 Gateway GSD File 113 Appendix C Default Configuration 117 Appendix D Sample Use under PL7 PRO 120 Appendix E Profibus DP Data and Diagnostics 128 Appendix F Modbus Commands 200055 132 Appendix G Concept and Quantum PLLC 136 C0 gt eee neon eR Oe nr eer ee ee en eee eos 137 GIOSS ANY aoi E 138 NOTICE PLEASE NOTE Safety Information 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 call attention to information 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 tf not avoided will result in death or serious injury A WARNING WARNING in
125. er of registers 0x0001 and Byte Count 0x02 in the Query but also Starting register address 0x02C0 704 and Number of registers 0x0001 in the Response the value of this command is transferred to addresses 0x0202 0x0203 of the output memory of the gateway Data length 0x0002 and Data location 0x0202 for the Data of the Query 1 Transactions command Periodic command Update mode Cyclically and Update time 10ms 100 for the Query used to get from one to five status registers exact number in 0x0204 0x0205 from the TeSys U motor starter starting at register 455 0x01C7 the value of these registers is transferred to addresses 0x0006 0x000F of the input memory of the gateway length of 2 4 6 8 or 10 bytes depending on the number of registers actually read for a maximum of 10 bytes The contents of this command is detailed below because our example focuses on it o The Query is made of the following fields in this order 1 Byte Constant field renamed as Address 0x01 address of the Modbus slave 1 Byte Constant field renamed as Function code 0x03 function code of a Read Holding Registers command 1 Word Constant field renamed as Register Address 0x01C7 to emulate the Starting register address field of the FC 0x03 1 Data field with Data length 0x0002 and Data location 0x
126. er 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 by the user with the Stop Node command or with one of the commands described in chapter Erreur Source du renvoi introuvable using the CC and CD fields The Stop Node command stops all the communications configured for the node currently monitored This means that all Commands and Transactions configured for the node are inhibited Please note that in the case of the first node of the LUFP7 default configuration the TeSys U n 1 slave this will also inhibit the two Transactions designed to read write any parameter of any slave 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 the user to select a Modbus command see chapter 6 12 2 e Once selected the Query and Response frames of this command will be displayed in the upper part of the Monitor window The user can then edit the value associated with each field of the Que
127. es The usage of this command is recommended if you inadvertently inserted a user defined Mailbox under the Fieldbus device As Mailboxes are not meant to be used with the LUFP7 gateway only the Default Mailboxes should be set under the Fieldbus device in the following order e Startlnit e Fieldbus specific e Endlinit Should any other Mailbox also appear in this list please perform the Restore Default Mailboxes command Then confirm the operation by AN This operation will delete the user defined mailboxes do You want to continue clicking on the Yes button in the confirmation warning window that appears 6 13 2 ABC LUFP Element The sole command accessible from the ABC LUFP menu is Disconnect or Connect if you are in off line mode please refer to chapter 6 3 for details about on line and off line modes In the configuration of the LUFP7 gateway s ABC LUFP element the Physical Interface and the Protocol Mode properties must not be changed Their value respectively must always be set to Serial and Master Mode 102 1744087 03 2009 6 Configuring the Gateway Configuration Alphabetic Categorized Control Status word Module Reset Physical nterace Protocol Mode Recenve Counter Location OsU000 Statistics Disabled Transmit Counter Location Osai Configuration Enabled but no startup lock Enabled but no start
128. es the start up of Modbus cyclic exchanges the Modbus slaves activation deactivation and Modbus network diagnostic by means of 2 words A Profibus DP command Word which is transmitted by the PLC application and is associated to addresses 0x0200 and 0x0201 of the gateway output memory A Gateway Status Word which is transmitted by the gateway and is associated to addresses 0x0000 and 0x0001 of the gateway input memory The Gateway Status Word is not refreshed cyclically The updating of this word is based on a toggle bit system which must be managed in the PLC application Diagnostic is refreshed by the gateway using toggle bit B15 New command from the Profibus master is sent using toggle bit B14 Bo 1744087 03 2009 5 Gateway Initialization and Diagnostics 5 1 1 Profibus DP master command Word Feces Gai atl Bc Ml elt at ad ul CC Control Code CD Control Data FB DU Modbus cyclic exchanges start up FB HS_SEND Toggle bit New command from Profibus master FB_HS_CONFIRM Toggle bit Diagnostic acknowledgement See the detailed description of each bit in chapter Erreur Source du renvoi introuvable 5 1 2 Gateway Status Word ie orion oi oss 67 66 os se co ea oi 60 _ eee EC Error Code ED Error Data ABC_PER Modbus cyclic exchanges will all slaves indication ABC DU Modbus cyclic exchanges activated ABC_HS_ CONFIRM Toggle bit Command acknowledgement ABC_HS_SEND To
129. esponse to a diagnostic command Under PL7 PRO this response can be viewed in two different ways e Inthe Debug screen of the TSX PBY 100 coupler when the slave whose address corresponds to the gateway s is selected The gateway Profibus DP diagnostics are then displayed PROFIBUS DP diagnostic data An example is given on the right It is an excerpt from the screen represented in chapter 4 2 12 Donn es de diagnostic PROFIBUS DP ID ESCLAVE Ox71F Diagnostic cr par l esclawe Chien de garde esclave actif Adresse maitre 1 in the 00 Oe 00 OF 1F OF 1E CF e Using the SEND_REQ function the 0x0031 command code and requesting specifically a diagnostic from the slave concerned The table below describes the structure and content of the gateway response to a Profibus DP diagnostic command sent to it Bytes Structure Description 0 x0 not_reachable x0 1 if the slave is non connected or switched off x1 not_ready x1 1 if the slave is not ready for data exchange x2 config_fault x2 1 if there is a slave configuration error upon test request x3 ext_diag x3 1 if extended diagnostic bytes 7 255 x3 0 for the LUFP7 gateway x4 not_supported x4 1 if the function is not supported by the slave x5 invalid _rsp x5 1 if there is an error in the slave s first response x6 param_fault x6 1 if there is an error in the slave s last setting message x7 master_lock x7 1 if the slave is alr
130. eway memory is not advisable For this example we will use the second method and place the 16 bytes of data form address 0x0020 32 in decimal This is directly after the input data for the gateway s default configuration 1744087 03 2009 65 6 Configuring the Gateway 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 of the Data element from the Response one after another and change their values as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal Configuration Configuration z Alphabetic Categorized Alphabetic Categorized Blt Beeaxe 7 amp HEE Categorized Categorized ABC LUFP Master Mode LUFP7 tutorial Data length ue Data location n Byte swap h swapping Byte swap No swapping Devices Configuration a Sub Network 2 Alphabetic Categorized H I TeSys U n a TeSys U n 2 Byte swap No swapping F _ Read Holding Registers Data length 0x0002 H E Query Data location Ox0004 2 63 Response TEE Configuration Configuration Ef Slave Address The byte swapping method to use on the data This is used Alphabetic Categorized Alphabetic Categorized Lf Function code to change the data order of High Byte Low
131. expected or when the length character is too high Variable Data w End Character Variable Data w Length Character OxXX bytes of Data Variable Length Data End Character Length Character The end length character of any Variable Data located in the Queries of Transactions must be supplied by the Profibus DP master because it is the producer of this data 96 1744087 03 2009 6 Configuring the Gateway The end length character of any Variable Data located in the Responses of Transactions is generally produced by the LUFP gateway not by a Modbus slave But the Response of the Read Holding Registers Modbus command 0x03 is an exception to this rule because its Byte count field can be used as the length character refer to the examples given at the end of the current chapter NOTE Only one Variable Data field is allowed in any Query or Response of a Transaction The following table describes the properties of any Variable Data field Property Notes Byte swap As for the standard Data field As a reminder the three possible values are as follows No swapping Default configuration for a Profibus DP master The data is sent in the same order as it appears in the gateway s memory This is the case which must be used by default 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 Data locati
132. f 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 94 1744087 03 2009 6 Configuring the Gateway 6 12 3 Adding a Special Modbus Command Apart from the standard Modbus commands covered in the previous chapter it is possible to create two types of special Modbus commands Modbus commands using the same template as standard commands and Modbus commands whose nature and frame content can be completely changed by the user 6 12 3 1 Modbus Commands Based on Standard Commands You create a command of this type from the Select Command window see chapter 6 12 2 by choosing Add Command from the Command menu The window shown below appears It shows the structure of the future command s query and response frames which will then be added to the list of available Modbus commands This structure includes the standard elements that is to say the Slave Address Function and Checksum fields described in previous chapters aec Command Editor Miel E File column Command Hame Hew Command Command ID DA Allow Broadcasting Query 2 4 DicplayName Slave Address Function Code Data Checksum ObjectT ype Byte Byte Data Checksum Value Slave ddress ID User User Response 2 4 DisplayName Slave Address Function Code Checksum ObjectT ype Bite Bute Checksum Value SlaveAddress ID Depend Please
133. fig 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 e clicking on the y button The rightmost part of the status bar of ABC LUFP Config Tool displays its current connection mode Config Line On line mode the left LED is green Contig Line Off line mode 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 When an unwanted disconnection does occur ABC LUFP Config Tool goes to Searching for ABC LUFP Off line mode the red LED is displayed and automatically retries to connect N Searching for ABC LUFP itself to the gateway The Searching for ABC LUFP window is visible for the If the search fails ABC LUFP Config Tool asks the user No Module was found retry whole duration of this search e Should the user select the Cancel button ABC LUFP Config Tool remains in Off line mode e Should he select the Retry button ABC LUFP Config Tool resumes the search for an ABC LUFP gateway 54 1744087 03 2009 6 Configuring the Gateway 6 4 Importing the Gateway Configuration Before you can make any changes to the gateway configuration you will first need to import its current configuratio
134. figuration allows it to communicate with eight TeSys U motor starters which is the maximum number of Modbus slaves 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 You should carry out this operation using ABC LUFP Config Tool If you are using the aperiodic read write services keep in mind that these services are configured using the memory space of the first configured TeSys U Motor starter Therefore deleting the first configured TeSys U Motor starter can also result in the deletion of the aperiodic read write services A WARNING LOSS OF APERIODIC COMMUNICATIONS Do not delete the first configured TeSys U motor starter if you are using the aperiodic read write services Deleting this first device will also delete the aperiodic services Because these services allow communication with all of the configured Modbus devices and not just the first device you may lose communications with all devices leading to unintended equipment operation Failure to follow this instruction can result in death serious injury or equipment damage 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 inclu
135. frame verify that the Auto Device E addressing box has been checked DF Support DP Master Settings Auto addressing FMS Support EMS Settings Bus Parameter Actual Master Baud rate 1500 kBits s a Cena T S00 kBits s P Optimize a ET Edit Lastly select the Profibus DP master and run the Bus See ea Parameter option from the Settings menu to configure the 6000 kBits s 12000 kBits s Profibus DP network baud rate Bus Parameter Ea NOTE The Optimize option must remain equal to standard except in case of knowledgeable users who want to edit critical Profibus network settings t t dit itical Profib DP twork tti Baudrate 1500 KBits s El Cancel accessible via the Edit button Optimize standard er Edit standard by user 4 2 4 Setting up the Gateway Description Files The GSD file that describes the gateway must be located on the PC hard drive so that SyCon can access it any time Preferably place the file inside the directory that contains all the GSD files used by SyCon The description and content of that GSD file are both in Appendix B LUFP7 Gateway GSD File This file Tele071F gsd is available on the http www schneider electric com website via LUFP7_V2_GSD_files folder gt To import file TeleO71F gsd under SyCon run the Copy GSD option from the File menu and select the GSD file mentioned above from the CD If th
136. from the TeSys U n 2 motor starter memory increases from 2 to 16 as the number of registers monitored has increased from 1 to 8 Select the Byte count element from the Response and change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal fac ABC LUFP Config Tool C Schneider ABC Config ToolLUFP Tutorial cfg File Byte count Tools wiew Help SIU re Master Mode LUFP a anes Alphabetic a Categorized Alphabetic Categorized oe ews Un Fi TeSys U pt2 Value z Value 16 AL Ta Read Holding Registers H EA Query EJ Response Value T Ey Slave Address Definition of a Constant Byte Value when a d aaae code transmitting the Byte this Value will be sent Z E Este count When receiving a Byte ABC will perform a check i ay pe H aginst this Value If the received Byte does not Alphabetic Categorized of Checksum gi match it will be discarded vae A Sins 7 TE atin 27701 2006 15 38 Config Line BB p lt 64 1744087 03 2009 6 Configuring the Gateway 3 Changing the location of the Modbus data received in the gateway s 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 s memory and the size of the memory occupied must also be adjusted appropriately If you are not certain how much of
137. g Tool C Schneider ABC Config Too LUFP Tutorial cfg Miel E4 asc ABC LUFP Config Tool File TeS5SysUn l Tools view Help File Motor Mame 0019 Tools ABC LUFP Master Mode LUFP tutorial Alphabetic Categorized E ABC LUFP Slave address 1 Eee ub Network IG H f Motor Name 001 T TeSys Lin Slave address By Teln The address of the slave TeSys U n l 27 01 2006 19 15 Config Line Q agus U n3 Motor Hame O01 i Sub Metwork E C Motor Name O01 H TeSys U n 2 6 11 2 Changing the Address of a Modbus slave To carry out this operation select the node which corresponds to the Modbus slave involved Devices section click on the value of the current address value of the Slave address field in the Configuration section then change it NOTE 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 equipme
138. ggle bit New gateway diagnostic See the detailed description of each bit in chapter Erreur Source du renvoi introuvable 5 2 Diagnostic and Control The Profibus master manages the Modbus slaves activation deactivation and the Modbus network diagnostic using the same 2 words as those of Full Management Bits concerning Modbus cyclic exchanges management are inactive 5 2 1 Profibus DP master command Word lL bad Le CR eas a Aa CC Control Code CD Control Data Reserved FB_HS_SEND Toggle bit New command from Profibus master FB_HS_CONFIRM Toggle bit Diagnostic acknowledgement See the detailed description of each bit in chapter Erreur Source du renvoi introuvable 1744087 03 2009 45 5 Gateway Initialization and Diagnostics 5 2 2 Gateway Status Word sop oe seo os 7 ese e e or oo EC Error Code ED Error Data ABC_PER Modbus cyclic exchanges will all slaves indication ABC DU Modbus cyclic exchanges activated ABC_HS_ CONFIRM Toggle bit Command acknowledgement ABC_HS_SEND Toggle bit New gateway diagnostic See the detailed description of each bit in chapter Erreur Source du renvoi introuvable In the Full management and Diagnostic and Control modes it is important that you configure your Profibus master so that it has access to the first two bytes of the gateway s output data area as well as to the first two bytes of the gateway s input
139. he six LEDs on the front of the gateway describes the successive steps for setting the gateway up with its default configuration with a PLC using Profibus DP LUFP7 gateways are shipped pre configured to allow you to interface a Profibus DP master with 8 predefined Modbus slaves TeSys U motor starters describes two registers in the gateway s memory reserved for initializing and carrying out diagnostics on the gateway They are only exchanged between the Profibus DP master and the gateway describes how to use the ABC LUFP Config Tool software application which allows you to modify or create a new configuration for the gateway and shows the various features of this software add or remove a Modbus slave add or change a Modbus command etc This chapter also shows the changes to be made to software implementation operations in SyCon and PL7 PRO describes the technical aspects of both the gateway and the Profibus DP and Modbus RTU networks it is interfaced with details and describes the content of the GSD file shipped with the gateway The file can be used for the setup tools to recognize the LUFP gateway as a Profibus DP subscriber with communication features of its own describes the main features of the default configuration of the LUFP7 gateway However it does not go into ABC LUFP Config Tool in detail gives an advanced example using the LUFP gateway s default configuration This example exploits the command and m
140. hen it was saved b Select one of the Sub Network nodes then choose Insert from File from the menu whose name corresponds to the name of 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 it was configured when it was saved N You will then 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 s memory and this Modbus slave All of these operations are described in chapter 6 11 and in chapter 6 12 A WARNING DUPLICATE MODBUS ADDRESSES OR GATEWAY MEMORY RANGES If the user chooses to add a Modbus slave by copying the configuration of an existing Modbus slave the user 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 1744087 03 2009 61 6 Configuring the Gateway 6 9 Changing the Periodic Data Exchanged with a Modbus Slave This operation consists of replacing adding or deleting periodic data exch
141. hich must be managed in the PLC application 1744087 03 2009 85 6 Configuring the Gateway 6 12 2 2 Configuring the Query Alphabetic Categorized Select the Query element from the Modbus command The various elements of the configuration of the query for this command are shown opposite The values displayed correspond to the Offline options for fieldbus Clear Reconnect time 10ms 1000 default values for any new command Retries 3 Timeout time 1 0ms 100 These elements allow you to configure how the whole command is Trigger byte address O O5FF managed including how degraded modes are managed number of re transmissions 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 the element Configuration Description element Offline options This element affects the data sent to the Modbus slave but only in the query to which this for fieldbus element belongs to whenever the gateway is disconnected from the Profibus DP network This element takes one of the following three values From now on all data sent to the Modbus slave using this query is set to Ox0000 resetting of the output data in the gateway s memory Freeze All data sent to the Modbus slave using this query retains its current values the output data in the gateway s memory is frozen
142. iew the configuration data that have been exchanged during Profibus DP slave setup you may use the SEND REQ function in an application developed using PL7 PRO You must then use the 0x0031 command code and specifically request the reading of the configuration data for the slave concerned see Implementation Manual of the TSX PBY 100 coupler The table below describes the structure and content of the response issued by the TSX PBY 100 coupler to a read command of the LUFP7 gateway configuration data Bytes 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 23 a 24 a 23 a b 24 a b 23 a b c Name Total length Number of IW Number of QW IW offset QW offset Station Status Watchdog Factor 1 Watchdog Factor 2 Min TSDR PNO_ Identifier Group Flags Address ID Modular slave Active slave Parameters size Configuration data size Size of the data used Parameters Configuration data Data used 1744087 03 2009 Description Total length of the configuration information in bytes Total size of the input data in the IW area Total size of the output data in the QW area Offset of the input data blocks in the IW area Offset of the output data blocks in the QW area Configuration of the slave s services see Profibus DP standard Slave timeout see Profibus DP standard Timeout Watchdog Factor 1 x Watchdog Factor 2 x 10 ms Minimum slave TSDR see Profibus DP standard
143. ile columns TeSys U n l TeSys Ure TeSys Uns TeSys U n TeSys U n5 TeSys U nb TeSys U n r TeSys U n8 SelectAll DeselectAll SelectAll Deselect Al SelectAll Deselect All SelectAll Deselect All SelectAll DeselectAll Select All Deselect Al SelectAll Deselect All Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Transactions 1 Transactions 2 In Area 32 bytes 512 ytes 512 General Area 0 bytes 356 ooo0 o200 l 0400 A 0O1ID 01210 EMEEN MIE TEG TeSys U n4 TeSys U n5 oo74 0274 Select All Deselect All SelectAll DeselectAll 009i 0291 7 0AF OSiR F Read Holding Reg OOCE O2CB fees bf Preset Multiple Regs OOES8 O2E8 0105 0305 122 0322 0113F 0033F 015C 0350 0179 0379 0196 0396 Dipi En DIED O3ED E Response Query E Collision Trigger or Statusbytes Reserved 1744087 03 2009 71 6 Configuring the Gateway 5 6 N 4 Transferring this configuration to the gateway Please see chapter Erreur Source du renvoi introuvable Check that the configuration is valid LED Gateway flashing green However the gateway configuration is now different
144. in the first drawing hereafter BOOL should not be used for the data storage of the LUFP7 The bytes MSB LSB and bits are twisted with data type BOOL The data type for the LUFP7 gateway at Concept should be changed to INT16 or UINT16 In this case the data storage of the gateway and the PLC is identical Datatype Bool LUFP QUANTUM _ Different data storage at the LUFP7 and Concept with a Quantum PLC The BYTES are twisted with datatype bool Datatype INT16 LUFP QUANTUM eee Identical DataStorage at the LUFP7 and Concept with at Quantum PLC INT16 is the correct datatype Datatype UINT16 LUFP QUANTUM UINT16 has the same mapping like INT16 136 1744087 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 137 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
145. installed in an electrical cabinet or in an equivalent location Certified as complying with European standards unless otherwise stated Electromagnetic compatibility Complies with the EN 50 081 2 1993 industrial environment standard EMC Transmission Tested according to class A radiation under the EN 55011 1990 standard Complies with the EN 50 082 2 1995 and EN 61 000 6 2 1999 industrial Electromagnetic compatibility environment standard EMC Immunity Tested according to the ENV 50 204 1995 EN 61000 4 2 1995 EN 61000 4 3 1996 EN 61000 4 4 1995 EN 61000 4 5 1995 and EN 61000 4 6 1996 standards 1744087 03 2009 107 Appendix A Technical Characteristics Communication Characteristics Upstream network Profibus DP Downstream network Modbus RTU Profibus DP e Transmission method PROFIBUS DIN 19245 Part 1 characteristics e Nature of network Device oriented bus DeviceBus e Network topology multipoint linear topology bus with adapted and active line terminations see chapter 2 6 2 e Physical media single twisted pair copper cable shielded or not preferably a type A Profibus DP cable with the following characteristics Impedance 135 to 165 O Loop impedance 110 O km nominal value Conductor diameter 0 64 mm Capacity lt 30 nF km Conductor section gt 0 34 mm e Connections 9 point SUB D connectors preferably see chapter 2 6 2 e Communication speed 9 6 19 2 45 45
146. ions for fieldbus This option affects the data sent to a Modbus slave if there is no communication coming from the Profibus master It is defined at the Query level of each command or transaction sent to the different slaves This option can take 3 values Clear All data sent to the concerned Modbus slave is set to 0 Freeze All data sent retains its current value No scanning The query is no more transmitted With the gateway s default configuration Clear option is selected for periodic exchanges No scanning is selected for aperiodic exchanges Which means that Command and Status registers of the TeSys U continue to be refreshed but output memory associated Tesys U command registers is forced to O and input memory Tesys U status registers works normally Aperiodic Modbus exchanges are stopped Timeout time This option defines the time the gateway will wait for a response before it either retries to send the same request or it disconnects the slave and declares it missing It is defined at the Query level of each command or transaction sent to the different slaves With the gateway s default configuration this time is equal to 300 ms 28 1744087 03 2009 4 Software Implementation of the Gateway Retries This option determines the number of re transmissions carried out by the gateway if there is no response from the slave It is defined at the Query level of each command or transaction sent to the different slaves
147. its I O values e In the General frame verify that the two boxes Activate device in actual configuration and Enable watchdog control are both checked If not check both e Validate the operations conducted by clicking on OK Slave Configuration General Device LUFF Station address 2 OF The left hand Description LUFP _Gateway Cancel portion of this area If Activate device in actual configuration ifies th Parameter Data species tne i Enable watchdog control GSD file TELEOF1F G5D gateway a Max length of ir output data 16 Byte Length of in foutputdata 64 Byte BP T Settings peer saree Max length of input data 244 Byte Length of input data 32 Byte Assigned master an 1E rg nan Max length of output data 244 Bute Length of output data 32 Byte Station address 1 portion lists the Mas number of modules 24 Number of modules 1 TS Premium PRY100 remy Mode Trputs pas r 2 pepe gt a gre 6 Byte 3 word 3wWod OK72 a Modules B Byte 4 word 4 word 0x73 Actual slave Station address 2 LUFF Gateway 2 LUFF 10 Byte 5 word a Word Oned 12 Byte 6 word B Word Ox 5 gt 14 Byte 7 word Word Ox 6 16 Byte 8 word awod One a2 Byte 16 word 16 Word srF elle Mode _ _____Fbumbel_ Tope Ac Wen Type U Adat Je Lend Append Module 1 1 IN OUT 32 Byte 16 word Modulel MW oO 16 0w 0 Remove Module Inzert Module Predefined Modules d Symbolic Hames
148. l be set to OxFF the Filler Value 1744087 03 2009 99 6 Configuring the Gateway e Filler Value OXFF ccceee The value copied into the not updated data retrieved from the Response frame ie for data located beyond the last character as indicated by the Length Character e Maximum Data length 0x000B A maximum of 11 bytes must be accepted and allocated in the input memory from 0x0005 to OxOOOF the first byte is the Length Character and the other ten bytes are the significant data retrieved from the frame of the Response sent by the Modbus slave e Object Delimiter Length Character This mode states that the first input data byte here 0x0005 is the length of the significant data 0x0005 excluded it also states that as a not visible character this byte is not located in the frame of the Response but evaluated by the gateway depending on the real length of the Response frame 1 Checksum field mandatory CRC at 0x0000 With this configuration the contents of the gateway memory is as follows Ox0005 Significant Data length Ox0006 0x0007 1st status register 455 0x0008 0x0009 2nd status register 456 OxO00A 0x000B 3rd status register 457 Ox000C 0x000D 4th status register 458 OxOOOE OxO00F 5th status register 459 Use your Profibus DP configuration tool to resize the I O data exchanged between the master TSX PBY 100 and the LUFP
149. lected are displayed MSB first that is in the MSB LSB order as read from left to right with growing memory addresses provided that the Byte Swap option from the Data Preset Data or Variable Data element of the corresponding Modbus command was set to No swapping see chapter 6 12 2 4 This also holds true for the two reserved words dedicated to the management of the downstream Modbus network However but only as far as the TeSys U n 1 node is concerned the data beginning at addresses 0x0013 0x0018 0x0212 and 0x0218 see Appendix C Content of the Gateways s DPRAM Memory paragraph follow the same byte order than the content of the frames they are related to see Appendix F Modbus Commands from first to last byte checksum excluded and following growing adresses in the memory of the gateway Finally bytes 0x001E 0x001F 0x021E and 0x021F correspond to the reception and emission counters for these frames Trigger bytes from Transactions 1 and 2 A brief description of the toolbar buttons of this window is given below f J F Stop Start communications with the selected node see Node menu below E Select Send the Modbus command shown in the upper part of the window see Command E menu below BA ne Stop Resume refreshing the data displayed in the lower part of the window 1744087 03 2009 57 6 Configuring the Gateway The menus of this window allow the us
150. ling for values written to the outputs corresponding to the aperiodic communications services Incorrect values sent to the aperiodic services outputs can lead to unexpected system behavior Failure to follow this instruction can result in death serious injury or equipment damage 1744087 03 2009 43 5 Gateway Initialization and Diagnostics The chapter describes the principle used to initialize and carry out diagnostics on the gateway using each of the three options offered by the gateway These options can be configured via ABC LUFP Config Tool by changing the assignment of the Control Status Byte field for the ABC LUFP element see chapter 6 13 2 These options are Control Status Byte field Meaning Enabled rnan aG Full Management EEE E T Diagnostic and Control DISabIE O ariano a aa aa Simplified Operation The option chosen in the default configuration is Enabled but no startup lock Full Management Management in the PLC application of gt Start up of Modbus cyclic exchanges gt Modbus slave s activation deactivation gt Modbus network diagnostic Diagnostic and Control Management in the PLC application of gt Modbus slave s activation deactivation gt Modbus network diagnostic Simplified Operation gt Automatic start up of Modbus cyclic exchanges gt No Modbus slave s activation deactivation gt No Modbus network diagnostic 5 1 Full Management The Profibus master manag
151. ll Deselect All Ae Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Regi Read Holding Aegi Re 00Eg Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Pre l 1 Transactions 1 O13F Transactions 2 015C 0179 In Area 32 bytes 5 2 Out Area 32 bytes 512 ET oo00 0200 0100 0710 008 q1ED O234 E Response Quen Collision E Trigger or Statusbytes Reserved You will note that the TeSys U n 1 section now only has the two Modbus commands common to the eight TeSys U motor starters and that the memory locations which corresponded to the two personalised commands are now free NOTE The free memory location at address 0x0012 in the gateway s memory is no longer part of the gateway s inputs because there is no input data used beyond this address 5 Transferring this configuration to the gateway Please see chapter Erreur Source du renvoi introuvable Check that the configuration is valid LED Gateway flashing green 6 Saving this configuration to your PC s hard disk 7 Changing the amount of data received and the number of data transmitted by the Profibus DP coupler Still in SyCon change the list of modules configured for the gateway see chapter 4 2 6 Since now you only have 18 input data bytes and 18 output data bytes in the gateway memory the coupler should be configured to receive an 18 byte input data block fro
152. llustrated here SUB D 9 point male 490 NAD 911 04 or 03 Type A Profibus DP cables Ref TSX PB SCA100 Modbus 2 6 1 Pin Outs LUFP7 plug 490 NAD 911 04 03 connector Type A cables 9 point SUB D female 9 point SUB D male TSX PB SCA100 Incoming A cable B line RxD TxD Request To Send 1 GND Network 2 5V Network 2 SOR RRR ee eR EEE ERE 3 A line RxD TxD 9 9 Grounding Shielding Shielding Grounding 1 This signal is not mandatory and may be ignored for the LUFP7 gateway 2 The GND and 5V pins are meant to supply the line termination if it is present in the connector being used 20 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway 2 6 2 Wiring Recommendations for the Profibus DP Network e Use a shielded cable with a twisted pair of copper conductors preferably a type A Profibus DP cable e Connect the reference potentials to one another e You may choose the transmission rate within limits ranging from 9 6 kbit s to 12 Mbit s The choice is made at network startup and applies to all network subscribers The maximum length of the line segment is inversely proportional to the transmission rate Transmission rate bit s 9 6k 19 2k 93 75k 187 5k 500k 3 6 or 12 M Distance segment m 1 200 1 200 1 200 1 000 400 200 m oso 328 m Experience shows that these lengths may be doubled using line
153. m the gateway and to transfer an 18 byte output data block to the gateway 1 1 INVOUT 2 Byte 7 word Modulel lM Ow D 2 1 IN OUT 16 Byte Sword Modules lv a Ow o Then you should save and export the configuration of the Profibus DP network as described in chapter 4 2 7 1744087 03 2009 75 6 Configuring the Gateway 8 Configuring the inputs and outputs of the Profibus DP master PLC under PL7 PRO import the new configuration of the Profibus DP network see chapter 4 2 8 and following chapters Only words IW4 0 to IW4 0 8 and QW4 0 to QW4 0 8 are now displayed in the PROFIBUS DP slave data frame of the TSX PBY 100 coupler configuration window providing that the address 2 station is selected in the list of the PROFIBUS DP slave configuration frame We get the two correspondences represented below derived from the ones used for the gateway default configuration Periodic communications Monitoring of TeSys U motor starters Service PLC output Managing the downstream QW4 0 Profibus DP master command word Modbus network Periodic communications NA Controlling TeSys U motor starters 9 Transferring the Profibus DP coupler configuration Once changes have been made to the Profibus DP coupler configuration it is necessary to validate the hardware configuration of the PLC rack and to transfer the whole application to the Premium PLC on which the coupler is located Please see chapter 4 2 12 6
154. matches the settings and values from the frames previously described The reading command is issued using the QW4 0 9 to QW4 0 11 outputs and the writing command is issued using the QW4 0 12 to QW4 0 14 outputs All these updates are performed in the Pkw_service program A new command is issued and sent each time a modification is brought to the value of the MSB byte for reading or to the value of the LSB byte for writing of the QW4 0 15 output E g In the example displayed above the frames are used to issue a command intended to read 0x03 i e the function code that stands for the Read Holding Registers Modbus function the value of the register no 455 address 0x01C7 on the TeSys U motor starter no 3 0x03 The number of read parameters is necessarily equal to 1 Ox0001 but this data is still updated by the Pkw_service program because it is part of the Modbus command frame the gateway will issue 1744087 03 2009 125 Appendix D Sample Use under PL7 PRO The next four frames located beneath and apart from the other ones are intended to diplay the output data transmitted to the gateway so that it will issue the corresponding Modbus query the input data as received by the gateway from one of its Modbus slaves in response to this query the counters used by the gateway to trigger the emission of a command and the counters updated by the gateway in order to mark the reception of a response The upper frame is d
155. mmand Columns View Read Holding Registers Query Slave Address Function code Starting register address Mumber of registers Checksum Value Value Value Error check type Error check start byte 0x03 Ox0000 Ox0000 CRAC Ox0000 Read Holding Registers Response Slave Address Function code Byte count Data Checksum The upper part of this window allows you to choose a Modbus command to edit its contents then to send it to the Modbus network Command menu The response will then be displayed in this same part Please see chapter 2 10 Node monitor in the ABC LUFP Config Tool user manual entitled AnyBus Communicator User for further information about how to use this window The lower part of this window allows you to view the content of the gateway s memory but only the bytes used in frames for queries and responses frames for commands and transactions configured for the selected node The values of the gateway s two reserved words addresses 0x0000 0x0001 and 0x0200 0x0201 are also shown whichever node is selected In the window shown above the data displayed correspond to the values at the memory locations designated by the Data fields in the commands and transactions configured for the TeSys U n 1 node that is to say the following commands Read Holding Registers Preset Multiple Registers Transactions 1 and Transactions 2 NOTE The data exchanged with the Modbus slave previously se
156. n 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 that is to say that LED GATEWAY is flashing green see page 25 In ABC LUFP Config Tool choose Upload configuration from ABC LUFP from the File menu or click on the button in the ABC LUFP Config Tool toolbar A window called Upload will then open and a progress bar shows you the state of progress of the gateway configuration uploading process This window disappears as soon as the whole configuration has been successfully uploaded This step is particularly important if you wish to read details about the content of the gateway s default configuration after unpacking it You can then use this configuration as a template for any changes you wish to make subsequently thus avoiding having to create all of the items and reducing the potential risk of error NOTE 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 1744087 03 2009 55 6 Configuring the Gateway 6 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 LU
157. n a specific order from the Profibus DP master if for example the latter is unable to update all data from of any given query at the same time NOTE In the specific case of the gateway s default configuration the Transactions 1 and Transactions 2 personalized command mode for the TeSys U n 1 node is set to Change of state on trigger These aperiodic commands are respectively used to read and write the value of a parameter of one of the Modbus slaves The Trigger byte address elements of the Query elements of these two commands are configured at addresses 0x021E and 0x021F These are the parameter read write request counters Considered under Profibus DP SyCon and PL7 PRO these two data are configured the same way as the other outputs see chapter 4 2 9 and both correspond to the QW4 0 15 output To transmit one of these two commands the Profibus DP master PLC must first of all update all of the data to be transmitted on the Modbus network for this command addresses 0x0212 to 0x0217 or addresses 0x0218 to 0x021D then change the value of the associated counter address Ox021E or 0x021F The gateway will then transmit the query corresponding to the command NOTE The trigger byte does not have to be an item of output data updated by the Profibus DP master In fact it is quite possible that it may be an input between 0x0002 and OxOOF3 In this case the Modbus slave which updates this byte
158. n the only way to clear the error is to reuse these aperiodic services with correct values NOTE If the LED Gateway is flashing following a sequence beginning with one or more red flashes we advise that you note down the order of this sequence and give this information to the Schneider Electric support service In some cases power the gateway off then back on again to solve the problem 26 1744087 03 2009 4 Software Implementation of the Gateway 4 1 Introduction This chapter gives an introduction to a quick implementation of the LUFP7 gateway using its default configuration All LUFP7 gateways ship pre configured NOTE The configuration has been defined for 8 motor starters If you use less than 8 refer to chapter 6 This pre configuration means that the user does not have to configure the LUFP gateway using ABC LUFP Config Tool This configuration is described in order to allow the gateway to be used with a configuration tool for Profibus DP master PLCs As an example this implementation will use Sycon version V2 5 0 0 the multi network configuration software marketed by Hilscher Ref TLX L FBC 10 M PL7 PRO version V3 0 and a Schneider Electric PLC from the Premium range e g TSX 57353 v5 1 to which the appropriate Profibus DP communication board shall be added TSX PBY 100 coupler 4 1 1 System Architecture The default configuration for an LUFP7 gateway allows it to control monitor and configure 8 Te
159. name will become effective in ABC LUFP Config Tool 78 1744087 03 2009 6 Configuring the Gateway For Modbus commands but not Transactions the type of command is automatically appended at the end of its new name An example is given below aec ABC LUFP Config Tool C Schneider ABC Config Tool LUFP Tutorial cfg File Read Holding Registers Tools View Help Al Beaxx S SK eKBEL PT Bae ABC LUFP Master Mode LUFP tutorial asc amp BC LUFP Config Tool C Schneider ABC Config Tool LUFP Tutorial cfg File Starter Status Register Read Holding Registers Tools view Help Devices Configuration Fieldbus Alphabetic Categorized ABC LUFP al Sub Network E J TeSys Unt Read Holding Registers Preset Multiple Regs 2 Transactions 1 E Transactions 2 B TeSys U n 2 x Read Holding Registers 30 01 2006 11 18 This renaming function can also be used for the Queries and Responses of the Modbus Commands and Transactions as illustrated by the following example i Config Line 4 3 TT TeSys Unt E Starter Status Register Preset Multiple Regs Configuration Fieldbus Alphabetic Categorized ABC LUFP we Sub Network El g TeSys Un Fs Starter Status Register Read Holding Registers Preset Multiple Regs n Transactions 1 Transactions 2 Ho TeSys U n 2
160. nce of 3 5 characters for each of these two frames Each byte will be transmitted in the form of a group of 10 bits 8 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 periodic traffic 300 ms period 008 11 5 10 5 14 5 11 5 x 8 1 1 480 bits For 1 TeSys U motor starter ania a 1 x 480 x 1 000 300 1 600 bits s For 8 TeSys U motor starters cccccccccccsssseceesceeseseesseseeeseessaaees 8 x 480 x 1 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 part of the periodic Modbus commands On the other hand at a speed of 19 200 bits s default speed the available bandwidth is sufficient to allow proper communications even in occasional degraded mode frames re transmission and to allow the use of aperiodic parameter reading writing exchanges 1744087 03 2009 117 Appendix C Default Configuration Content of the Gateway s DPRAM Memory The LUFP7 gateway s DPRAM memory contains all of the data exchanged between the gateway and the 8 TeSys U motor starters as well as two special registers only exchanged between the gateway and the Profibus DP master words used for managing the downstream Modbus network The flow of data exchanged between the TeSys U motor starters the gateway and the
161. nd export the configuration of the Profibus DP network as described in chapter 4 2 7 7 Configuring the Profibus DP master PLC inputs under PL7 PRO import the new configuration of the Profibus DP network see chapter 4 2 8 and following chapters Words IW4 0 16 to IW4 0 23 are now displayed in the PROFIBUS DP slave data frame of the TSX PBY 100 coupler configuration window 1744087 03 2009 67 6 Configuring the Gateway We get a correspondence derived from the one used for the gateway default configuration The changes in relation to the default configuration are shown by a greyed out background like the free memory locations Service PLC input IW4 0 2 Free memory location Periodic communications Monitoring of Tesys U motor starters Value of the motor starter status register Aperiodic communications IW4 0 9 Free memory location Slave no 0x01 0x08 IW4 0 10 Function number Number of bytes Reading the value of a motor starter as 0x03 read 0x02 parameter RESPONSE IW4 0 11 Value of the parameter read Oxxxxx Aperiodic communications o Slave number Function number Ce 0x01 to 0x08 0x06 Writing the value of a motor starter IW4 0 13 Address of the parameter written Oxxxxx parameter RESPONSE IW4 0 14 Value of the parameter written Oxxxxx Aperiodic communications IW4 0 15 Read parameter Write parameter Trigger bytes for the responses ice response counter respo
162. ngth of the significant data i e the data that has been updated 1744087 03 2009 6 Configuring the Gateway Example 1 Configuration of the communications between a LUFP7 gateway and only one Modbus slave a TeSys U motor starter located at address 1 on the Modbus sub network and named TeSys U n 1 The first two bytes of the input memory Ox0000 0x0001 and the first two bytes of the output memory 0x0200 0x0201 of the gateway are reserved for the gateway initialization and diagnostics see chapter 5 but in the Diagnostic and Control mode Control Status Word Enabled but no startup lock for the ABC LUFP element 1 Read Holding Registers command FC 0x03 Periodic command Update mode Cyclically and Update time 10ms 30 for the Query used to get the status of the TeSys U motor starter Starting register address 0x01C7 455 and Number of registers 0x0001 in the Query Byte count 0x02 in the Response the value of this status is transferred to addresses 0x0002 0x0003 of the input memory of the gateway Data length 0x0002 and Data location 0x0002 for the Data of the Response 1 Preset Multiple Regs command FC 0x10 Periodic command Update mode Cyclically and Update time 10ms 30 for the Query used to set the command of the TeSys U motor starter Starting register address 0x02CO0 704 Numb
163. nitor from the Sub Network menu The following window appears allowing you to see how much of the gateway s memory is occupied by Modbus data The part framed in red represents the memory occupation before the deletion of the two setup commands It has been inlaid in the illustration below so that you can see the effects of the deletion operations we have just carried out aac Sub network Monitor OW x File columns TeSys U n l TeSys U nz TeSys U n3 TeSys U nd TeSys U n5 TeSys U n6 TeSys U n r TeSys U nB Select All Deselect All Select All Deselect All Select All Deselect All Select All Deselect All 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 Redi Read Holding Redi Read Holding Regi Read Holding Regi Read Holding Reni Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs In Area 18 bytes 512 Out Area 18 bytes 512 General 4rea bytes 388 O400 dod OO1D O210D 0 a4 E j j 5 Hen TeSys U n TeSys U n2 TeSys U n3 TeSys U n4 TeSys U n5 agal Select All Deselect All SelectAll Deselect All SelectAll Deselect All Select All Deselect All Select A
164. ns to a bus slaves and one LUFP7 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 zz L 120 Q 1 nF D A 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 LUFP7 Gateway The LUFPs 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 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway To make it easier to connect the units using the topologies described in chapter 2 5 1 various acces
165. nse counter oIW4 0 16 Value of the TeSys U Status Register olW4 0 17 Value of the Complementary Status Register Periodic communications Value of the K7 Status Register Value of the K7 Status Register 2 free format Monitoring of Value of the K7 Status Register 3 free format TeSys U motor starter Value of the Warning Number register IW4 0 22 Value of the Warning Register IW4 0 23 Value of the Reserved 2nd Warning Register 8 Transferring the Profibus DP coupler configuration Once changes have been made to the Profibus DP coupler configuration it is necessary to validate the hardware configuration of the PLC rack and to transfer the whole application to the Premium PLC on which the coupler is located Please see chapter 4 2 12 68 1744087 03 2009 6 Configuring the Gateway 6 9 4 Increasing the Amount of Periodic Output Data We will use the node corresponding to TeSys U n 4 motor starter for our example By default we are controlling Command Register 704 To add control of Command Register 705 we will carry out the following operations 1 Changing the number of registers controlled This step consists of changing the value of the Number of registers in the Query and the one for the Preset Multiple Registers command Modbus command for writing values of a number of registers in the Response Start by selecting N of Registers fr
166. nt damage 1744087 03 2009 77 6 Configuring the Gateway After confirming the new address Enter key or click outside the data entry field of the address of the Modbus slave this will become effective in ABC LUFP Config Tool and the values of the Slave Address elements of the queries and responses in the Modbus commands for the selected node will be automatically updated An example is given below but the updating of a single Slave Address element is shown asc ABC LUFP Config Tool C Schneidert ABC Config Tool LUFP Tutorial cfg Piel Eg asc ABC LUFP Config Tool C Schneidert ABC Config Tool LUFP 7 Tutorial cfg Pel Eg File Slave Address Tools wiew Help File Slave Address Tools View O BRK SK OBES i Dah td amp Eiaa Master Mode LUFP7 tutorial Bah Master Mode LUFP ER fa Sub Network Alphabetic Categorized El iy TeSysU n t CJ Read Holding Registers j pa 0x01 FE Query Sie al Sub Network Aj Alphabetic Categorized H T TeSys U n t 2 Read Holding Registers Ee foe Slave Address ff Function cade f Starting register addres 1 Of Number of registers Jf Function code Definition of a Constant Byte Value When BY Starting registepettidres transmitting the Byte this Value will be sent When Kunerad receiving a Byte ABC will perform a check aginst W g this Value If the received Byte does not match it oe Uf Chegesum v will be discarded
167. number 01803 Description u FP Gateway GSD file name LUFP _15 G50 GSD Revision P04 15 70 136 Once back to the SyCon main window the selected slave appears in the selected insertion position Ma SyCon LUFP7 Tutorial Example pb Iofs Er File Edit View Insert Settings Tools Window Help l x Ci co ea z talek el mi TSA_Premium_PBY100 Station address OP Master T8 PEY 100 LUFP Gateway Station address 2 DF Stave LUFF For Help press F1 PROFIBUS Config Mode 4 2 6 Editing and Configuring the Gateway Double click on the line that corresponds to the LUFP7 gateway The Slave Configuration window appears Conduct the following operations e In the list of available modules select the module called IN OUT 32 Byte 16 word Click the Append Module button to add it to the list of modules configured for the gateway This module occupies one Slot and consists of a 16 word I O module both in IW and OW It is intended to allow the exchange of the various data presented in Appendix C Input and Output Data Memory Area paragraphs 36 1744087 03 2009 4 Software Implementation of the Gateway e Inthe Assigned master frame check that the Profibus DP master previously configured is selected If not select it NOTE Only the Assigned master can control the DP slave to which it has been allocated during the configuration phase Other DPM1 masters can only read
168. o remain green e Hexadecimal display of gateway output data QW4 0 to QW4 0 15 in the OUTPUTS frame For OUTPUTS The green red LED indicates whether the Profibus DP master wants the gateway to communicate with the Modbus slaves It is associated to bit13 FB DU of the Profibus DP master command word which is updated in the Handshake_master program in accordance with the user controls described below e User controls for enabling disabling exchanges on the gateway Modbus sub network These two exclusive buttons are meant to switch the value of bit 13 FB DU of the Profibus DP master command word and to generate a new control meant for the gateway see Handshake master program description and chapter 5 2 1 1744087 03 2009 121 Appendix D Sample Use under PL7 PRO Comprehensive display of LUFP7 gateway diagnostics via a thorough interpretation of the gateway status word see chapter 5 2 2 This interpretation is made in the program Handshake _lufp7 A button appears as soon as a new diagnostic is made available by the gateway for the Profibus DP master Pressing that button takes the new value of the gateway status word into account and acknowledges the new diagnostic The Handshake_master program assists the screen presented on the previous page in conducting the following tasks Display of two buttons meant for enabling and disabling exchanges on the gateway Modbus sub network Transmission to the g
169. odbus command query we have created The correspondence with the content of the corresponding Modbus frame has been added underneath this window ABC Mal x Slave Address Function code Register address Preset data Checksum Value Value Data location Data length Byte swap Error check type Error check start byte O06 Ox0000 00202 00002 No swapping CRC 00000 Word number Slave no MSB LSB Value of the word MSB LSB CRC16 LSB MSB Edit the values which are not greyed out one after another 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 below as a part of the example described at the beginning of chapter 6 12 2 90 1744087 03 2009 6 Configuring the Gateway Field in the Size in the PSN Description frame frame ane 1 byte This field cannot be changed by the user and its value is greyed out to inform ee him of the fact 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 queries for all Modbus commands E g The value of this field is set to the address of the Modbus slave which corresponds to the ATS48 node that is to say to OxOA sell 1 byte This field cannot be
170. of the Help menu An example in on line mode is given ABC LUFP here Complete Version 1 51 ABC LUFP Config Tool In off line mode all versions and information from the Version 2 02 Revision 9 te 3 me 5 i 2001 2005 HMS Industrial Networks Sub Network and Fieldbus categories are replaced with All rights reserved Unknown since they could not be obtained from an existing and connected gateway Sub Network ABC LUFP firmware version 2 0 Sub Network Type Serial Protocol Type Master Mode The http www hms se abc_lufp shtml text is an hypertext link By clicking on it you are directly redirected farce ae ee to the Schneider Electric s Web page dedicated to the Serial number 04882 ABC LUFP gateways Booloeder Veron 123 This page features many downloadable items related to the family of LUFPe gateways including the latest version of ABC LUFP Config Tool For additional Information and Updates visit the Vendors Website at http www_hms se abc_lufp shtml 6 13 3 Sub Network Element The five commands accessible from the Sub Network menu are Paste Appends a copy of the last copied node after a Copy Ge 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 only available if a node has been previously copied or cut and only if the
171. ogy Multipoint linear topology with adapted line terminations impedance of 120 Q in parallel with a capacity of 1 nF e Communication speed 1 200 to 57 600 kbits s e Data bits 8 e Subscriber addresses 1 to 247 AddressO reserved for broadcasting Addresses 65 126 and 127 reserved if drivers and or starters from Schneider Electric are used on the same Modbus network e Period of silence Equivalent to the transmission of 3 5 characters 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 Specific Modbus RTU e Maximum number of subscribers excluding gateway 8 Modbus slaves features of the LUFP7 e Maximum number of commands configured Up to 100 Modbus queries and gateway responses configured for the same gateway using ABC LUFP Config Tool e Communication speed 1 200 2 400 4 800 9 600 or 19 200 bits s configured using ABC LUFP Config Tool e Period of silence No possibility to raise the gateway s period of silence e Parity None even or odd configured using ABC LUFP
172. om the Query then change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal Do the same for the N of Registers 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 Ch Schneider ABC Config Tool LUFPT Tutorial cfg File Number of registers Tools View Help SY eee ie ABC LUFP Master Mode LUFP tutorial Si d Suber Alphabetic Categorized Alphabetic Categorized Et TeSys U nt Value Ox0001 Value 2 H TeSys Una e TeSys U n4 ES Read Holding Registers EF Preset Multiple Regs O Slave Address s E Function code TEE Alphabetic Categorized _y starting eat address Definition of a Constant Word Value When tranerntting the Value ANTIE S B umber of registers Word this Value will be sent When receiving a Word ABC E oF Byte za will perform a check aginst this Value IF the received word E ae does not match it will be discarded ss fa Fa ee BP Checksum RES of eee 27 01 2006 17 08 Config Line Q 2 Changing the number of data bytes in the Modbus query The number of bytes written into the memory of the TeSys U n 4 motor starter memory increases from 2 to 4 as the number of registers controlled has
173. on For a Query Starting address in the gateway s output data memory 0x0202 to Ox02F3 of the data sent by the Profibus DP master and destined to the Modbus slave This data is directly inserted in the Query frame at the position of the current Variable Data field For a Response Starting address in the gateway s input data memory Ox0002 to 0x00F3 of the data sent by the Modbus slave and destined to the Profibus DP master This data is directly retrieved from the Query frame at the position of the current Variable Data field NOTE In both cases the end length character if actually used is part of the data thus it can also be found in the input output data memory of the gateway End Character Value This property is only used if Object Delimiter is set to End Character or End Character visible It is used to mark the end of the data Of course this specific character must be forbidden inside the data Thus for example it is common practice to end text strings with a zero character because 0x00 cannot be used in written text this is known as the ASCIZ representation E g the string ABC becomes the string 0x41 0x42 0x43 0x00 in ASCIZ Fill un used Bytes This property is only used for Variable Data located in the Responses of Transactions because the Variable Data located in the Queries is only updated by the master Only two choices are available for this proper
174. onitoring registers for 8 TeSys U motor starters and uses the aperiodic read and writes services used to access the value of any motor starter parameter repeats the information described in the mplementation manual of the TSX PBY 100 coupler for Premium PLCs It also provides the values of these data and the results of these diagnostics for the LUFP7 gateway describes the content of the Modbus command frames supported by the LUFP7 gateway explains about Concept data type with a Quantum PLC 1744087 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 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 6 l mounting 6 7 to 6 11 6 11 2 Select between adapting the predefined configuration MpgbuS 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
175. onsider 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 e System control paths may include communication links Consideration must be given to the implications of unanticipated transmission delays or failures of the link e 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 a 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 Removing the gateway WA CON ADO Q MNA OUAI TN C C if i ADG T Ur gt 50 2 Start by fitting the rear base of the gateway to the Start by pushing the gateway downwards 1 to upper part of the rail pushing downwards 1 to compress the gateway s spring Then pull the compress the gateway s sp
176. onsidered under Profibus DP SyCon and PL7 PRO these two data are configured the same way as the other inputs see chapter 4 2 9 and both correspond to the IW4 0 15 input The Profibus DP master PLC will be able to detect the receipt of a response from a Modbus slave by comparing the previous value and the current value of the associated counter address 0x001E or 0x001F If there is a unitary incrementation of this counter the PLC may for example read all of the data from the response addresses 0x0013 to 0x0017 or addresses 0x0018 to 0x001D and allow the transmission of a new query for reading or writing the value of a parameter using a Trigger byte for the queries Contrarily to the counter one can associate to the queries of any command a response s Trigger byte is a true modulo 256 counter i e zero must be managed 254 255 0 1 2 In this example using the ATS48 we do not want the response to be event driven So we will be retaining the default configuration 1744087 03 2009 89 6 Configuring the Gateway 6 12 2 4 Configuring the Content of the Query Frame The window shown below is obtained using Edit Transaction from the Query menu Unlike the tree structure in the main ABC LUFP Config Tool window this display has the advantage of showing all of the frame s fields at the same time as well as their values The values displayed below correspond to the values assigned by default to the M
177. onstant Word Value When H of Data transmitting the ord this Value will be sent Pia of Checksum When receiving a Word ABC will perform a check aginst this Value If the receiwed Word i img does not match it will be discarded Hf TeSys U n H T TeSys U n a H E Response Starting register address 27701 2006 15 19 Config Line QQ This operation in no way changes the content of the gateway s memory because we do not need to change the values of the Data length and Data location fields of the Data element of the Query So no additional operations will be necessary either in ABC LUFP Config Tool or in SyCon On the other hand the Profibus DP master PLC software will have to take account of the change in the nature of the corresponding output In Appendix C Output Data Memory Area paragraph the description of the word located at address 0x020C becomes value of the motor starter 2nd command register This word corresponds to PLC output word QW4 0 6 see chapter 4 2 9 1744087 03 2009 63 6 Configuring the Gateway 6 9 3 Increasing the Amount of Periodic Input Data We will use the node corresponding to TeSys U n 2 motor starter for our example We will complete the monitoring of this motor starter starting from the currently monitored register that is to say TeSys U Status Register address 455 OQx01C7 and going as far as the Reserved 2nd Warning Register addres
178. otors are stopped Status register are transmitted to the gateway aperiodic Modbus exchanges are stopped If the master holds Profibus output words and refreshes the inputs words Periodic Modbus exchanges continues to run Command registers hold their last values and motors stays in the same state Status register data is transmitted to the gateway Aperiodic Modbus exchanges are stopped 30 1744087 03 2009 4 Software Implementation of the Gateway Profibus master stopped or on failure PLC processor response The PLC processor provides some error and or diagnostic objects to the application in case of Profibus 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 Profibus master response If the Profibus master is stopped command coming from the application the master stops to communicate with the LUFP7 gateway If the Profibus master is on failure the master stops to communicate with the processor and the LUFP gateway LUFP7 gateway response With the gateway default configuration Offline option for fieldbus periodic Modbus exchanges continue to run with the output memory associated forced to 0 input memory continues to be refreshed aperiodic Modbus exchanges are stopped Tesys U response Periodic Modbus exchanges continue to run Command registers are set to 0 and motors are stopped Status regi
179. ounter Total number of diagnostic messages received from that slave 11 Exchange counter Number of exchanges between the master and this defective slave 12 Unavailability counter Number of times this slave is present but unavailable 13 Invalid response counter Number of invalid responses for this slave 130 1744087 03 2009 Appendix E Profibus DP Data and Diagnostics For the LUFP7 gateway default configuration the following response is received from the TSX PBY 100 coupler Bytes Name Value Bytes Name Value 0 Configured 0x01 8 Diagnostic data size 0x06 1 Operating 0x01 9 Compact diagnostic 0x00 2 3 Number of IW 0x0010 10 Diagnostic counter 1 Ox0A 4 5 Number of QW 0x0010 11 Exchange counter 1 0x02 6 Input data size 0x20 12 Unavailability counter 1 0x03 7 Output data size 0x20 13 Invalid response counter 1 0x02 1 The values of all four counters vary while the coupler and gateway are operating These are modulo 256 counters i e their values loop back from 255 to 0 1744087 03 2009 131 Appendix F Modbus Commands al oh Leni glas ee 2 Broadcast 1 Modbus command the right hand table are supported by the gateway The structure of the query 3 003 Read Holding Registers commands is then described in the 1 The content of this column shows whether the command can be added Yes or not to the list of a broadcaster node s commands known as Broadcaster in ABC LUFP Config Tool In the
180. plication for which you want to add a Profibus DP network Edit the hardware configuration of this application add a PBY 100 board and then edit its configuration by double clicking on its location in the rack we PL PRO LUFP TUTORIAL EXAMPLE File Edit Utilities View Tools PLC Debug Options Window S El sal 2m mi STOP STATION J Configuration p j PROFIBUS DP Slave Configuration E 4 PROFIBUS DP General Configuration aP Hardware Configuration Task m Outputs ia Software Configuration Addr I Act Group ID Watchdog Mast C Maintain Reset Program OQ DEBT lo of WOW r Diagnostic Length vs Eg Variables In Words ize X In Bytes 22 El Animation Tables PROFIBUS DP Tool m Master Configuration F A Documentation File ry s z P View i Configuration hilsche Lee TSX 57353 V5 1 7 ja ay fE PROFIBUS DP Configuration File S PROFIBUS DP Slave Data ziw Addr Symbol QW Addr Symbol Total No of slaves No of xlw No of OW fo fo fo ee OFFLINE USS INS 4 Click on the hilscher button enclosed in a red box above to start the SyCon configuration tool NOTE This button is not displayed if you have not installed SyCon on your PC 1744087 03 2009 33 4 Software Implementation of the Gateway 4 2 2 Creating a Profibus DP Network under SyCon Select the New option from the File menu to create a new Select fiel
181. r PL7 PRO Under PL7 PRO see chapter 4 2 1 click on the Load CNF button Using the options in the window that appears select the cnf file that was saved beforehand see previous chapter Once this import is completed the full path to this file appears on the right of the Load CNF button and the PROFIBUS DP slave configuration frame displays the two configured stations i e TSX PBY 100 at the address 1 and LUFP7 at the address 2 In the case of the LUFP7 gateway the default values allocated to the configuration options of the General PROFIBUS DP configuration frame can be kept see table below Edit them accordingly if you configure other slaves on the same Profibus DP network Optional Default value Possible values Task MAST MAST or FAST Used to select the type of system task that will steer the Profibus DP network Outputs Reset Hold or Reset Determines whether the QW outputs meant for the Profibus DP slaves are held or reset to zero when the associated task see above is stopped as this stop does not cause the TSX PBY 100 board to stop IW QW number 128 words 32 64 128 or 242 words Determines the number of words used for the input of the TSX PBY 100 board as well as for its outputs The Total frame indicates the total number of inputs and outputs all slaves included The value allocated to the IW QW number option should be greater than or equal to the greatest of these two numbers
182. rame J Value of the word MSB LSB CRC16 LSB MSB Value of the word MSB LSB CRC16 LSB MSB These elements can be configured using ABC LUFP Config Tool as described in the following chapters 6 12 2 1 Managing Degraded Modes 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 indetermined Inputs PLC stops responding to inputs in any error state Profibus master response Depending on master configuration forces Profibus outputs to 0 and refreshes the inputs or holds Profibus outputs in their last position and refreshes the inputs LUFP7 gateway response If the master forces Profibus outputs to 0 and refreshes the inputs all data sent Write requests is set to O reading from slaves continues to run normally If the master holds Profibus outputs and refreshes the inputs all data sent Write requests retains its current value reading from slaves continues to run normally Slave response Depending of the slave 1744087 03 2009 83 6 Configuring the Gateway Profibus master stopped or on failure PLC processor response The PLC processor provides some error and or diagnostic objects to the application in case of Profibus master stop or failure input output not valid Refer to the PLC u
183. rate and the factory settings can be used as a basis for a configuration which will best meet the users expectations The typical operations applicable to this default configuration are described in chapter 6 The Profibus DP 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 content of the gateway s memory and the Modbus slaves make up a system which is independent of the one which is entrusted with managing the exchanges between this same memory and the Profibus DP master The system guarantees the coherence of data exchanged within the shared memory You must check that the size of the Profibus DP data corresponds to the size of the memory used for the Modbus exchanges because the gateway configures its Profibus DP exchanges on the basis of the memory used by the Modbus frames If the sizes do not match the fieldbus Diag LED n 4 blinks at 1 Hertz frequency cyclic Modbus exchanges are enabled and write access Modbus registers are set to 0 The example which follows illustrates the independent management of each of the two networks Managing Gateway e Modbus slaves exchanges ABC LUFP Config Tool SyCon Modbus Gateway Slaves Modbus Input Data 244 byles max Responses to read requests Modbus Output Data S Profibus 1 The sum of Input Data and Output D
184. ring Then push the bottom of the gateway box forwards 2 until the box gateway against the DIN rail 2 until the base of the comes away from the rail gateway box fits onto the rail NOTE The spring is also used to ground the gateway Protective Earth 1744087 03 2009 13 2 Hardware Implementation of the LUFP7 Gateway 2 4 Powering the Gateway Profibus DP Modbus RTU gateway View from underneath p Power supply 24V isolated 10 95 mA max A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION Do not use the 24 VDC power available from the Profibus 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 LUFPs 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 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
185. rofibus DP master to acknowledge each diagnosis in order to be informed as soon as possible of the disappearance of a slave Thus your application could take measures to react accordingly e g by inhibiting the faulty slave with CC and CD of the Gateway Command Word Failure to follow this instruction can result in death serious injury or equipment damage The values of the EC and ED fields are described in the table below EC Description ofthe error ED Modbus NEUNOIK re VANSON on the sub IO for all slaves a0 pe a Modbus slave Ea o a A are missing 2 0011 Excessive data in a Address of the Modbus This error occurs when the gateway receives too Modbus response slave involved much data in the response sent by one of its Modbus slaves 2 0100 Unknown Modbus error Address of the Modbus slave involved 2 1111 Absence of error This is a no error code used by the gateway whenever the Modbus communications are OK It is typically used when previously absent Modbus slaves are back on the sub network The re transmission counter used to signal this error is not reset when the gateway generates this error code If there are recurrent communication problems on the Modbus network the gateway will generate this same diagnostic repeatedly so as to tell the Profibus master the total number of re transmissions carried out as often as possible This counter is reset when its value exceeds its maximum value counter modulo
186. rofibus DP products with their identification numbers and the related GSD files Schneider Electric product Identification number Name of the related GSD file LUFP7 gateway Ox071F Tele071F gsd TEGO POWER OxBECE tk3110 gsd ATV58 0x00B9 Tele00b9 gsd ATV68 0x1234 VEE_1234 gsd TSX PBY 100 Ox1654 Sad_1654 gsd ATV58 ATV66 gateway 0x2332 atvp2332 gsd GSD File Content yi a a a ae a ae a Sa a ae a a eae ae a ea a ee a ea ee ee ea Profibus Device Database of Schneider Electric Gateways Model LUFP7 Description Profibus DP Modbus Gateway Language English Date 14 November 2002 GSD file header Author Schneider Electric EB JFR oE a a e a e E E E E E E E E E e a E E E E a a e a E a E a E a a E E E E E E E E E E E EEN Profibus_DP GSD_Revision ote Device identification Vendor _Name Schneider Electric tyarslom I 41T iyergsiom 1 12 Hardware_Release Software_Release Model_Name LUFP7 Revision yersion 1 0 Ident_Number Wa LUFP7 gateway identification as a PEOCOCOTGTASNG 0 PADIS Siouctoncresete dl Profibus DP device Station Type 10 Slave device FMS_supp 0 FMS not supported 1744087 03 2009 113 Appendix B LUFP7 Gateway GSD File Supported baudrates 9 6_Supp USS eer eS BSS 45 45_supp oe Seco iS toni Sugo 500_supp 1 5M_supp 3M_supp 6M_supp 12M_supp Maximum responder MaxTsdr_9 6 Max Todi aim MaxTsdr_45 45 MaxTsdr_93 75 MaxTsdr_187 5 MaxTsdr_500 Max
187. rst and LSB last e LUFP7 gateway MSB stored in the lowest memory address In most cases the option which should be chosen for Modbus data stored in the gateway s memory is No swapping This option relates to all Data Preset Data and Variable Data fields for Modbus queries and responses frames 112 1744087 03 2009 Appendix B LUFP7 Gateway GSD File The LUFP7 gateway GSD file contains all the information and settings for configuring the gateway under Profibus DP This file Tele071F gsd is used by SyCon to generate information that will eventually be used by the DPM1 master PLC during setup phases Refer to chapter 4 2 4 to review the procedure for importing the GSD file under SyCon Identification Number The most important information contained in the GSD file is the identification number tdent_Number of the device type it designates DP slave or DPM1 master This identification number is in particular used by a DPM1 master upon setting up its communications with a DP slave in addition to checking its address on the Profibus DP network The allocation of Profibus DP identification numbers is reserved for the Profibus International PI association As each identification number is unique and specific to each device type you should change neither the number nor the remainder of the provided GSD file Schneider Electric reserves the rights to change the content of this file Sample P
188. ry frame before sending the command with the Send Command command see below The Send Command command triggers the emission of the Query displayed in the upper part of the Monitor window As soon as a Modbus Response will be received by the gateway ABC LUFP Config Tool will display 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 the user modifies 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 the user modifies 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 58 1744087 03 2009 6 Configuring the Gateway 6 7 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 default con
189. s 462 0x01CE The number of registers monitored is therefore increased from 1 to 8 In this case there are quite a lot of operations to be carried out They are described in order below 1 Changing the number of registers monitored This step consists of changing the value of Number of registers element of the Query from the Read Holding Registers command Modbus command for reading the values of a number of registers Select this element then change its value as shown below ABC LUFP Config Tool will automatically convert any value entered in decimal to hexadecimal fac ABC LUFP Config Tool C Schneider ABC Config Tool LUFPT Tutorial cfg File Number of registers Tools wiew Help ICs Master Mode LUFP moan Configuration Alphabetic a Categorized Alphabetic Categorized i TeSys U n 1 I E TeSys U pt2 Value Ox0001 alue g aig Ea a Read Holding Registers E EA Query ow Of Slave Address Value a DY Function code Definition of a Constant Word Value When in E Starting register address transmitting the Word this Value will be sent apean Wher receiving a word ABC will pertorm a seca check aginst this Value If the received Word Slohabetic Bobo 7 does not match it will be discarded ecieaullzey Te af registers 27 01 2006 15 30 Config Line GQ lt Malu OxOLICIE 2 Changing the number of data bytes in the Modbus response The number of bytes read
190. s example this service is also called PKW due to its limited similarity with the PKW service implemented on a few other products from Schneider Electric NOTE This service was not implemented the same way as the PKW service and must therefore not be used identically Gateway Initialization and Diagnostics The LUFP7 gateway exchanges operating screen comprises four separate sections e Hexadecimal display of gateway input data IW4 0 to IW4 0 15 in the INPUTS frame These inputs are named and grouped in the same manner as in this guide see chapter 4 2 9 Of course the display of these input data is correct only if the gateway default configuration is used For INPUTS A green red LED indicates whether the various input data have already been updated by the gateway It is associated to bit 13 ABC _DU of the gateway status word NOTE This input data includes periodic Modbus data controlling and monitoring and aperiodic Modbus data parameter reading writing For the LED to turn green both parameter read and write commands must have received a response from a Modbus slave A second green red LED indicates whether the input data are updated on a periodic basis or not by the gateway i e if periodic exchanges take place properly with all Modbus slaves It is associated to bit 12 of the gateway status word Unlike the first LED only one Modbus command per slave should receive a response on a periodic basis for this LED t
191. s following the input data of the default configuration i e addresses 0x0020 0x0021 If receiving an exception code see A WARNING RISK OF UNINTENDED EQUIPMENT OPERATION The user must use even values for the Data Location field i e 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 users configuration unintended equipment operation may result Failure to follow this instruction can result in death serious injury or equipment damage Data length Length of the block of input data received in the 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 that of 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 Error check type Identical to that of the query s Error check type field Error check start byte Identical to that of the query s Error check start bype field _ NOTE These two fields cannot be changed by the user and their values are greyed out to reflect this ABC LUFP Config Tool updates the values of these fields automatically using those of the query s Error check type and Error check start byte fields I
192. s for all of these motor starters Since the total number of the Modbus queries and responses one can configure for a single gateway is limited to 100 there are 64 spare Modbus queries and responses that is to say the equivalent of 32 Modbus commands So this reserve allows the addition of up to 4 Modbus commands for each one of the 8 TeSys U motor starters as this would require the use of 64 Modbus queries and responses 4 times 1 query and 1 response for each of the 8 motor starters i e 4 x 1 1 x 8 1744087 03 2009 119 Appendix D Sample Use under PL7 PRO A practical example can be found on the http www schneider electric com website It is composed of four files The first file LUFP7_Tutorial_EN pb is a SyCon file for a Profibus DP network It therefore represents the configuration of the Profibus DP network as it is described in the previous chapters This file is useful only if you wish to change the configuration The second file LUFP7EN cnf is the configuration file exported in ASCII format from SyCon It corresponds to the configuration defined in the previous file You must therefore generate a new cnf file if you change the first file or use another pb file The LUFP7EN cnf file should be copied to the Cc PL7USER directory If you copy it to another directory you should specify its location under PL7 PRO using the Load CNF button available in the TSX PBY 100 boar
193. s with a section of 0 5 mm 20 AWG Do not connect more than 32 master or slave stations per segment without a repeater 127 maximum repeaters included with the 3 repeaters do not use more than 3 repeaters 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 The network ends on an active line termination at each segment end see diagram below many suppliers have provided their cables with switchable line terminations The LUFP7 gateway has no internal line termination and therefore applies a 5V voltage between pins 5 and 6 of its Profibus DP plug in order to allow for the use of an external line termination when the gateway is at the end of the line GND D A D B 5V Active line termination recommended 390 Q 220 Q 390 Q at both ends NOTE If you use a 490 NAD 911 03 connector on each of the two stations located at segment end you won t have to use an external line termination since a line termination is integrated to that type of connector However if you must disconnect a station to which such a connector is connected move the connector to another station on the same network so that the line termination continues to be supplied If you do not wish to make that type of arrangement preferably use connectors featuring a switchable line termination 1744087 03 2009 21 2 Hardware Implemen
194. see chapter 2 12 Command editor in the ABC LUFP Config Tool user manual entitled AnyBus Communicator User Manual for further information about creating standard Modbus commands 6 12 3 2 User Customizable Modbus Commands In ABC LUFP Config Tool these commands are known as Transactions Unlike in the previous examples where many of the variables were fixed by the Modbus command selected the whole structure of the query and response frames associated with these transactions is dictated by data in the gateway s memory These data fields in the gateway s memory may contain constant and ranged values in Byte Word or DWord format and a final Checksum field See Query s table for details All of the data contained in the query and response Data and Variable Data fields of a Transactions command are managed by the Profibus DP master including the Slave address and Function fields if these are placed in a Data field For instance this allows you to manage all of the Modbus frame fields from the Profibus DP master if all of the query and response fields of a Transactions element excluding Checksum are Data type fields or Variable Data type fields for data with a variable data size e g the Response to a Query used to read a variable number of registers see chapter 6 12 3 3 for a description 1744087 03 2009 95 6 Configuring the Gateway A WARNING MORE THAN ON
195. ser manual to have their description This information must be managed in the PLC application Profibus master response If the Profibus master is stopped command coming from the application the master stops to communicate with the LUFP7 gateway If the Profibus master is on failure the master stops to communicate with the processor and the LUFP gateway LUFP7 gateway response If the master stops to communicate with the gateway the behavior depends on the fieldbus Offline options Clear All data sent to the concerned Modbus slave is set to 0 Freeze All data sent retains its current value No scanning The query is no longer transmitted Slave response Depending on the slave LUFP7 gateways disconnected on Profibus side PLC response The PLC processor provides some error and diagnostic objects coming from the Profibus master in case of a slave disconnection from the application Refer to the PLC user manual to have their description This information must be managed in the PLC application Profibus master response The Profibus master provides the processor with some error and diagnostic objects in case of Profibus slave disconnection LUFP7 gateway response The behavior depends on the fieldbus Offline options Clear All data sent to the concerned Modbus slave is set to 0 Freeze All data sent retains its current value No scanning The query is no longer transmitted Slave response Depending of the slave
196. sories are available in the Schneider Electric catalogue 1 Hubs junctions and line terminations EV EWS GCOS TUD seinien steels cere ecieee dt bus topology with LU9GCO3 splitter boxes O VW3 A8 306 TF3 T junction DOX cc eeeeeeeeee ees 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 cceccceceeeeeeeeeeeeeeeees bus topology with SCA junction boxes LI VW3 A8 306 RC double termination all topologies 2 Cables VW3 A8 306 Ree Modbus cable ccceeeeeee ees bus topology with SCA junction boxes VW3 A68 306 Modbus Cable cccccecceseeeeeeeees 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 an
197. ster data is transmitted to the gateway Aperiodic Modbus exchanges are stopped LUFP7 gateways disconnected on Profibus side PLC processor response The PLC processor provides some error and diagnostic objects coming from the Profibus 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 Profibus master response The Profibus master provides the processor with some error and diagnostic objects in case of Profibus slave disconnection LUFP7 gateway response With the gateway default configuration Offline option for fieldbus periodic Modbus exchanges continue to run with output memory associated forced to 0 input memory continues to be refreshed aperiodic Modbus exchanges are stopped Tesys U response periodic Modbus exchanges continue to run Command registers are set to 0 and motors are stopped Status register data is transmitted to the gateway aperiodic Modbus exchanges are stopped 1744087 03 2009 31 4 Software Implementation of the Gateway LUFP7 gateways failure PLC processor response The PLC processor provides some error and diagnostic objects coming from the Profibus master in case of slave failure to the application Refer to the PLC user manual to have their description This information must be managed in the PLC application Profibus master response The Profibus ma
198. ster provides the processor with some error and diagnostic objects in case of Profibus Slave failure LUFP7 gateway response In case of a failure the gateway stops to communicate with the Profibus 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 LUFP7 gateways disconnected on Modbus side or Tesys U failure PLC processor response The processor gives access to the gateway status word coming from the Profibus master input table and to the gateway command word coming from the output table These 2 words must be managed in the PLC application in order to detect if a Modbus slave is missing Profibus master response The Profibus master must be configured to access the gateway status and command words in order to provide Modbus diagnostic information LUFP7 gateway response With the gateway s default configuration Timeout time 300 ms Retries 3 Reconnect time 10 sec and Offline option for sub network Clear After sending a request to a slave if there is no response after 300 ms the gateway will send it again three times before giving the information about the slave missing in the gateway status word Data sent to the Profibus master Read requests is set to 0 The gateway will try to
199. supoint configuration Then switch from D signation COUPLEUR PROFIBUS DP Configuration to Debug and select Oc AUN ERA O fous the line that corresponds to the Configuration esclave PROFIBUS DP Donn es de diagnostic PROFIBUS OP LUFP7 gateway pet LID Se waren ag IDESCLAVE O47 1F are 1 i a a The content of the PROFIBUS DP ia 00 c 00 OF 1F 03 diagnostic data frame enables you to view the gateway s Profibus DP Ao a i jidi is diagnostics while the PROFIBUS ce DP slave data frame enables you Donn es esclave PROFIBUS OP lw i Sgmbole Yaleur to view and change the values of mbole the gateway I O An exam ple IS salw 0 7 lotor starter status_ 1e 00CZ mal 2 lotor starter status_ 1e 00C2 given on the right Symbole Valeur Total yibus dp masterocon 16HE000 Mb esclaves ee ea a Mb GW OWAI Aotor_starter_control 16 0000 mOW4 0 2 Totor starter control Te O000 4 2 13 Developing a Profibus DP Application The Profibus DP master PLC taken as an 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 BD 41744087 03 2009 4 Software Implementation of the Gateway 4 3 Description of Services Assigned to Gateway I O Managing the downstream
200. tation of the LUFP7 Gateway To connect stations to the Profibus DP network more easily several accessories are offered in the Schneider Electric catalogue Single twisted pair type A Profibus DP cable 490 NAD 911 04 or 03 connector 100 m or long TSX PB SCA100 If you use a different cable please check that its electric characteristics are as close as possible to those of type A cables see Appendix A Technical Characteristics Line connector 490 NAD 911 04 The SUD D 9 point male plug on that connector should not be connected to a station located at the segment end as the connector has no line termination This passive box contains a printed circuit fitted with one or two terminal boxes with screws for connecting one incoming Profibus DP cable and one outgoing Profibus DP cable SUB D 9 point male connector End of line connector 490 NAD 91103 The SUB D 9 point male plug on that connector must be imperatively connected to a station located at segment end since the connector D has a line termination This passive box contains a printed circuit fitted with one terminal box with screws for connecting one incoming Profibus DP cable Incoming A cable Legend Outgoing A cable absent in the case of the 490 NAD 911 03 connector Cable collar the cable sheath must be uninsulated at the most in the middle of the collar 22 1744087 03 2009 2 Hardware Implementation of the LUFP7 Gateway
201. the Variable Data There are five possibilities Object Delimiter 98 Length Character The first byte in the input output memory represents the length of the significant data length character excluded This character is not located in the Modbus Query or Response it is either produced by the gateway based upon the length of the Modbus Response or by the Profibus DP master who alone updates the output data Length Character visible Same as Length Character but this character becomes part of the Modbus Query or Response it is either produced by the Modbus slave in the Response or by the Profibus DP master in the Query End Character The significant data ends on the first occurrence of the End Character Value This character is not located in the Modbus Query or Response it is either produced by the gateway based upon the length of the Modbus Response or by the Profibus DP master who alone updates the output data End Character visible Same as End Character but this character becomes part of the Modbus Query or Response it is either produced by the Modbus slave in the Response or by the Profibus DP master in the Query No Character This option is reserved for Responses only With No Character upon receiving a response that contains some Variable Data the gateway simply copies the data from the frame to its input memory Hence the Profibus DP master cannot determine the real le
202. the 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 Blt TS sam Ramping motor starting Bits 14 15 Specific Reserved These statuses and controls are grouped in two sections General Status for the general operating mode of the motor starters and Motor for the general operating mode of controlled motors The last section DEBUG COMM displays the registers IW and QW used for each motor starter This screen is represented below but only for the first motor starter as it is identical for the 7 others Most displays in this operating screen are directly tied to the MW registers containing the values of registers IW4 0 1 to IW4 0 8 and WQW4 0 1 to QW4 0 8 status and command registers of the TeSys U motor starters Only the indirect controls and statuses are described below The Cmd_mon program conducts the following tasks Copy the values of words MW20 to MW27 to output registers QW4 0 1 to QW4 0 8 and copy the values of input registers IW4 0 1 to IW4 0 8 to words MW10 to MW17 These data are copied because word bit extraction can be carried out on MW indexed words but not on IW indexed words Actually the sub program Sr0 uses word indexing to a large extent as it makes it possible to process any motor starter since it is designated
203. the RS 232 signals are replaced by the D A and D B polarizations of the RS 485 signals 6 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 ABC LUFP Config Tool stops using this serial port that is to say when ABC LUFP Config Tool is closed 52 1744087 03 2009 6 Configuring the Gateway 6 2 Installing ABC LUFP Config Tool The minimum system requirements for ABC LUFP Config Tool are as follows e PROCESSOM 5 ceiedece iain hence eekiccet vane Pentium 133 MHz e Free hard disk SpaCe 0008 10 Mb a 3 E EE E ee eee 8 Mb e Operating system cccceeeee sees MS Windows 95 98 ME NT 2000 XP BIOWSED ccccceeecececeeeeceeeeeesaees MS Internet Explorer 4 01 SP1 The ABC LUFP Config Tool installation program can be found on the _ http Awww schneider electric com website To install it run ABC LUFP153 exe then 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 ABC_User_Manual pdf We strongly recommend that you read this manual when using ABC LUFP Config Tool because this guide will only describe the various features it provides in relation to using the LUFP7 gateway 1744087 03 2009 53 6 Configuring the
204. the gateway s memory is currently occupied 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 ac Sub network Monitor Of x File Columns TeSys U n l TeSys U n TeSys U ns TeSys U n4 TeSys U n5 TeSys U nb TeSys U rnr TeSys U n8 Select All Deselect Al Select All Deselect All Select All Deselect Al Select All Deselect All Select All Deselect All Select Al Deselect All Select All Deselect All Select All Deselect All Read Holding Reg Read Holding Reg Read Holding Rea Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Read Holding Reg Freset Multiple Regs Freset Multiple Regs Freset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Transactions 1 Transactions 2 In Area 32 bytes 513 FP Quit te 32 bytes 512 oo General Area bytes S60 Oo 0200 040i oo re 0057 TeSys U n i TeSys U n2 TeSys U n3 045l 0074 Select All Deselect All SelectAll Deselect All SelectAll Dese Q46C a mie Read Holding Reg Read Holding Reg Read Holdin Ae Ariat Preset Multiple Regs Preset Multiple Regs Preset Multip 14RD i i Transactions 1 i iP a nar Transactions 2 e39 O15C 0544 0179 In Area 32 bytes 512 OSSF 0196 05
205. the same as for the default configuration unlike the operations described in the various parts of chapter 6 9 Instead of adding a command and fully configuring it it is a better idea to copy one of the two default commands for TeSys U motor starters Read Holding Registers reading monitoring or Preset Multiple Registers writing controlling and to paste it into the list of Modbus commands for the appropriate node 1744087 03 2009 79 6 Configuring the Gateway To copy an already configured Modbus command select it then choose Copy from the menu whose name corresponds to the name of the selected command Keyboard shortcut Ctrl c Then continue using one of the two methods shown below a Select the node corresponding to the Modbus slave for which you wish to add this command e g TeSys U n 4 then choose Paste from the menu whose name corresponds to the selected node A new command is added after all the other configured commands for this node The whole of its configuration is identical to that for the previously copied command Keyboard shortcut Ctrl v b Select one of the commands for the node involved then choose Insert from the menu whose name corresponds to the selected command A new command is added just before the one which is selected The whole of its configuration is identical to that for the previously copied command As the new Modbus command and the original Modbus
206. ting MSB of TeSys U n 5 motor starter M Parameter Reading QW4 0 12 command will be updated C TeSys U n 6 motor starter accordingly The Other address box allows the user to type in an address ranging from 1 to 247 C TeSys U n 8 motor starter C Other address oS The second frame Parameter Address allows you to set the address of the parameter to read write When the SEND command button is being pushed the value currently set in this frame is copied into the Read parameter address field of the reading command QW4 0 10 or into the Written parameter address field of the writing command QW4 0 13 C Parameter Writing TeSys U n motor starter SEND command The third frame Value for WRITING will only be used if the Parameter Writing command is to be issued The transfer of any value set in this frame into the Written parameter value field of the writing command YQW4 0 14 is done whenever the SEND command button is being pushed provided the Parameter Writing box is checked The fourth frame Command allows you to select the command that will be issued for the aperiodic parameter reading writing service read command or write command Only one box can be checked at any given time The SEND command button triggers the update of the gateway s periodic output data QW4 0 9 a QW4 0 14 in such a way that the gateway will issue the command that
207. tion and status the resulting data are likely not to be strictly identical to the ones presented above General Gateway Information Another command also sent to a Profibus DP master makes it possible to obtain less detailed information than a slave s configuration data and the values of statistic counters related to the exchanges between the queried master and the slave If you wish to review the general information regarding a Profibus DP slave you may use the SEND_REQ function in an application developed using PL7 PRO Then you must use the 0x0031 command code and specifically request that the information for the slave concerned be read see Implementation Manual of the TSX PBY 100 coupler The table below describes the structure and content of the response issued by the TSX PBY 100 coupler to a read command of the LUFP7 gateway general information Bytes Name Description 0 Configured 0x01 if the slave was configured in accordance with Profibus 1 Operating 0x01 if the slave has been set up and operates properly 2 3 Number of IW Total size words of the input data in the IW area 4 5 Number of QW Total size words of the output data in the QW area 6 Input data size Total size bytes of the input data on Profibus T Output data size Total size bytes of the output data on Profibus 8 Diagnostic data size Total size bytes of the first diagnostic received 9 Compact diagnostic Compact diagnostic data for that slave 10 Diagnostic c
208. tion of one bit TSDR 11 x duration of one bit Profibus DP LUFP7 Network type PROFIBUS EN 50 170 DIN 19245 gateway specifics Protocol version v1 10 Standard connections Female SUB D 9 point connector which is recommended for baud rates exceeding 1 5 Mbits s All baud rates supported 9 6 19 2 93 75 187 5 500 1 500 3 000 6 000 and 12 000 kbits s automatic baud rate detection DP slave Profibus DP station Cyclical data transmissions up to 244 input bytes and 244 output bytes 416 bytes exchanged maximum inputs and outputs included 24 modules maximum used to configure these I O 1744087 03 2009 109 Appendix A Technical Characteristics Profibus DP LUFP7 e Profibus DP address configured using 2 coding wheels address between 1 and gateway specifics 99 address 0 is not allowed cont d e Profibus DP diagnostics service Yes standard 6 byte diagnostic e Resetting to zero operating mode input reading and output resetting to zero not supported e Input synchronisation Freeze Mode and output synchronisation Sync Mode supported e Gateway address allocated by a master Service not supported e Configuration conducted using a specific GSD file e DP V1 extensions not supported transmission of non cyclical data e Galvanic gateway insulation from the network D A and D B signal insulation using opto couplers Modbus RTU e Physical media RS485 serial link characteristics e Network topol
209. tocol Ox04 SLAVE DEVICE FAILURE An unrecoverable failure has occurred when processin the command 0x05 ACKNOWLEDGE The Modbus slave informs the gateway that it has accepted the command 1 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 should transmit subsequent queries in order to determine whether the command has finished or not 0x06 SLAVE DEVICE The Modbus slave informs the gateway that it is already in the process of 1 BUSY running a command and therefore it cannot run the one transmitted to it So the gateway should re transmit the query subsequently 0x07 NEGATIVE The Modbus slave informs the gateway that it cannot process the requested 1 ACKNOWLEDGE command This exception only affects commands 13 and 14 0x0D and 0x0E These functions are not part of the standard Modbus commands and are not described in this document 0x08 MemorY PARITY The Modbus slave informs the gateway that it has detected a parity error on the 1 ERROR 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 Please see the standard Modbus documentation for further information about these various scenarios 1744087 03 2009 135 Appendix G Concept and Quantum PLC The default data type of Concept with a Quantum PLC is BOOL As shown
210. ty e Disabled Unused data i e data located after the last character or beyond the end character is not updated in any way it keeps the current value Enabled Unused data bytes are filled with the value set in Filler Value For example if the Filler Value is equal to OxFF then all data located after the last character or beyond the end character is set to OxFF Filler Value If Fill un used Bytes is set to Enabled for the Variable Data of a Response then this value is copied into each byte located after the last character or beyond the end character Maximum Data The combination of Data location and Maximum Data length properties Length determines the input output memory used to exchange data between the Profibus DP master and the Modbus slave exactly like the Data Location and the Data length properties of the Standard Data fields NOTE This maximum length must include the end character or the length character if any one of these characters is used see Object Delimiter below When used this character is always present in the input output memory even if it is not exchanged 1744087 03 2009 97 6 Configuring the Gateway with the Modbus slave i e if the optional visible item has not been chosen This property is critical because it dictates the method used to sort out useful data from the whole input output data allocated for
211. uch of the gateway s memory is currently occupied select Sub Network and choose Monitor from the Sub Network menu The window shown below appears allowing you to see how much of the gateway s memory is occupied aac Sub network Monitor OF x File Columns TeSys U n i TeSys U n TeSys U ns TeSys U nd TeSys U n5 TeSys U n b TeSys U nr TeSys U n8 Select All Deselect All Select All Deselect All Select All Deselect All SelectAll Deselect All SelectAll Deselect All Read Holding Reg Read Holding Reg Read Holding Rea Read Holding Reg Read Holding Reg Read Holding Rea Read Holding Reg Read Holding Reg Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Preset Multiple Regs Transactions 1 Transactions 2 In Area 32 bytes 512 Out rea 34yutes 512 General Area 0 bytes 360 oo00 O200 040i 0010 OS 021D0E LALE 103A heen TeSys U nd TeSys U n5 m 0074 0274 ect All Select All Deselect All Select All Deselect All Oo91 0291 i doar DAF A Read Holding Reg H Rea O0CB 02CB e Regs H Preset Multiple Regs M Freg OOE6 O2E8 0105 0305 O12 O32 O13F O33F 015C 035C 0179 0379 0196 0396 O1B3 O3B3 O1D0 O3D0 O1ED O3ED TST C Response B uer Wi Callision WY Trigger or Statusbyhes Reserved
212. up lock Disabled Configuration Alphabetic Categorized Control Status word Module Reset Physical Interface Protocol Mode Receive Counter Location Ox0000 Statistics Disabled Transmit Counter Location Ox0000 Configuration Enabled but no startup lock Disabled Alphabetic Categorized ControlStatus Word Module Reset Fhysical Interface Protocol Mode Receive Counter Location Statistics Transmit Counter Location Configuration Alphabetic Categorized Control S tatus Word Module Reset Physical Interlace Protocol Mode Receive Counter Location Statistics Transmit Counter Location Alphabetic Categorized Control Status Word Module Reset Physical Interlace Protocol Mode Enabled but no startup lock Disabled Serial Enabled but no startup lock Disabled Serial Master Mode Recerve Counter Location OxU000 Statistics Disabled Transmit Counter Location O U000 Configuration Alphabetic Categorized Control Status Word Module Reset Physical Interace Protocol Mode Recenve Counter Location Statistics FIFIO ME Gatewa Enabled but no startup lock Disabled Serial Master Mode Ox0000 Disabled Disabled Enable Recernve Counter Enable Transmit Counter Enable Transmit Recerve Counte Enabled but no startup lock Disabled Serial Master Mode Ux0000 Disabled Transmit Counter Location TANINI These seven properties allow you to configure some of
213. urs if you change the total size of the input data and or the total size of the output data exchanged with the Modbus slaves 6 6 Monitoring the Content 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 used for this purpose This will be particularly useful when you are working on your PLC configurations and applications However it only shows data from the Data and Preset Data fields and also those from the Variable Data fields reserved for the Transactions configured in the Query and Response elements of just one of the Modbus slaves plus the content of the gateway s two reserved registers located at memory addresses 0x0000 0x0001 gateway status word and 0x0200 0x0201 Profibus DP master command word To monitor the content of the gateway s memory start by selecting the node corresponding to the Modbus slave whose data you wish to view then choose Monitor from the menu whose name corresponds to the name of the previously selected node A monitoring window then appears The sample window shown below corresponds to a view of the contents of the memory exchanged using the gateway s default configuration with the TeSys U n 1 motor starter 56 1744087 03 2009 6 Configuring the Gateway feo Monitor TeSys Un 1 Tel File Wode Co
214. will condition the exchanges of the command you re currently configuring This element is used to specify the transmission mode for the query on the Modbus network It takes one of the following four values Default communication mode The query is transmitted periodically on the Modbus network see Update time On data change The gateway transmits the query on the Modbus network when at least one item of data from this query is changed by the Profibus DP master So this is an aperiodic communication mode For instance this is not the case with the queries associated with Transactions 1 and Transactions 2 personalized commands for the TeSys U n 1 node of the gateway s default configuration These queries are transmitted when at least one of the values of their output data addresses 0x0212 to 0x0217 or addresses 0x0218 to 0x0220D is changed by the Profibus DP master So all data from a single query must be updated by the Profibus DP master at the same time If you are not certain 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 for these two commands 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
215. yte address element see below If used this counter allows the Profibus DP master for example to only consider the response s corresponding data when this counter s value is incremented This element is only used by the gateway if the element Trigger byte is set to Enabled In this case it specifies the address in the gateway s input memory 0x0002 to OxO0F3 of an 8 bit counter managed by the gateway When the gateway receives a response to the associated Modbus command it increments the value of this counter in a unitary manner value value 1 So the Profibus DP master must have access to this counter in the same way as for the periodic input registers from the TeSys U motor starters This mode allows the Profibus DP master to be informed that a new response is available This can be useful for example if it is possible that the data from two consecutive responses may be identical NOTE In the specific case of the gateway s default configuration the Trigger byte element for responses to the Transactions 1 and Transactions 2 personalized commands of the TeSys U n 1 node is set to Enabled Hence the management of responses to read and write commands for parameters is event driven The Trigger byte address elements of the Response elements of these two commands are configured at addresses 0x001E and Ox001F These are the parameter read write response counters C
Download Pdf Manuals
Related Search
Related Contents
instruction manual - Sunpentown International, Inc. 7. Analogue simulation in Alecsis User Manual - EliteFixtures.com OPERATOR`S MANUAL Rollei 21533 DESCRIPTION : D`CIM est un nettoyant concentré ACIDE USER`S MANUAL - GRE America Inc. Service Manual Sartorius Industry Series H2 Video Submission Requirements Copyright © All rights reserved.
Failed to retrieve file