Home

Series 90-30 PROFIBUS Master User`s Manual, GFK-2121

image

Contents

1. Token Retry The number of times the PROFIBUS Master tries to pass the token before deciding that a station is not there Token Error The maximum number of errors in 256 token cycles Response Error The maximum number of message failures in 16 successive messages Gap Update Factor The number of token rotations between solicitations for a new PROFIBUS Master card Message Retry The maximum number of times the PROFIBUS Master tries to send a message when the slot time expires Parameters Tab of the Master Properties Dialog Box PFB DP 9030 MASTER Properties General Network Parameters Scan Cycle Times Options Typical 710 667 ps I Repeater 2 100 ps FMS Devices I Stay Offline on Error Auto Maximum 36 x 10 ms C Watchdog E x 10 ms GFK 2121 Chapter 3 Configuration 3 11 3 12 Scan Cycle Times Typical This field displays the estimated time us required for one scan of the PROFIBUS network This is a read only field Minimum The minimum T O scan time in 100 microsecond increments This may be required if the I O modules are restricted in how often they can be scanned To use this parameter click the Minimum check box to activate it then enter the value in the field next to it The value you enter here represents the number of 100 microsecond increments For example in the figure above the value is 2 x 100 200 microseconds Scan Cycle Times Parameter G
2. Note To add remove or change the order of modules associated with an existing Slave right click the Slave node in the Hardware Configuration and choose Configure The Properties dialog box for the selected Slave opens See page 3 13 3 16 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Configuring Module Data Areas To configure module data areas right click the module node in the Hardware Configuration and choose Configure The Parameter Editor window for the module appears The values for read only parameters are supplied from the GSD text file that defines the Profibus module s characteristics Most devices have one data area with inputs outputs or both Some devices have multiple data areas that are shown as additional rows Data Area Parameters Area This value is an index beginning at 1 Read only Type Specifies whether the data is input or output as well as type digital or analog Value can be Digital In Analog In Digital Out or Analog Out Ref Address Specifies the memory area that is used to map the data area Regardless of the reference type used input areas are considered as consumed and cannot overlap while output areas are considered as produced and may overlap Allowable Ranges AI AQ I Q G R T M If the number of bytes is odd analog memories are not allowed and selections are limited to I Q G M Length Specifies the length of the r
3. Configuring Network Settings Inputs on Loss of Slave Determines the values that the master module reports for a particular slave if communications between master and slave are lost Choices are Hold Last State default and Clear Slave Status Fault Table Entries If set to True default slave communications status events loss and re establish are reported as fault table entries If set to False slave status events are not reported to the fault table Download Names Descriptions Note If set to True names and descriptions for the slaves and the master are sent to the PLC and do not revert to default upon uploading Downloading names and descriptions may take up too much memory in the PLC It is recommended that this parameter remain set to False Default Names and descriptions are a convenience only Omitting them from the download does not affect system operation Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Download GSD Files Determines whether a Full Upload or Generic Upload can be performed from the downloaded configuration If you set this parameter to False default GSD files are not downloaded to the PLC Subsequent upload operations are Generic If set to True the GSD files required by the network configuration are sent to the PLC Subsequent upload operations are Full uploads Full Upload A full upload of a hardware configuration containing a PBM
4. Table 2 1 Pin out Listing for PROFIBUS Connector Pin Pin Description DB9 Line Termination rack ground reserved data connect this pin to pin 8 data with 220 ohm resistor TX Enable Isolated ground connect this pin to pin 8 data with 390 ohm resistor Isolated 5V connect this pin to pin 3 data with 390 ohm resistor reserved data OIl uI ND nA BR WI NI reserved For line A cable 135 165 ohm impedance The module has no built in termination If you require termination you must use a bus terminal that has built in selectable termination Do not connect any devices to the 5V pin pin 6 It is to be used for termination purposes only 2 2 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Network Segment Length GFK 2121 A PROFIBUS network uses either fiber optic or RS 485 copper media The copper bus line specified in EN 50 170 is Line Type A and is the recommended cable type A more economical copper cable Line Type B is commonly used for smaller installations however it is not specified in EN 50 170 It is extremely important to use cable rated to PROFIBUS specifications The higher the baud rate selected and the longer the distances involved the more critical cable selection becomes PROFIBUS cable has a distinctive purple color Stub or T type branch connections are supported if the total st
5. 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Get Device Status 1 GFK 2121 The Get Device Status Command retrieves detailed status information for the specified device Get Device Status Command Block Basic Example The following command block accomplishes the following Get Device Status for Device 1 Return the COMMREQ Status Words to R10 R13 Return the Device Status to R251 R259 Word Dec Hex Definition Word 1 00005 0005 Length of command Data Block Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory type of COMMREQ status word R Word 4 00009 0009 COMMREQ status word address minus 1 R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 00001 0001 Get Device Status command number Word 8 00008 0008 Memory type to write response R Word 9 00250 00FA Starting Address to write response response written to R251 Word 10 00009 0009 Maximum size of response area Word 11 00001 0001 Slave number 0 125 Word 7 Command Code Word 7 specifies the Command code for the COMMREQ to be executed Get Device Status 1 Word 8 Local PLC Memory Type Words 8 9 specify the location in the PLC where the response will be written Valid values for Word 8 are listed below Value Type Decimal Description SR 8 Register memory word mode AI
6. Using Syn Fre ze Controla cess cecssassacesvacds ccevanessecentaesceatosdscvechasnisdeasetebenacs candsuden i eeaes Example ss assess heeiissns cosatoves a dsaseisiecsaatnaccanetadan eased EEE EEA Configuring Network Settings for PROFIBUS Master General Tab of the Master Properties Dialog Box rernnrnrrvrnnvrvrernnernrnervrervenereresvene 3 9 Network Tab of the Master Properties Dialog Box rrrnrrnrrrrnrrrnrnvrrnvrrnrrrsrrnrrrssernn Time Sub Tab of Network Tab ereonororonnrernrnernrennnnresvnnnrererneenarnereresnesrasnesssssesnsee Parameters Sub Tab of Network Tab srernnornrrnennrvennenaenernersrenererernnsraenesssenesnsee Parameters Tab of the Master Properties Dialog Box rsrnrennrrernvrrnvrrnvrrsvrnsvrnsernn Adding Slave Devices to the IC693PBM200 Master srrsnvrrnvrrnnvrrnvrrnvrrnnvrrnvernversrersnern Adding Slaves and Modules ssrernrrrnvnrennrennrennrrnrrrnrrrnrernnvrsnressressressnrsssressrsrsrsrenern Configuring Module Data Areas rorennrrnnnrvrrrerrrrnnrrnrrennrrnnrrsnvssnnssnnnensrsrnrsnnsesnnsssnenn Data Area Parameters ccccccccccccsessssscecececsesssueceeececsensaseeeececeesesaeaeeeeeesensasseeeeeees Chapter 4 Status and Diagnostics sissescsssecessscsvcsssvusvecevdssvcasssessssscodaveesavdsessasiucvasnsassieabavevacs PROFIBUS Module LED Indicators rorenvronrronvrrnvrrnvrrsnvrsnrrsnrrenrsrsrerensrensrrsernessnessnrsenne Slave Status Bit Arr yu sssissssansvdarnsnsrannssnnesnnrs
7. 917 202 Massive PROFIBUS Cable Note Allen Bradley blue hose which has an impedance of 78 ohms is not recommended for this application Table 2 3 Cable Specifications Cable Parameter Type A Type B Impedance 135 to 165 ohms 100 to 130 ohms f 3 to 20MHz f gt 100KHz Capacitance lt 30pF m lt 60pF m Resistance lt 110 W Km Conductor area 0 34mm 0 22mm 22 AWG 24 AWG 2 4 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Network Termination GFK 2121 Termination resistors are needed as defined in DIN 19245 Part I section 3 1 2 5 Termination Required Segment 1 One terminator must be applied at each end of a network segment Termination Required Termination Required Segment 1 Segment 2 Generally termination is provided in commercially available PROFIBUS standard network connectors Some connector vendors provide termination capability in the connector and a switch on the connector to enable disable termination Some connector vendors provide both terminated and unterminated connectors Important For proper network termination it is essential that the terminating devices maintain power Power is provided by the device on Pin 6 and Ground on Pin 5 If power is lost to either terminating device the network may not operate correctly Generally the lone network master device is one of the terminating devices Therefore a loss of power
8. completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply The following are trademarks of GE Fanuc Automation North America Inc Alarm Master Genius PowerMotion VersaMax CIMPLICITY Helpmate PowerTRAC VersaPro CIMPLICITY 90 ADS Logicmaster Series 90 VuMaster CIMSTAR Modelmaster Series Five Workmaster Field Control Motion Mate Series One FrameworX ProLoop Series Six GEnet PROMACRO Series Three Copyright 2002 GE Fanuc Automation North America Inc All Rights Reserved Preface Content of This Manual This manual provides instructions for installing programming and troubleshooting control systems that use the Series 90 30 PROFIBUS master module IC693PBM200 It is assumed that you have a basic understanding of Series 90 30 PLCs and are familiar with PROFIBUS DP protocol Related Publications GFK 2121 Series 90 30 Profibus Slave Module User s Manual GFK 2193 Series 90 30 Installation and Hardware Manual GFK 0356 Series 90 30 20 Micro PLC CPU Instruction Set Reference Manual GFK 0467 Series 90 30 System Manual GFK 1411 CIMPLICITY Machine Edition Getting Started GFK 1868 iii Contents Chapter 1 Overview and Specifications eesseeessoescsesssesssesssooesoosssossssesssesssoessoossssesssesssee OVENI E Weee E EE E a E A E EEE PROFIBUS Information cccccccccscceessccesececssecesseceesseceseeccsseceesueceeaeec
9. 10 Analog input memory word mode AQ 12 Analog output memory word mode I 16 Discrete input memory byte mode Q 18 Discrete output memory byte mode T 20 Discrete temporary memory byte mode M 22 Discrete momentary internal memory byte mode Word 9 Response Memory Starting Address Word 9 determines the starting address in the PLC in which the response is to be written The value entered is the offset 0 based from the beginning of PLC memory for the memory type and mode specified in Word 8 This offset will be either in bits bytes or words depending on the mode specified for example if Word 8 16 and Word 9 2 then the starting address will be I9 Valid ranges of values depend on the PLC s memory ranges Word 10 Response Memory Size Word 10 specifies the size of the memory block for the response The COMMREQ has built in future expansion space in the response field The Response Chapter 4 Status and Diagnostics 4 9 4 10 Memory Size including the future expansion space is 9 words In the current version of firmware 1 12 the response size is 2 words and only 2 words are written to memory The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data It is recommended that the future expans
10. 2 2 words 32 bits Slave Diagnostics Firmware ID Address The starting address for this two word array The Slave Diagnostic is the first word The Firmware ID is the second word Slave Diagnostic Firmware ID Address is a consumed range and as such must be a non overlapping range in AI I Q G AQ R T or M Defaults to AI memory e The Slave Diagnostics word provides a way for the master module to inform the host the CPU of the PLC that the master resides in that there are diagnostics pending If there are diagnostics pending the module places the address of the first slave that has diagnostics into the Slave Diagnostics word The diagnostics can be read using the GetSlaveDiagnostics mailbox message via a Communications Request This clears the field and the module then places the next pending diagnostic address into the Slave Diagnostics field If the field is zero there are no pending interrupts e The Firmware ID word contains the current firmware version running on the master module This information is in HEX format The Major Revision number resides in the upper byte and the Minor Revision number resides in the lower byte of this word Tip Use the Communication Request task 4 GetSlaveDiagnostics to retrieve the information that is reported in this memory area GFK 2121 Chapter 3 Configuration 3 5 3 6 Length of slave diagnostics firmware ID array For discrete memory Length can be in the range
11. 5 references 1 1 Read Module Header Redundant masters 3 1 Removing the module from the rack 2 6 Reviewing system power requirements S Selecting the proper line type 2 3 Specifications cable 2 4 CPU firmware mounting location power consumption 1 3 status information available m Status and diagnostic methods Status Word codes 4 7 Index 1
12. However more than 254 characters can be entered in the dialog box Vendor The manufacturer of the Slave device from the GSD file This is a read only field Device ID The ID of the PROFIBUS device This is a read only field Model The model of the Slave device This is a read only field Hardware Rev The hardware revision of the device from the GSD file This is a read only field Class The class of the Slave device This is a read only field Software Rev The software revision of the device from the GSD file This is a read only field Enter Name Description and Station if desired Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 4 To add modules to the Slave select the Modules tab and click Add The Select New Module dialog box appears Note To add the Slave to the configuration you must configure at least one module Select New Module 2 Words In 4 Words In 8 Words In Cancel 12 Words In 16 Words In 1 word Out 2 Words Dut Fro 4 Words Out ata reas 8 Words Out FT 12 Words Out i 16 Words Qut Input Size 1 Byte In Par 2 Bytes In 4 Bytes In Output Size 8 Bytes In 1 Rutes In p 0 Note The Select New Module list of items to choose from depends on the Slave Each type of Slave is likely to have a different list of modules 5 Select a module and click OK The module is added to the Modules list in the Slave Properties
13. PLC configuration in the Navigator window and the module s Parameter Editor window appears in the InfoViewer window space 3 2 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 PROFIBUS Manual CIMPLICITY Machine Edition 0 2 IC693PBM200 S9030 File Edit Search Project Target Variables Parameter Tools Window Help lal x meveev owocxa pameeere e2023 RHHOGOQOOO ELEOEA RD het femne B Data Watch Lists Hardware Configuration ffi Man Rack I0593CHS391 By PWR IC693PWR330 Slot 1 IC693CPU374 Slot 2 IC693PBM200 g St 30 g Slot 4p g Siot5 g sten g k g n 100081 128 zaoo PROFIBUS x00000 A Module 16 Parameter Editor Double click to configure Hold Last State True False False i PROFIBUS AT Module added to Slot 2 Slot 7 Slot 8 Slot 9 ck inn Q Offline Administrator LOCAL Figure 3 3 The PROFIBUS Master Parameter Editor Window 6 Inthe Configuration window double click a parameter in its Values column to open its dialog box For example the next figure shows the result of double clicking the Slave Status Bit Array Address parameter Slave Status Bit Array Address xj Parameter Value 100081 a Increment Slider STI Arrows Available Reference Ranges z Reference Type Drop Down List Arrow End 102048 Available Range Cancel _Heb Figure 3 4 Typical Param
14. contains a bit for each slave If communication with a slave has no errors the bit corresponding to the slave determined by its network address is set If the communication has errors or is not occurring for any reason the bit is cleared Also the Master maintains its own status in the bit corresponding to its network address The starting Address of the references for the Slave Status bit array is set in the PROFIBUS Master software configuration For details see Parameters in chapter 3 4 2 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 PLC Fault Table Entries Communications errors are displayed in the PLC fault table For information on using fault tables refer to the programming software s online help For details on the effects of the different types of faults on PLC behavior refer to the Series 90 30 System Manual GFK 1411 or the Series 90 30 Reference Manual GFK 0467 Note Slave communications status events loss and re establish are reported to the PLC fault table by default If the Slave Status Fault Table Entries parameter in the PROFIBUS Master software configuration is set to False these events are not reported to the fault table For information on software configuration see chapter 3 There are two I O Faults that can be logged by the Profibus Master module e Loss of Device This fault is logged whenever there is a PROFIBUS fault detected on a configured slave such as a tim
15. dialog box Add additional modules as required for your system The following figure shows the Modules tab after several modules have been added Station 1 SERIES 90 30 PROFIBUS SLAVE Slave ID 1 Properties General Modules Parameters Data Areas Name 0 1 1 Byte In 1 1 1 Byte In 1 _Bemove 2 1 4 Words In P i 3 1 1 Word In la sikasid 4 1 1 word Out 5 1 2 Words Out 6 1 2 Bytes Out 7 1 1 Byte Out 7 Modular Station Modules 8 of 32 Input 12 of 244 Data 21 of 488 Output 9 of 244 Note To change the order position of a module select it and click Properties The module Properties dialog box opens Enter the numerical value of the new position the module is to have The position numbering starts at 0 GFK 2121 Chapter 3 Configuration 1 Byte In Properties 1 Byte In 6 When you have finished adding modules click OK The modules appear under the Slave node in the Hardware Configuration PROFIBUS Manual CIMPLICITY Machine Edition 0 2 1 2 4 Words In Target1 EA PROFIBUS Manual Target R Data Watch Lists fis Hardware Configuration Main Rack 1C693CHS391 PWR IC693PWR330 Slot 1 ICS93CPU364 Slot 2 IC693PBM200 1 SERIES 90 30 PROFIBUS SLAVE 10 1 Byte In 1 1 Byte In 1 3 1 Word In 4 1 Word Out 5 2 Words Out 6 2 Bytes Out l 7 1Byte Out g Stag D slot4 D Sisi ofl a
16. executing another one This can be done by checking the Status Word and the FT Fault output e The FT output is held False if the Enable Input is not active This means that if the COMMREQ is enabled by a transitional one shot contact and a fault occurs the FT output is High for only one PLC scan To capture the fact that a fault occurred you can program the fault output as a Set coil which would not be automatically reset at the end of a scan Additional logic would then be needed to reset the fault output coil after the fault is acknowledged and before the next execution of the COMMREQ e Programming a device such as a Set Coil on the FT output of the COMMREQ is optional this output may be left open if desired e It is necessary to initialize the data in the Command Block before executing the COMMREQ instruction Since the normal PLC sweep order is from top to bottom initializing the Command Block in an earlier rung or rungs than the rung that contains the COMMREQ will satisfy this requirement e If you use MOVE instructions to load values into Command Block registers use a Word type MOVE to load a hexadecimal number and an Integer type MOVE to load a decimal number Error Detection and Handling As shown in COMMREQ Status Word a value of 1 is returned to the Status Word if communications proceed normally but if any error condition is detected a value greater than 1 is returned If you require error detection in your la
17. for module firmware upgrades PROFIBUS Port 9 pin female D shell connector Used for connecting to a PROFIBUS network Label not shown on side of module Contains catalog number description standard conformance and serial number information GFK 2121 Specifications Catalog Number 1C693PBM200 Description Series 90 30 Master module for PROFIBUS DP networks Configuration Software Requirement CIMPLICITY Machine Edition Logic Developer version 2 6 or later CPU Version Requirement CPU firmware version 8 00 or later Mounting Location Any Series 90 30 baseplate CPU expansion or remote slot except slot 1 of a modular CPU baseplate Environment Storage temperature 40 C to 85 C Operating temperature 0 C to 60 C Backplane Current Consumption 450mA SVDC typical Data rates Supports all standard data rates 9 6K 19 2K 93 75K 187 5K 500K 1 5M 3M 6M and 12M Baud Status Information Available Slave Status Bit Array table Network diagnostic counters DP master diagnostic counters Firmware module revision Slave Diagnostic Address GFK 2121 Chapter 1 Overview and Specifications 1 3 1 4 PROFIBUS Basics PROFIBUS Network Overview PROFIBUS is an open vendor independent FieldBus standard for a wide range of applications in industrial automation including motion control PROFIBUS is a dynamic technology that grows functionally while complying with
18. in the Clear Counters command block is set greater than 2 the COMMREQ will succeed The unneeded memory locations are not written Clear Counters Reply Data Format Word Name Description Word 1 CommandCode Echo of Command code that this data block is replying to 0x0006 Word 2 StatusCode Reports 1 for success and 0 for failure GFK 2121 Chapter 4 Status and Diagnostics 4 21 GFK 2121 Cable oa ns Cable types 2 4 4 Clear Counters 6 4 20 COMMREQs Clear Counters 420 Get Device Diagnostics 4 Fey Get Device Status 1 4 9 Get Master Status ma memory types PROFIBUS vate 48 Read Module Header 5 COMMREQsg general information 4 4 error detection and handling ladder instruction operation 4 5 ine we er status word 4 Configuration F Fault table entries 4 3 Features 1 3 G Get Device Diagnosti Get Device Status Get Master Status Installation procedures network 22 the Master to the PROFIBUS network 2 2 installing bus termination aa installing the module in the rac 22 reviewing system power requirements 2 N NAK not acknowledged 4 11 O Overview 1 1 P Pin out PROFIBUS bus plug connector 1 6 PROFIBUS connector 2 2 PLC fault table entries Index Power consumption Power supplies 2 1 PROFIBUS baud rate 2 6 bus communication 1 4 cable types 2 4 network connectors 1 6 network overview 1 4 network topolo gy 1
19. slave No response or NAK after sending parameter data to the slave No response or NAK after sending configuration check data to the slave No response or NAK after sending the second diagnostic status request to the slave Invalid response after sending parameter data to the slave Invalid response after sending configuration check data to the slave Response to configuration check packet was non zero length slave should never return anything Invalid response after sending the second diagnostic status request to the slave Get Device Status Code 03h Extended Status Codes High Byte of Word 2 05h Invalid response after sending the first diagnostic status request to the slave Status Meaning OAh Error in data update during configuration OBh No response or NAK when updating data while online GFK 2121 Chapter 4 Status and Diagnostics 4 12 Get Master Status 2 The Get Master Status Command provides detailed status information about the Master module Get Master Status Command Block Basic Example The following command block accomplishes the following Get Master Status Return the COMMREQ Status Word to R10 R13 Return the Device Status to R251 R259 Word Dec Hex Definition Word 1 00004 0004 Length of command Data Block Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory type of COMMREQ status wor
20. 0 16 or 32 For word type memory Length can be in the range 0 1 or 2 Slave Diagnostics Firmware ID Length defaults to 2 to include both the Slave Diagnostic area and the Firmware ID Setting Length to I will provide only the Slave Diagnostic Sync Freeze Control Bits Address Defines the reference areas for the Sync Freeze command data Sync Freeze Control Bits Address is a produced range and must be a non overlapping range in AI I Q G AQ R T or M Defaults to Q memory Sync and Freeze are global control functions used to synchronize remote I O stations You can use these functions to cause a group of slaves to operate at the same time in your system For additional information see Using Sync Freeze Control on page 3 8 m The Sync command is used to control a slave s outputs When a slave receives a Sync command it holds its last output data to the master until the slave receives another sync command from the master m Freeze is used to control a slave s inputs When a Freeze command is sent to a slave the slave freezes its current inputs and does not accept any new input data until it receives another Freeze command Length of sync freeze control bits For discrete memory Length can be 0 or 16 and defaults to 16 For word type memory Length can be 0 or I and defaults to 1 Network Settings Double clicking this field opens the Master Properties dialog box This dialog box is discussed in
21. 002 GFK 2121 Word 9 2 then the starting address will be I9 Valid ranges of values depend on the PLC s memory ranges Word 10 Response Memory Size Words 10 specifies the size of the memory block for the response The COMMREQ has built in future expansion space in the response field The Response Memory Size including the future expansion space is 9 words In the current version of firmware 1 12 the response size is 2 words and only 2 words are written to memory The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data It is recommended that the future expansion space be allocated initially to avoid problems if future firmware upgrades use more than 2 words for the response Get Master Status Reply Data Format Response written to location specified by Words 8 amp 9 Word Name Description Word 1 CommandCode Echo of Command code that this data block is replying to 0x0002 Word 2 StatusCode Code indicating the status of the Master module See tables below for meaning of the code Words Reserved for future Word 10 of the Get Master Status command block 3 9 use should specify a minimum of 9 words to accommodate possible future use of this space Get Master Status Network Parameter Errors The following status errors may occur when you set the network parameters Values are in hexadecimal Status Meaning 00h N
22. 2 KBps 93 75 KBps 187 5 KBps 500 KBps 750 KBps 1 5 MBps 3 MBps 6 MBps 12 MBps Default is 1 5 MBps Highest Station The highest possible station address for any active station on the network This affects how much time is spent soliciting for new PROFIBUS Master devices Default is 126 Token Rotation Time The maximum target token rotation time for the network expressed in t_bits and milliseconds Time Sub Tab of Network Tab Slot The amount of time microseconds the PROFIBUS Master waits for a reply to a message Idle 1 The amount of time microseconds the PROFIBUS Master waits after it receives a reply or an acknowledgement Idle 2 The amount of time microseconds the PROFIBUS Master waits after sending a message and before sending another message Ready The number of t_bits the PROFIBUS Master waits before sending an ACK response after sending a command Quiet The number of t_bits the PROFIBUS Master waits after it turns on its transmitter before it begins to send data 3 10 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Parameters Sub Tab of Network Tab PFB DP 9030 MASTER Properties General Network Parameters Baud Rate I Token Rotation Time 4681 tits 3 121 ms tg h Highest Station 1126 Time Parameters I Token Retry 4 I Gap Update Factor fi 28 I Token Error 255 I Message Retry 4 I Response Error 15 Cancel Help
23. 200 has the following characteristics Occurs if Download GSD Files is set to True on download You have full configuration capability including adding slaves and adding new modules to existing slaves The Toolchest is populated with GSD files from the uploaded configuration allowing you to add more of an existing slave to the configuration Download upload of text fields such as descriptions is controlled by the Download Names Descriptions parameter Generic Upload A generic upload of a hardware configuration containing a PBM200 has the following characteristics Occurs if Download GSD Files is set to False default on download If the project is uploaded from the PLC and the GSD files are in the Toolchest the network is rebuilt If the GSD files that were used to build the network are not present in the Toolchest the network is rebuilt but new modules cannot be added to the slaves Existing slaves for which there is no GSD file in the Toolchest are made generic You cannot add or remove modules under the generic slave The following operations can be performed on a generic slave Change its station number Edit its parameters in hex mode Delete the slave New fully functioning slaves can be added from GSD files in the Toolchest Note Downloading GSD files may consume too much memory in the PLC It is recommended that this parameter remain set to False default Power Consumption tab The information in thi
24. 50 00FA Starting Address to write response response written to R251 Wordlo 0002 000 Word 7 Command Code Word 7 specifies the Command code for the COMMREQ to be executed Clear Counters 6 Word 8 Local PLC Memory Type Words 8 9 specify the location in the PLC where the response will be written Valid values for Word 8 are listed below Value Type Decimal Description SR 8 Register memory word mode AI 10 Analog input memory word mode AQ 12 Analog output memory word mode I 16 Discrete input memory byte mode Q 18 Discrete output memory byte mode T 20 Discrete temporary memory byte mode M 22 Discrete momentary internal memory byte mode Word 9 Local PLC Memory Starting Address Word 9 determines the starting address in the local PLC in which the response is to be written The value entered is the offset 0 based from the beginning of PLC memory for the memory type and mode specified in Word 8 This offset will be either in bits bytes or words depending on the mode specified for example if Word 8 16 and Word 9 2 then the starting address will be I9 Valid ranges of values depend on the PLC s memory ranges Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Word 10 Response Memory Size Words 10 specifies the size of the memory block for the response The Response Memory Size is 2 words If the Response Memory Size word 10
25. 91 Total System 30 Bl PWR IC693PWR330 Hardware Slot 1 IC693CPU364 Configuration Folder Configure Enter Gut HA Copy Cirie Navigator Window Paste E Add Module I Replace Modulen ij Delete Module De Short Cut Menu lt spector Properties AlteEnter fwer 0 0 ICB93PW Offline Administrator LOCAL Astan BY Microsoft Word Configuri PROFIBUS Manual Hardware Configuration Se 4 03PM Figure 3 1 Adding a Module 3 Select Add Module from the shortcut menu The Module Catalog dialog box appears Note To edit a module that already appears in the rack right click the module and select Configure The module s Parameter Editor window opens 4 Click the Bus Controller tab The Bus Controller module list appears Intelligent Option Discrete Input Discrete Output Discrete Mixed Analog Input 3rd Party Analog Output Analog Mixed Communications Bus Controller Motion Catalog Number Description rence ICB93PBM200 Profibus Master eres HE693PBM100 Horner Electric Profibus Master HE693PBM101 Homer Electric Profibus Master PTO Certified HE693PBM101F Homer Electric Profibus Master w 125 Xtra Param Data IC693BEM321 90 30 170 Link Master IC693BEM331 90 30 Genius Bus Controller IC693DNM200 DeviceNet Master Figure 3 2 The Module Catalog Window s Bus Controller Tab 5 Select the IC693PBM200 PROFIBUS Master and click the OK button The module is added to the
26. Always 0 no wait mode request Word 3 00008 0008 Memory type of COMMREQ status word R Word 4 00009 0009 COMMREQ status word address minus I R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 00004 0004 Get Device Diagnostics command number Word 8 00008 0008 Memory type to write response R Word 9 00250 00FA Starting Address to write response response written to R251 Word 10 00009 0009 Maximum size of response area If this value is not large enough to fit all the diagnostic data a 7 is returned in the COMMREQ Status Word The user is responsible for allocating enough space to contain the requested data without overwriting other application data Word 11 00001 0001 Slave number 0 125 Word 7 Command Code Word 7 specifies the Command code for the COMMREQ to be executed Get Device Diagnostics 4 Word 8 Local PLC Memory Type Words 8 9 specify the location in the PLC where the response will be written Valid values for Word 8 are listed below Value Type Decimal Description R 8 Register memory word mode HAI 10 Analog input memory word mode AQ 12 Analog output memory word mode I 16 Discrete input memory byte mode Q 18 Discrete output memory byte mode T 20 Discrete temporary memory byte mode M 22 Discrete momentary intern
27. Description undefined GFK 2121 Chapter 4 Status and Diagnostics 4 5 Communication Requests The Communication Request function COMMREQ allows the program to communicate with a GE Fanuc intelligent module such as a PROFIBUS Master module The COMMREQ function uses a command block that contains the data to be communicated to the other device plus information related to the execution of the COMMREQ The command block must be placed in the designated memory area using data move instructions such as MOVE or BLKMOV Block Move The CPU reports the result of the COMMREQ in the status word which is a single location in PLC data memory The status word address is specified in the command block For a list of status codes reported in the status word see COMMREQ Status Word on page 4 7 For a list of COMMREQ tasks supported by the PROFIBUS Master module see PROFIBUS Master Module COMMREQ Reference on page 4 8 COMMREQ Ladder Instruction This discussion provides an overview of the COMMREQ instruction For details of the COMMREQ ladder instruction refer to the online help provided with the programming Enable Input Command Block Pointer Fault Output software The Communications Request begins when the COMMREQ Ladder Rack Slot Location Instruction is activated The COMMREQ ladder instruction has four inputs and one Task output Figure 4 1 COMMREQ Ladder Instruction Enable Input Must be Logic 1 to enable the C
28. EGE FANUC AUTOMATION OK SERIES 90 30 PROFIBUS SLAVE Field Control BIU VersaMax NIU Cancel VersaMax NSM SW B HW 1 00 Help gt gt gt VersaPoint Profibus NIU HORNER ELECTRIC PBS105 6 DP Slave Sw 2 HW 2 01 WHEDCO INC Standalone Motion Controller SW D Hw V1 0 Have Disk 2 Select a Slave device and click OK The Slave Properties dialog box opens Note Ifthe Slave module is not in the list but you have a GSD file click the Have Disk button Note The following figures use the IC693PBS201 PROFIBUS Slave module as an example GFK 2121 Chapter 3 Configuration Station 1 SERIES 90 30 PROFIBUS SLAVE Slave ID 1 Properties General Modules Parameters Name Ed Sele eke Station fi v Description Vendor GE FANUC Device ID 0 0616 Model SERIES 90 30 PROFIBUS SLAVE Hard Rev 1 1 Class GE FANUC SERIES 90 30 PROFIB Soft Rev 1 0 Cancel Help Name The name assigned to the Slave You can edit the name or use the default name The name appears in the title bar of the dialog box in the figure above the default name is Station 1 SERIES 90 30 PROFIBUS SLAVE Station The address of the Slave on a PROFIBUS DP network The Slave module is defaulted to the next highest available address Description A optional user defined description for the Slave device The Inspector displays a maximum of 254 characters
29. FANUC GE Fanuc Automation Programmable Control Products Series 90 30 PROFIBUS Master Module User s Manual GFK 2121 June 2002 GFL 002 Warnings Cautions and Notes as Used in this Publication Warning notices are used in this publication to emphasize that hazardous voltages currents temperatures or other conditions that could cause personal injury exist in this equipment or may be associated with its use In situations where inattention could cause either personal injury or damage to equipment a Warning notice is used Caution notices are used where equipment might be damaged if care is not taken Note Notes merely call attention to information that is especially significant to understanding and operating the equipment This document is based on information available at the time of its publication While efforts have been made to be accurate the information contained herein does not purport to cover all details or variations in hardware or software nor to provide for every possible contingency in connection with installation operation or maintenance Features may be described herein which are not present in all hardware and software systems GE Fanuc Automation assumes no obligation of notice to holders of this document with respect to changes subsequently made GE Fanuc Automation makes no representation or warranty expressed implied or statutory with respect to and assumes no responsibility for the accuracy
30. OMMREQ Instruction It is recommended that the enabling logic be a contact from a transition one shot coil IN The memory location of the first word of the Command Block It can be any valid address in word type memory R AI or AQ For example R00100 at IN would indicate that the starting address of the Command Block is R00100 SYSID A hexadecimal value that gives the rack and slot location of the module that the COMMREQ is targeting The high byte first two digits of the hex number contains the rack number and the low byte contains the slot number The table below shows some examples of SYSIDs SYSID Examples Rack Slot Hex Word Value 4 0004h 3 4 0304h 2 9 0209h TASK Must be 1 4 4 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 GFK 2121 FT Output The function s FT fault output can provide an output to optional logic that can verify successful completion of the Communications Request The FT output can have these states FT Output Truth Table Enable Input Does an Error Exist FT output No Yes No execution e The FT output is set High if e The specified target address is not present for example specifying Rack 1 when the system only uses Rack 0 e The specified task number is not valid for the device e Data length is set to 0 e The FT output can either be connected to another device such as a set coil or can be left open Operation of the Communi
31. Word 7 specifies the Command code for the COMMREQ to be executed Read Module Header 5 Word 8 Local PLC Memory Type Words 8 9 specify the location in the PLC where the response will be written Valid values for Word 8 are listed below Value Type Decimal Description R 8 Register memory word mode HAI 10 Analog input memory word mode AQ 12 Analog output memory word mode I 16 Discrete input memory byte mode Q 18 Discrete output memory byte mode T 20 Discrete temporary memory byte mode M 22 Discrete momentary internal memory byte mode GFK 2121 Chapter 4 Status and Diagnostics 4 17 4 18 Word 9 Local PLC Memory Starting Address Word 9 determines the starting address in the local PLC in which the response is to be written The value entered is the offset 0 based from the beginning of PLC memory for the memory type and mode specified in Word 8 This offset will be either in bits bytes or words depending on the mode specified for example if Word 8 16 and Word 9 2 the starting address will be 19 Valid ranges of values depend on the PLC s memory ranges Word 10 Response Memory Size Word 10 specifies the size of the memory block for the response The Response Memory Size is 33 words If the Response Memory Size is set smaller than 33 the COMMREQ will fail with a 7 in the COMMREQ Status Word The user is responsible for assuring that this area is large e
32. al memory byte mode GFK 2121 Chapter 4 Status and Diagnostics 4 15 Word 9 Local PLC Memory Starting Address Word 9 determines the starting address in the local PLC in which the response is to be written The value entered is the offset 0 based from the beginning of PLC memory for the memory type and mode specified in Word 8 This offset will be either in bits bytes or words depending on the mode specified for example if Word 8 16 and Word 9 2 the starting address will be 19 Valid ranges of values depend on the PLC s memory ranges Word 10 Response Memory Size Word 10 specifies the size of the memory block for the response If the Diagnostic data does not fit in this memory block a value of 7 is returned in the COMMREQ Status Word The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data Note A GE Fanuc 90 30 PROFIBUS Slave PBS201 returns 13 bytes 7 words of data Word 10 needs to be 9 or larger Word 11 Slave Number Word 11 specifies the address of the slave to which COMMREQ is directed If the address of the master or a slave that is not on the bus is entered a Status response of 4 is returned Get Device Diagnostics Reply Data Format Response written to location specified by Words 8 amp 9 Word Name Type Description Word 1 CommandCode UINT2 Command code that this data block is replying to 0x0004 Wo
33. ay have up to 127 stations address 0 126 however address 126 is reserved for commissioning purposes The bus system must be sub divided into individual segments to handle this many participants These segments are linked by repeaters The function of a repeater is to condition the serial signal to allow connection of segments In practice both regenerating and non regenerating repeaters may be used Regenerating repeaters actually condition the signal to allow increased range of the bus Up to 32 stations are allowed per segment and the repeater counts as a station address A specialized link segment consisting only of optical fiber modem repeaters may be used to span long distances Plastic fiber optic segments are typically 50 meters or less while glass fiber optic segments may extend several kilometers The user assigns a unique PROFIBUS station address to identify each master slave or repeater in the entire network Each participant on the bus must have a unique station address GFK 2121 Chapter I Overview and Specifications 1 5 Repeater Connecting Segments Remote Repeater Participant Participant Participant I Link Segment No Participants I Branch Segment Remote Repeater Participant Participant To additional participants Figure 1 2 Repeaters and bus termination Network Connectors 1 6 PROFIBUS connections are typically created with a 9 pin sub D connector Other conne
34. being processed and has not replied yet 0x07 Command Terminated not enough memory in reply area The command did not specify sufficient PLC memory for the reply Command will be ignored 0x08 Command Terminated command specific error See AdditionalCode in the Status Block for more information GFK 2121 Chapter 4 Status and Diagnostics 4 7 PROFIBUS Master Module COMMREQ Reference Memory Types The PROFIBUS Master module supports the following COMMREQ tasks and responses Table 4 5 PROFIBUS Master COMMREQs Task Name 1 Get Device Status 2 Get Master Status 4 5 Read Module Header 6 Clear Counters Description Retrieves detailed status information for the specified node Retrieves detailed status information for the Master Get Slave Diagnostics Retrieves diagnostics for a specified Slave Retrieves module header information Clears counters in ReadModuleHeader Page No The following table lists the memory types that can be used by the PROFIBUS Master for the Status Block and Reply Data areas Table 4 6 COMMREQ Status Word Memory Type Codes Memory Type Decimal Abbreviation Memory Type code to enter I Discrete input table BYTE mode 16 Q Discrete output table BYTE mode 18 YR Register memory 8 HAI Analog input table 10 AQ Analog output table 12 T Discrete temporary memory BYTE 20 M Discrete internal memory BYTE 22 Series 90
35. byte 16 Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Configuring Network Settings for PROFIBUS Master To configure network settings for the master double click the Network Settings field in the Parameter Editor Settings tab The Master Properties dialog box opens Note You can also open this dialog box by selecting the Project tab of the Navigator and expanding the Hardware configuration folder and the rack that contains the module Right click the slot containing the IC693PBM200 module and choose Network Settings General Tab of the Master Properties Dialog Box PFB DP 9030 MASTER Properties General Network Parameters Name PFB DP 9030 MASTER Station lo v Description i Fanuc 90 30 Profibus DP Master Master Type PFB_DP_9030_MASTER eos aster Type DP 9030 Te iz Device ID 0x061 i Available 16384 Cancel Help Figure 3 5 General Tab of MASTER Properties Dialog Box Name The name assigned to the PROFIBUS Master You can edit the name or use the default name The name appears in the title bar of the dialog box in the figure above the default name is PFB DP 9030 MASTER Station The address of the PROFIBUS Master module on a PROFIBUS DP network The master module is configured as Station 0 by default In a multiple master configuration you can share station numbers between the master and slaves of the same type that are configured in another master devic
36. cations Request The figure below illustrates the flow of information between the PLC CPU and the PROFIBUS Master module PROFIBUS MASTER PLC CPU MODULE a44917B cvs PLC BACKPLANE LADDER PT TT PROGRAM PROFIBUS NETWORK zP REQUESTED DATA INSTRUCTIONS Ge TO SLAVES ON BOARD COMREQ FIRMWARE MEMORY e DATA MEMORY STATUS WORD Figure 4 2 Operation of the PROFIBUS Communications Request A Communications Request is initiated when a COMMREQ ladder instruction is activated during the PLC scan At this time a command from the PLC via the Communications Request is sent to the PROFIBUS Master module PBM At the conclusion of every request the PLC CPU reports the status of the request to the Status Word which is a location in PLC memory that is designated by the Status Word Pointer in the Command Block In the figure above the PBM is shown in the CPU rack and communications occur over the PLC backplane If the PBM is located in an expansion or remote rack the commands and data are sent over the CPU rack s backplane through the expansion or remote cable to the rack containing the PBM and across that rack s backplane to the PBM Chapter 4 Status and Diagnostics 4 5 4 6 COMMREQ Programming Requirements and Recommendations e COMMREQ instructions should be enabled by a contact from a transition coil e Ifusing more than one COMMREQ in a ladder program verify that a previous COMMREQ executed successfully before
37. ctors are used for IP67 devices A minimum connection consists of a shielded twisted pair cable shield to pin 1 and twisted pair wires to pins 3 and 8 with terminating connections in the appropriate bus plugs The pin to signal conventions for a 9 pin sub D connector are described below Table 1 2 Pin out Listing for the PROFIBUS Bus Plug Connector Pin No Signal Designation 1 Shield Shield Protective Ground 2 M24 Ground Common of the 24V output voltage 3 RxD TxD P Receive data transmission data plus 4 CNTR P Control signal for repeaters direction control 5 DGND Data transmission potential ground to 5V 6 VP Supply voltage of the terminating resistance 5V 7 P24 Output voltage 24V 8 RxD TxD N Receive data transmission data negative 9 CNTR N Control signal for repeaters direction control Note For information on network segment length network connectors and network termination and network baud rate refer to Chapter 2 Installation Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Chapter Installation 2 This chapter contains information on the following procedures e Reviewing system power requirements e Installing the PROFIBUS module in the PLC rack e Installing PROFIBUS wiring Connecting the Master to the PROFIBUS network Selecting the proper line type PROFIBUS cable types Installing bus termination Reviewing System P
38. d R Word 4 00009 0009 COMMREQ status word address minus 1 R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 00002 0002 Get Master Status command number Word 8 00008 0008 Memory type to write response R Word 9 00250 00FA Starting Address to write response response written to R251 Word 10 00009 0009 Maximum size of response area Word 7 Command Code Word 7 specifies the Command code for the COMMREQ to be executed Get Master Status 2 Word 8 Local PLC Memory Type Words 8 9 specify the location in the PLC where the response will be written Valid values for Word 8 are listed below Value Type Decimal Description R 8 Register memory word mode HAI 10 Analog input memory word mode AQ 12 Analog output memory word mode I 16 Discrete input memory byte mode Q 18 Discrete output memory byte mode T 20 Discrete temporary memory byte mode M 22 Discrete momentary internal memory byte mode Word 9 Local PLC Memory Starting Address Word 9 determines the starting address in the local PLC in which the response is to be written The value entered is the offset 0 based from the beginning of PLC memory for the memory type and mode specified in Word 8 This offset will be either in bits bytes or words depending on the mode specified for example if Word 8 16 and Series 90 30 PROFIBUS Master Module User s Manual June 2
39. dder program you can use a Greater Than GT compare instruction to determine if the value in the Status Word is negative less than zero If an error occurs the GT instruction s output Q will go high A coil driven by the output can be used to enable fault handling or error reporting logic The FT output of the COMMREQ described on page 4 5 goes high for certain faults and can be used for fault detection also Additionally the first Status Word can be monitored by error message logic for display on an Operator Interface device in which case Status Word codes would correspond to appropriate error messages that would display on the operator screen To dynamically check the Status Word write a non significant positive number 0 or 99 are typically used into the Status Word each time before its associated COMMREQ is executed If the instruction executes successfully the CPU will write the number 1 there This method lets you know that if the number 1 is present the last COMMREQ definitely executed successfully and that the I was not just left over from a previous execution When multiple COMMREQs are used it is recommended that each be verified for successful communications before the next is enabled Monitoring the Status Word is one way to accomplish this Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Corrective Actions for COMMREQ Errors The type of corrective action to take depends upon the applicat
40. e Description A optional user defined description for the PROFIBUS Master device The Inspector displays a maximum of 254 characters However more than 254 characters can be entered in the dialog box Master Type The type of PROFIBUS Master device This is a read only field Device ID The ID of the PROFIBUS Master device This is a read only field Resources Used The number of bytes used by the PROFIBUS Master device This is a read only field Resources Available The number of bytes available for use by the PROFIBUS Master device The maximum resource size is 16382 bytes The amount of available resources depends on the PROFIBUS slave s that are configured and each slave s modules parameters and diagnostic messages This is a read only field GFK 2121 Chapter 3 Configuration 3 9 Network Tab of the Master Properties Dialog Box PFB DP 9030 MASTER Properties General Network Parameters Baud Rate I Token Rotation Time Highest Station 125 v 4681 tbits 3 121 ms Time Parameters Slot 300 tbits 200 000 ps I Ready fn tbits 7 333 us Idle 1 37 tits 24 667 ps J Quiet jo tbits 0 000 ns T Idle 2 fi 50 tbits 100 000 ps Figure 3 6 Network Tab of MASTER Properties Dialog Box Network parameters are automatically set This tab provides additional configuration for advanced users Baud rate The baud rate of the PROFIBUS network The choices are 9 6 KBps 19
41. eference Includes the entire data area by default If set to 0 the data area is not mapped Allowable Ranges For discrete memories the allowable range is 0 8 16 X For analog memories the allowable range is 0 1 2 X Swap Bytes The swap bytes field is used to manipulate the byte order Because Profibus devices often do not follow the standard the ability to change byte ordering is provided The analog areas travel in MSB and should be swapped if LSB is required m If Type is Digital and the module has an odd number of bytes Swap Bytes is set to False no swapping and read only m If Type is Digital and the module has an even number of bytes default is set to False Setting Swap Bytes to True causes the LSB and MSB to be swapped before the data is mapped into PLC memory m If Type is Analog default is set to False Setting Swap Bytes to True causes the LSB and MSB to be swapped before the data is mapped into PLC memory GFK 2121 Chapter 3 Configuration 3 17 Chapter GFK 2121 4 Status and Diagnostics There are four methods for obtaining status and diagnostic data Observing and interpreting the LED indicators on the PROFIBUS modules Using the Slave Status Bit Array Observing the PLC Fault Table Utilizing Communications Request COMMREQ ladder logic instructions to instruct the PROFIBUS Master to gather diagnostic or status data and report it to the PLC CPU This chapter is divided into fo
42. eout That is whenever the device bit in the Slave Status Table transitions from I to 0 this fault will be logged if there is not a LossOfNetwork e Addition of Device This fault is logged whenever the device bit in the Slave Status Table transitions from 0 to 1 indicating that a device is active in the PROFIBUS scanlist The following figure shows the I O fault table display Address of first input data area configured in PROFIBUS Master Slave I O number PLE Date Time 02 11 2000 19 29 42 Status Rack Slot location Choose Fault Table Last Cleared 02 11 2000 13 29 32 Online Cec yo gt of PROFIBUS Master VO Fault Table Displaying 2 of 2 faults 0 Overflowed ay Fault Category 7 Fault Type 1 00209 Add n of Device yhdefined Fault Extra Data En Format 02 11 2000 19 30 06 Bo G Byte C word 1 0 Bus Bus address dl Action Category Fault Type C asci 1 n a 0 2 Diagnostic 131 o Sort Order erd 00 00 00 00 02 00 00 00 0 00 00 00 00 00 00 00 00 00 00 00 00 Location Fault undefined C Description Description C Date Time None 0 2 o 100209 floss of Device 02 11 2000 19 29 47 C e T i pe ase DESC I O Bus Bus Address bil Group Action Category Fault Type Clear 1 0 Fault Table 1 n a 0 3 2 Diagnostic 130 0 pigs ESSA 00 03 03 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Fault
43. eseesesaeeessaeesseeees Specifications cucerire a eden E RE E E A E PROFIBUS Basi Senensi a riks Rs PROFIBUS Network Overview Bus Communication ccccccccccsssccessecesseecesseeesseceesseceeseccsseeeessecseseeceseeeesseeessaecesseeees Network Topolog yonca nnr a E E EA E R EEE Network Connectonss occas cos sssssseccisa vovesuievys gaaanseededavtvacetavsssosaseteaesaas seiasasadonscaasseadvasntss Chapter 2 ETE REE tauctksatasseunauneenasaease Reviewing System Power Requirements ssrrnnrrnnrrrnrvrnnrrrnrernrrrrrnrennrennrrnnrrnsesnnesnnesnnrssnne Installing the PROFIBUS Module in the PLC Rack Connecting the Master to the PROFIBUS Network Network Segment Lengths icscccsssscsocesssvesoeeseaissocasteadvcaaziediaa de cosnsads EE a PROFIBUS Cable Types cccccccccssessscessseeeceeeceeseeeseeeseecseecsaecauecaecnsecnaeeseeesereseneeags Network Termination 0 cecceceesseescesecseeeeeeseceeeeseceaesaeeeecaecaeseneaecaeeeaeeaecaeeaeeeeeaeeas Network Baud Rate csscestiassciecexcevanssdeveday ovievaapadesibevsecsvoaspacestessteseandrdedobeeedecansvieerdenit Removing the Module from the Rack sesnnnrnvnrenvrrrvrrrnnrernrrnnrrrnrrnnrrnvernversnvssnvssnnssssersnere Chapter 3 Corhsurationquamssmmussersesnmniessdrsssnrivkivivassnevurrvernsivvsnrissisbnein Configuring the PROFIBUS Master Module roronvronvronvrrnvvrrvrrnvrrvrrrnvrsnrrsnressrersrsrenerr Parametersanauaesgandusetunebeldgvuesenteanberustotkenismguiastieit
44. eter Value Dialog Box Note To change a value in a parameter s dialog box such as the one shown above you can 1 type in a different value 2 use the Increment Arrows at the right end of the address field GFK 2121 Chapter 3 Configuration 3 5 3 4 or 3 drag the Slider below the address field To change the reference type such as l Q R etc click the arrow at the right end of the Available Reference Ranges box and select a reference type from the drop down list When done click the OK button to verify your changes Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Parameters Settings tab Slave Status Bit Array Address Tips Properties dialog box The Slave Status Bit Array is an array of bits indicating the health of each node on the PROFIBUS network This parameter is the starting address for the array of slave status bits Slave Status Bit Array Address is a consumed range and as such must be a non overlapping range in AI I Q G AQ R T or M It defaults to I memory A slave s status address equals Start Address Station Address of the slave For example if the status bits are mapped to 100001 the status for the slave at Station Address 5 would be found at 100001 5 100006 The master s status is located in the same way as the slaves Start Address Station Address The master is configured as station 0 by default but can be set to any valid addres
45. ion If an error occurs during the startup or debugging stage of ladder development you should verify the COMMREQ parameters The same is true if an error occurs right after a program is modified But if an error occurs in a proven application that has been running successfully the problem is more likely to be hardware related The PLC fault tables should be checked for possible additional information when troubleshooting Status Word errors COMMREQ Status Word The following table defines the format of the Status Block used during the COMM REQ handshake Table 4 3 Status Word Format Word Name Description Word 1 State The state of the current COMM_REQ request see table 4 4 Word 2 LostCommand Command code of the last command lost when the CRL bit is set in Flags Word 3 ErrorCode Not Used Word 4 AdditionalCode Additional code for error reporting Table 4 4 Status Word State Codes Value Description hex 0x00 Module has not yet processed the COMM REQ 0x01 Command Complete Note This status does not necessarily mean success Some commands have reply data that must also be checked 0x02 Command Terminated module busy 0x03 Command Terminated invalid command 0x04 Command Terminated invalid command data 0x05 Command Terminated not enough data 0x06 Command Terminated command collision An identical command which has already reported completion is currently
46. ion space be allocated initially to avoid problems if future firmware upgrades use more than 2 words for the response Word 11 Slave Number Word 11 specifies the address of the device the COMMREQ is retrieving device status from If the address of the master or a slave which is not on the bus is entered a COMMREQ Status Word response of 4 will be returned Get Device Status Reply Data Format Response written to location specified by Words 8 amp 9 Word Name Description Word 1 CommandCode Echo of Command code that this data block is replying to 0x0001 Word 2 StatusCode Extended Code indicating the status of the client connection to the device Status Code See status code tables below Word 3 9 Reserved for future use Word 10 of the Get Device Status command block should specify a minimum of 9 words to accommodate possible future use of this space Get Device Status Codes Low Byte of Word 2 03h Frame delivery problem while updating slave data Check following tables for Extended Status Codes Note Ifthe Status code is 01 or 03 the upper byte must be interpreted using the following Extended Status tables Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Get Device Status Code 01h Extended Status Codes High Byte of Word 2 No Extended codes available N o response or NAK not acknowledged after sending the first diagnostic status request to the
47. nnkennnssnnsennsannessnnennnsensessvsesenssnssennsenesenssensenn PLC Fault Table Entre S rennene EREE O E EE Communication Requests ccccccccssesssecssecsseceecesecesecnsecneeseeeseeeseaeeeaeeeaeecauecsaecsaecnaeenaees COMMREQ Ladder Instruction cccccccccesscessseceesseceseeecsseceesseceeseecsseesssseesesseesees Operation of the Communications Request csccesccssecsecseeeeeeeeeeeeeereeeeeeeeeenaees COMMREQ Programming Requirements and Recommendations GFK 2121 v Contents Error Detection and Handling 0 eee ceescesceseceeeeeeeseeeeenecaeesecaeeseceaeeeesaeeateaeeaeeeeenes 4 6 COMMRE Q Status Word renrrnnrnrernvrrnvrrnvrnvvrnvrrnvrrnrrrnsrrsarensrennrsnersnesnnesseersessernsernn PROFIBUS Master Module COMMREQ Reference rrrranrrrnnrnnrnnrerenvrrenvrrsnrnrsnvnnrenvesnr 4 8 Memory Types salat Get Device Status 1 ass deemed eielee Get Device Status Command Block Basic Example Get Device Status Reply Data Format Response written to location specified b WOrds8 AY E E E N E E estes peiiedis Read Module Header 5 cccccccccccscceesscccessceesssceessecesseccsseesessecseseecsseeeesseeseeseecesees Read Module Header Command Block Basic Example ReadModuleHeader Reply Data Format for Master Clear Counters OG svccciccsicctsaccavicccescctenseeeisscttveisdesevaceaeasCeasbenseasagbeaedesedtaccsdateseaden teen Clear Counters Command Block Basic Example cccccessecs
48. nough to contain the requested data without overwriting other application data Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 ReadModuleHeader Reply Data Format for Master Word 1 Command Code Echo of Command Code that this data block is replying to 0x0005 Word 2 ModuleType A value of 2 indicates the module is a Master Contains 1 if the module is a Slave Word 3 PfbStatus PROFIBUS Status register also can be read using the Get Master Status COMMREQ For definitions see page 4 13 Word 4 ModuleVersion Module firmware version 0112h 1 12 Won Word Word Word Word 1 Word 14 Word 15 Master gt DP went offline and had to be reconfigured Word 16 17 Master scan time us vas vei word Word va var Word 26 wo Word 28 vat TED wo Word 32 vers Note Ifthe Name starts with Err the value stops at the maximum If the Name starts with Diag the count rolls over to zero GFK 2121 Chapter 4 Status and Diagnostics 4 19 Clear Counters 6 4 20 The Clear Counters Command clears the counters in the PROFIBUS Master module to zero Clear Counters Command Block Basic Example The Clear Counters Command sets the counters to zero In the following command block Status is returned in R251 R252 words 8 and 9 worse or ors Won Word 6 00000 000 Word 7 00006 0006 Clear Counters command number Word 8 00008 0008 Memory type to write response R Word 9 002
49. o error GFK 2121 Chapter 4 Status and Diagnostics 4 13 4 14 Get Master Status Configuration Errors The following errors may occur when you configure the Master through the init file generated by the configuration tool Status Meaning 20h 21h 22h 23h 24h 25h 26h 27h 28h 29h Bad check pattern Parse Configuration file error 2Bh Failed to go online Get Master Status Flash Programming Errors The following errors may occur when you program flash memory Status Meaning 30h No configuration 32h 33h 34h 35h 36h Get Master Status Fatal Errors The following are fatal errors The module must be reset to resume operation Status Meaning 80h Internal error Out of Data Structure Buffers Host Watchdog byte Heap allocation failure Shared heap allocation failure Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Get Device Diagnostics 4 The Get Device Diagnostic command retrieves detailed status information for the specified device Get Device Diagnostics Command Block Basic Example The following command block accomplishes the following Get Device Diagnostics for Device I a PBS201Release 1 Return the COMMREQ Status Word to R10 R13 Return the Device Status to R251 R259 Word Dec Hex Definition Word I 00005 0005 Length of command Data Block Word 2 00000 0000
50. ower Requirements Review the power requirements of your system to ensure that your power supply has sufficient capacity to support the PROFIBUS Master Power supply load is automatically calculated by the CIMPLICITY Machine Edition configuration software Details on manually calculating power supply load can be found in GFK 0356 the Series 90 30 Installation and Hardware Manual Note High capacity Series 90 30 power supplies IC693PWR330 or IC693PWR331 are recommended particularly for systems with CPU350 or higher or that have Ethernet adapters and or multiple PROFIBUS modules The Series 90 30 PROFIBUS Master module consumes 450mA at SVDC typical GFK 2121 2 1 Installing the PROFIBUS Module in the PLC Rack 1 Remove power from Series 90 30 rack 2 Turn off power to rack 3 Place the module into slot I or higher in the rack slot 2 or higher in the Main rack by hooking the top of the module on the notch above the slot and slowly lowering the module until it snaps into place 4 Attach the PROFIBUS cable and terminate as required Note For details about installing Series 90 30 rack systems and modules refer to the Series 90 30 Installation Manual and Hardware Manual GFK 0356 Connecting the Master to the PROFIBUS Network The module contains a standard female DB9 connector labeled PROFIBUS that can be connected to a PROFIBUS bus terminal e PROFIBUS DB 9 connector recommendation Siemens 6ES7 972 OBB50 OXAO 12MB
51. procedures are written for users with at least a basic knowledge of the CIMPLICITY Machine Edition Logic Developer software and the Series 90 30 PLC For help with using the software please see the software s built in help system Note The PROFIBUS Master is only supported in CIMPLICITY Machine Edition Logic Developer The following software packages do not support the PROFIBUS Master Logicmaster VersaPro and Control software Note The PROFIBUS Master module does not support redundant masters Configuring the PROFIBUS Master Module Add the IC693PBM200 module to the PLC rack configuration 1 In the Project tab of the Navigator expand the lit Hardware Configuration folder 2 Inthe Hardware Configuration folder right click the PLC Slot where you wish to install the PROFIBUS Master module Note that a PROFIBUS module is not a valid choice for slot 1 of a modular CPU rack GFK 2121 3 1 PROFIBUS Manual CIMPLICITY Machine Edition 0 0 IC693PWR 330 BEE 3B File Edit Search Project Target Variables Tools Window Help laj x asas v eRe e se oc x m es mere EAG PPD OSS See eo ean KO ONE Ax gt Power Consumption Settings Target Parameters Values a Og C Blocks 5VDC watts 30 Sa Data Watch Lists 24VDC Relay Power 15 fip Hardware Configuration 24VDC Isolated Wat 20 Main Rack IC693CH53
52. rd 2 Size of Diagnostics UINT2 The size of the data If it is greater than the memory area specified in word 10 of the Get Device Diagnostics command block the COMMREQ will fail returning a 7 in the COMMREQ Status Word page 4 7 Word 3 Diagnostics BYTE The diagnostics of the given slave Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Read Module Header 5 The Read Module Header command retrieves Network Diagnostic Information and statistics from the Device Read Module Header Command Block Basic Example The following command block accomplishes the following Get Module Header Data Return the COMMREQ Status Word to R10 R13 Return the Device Status to R251 R283 Word Dec Hex Definition Word I 00004 0004 Length of command Data Block Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory type of COMMREQ status word R Word 4 00009 0009 COMMREQ status word address minus I R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 00005 0005 Read Module Header command number Word 8 00008 0008 Memory type to write response R Word 9 00250 00FA Starting Address to write response response written to R251 Word 10 000033 0021 Size of response area 33 for master Word 7 Command Code
53. ributed peripherals on one bus PROFIBUS distinguishes between the following types of devices Master devices determine the data communication on the bus A master can send messages without an external request when it holds the bus access rights the token Masters are also called active stations Slave devices include motion controllers drives I O devices valves and transducers Slaves do not have bus access rights and can only acknowledge received messages or send messages to the master when requested to do so Slave devices are passive stations and require only small portions of the bus protocol Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 The majority of PROFIBUS DP applications are located at the field level The field level typically includes slave devices such as the S2K motion controller station and host devices like PLC or PC control systems for the PROFIBUS DP master station Operator interfaces and DCS type systems usually operate at the cell level Table 1 1 Data bandwidth Demands on PROFIBUS Communications Systems Amount of Data Transmission Transmission Duration Frequency Management level Mbytes Hours Minutes Day Shift Cell level Kbytes Seconds Hours Minutes Field Level Bytes Several 100 10 to 100 milliseconds microseconds to 100 milliseconds Actuator sensor level Bits Microseconds to Milliseconds milliseconds Network Topology A PROFIBUS DP network m
54. roup These parameters allow you to set minimum and maximum scan cycle times for the Watchdog timer Auto The maximum I O scan time and Watchdog timer are assigned automatically Maximum The maximum I O scan time in 10 millisecond increments If the scan time exceeds this value the PROFIBUS Master faults all the slaves reinitializes them and brings them back online When the maximum TO scan time is updated the Watchdog timer is also updated Watchdog Ifa PROFIBUS Slave does not receive any communication from its master within the Watchdog time the Slave generates a fault the outputs are set to 0 and the Slave is reinitialized by the PROFIBUS Master card Assigning a value affects the maximum cycle time Options Parameter Group Repeater Select this check box if there are repeaters on the network FMS Devices Select this check box if there are PROFIBUS FMS FieldBus Message Specification devices on the network Stay Offline on Error Select this check box if you want the PROFIBUS Master to stay offline when the Token Error Limit or response Error Limit is exceeded within 256 token cycles Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Adding Slave Devices to the IC693PBM200 Master Adding Slaves and Modules 1 Inthe Navigator window right click the IC693PBM200 Master module and choose Add Slave The Slave Catalog dialog box appears Slave Catalog EG B
55. s 0 125 m To change the master s Station Address right click the master and choose Network Settings To change a slave s Station Address right click the slave and choose Configure The Station Address parameter is located on the General tab of the m Use the Communication Request task 1 GetDeviceStatus or task 2 GetMasterStatus to retrieve the status information that is reported in this memory area For details see Communication Requests in chapter 4 Length of slave status bit array For discrete memory Length can be any multiple of 16 between the values of 16 to 128 The entered value is automatically rounded up to the next multiple of 16 The default is 128 which contains all possible status bits since 126 125 Slaves master is the maximum number of stations on the PROFIBUS network For word memory 16 bit memory types Length can be 1 through 8 Note To conserve PLC memory space you may reduce the Slave Status Bit Array Length from the default of 128 The Slave Status Bit Array length actually required depends on the highest address on your network For example if 29 is your highest address station and you are using a discrete memory type for slave status memory the Slave Status Bit Array length could be set to 32 It cannot be set to 29 because Slave Status Bit Array length values must always be multiples of 16 16 32 48 64 etc If you were using word type memory in this example you would set Length to
56. s tab is read only It indicates the power consumed by the module from the PLC backplane GFK 2121 Chapter 3 Configuration 3 7 Using Sync Freeze Control Example 3 8 The Sync Freeze control is optional two bytes in length and the default is to map to the first available address in Q The Sync Freeze control can be mapped to any PLC memory area and must have a length of either 16 bits if mapped to discrete PLC memory Q I T M G or one word if mapped to Word PLC memory AI amp AQ R To use the Sync Freeze control you need to specify a Group Select and a command Note The Series 90 30 PROFIBUS Slave Module IC693PBS201 does not support receipt of Sync Freeze commands Group Select The Group Select which specifies which group of slaves to send this command to is specified in the LSB bits 1 through 8 Each slave can be in one or more groups 0 through 7 and is selected on the Parameters tab of the slave Command The command is specified in the MSB bits 9 through 16 The command can be one of the following HEX UNFREEZE 0x04 FREEZE 0x08 UNSYNC 0x10 SYNC 0x20 TRIGGER 0x80 Indicates the most significant bit used to trigger the command to be sent If you wanted to send a SYNC command to all the slaves with group ID 04 you would write 0x04 to the location starting at byte I and 0x20 to the byte location starting at byte 9 To actually send this command toggle the trigger bit of the command
57. seesseeeeeeeeeeeeeeees ClearCounters Reply Data Format orsnronvronvrrnrrrnrrrrnrernrrnnrsrersrernvrsnrrsnrsssessserssernn vi Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Chapter Overview and Specifications l Overview The Series 90 30 PROFIBUS Master scanner module allows the host Series 90 30 CPU to send and receive I O data from a PROFIBUS DP network Its features include supports all standard data rates supports a maximum of 125 DP slaves supports 244 bytes of input and 244 bytes of output for each slave supports Sync and Freeze modes has PROFIBUS compliant Module and Network Status LEDs provides an RS 232 serial port the Service port for upgrading the firmware PROFIBUS Information Please refer to the following sources for PROFIBUS information GFK 2121 e PROFIBUS standard DIN 19245 parts 1 low level protocol and electrical characteristics and 3 DP protocol e European standard EN 50170 e ET 200 Distributed I O system 6ES5 998 3ES22 e IEEE 518 Guide for the Installation of Electrical Equipment to Minimize Electrical Noise Input to Controllers 1 1 1 2 PROFIBUS DP MASTER SERVICE RS232 PROFIBUS 1C693PBM200 Profibus Master Module Figure 1 1 PROFIBUS Master Module Series 90 30 PROFIBUS Master Module User s Manual June 2002 LEDs System SYS and Communications COM indicators Service Port RS232 9 pin male D shell connector Used
58. the European FieldBus Standard EN 50 170 PROFIBUS Guidelines and Profiles provide the means for further technical development based on the ever changing communication requirements of the networks systems and devices used in today s industrial automation applications PROFIBUS specifications reference three different protocols to cover a range of industrial requirements PROFIBUS DP High speed data communication DP stands for Decentralized Periphery In practice the majority of slave applications are DP applications PROFIBUS FMS Object oriented general purpose data communication FMS stands for FieldBus Message Specification FMS protocol devices may exchange data on the same bus used for DP devices PROFIBUS PA Meets requirements for intrinsic safety and non intrinsic safety areas and includes bus powered field devices Note The PROFIBUS logo is a registered trademark of the PROFIBUS International Organization Membership in the organization is open to all individuals companies and organizations More information about the organization and the protocol is available at http www profibus com Bus Communication The PROFIBUS specification defines the technical characteristics of a serial field bus system that links distributed digital controllers on the network from field level to cell level PROFIBUS is a multi master system that allows the joint operation of several automation engineering or visualization systems with their dist
59. to the network master renders the network inoperable anyway The other terminating device may be a critical slave device which must maintain power or a separately powered stand alone terminator These stand alone devices are commercially available VP 6 Ru 390 Ohms RxD TxD P 3 Rt 220 Ohms RxD TxD N 8 Rd 390 Ohms DGND 5 Figure 2 1 Bus Termination for Type A Cable in Accordance to PROFIBU Specifications Chapter 2 Installation 2 5 2 6 In addition to the termination shown in figure 2 1 the following compensation should be added for 12 Mbit bus technology GT A Grice ere HR it To from eg ge NE GN a XX another node ba node Figure 2 2 12 Mbit Bus Compensation Network Baud Rate The master configures the appropriate network baud rate for each station on the network Typical baud rate values are 9 6KBps 19 2KBps 45 45KBps 93 75KBps 187 5KBps 500KBps 1 5MBps 3MBps 6MBps or 12MBps For details on using the configuration software refer to chapter 3 Removing the Module from the Rack The following procedure describes how to remove a module from the Series 90 30 rack 1 Turn off power to rack 2 Remove all cabling from the module 3 Press the release located on the bottom of the module and slowly raise the module from the bottom until it comes out of the slot Series 90 30 PROFIBUS Master Module User s Manual June 2002 GFK 2121 Chapter Configuration 3 These configuration
60. ub branch lengths do not exceed 6 6 meters Do not use stubs at all on 12 Mbaud networks The data rates for network communication with maximum segment trunk length per cable type are provided below Multiple segments may be connected via repeater stations to extend the total bus length Table 2 2 Line Types Baud Rate Line A Line B Glass Fiber Distance Max ae Distance Max aia 9 6KBps 19 2KBps 1200 m 1200 m 6Km and 93 75KBps ET Tfusing a combination of both line types divide the lengths shown by two The Values shown are the sum of all bus segment and drop cable lengths NA Not Applicable Termination Note The two physical ends of the PROFIBUS network should be terminated There should be two and only two terminators on a network Chapter 2 Installation 2 3 PROFIBUS Cable Types The recommended cable is e Belden 3079A PROFIBUS cable This is a shielded 150 ohm twinaxial single twisted pair cable It has 22 AWG conductors and a mutual capacitance of 9 0pF per foot nominal For complete specifications on this cable please contact your Belden dealer or visit their website at www belden com Alternate cable types are e Siemens 6XV1 830 OAH10 Two Core shielded e Siemens 6XV1 830 OBH10 w PE Sheath e Siemens 6XV1 830 3AH10 for underground burial e Siemens 6XV1 830 3BH10 trailing cable e Bosch Comnet DP 913 548 Flexible PROFIBUS cable e Bosch Comnet DP 917 201 Trailing PROFIBUS Cable e Bosch Comnet DP
61. ur sections PROFIBUS Module LED Indicators page 4 2 Slave Status Bit Array page 4 2 PLC Fault Table Entries page 4 3 Communication Requests page 4 4 PROFIBUS Module LED Indicators Table 4 1 LED Patterns Before and During PROFIBUS Module Configuration LED Pattern Meaning SYS off and COM blinking green PROFIBUS Master not configured in PLC The following blinking sequence repeats continually PROFIBUS Master configured in PLC but no slaves added SYS off COM blinking green SYS off COM blinking red SYS red COM off SYS red COM green PROFIBUS Master configured and slaves added Note This condition will continue until all the slaves are added and the configuration of each and every slave matches the master configuration Table 4 2 Patterns After PROFIBUS is Configured LED Pattern Meaning Both LEDs solid green Normal operation no errors COM and SYS LEDs flash alternately Module is in System Configuration mode loading firmware SYS LED Red One or more slaves is indicating a fault condition Amber The module or CPU is in Stop or the module is in Test mode Green The module is scanning in Run mode Flashing Green System startup Note This LED flashes green for two seconds at system startup COM LED Red flashing at 1 second intervals A network error has occurred Green No network errors exist Slave Status Bit Array The Slave Status bit array

Download Pdf Manuals

image

Related Search

Related Contents

Sony DSC-P31 Operating Instructions  酸性雨調査に係る降水の採取,分析,試料及びデータの保管  La vie des associations - Mairie de Grenade sur Garonne  Production Tool - ParamEdt User Manual v1.1  COLORado Deco Quad-1 Tour User Manual Rev. 2  医療用具不具合等報告  第6版一括版 - 紙製容器包装リサイクル推進協議会  Boerboel 73014252 Installation Guide  

Copyright © All rights reserved.
Failed to retrieve file