PROFIBUS-DP Board

98
GE Fanuc Automation Computer Numerical Control Products PROFIBUS-DP Board for Series 30i-Model A Operator’s Manual GFZ-63994EN/01 May 2003

Transcript of PROFIBUS-DP Board

GE Fanuc Automation Computer Numerical Control Products PROFIBUS-DP Board for Series 30i-Model A Operators Manual GFZ-63994EN/01May 2003 GFL-001Warnings, Cautions, and Notesas Used in this PublicationWarningWarning 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 ormay be associated with its use.In situations where inattention could cause either personal injury or damage to equipment, aWarning notice is used.CautionCaution notices are used where equipment might be damaged if care is not taken.NoteNotes merely call attention to information that is especially significant to understanding andoperating the equipment.This document is based on information available at the time of its publication.While effortshave been made to be accurate, the information contained herein does not purport to cover alldetails or variations in hardware or software, nor to provide for every possible contingency inconnection with installation, operation, or maintenance.Features may be described hereinwhich are not present in all hardware and software systems.GE Fanuc Automation assumesno 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 statutorywith respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, orusefulness of the information contained herein.No warranties of merchantability or fitness forpurpose shall apply.Copyright 2003 GE Fanuc Automation North America, Inc.All Rights Reserved.B-63994EN/01 SAFETY PRECAUTIONSs-1SAFETY PRECAUTIONSThissectiondescribesthesafetyprecautionsrelatedtotheuseofCNCunits,toensuresafeoperationofmachinesfittedwithFANUCCNCunits.Readthissectioncarefullybeforeattemptingtouseanyfunction described in this manual.UsersshouldalsoreadtherelevantdescriptionsintheOperatorsManual to become fully familiar with the functions to be used.CONTENTS1.1DEFINITION OF WARNING, CAUTION, AND NOTE............s-21.2GENERAL WARNINGS AND NOTES......................................s-3SAFETY PRECAUTIONSB-63994EN/01s-21.1DEFINITION OF WARNING, CAUTION, AND NOTEThismanualincludessafetyprecautionsforprotectingtheuserandpreventingdamagetothemachine.PrecautionsareclassifiedintoWarningandCautionaccordingtotheirbearingonsafety.Also,supplementary information is described as a Note. Read the Warning,Caution, and Note thoroughly before attempting to use the machine.Appliedwhenthereisadangeroftheuserbeinginjuredorwhenthereisadamageofboththeuserbeinginjuredandtheequipmentbeing damaged if the approved procedure is not observed. WARNINGApplied when there is a danger of the user beinginjured or when there is a damage of both the userbeing injured and the equipment being damaged ifthe approved procedure is not observed. CAUTIONApplied when there is a danger of the equipmentbeing damaged, if the approved procedure is notobserved.NOTEThe Note is used to indicate supplementaryinformation other than Warning and Caution.- Read this manual carefully, and store it in a safe place.B-63994EN/01 SAFETY PRECAUTIONSs-31.2GENERAL WARNINGS AND NOTES WARNING1 Before operating the machine, thoroughly check theentered data. Operating the machine with incorrectdata may result in the machine behavingunexpectedly, possibly causing damage to theworkpiece and/or machine itself, or injury to the user.2 Never attempt to perform a production run, such asactually machining a workpiece, without firstchecking the operation of the machine. Beforestarting the machine for a production run, ensure thatthe program command values, offsets, currentposition, external signals, and other settings aresuitable for the operation to be performed. Alsocheck that the machine operates correctly byperforming a trial run using, for example, the singleblock, feedrate override, or machine lock function orby operating the machine with neither a tool norworkpiece mounted.3Ensure that the specified feedrate is appropriate forthe intended operation. Generally, for each machine,there is a maximum allowable feedrate.The appropriate feedrate varies with the intendedoperation. Refer to the manual provided with themachine to determine the maximum allowablefeedrate. If a machine is run at other than the correctspeed, it may behave unexpectedly, possiblycausing damage to the workpiece and/or machineitself, or injury to the user.4When using a tool compensation function,thoroughly check the direction and amount ofcompensation. Operating the machine withincorrectly specified data may result in the machinebehaving unexpectedly, possibly causing damage tothe workpiece and/or machine itself, or injury to theuser.5The parameters for the CNC and PMC are factory-set. Usually, there is not need to change them.When, however, there is not alternative other than tochange a parameter, ensure that you fullyunderstand the function of the parameter beforemaking any change. Failure to set a parametercorrectly may result in the machine behavingunexpectedly, possibly causing damage to theworkpiece and/or machine itself, or injury to the user.SAFETY PRECAUTIONSB-63994EN/01s-4 CAUTION1 Immediately after switching on the power, do nottouch any of the keys on the MDI panel until theposition display or alarm screen appears on the CNCunit.Some of the keys on the MDI panel are dedicated tomaintenance or other special operations. Pressingany of these keys may place the CNC unit in otherthan its normal state. Starting the machine in thisstate may cause it to behave unexpectedly.2 The operator's manual and programming manualsupplied with a CNC unit provide an overalldescription of the machine's functions, including anyoptional functions. Note that the optional functionswill vary from one machine model to another.Therefore, some functions described in the manualsmay not actually be available for a particular model.Check the specification of the machine if in doubt.3 Some functions may have been implemented at therequest of the machine-tool builder. When usingsuch functions, refer to the manual supplied by themachine-tool builder for details of their use and anyrelated cautions. Refer to the following twoexamples. Some machines have a tool replacementdevice that operates when a tool feature isexecuted. When the user is working near thedevice, he or she may touch it. Execute toolfeatures in a place sufficiently away from thetool replacement device. Many auxiliary features cause machineoperation such as rotation of the spindle.Understand the operations of auxiliary featuresbefore using them.NOTE1 Command programs, parameters, and variables arestored in nonvolatile memory in the CNC unit.Usually, they are retained even if the power is turnedoff. Such data may be delated inadvertently,however, or it may prove necessary to delete all datafrom nonvolatile memory as part of error recovery.To guard against the occurrence of the above, andassure quick restoration of deleted data, backup allvital data, and keep the backup copy in a safe place.2 PROFIBUS-DP cannot be used with DeviceNet.B-63994EN/01TABLE OF CONTENTSc-1TABLE OF CONTENTSSAFETY PRECAUTIONS..................................................................................................................... s-1I. GENERAL I. GENERAL I. GENERAL I. GENERAL1 GENERAL.......................................................................................................................................... 31.1 ORGANIZATION ....................................................................................................................... 41.2 APPLICABLE MODELS ........................................................................................................... 51.3 RELATED MANUALS............................................................................................................... 62 OVERVIEW OF PROFIBUS-DP FUNCTIONS.............................................................................. 7II. SETTING II. SETTING II. SETTING II. SETTING1 PROFIBUS-DP FUNCTIONS FOR 30i-A ..................................................................................... 111.1 MASTER FUNCTION SETTING........................................................................................... 121.2 UPDATING DI/DO DATA FOR THE MASTER FUNCTION.............................................. 371.3 GSD FILE FOR THE MASTER FUNCTION........................................................................ 38III. CONNECTION III. CONNECTION III. CONNECTION III. CONNECTION1 CONNECTING THE PROFIBUS FUNCTIONS.......................................................................... 431.1 PROFIBUS CONNECTION.................................................................................................... 441.2 PROFIBUS CABLE AND TRANSFER RATE....................................................................... 451.3 CONNECTOR........................................................................................................................... 461.4 CABLE CONNECTION........................................................................................................... 481.5 TERMINATING RESISTOR................................................................................................... 491.6 CABLE SHIELDING............................................................................................................... 502 INSTALLATION.............................................................................................................................. 512.1 SPECIFICATION..................................................................................................................... 522.2 Mounting................................................................................................................................... 532.2.1 Mounting into the LCD-mounted Type Unit .................................................................. 532.2.2 Mounting into the Stand-alone Type Unit...................................................................... 542.3 COMPLETE CONNECTION DIAGRAM............................................................................... 55IV. MAINTENANCE IV. MAINTENANCE IV. MAINTENANCE IV. MAINTENANCE1 HARDWARE.................................................................................................................................... 591.1 COMPONENT LAYOUT......................................................................................................... 601.2 LED INDICATORS AND THEIR MEANINGS..................................................................... 61V. SUPPLEMENT V. SUPPLEMENT V. SUPPLEMENT V. SUPPLEMENTA SETTING BY USING A PERSONAL COMPUTER..................................................................... 65A.1 SETTING BY USING SOFTINGS DP-CONFIGURATOR.................................................. 66B EXAMPLE OF SETTING ............................................................................................................... 76B.1 EXAMPLE OF CONNECTION............................................................................................... 77TABLE OF CONTENTSB-63994EN/01c-2B.2 PROCEDURE OF SETTING................................................................................................... 79I. GENERALB-63994EN/01 GENERAL 1.GENERAL- 3 -1GENERALThismanualdescribesthePROFIBUS-DPfunctionsoftheFANUCSeries 30i-A.Thischapterexplainstheorganizationofthismanualandappliedmodels.1.GENERALGENERALB-63994EN/01- 4 -1.1ORGANIZATIONThis manual consists of the following parts:SAFETY PRECAUTIONSDescribestheprecautionswhichmustbeobservedwhenanyofthe functions explained in this manual is used.I. GENERALDescribestheorganizationofthismanual,andlistsapplicablemodels and related manuals.II. OPERATIONDescribeshowtosetthedatanecessarytoenablePROFIBUS-DP communication.III. CONNECTIONDescribeshowtoconnectdevicestoenablePROFIBUS-DPcommunication, as well as related precautions.IV. MAINTENANCEDescribesPROFIBUS-DPboarddrawingnumbersandthemeanings of LED indicationsV. SUPPLEMENTDescribessupplementalinformationsuchassettingfromapersonal computer.B-63994EN/01 GENERAL 1.GENERAL- 5 -1.2APPLICABLE MODELSThe models covered by this manual are as follows. The abbreviationslisted below may be used to refer to the corresponding models.Model name AbbreviationFANUC Series 30i-MODEL A 30i-A Series 30i-A 30i1.GENERALGENERALB-63994EN/01- 6 -1.3RELATED MANUALSThe related manuals are shown below.See also the following manuals together with this manual.Related manuals of Series30i/300i/300is -MODEL AManual nameSpecificationnumberDESCRIPTIONS B-63942ENCONNECTION MANUAL (HARDWARE) B-63943ENCONNECTION MANUAL (FUNCTION) B-63943EN-1USERS MANUAL (common to T series/M series) B-63944ENUSERS MANUAL (T series) B-63944EN-1USERS MANUAL (M series) B-63944EN-2MAINTENANCE MANUAL B-63945ENPARAMETER MANUAL B-63950ENB-63994EN/01 GENERAL 2.OVERVIEW OF PROFIBUS-DP FUNCTIONS- 7 -2OVERVIEW OF PROFIBUS-DPFUNCTIONSThemasterfunctionsoftheSeries30i-Asupportsclass1functions.(It cannot be used as class 2 functions).ThePROFIBUS-DPmasterfunctionsoftheSeries30i-Aareshownbelow.Overview of the Master FunctionRange of valid master stationnumbers0 to 125Range of valid slave stationnumbers for whichcommunication can beperformed3 to 125Maximum number of slavestations for whichcommunication is enabled48Maximum number of slots thatcan be set for each slavestation48(Total of 48)Maximum DI/DO data size perslave station244 bytes(Total of DI/DO)Maximum user parameter datasize per slave station201 bytesMaster functionsMaximum diagnose data sizeper slave station242 bytesII. SETTINGB-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 11 -1PROFIBUS-DP FUNCTIONS FOR 30i-AThis part describes how to set the master functions of FROFIBUS-DPcommunication. CAUTIONAfter setting DI/DO data, make sure communicationis performed correctly in a state in which security isretained.Operating the system without confirmation maycause a serious failure.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 12 -1.1MASTER FUNCTION SETTINGTo use the master function, bus parameters and slave parameters mustbe set, and addresses must be assigned.BusparametersandslaveparametersareusedforPROFIBUScommunication.Inaddressassignment,signalsforinput/output(DI/DO data and diagnostic data) are assigned to PMC addresses.The address assignment of slave parameters and diagnostic data is setfor each slave, while the address assignment of DI/DO data is set foreach slave (or each slot).NOTEBus parameters and slave parameters can also beset by a personal computer. For details on thesettings, see "SETTING BY USING A PERSONALCOMPUTER" in SUPPLEMENT.Procedure1 Press function key SYSTEM.2 Softkey[PROFIMASTER]appears.(Whentherearenosoftkeys, press the continue key.)3 Press soft key [PROFI MASTER] to display the PROFIBUS DP-MASTER screen.4 Presssoftkeys[BUSPARAM],[SLAVETABLE],[SLAVEPARAM],[MODULEDATA],and[DI/DOADDR]andthenentertheparametersforthesettingitemsofallsettingscreensthat appear.The following describes how to set the parameters.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 13 -BUS PARAMETER screenProcedure1 Presssoftkey[BUSPARAM]todisplaytheBUSPARAMETER screen.2 On the BUS PARAMETER screen, page keys PAGEPAGE can beused to switch between pages.3 Move the cursor to the item to set and then enter the parameter.- Set each parameter as described in the Setting item later.- Pressingsoftkey[INITIALIZE]initializestheotherbusparameters according to BAUDRATE.- ForMASTERUSERDATA,onlyaspecifiedsizeofdatacan be input.- CLASS2NAMEisaparameterthatisinputbyconnectedclass 2. It does not need to be input from this screen. BUS PARAMETER screen BUS PARAMETER screenBUS PARAMETER screen(CLASS2 NAME)(MASTER USER DATA)1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 14 -Setting itemItem DescriptionSTATION NO. Station number of this master deviceFieldbus Data Link AddressBAUDRATE Transfer rate( 0 : 9.6Kbps,1 : 19.2Kbps,2 : 93.75Kbps,3 : 187.5Kbps,4 : 500Kbps,6 : 1.5Mbps,7 : 3Mbps,8 : 6Mbps,9 : 12Mbps )BPFLAG User Interface FlagBit 7 :Error_Action_Flag0 : Does not change the operation mode if an erroroccurs.1 : Changes the operation mode from Operatemode to the Clear mode if an error occurs.Bits 6 to 0 : Reserved (to be set to 0)MINSLAVEINTMinimum slave interval for between two slave poll cycles(Unit: 100 s)POLLTIMEOUTPoll Timeout for the master-master communicationMaximum wait time after the issue of a request forcommunication between master stations until a responseis received. (Unit: 1 ms)DATACONTROLData Control TimeTime until the data transfer list is updated at least once.(Unit: 10 ms)TSL Slot TimeMaximum time from token frame transmission until thefirst character of a response frame is read. (Unit: Bit time)MINTSDR Minimum Station Delay Time of RespondersMinimum elapsed time from the last bit of send or receivedata to the first bit of the next send or receive data. (Unit:Bit time)MAXTSDR Maximum Station Delay Time of RespondersMaximum elapsed time from the last bit of send or receivedata to the first bit of the next send or receive data. (Unit:Bit time)TQUI Transmitter fall/Repeater switch TimeWait time after data transmission until the receiver can beoperated again. (Unit: Bit time)TSET Setup TimeTime after the occurrence of an event until the executionof the corresponding action is started. (Unit: Bit time)TTR Target Rotation TimeEstimated time required for a PROFIBUS token to makeone rotation. (Unit: Bit time)G Gap Update FactorNumber of tokens that rotate during a gap maintenanceperiod.HSA Highest Station AddressMaximum node number that is set for a PROFIBUSnetwork to be connected to.MAXRETRY Maximum Number of retriesB-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 15 -Item DescriptionCLASS2NAMEMaster Class2 NameName of the Master (class2) that created the busparameters.Note) This is a parameter set by a master station (class2).MASTERUSERDATAMaster User DataUser data area for bus parametersThis is not used by the current FANUC CNCs.Set LENGTH of MASTER USER DATA to 0.Remarks) Explanation of terms used in the above tableBit time : Time (sec) required to send one bit of dataataspecifiedtransferrate.Thisisequivalenttothereciprocalofatransferrate (bps).Gapmaintenanceperiod: PeriodduringwhichthelistformanagingtheaddressoftheconnectedMasterisupdated. (Unit: Bit time)Operation mode : OperationmodeofaPROFIBUSmasterfunction.Offline : Mode that disablescommunication with all nodesStop : Mode that enablescommunication with the MasterClear : Mode in which the output to theSlave is set to 0Operate : Mode that enables DI/DOcommunication with SlavesData transfer list : List with a 16-byte area. This list is held intheMastersothateachbitindicateswhetherdatatransfertoandfromeachofthenodesofstationnumbers0to125hasbeen performed (1) or not (0) (bits 6 and 7ofthe16thbytearenotused).Itcanberead by a master station of class 2.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 16 -Bus Parameter Settings Corresponding to Each Transfer RateBus parameter Setting(1) STATION NO. 0 to 125(2) BAUDRATE(Kbps) 187.5 500 1500 3000 6000 12000(3) BP FLAG 0 0 0 0 0 0(4) MIN SLAVE INT 1 1 1 1 1 1(5) POLL TIME OUT 1000 1000 1000 1000 1000 1000(6) DATA CONTROL 100 100 100 100 100 100(7) T SL 100 200 300 400 600 1000(8) MIN T SDR 11 11 11 11 11 11(9) MAX T SDR 60 100 150 250 450 800(10)T QUI 0 0 0 3 6 9(11)T SET 1 1 1 4 8 16(12)TTR 65000 65000 65000 65000 65000 65000(13)G 10 10 10 10 10 10(14)HSA 126 126 126 126 126 126(15)MAX RETRY 1 1 1 2 3 4(16)CLASS2 NAME This parameter need not be set.(17)MASTER USER DATA 0 0 0 0 0 0Viewing this table for parameter setting:First, determine thevalue of BAUDRATE.Then, setthe other parametersaccording totheset baud rate.NOTEFor multiple master communication, satisfy thefollowing conditions:- The value set for STATION NO. for a masterstation is not used as another master stationnumber.- The same values are set for bus parameters (2)and (7) to (15) for all master stations.- When a larger value is set for T SET, T SL islarger than T ID1.(T ID1 = 33 + 2 + 2 T SET + T QUI)B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 17 -SLAVE TABLE screenProcedure1 Press soft key [SLAVE TABLE] to display the SLAVE TABLEscreen.2 OntheSLAVETABLEscreen,pagekeys PAGEPAGEcanbeused to switch between pages.3 Move the cursor to the item to set and then enter the parameter.- Set the parameters for NO, NSL, DGN ADDR, and SIZ foreach index.SLAVE TABLE screen4 Use the following soft keys as needed.[ENABLE] :Enables the slave station on which the cursor is placed. "*"appearstotheleftofthestationnumber(NO)oftheslavestations for which communication is enabled.[DISABLE] :Disables the slave station on which the cursor is placed.[REFRESH] :Sorts slave stations in ascending order of slave number.Thelinesonwhichastationnumberisnotdisplayedareoccupied by the following data.[ AUTO (NO.) ] :Pressingsoftkey[AUTO(NO.)]afterenteringthenumberofstationssetscontiguousstationnumbersforIDXofthestationnumbersoftheslavestationonwhichthecursorisplaced and later stations.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 18 -[ AUTO (ADDR) ] :Whenpressingsoftkey[AUTO(ADDR)]aftersettingthediagnosticdatasizeofeachslaveDGNSIZandenteringthenumberofstations,PMCaddressesDGNADDRfordiagnosticdataofthevalidslavestationnumbersoftheslave station on which the cursor is placed and later stationsare assigned contiguously by the number of entered stations.When the slave station number or diagnostic data size is notdetermined, assignment is stopped at that point.[ DELETE] :Pressingsoftkey[DELETE]afterenteringthenumberofstationsdisablestheslavestationonwhichthecursorisplacedandlaterstationsbythenumberofstationsandinitializes them.NOTEDo not communicate with a slave station that sends243 or more bytes of diagnostic data.Display itemItem DescriptionIDX Index numberIndex numbers for 48 stations are provided (seeNOTE below).SLAVES Number of slave stations for whichcommunication is enabled.Setting itemItem DescriptionSet a slave number.For the slave stations for which communicationis enabled, "*" appears to the left of thisparameter. This parameter is set by soft keys[ENABLE] and [DISABLE].NOSetting range : 0 to 125Set the number of slots in which I/O modules areplaced.For details on a slot, see "Slot" later.NSLSetting range : 1 to 48 (Note)Set the start address of diagnostic data.For details on diagnostic data, see "Diagnosticdata" later.ADDRSetting range : See CAUTION below.Set the size of diagnostic data.DGNSIZSetting range : 0 to 242 (bytes)B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 19 - CAUTIONWhen assigning addresses, keep the following inmind.(1) Be sure to use R addresses and E addresses.For multipath PMC, enter a PMC address in thefollowing format.:For the PMC second path R00500, for example,"2:R00500" must be entered. When only thePMC address was entered, the first path(1:R00500) is assumed.When there is no : key, it is substituted with the/ or EOB key.(2) The DI data area, DO data area, diagnostic dataarea, and operation mode display area cannotoverlap each other.(3) The area assignment area and the area used bythe ladder program cannot overlap each other.NOTE1 The number of slots that can be set by this masterfunction is 48 in all of slave devices. For example, amaximum of 12 slave devices consisting of fourmodules can be connected.However, even for a slave device consisting ofmultiple modules, assignment for each slot is notrequired. Assignment for each slot is required onlywhen a PMC address is assigned for each moduleDI/DO.Even for a slave device consisting of multiplemodules, when DI/DO is treated as a totality, set aslave device consisting of a module (set NSL to 1).2 When settings are made as described in "SETTINGBY USING A PERSONAL COMPUTER" inSUPPLEMENT, NSL (number of slots) must also beset.SlotWhenanI/OdeviceconsistingofmultipleI/Omodulesisusedasaslavestation,alocationinwhichanI/Omoduleisplacediscalledaslot.Main bodymoduleI/O module I/O moduleI/OmoduleSlot number 0 Slotnumber 1Slotnumber 2Slotnumber nIn the figure above, NSL (number of slots) is n+1.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 20 -Modulesofsomeinput/outputdevicesdonotinputoroutputdata.However, such a module is counted as a slot.Diagnostic dataDiagnosticdataconsistsofstandarddiagnosticdata(firstsixbytes)andextendeddiagnosticdata(seventhorlaterbytes).Someslavestationsuseextendeddiagnosticdata.Therefore,thesizeofdiagnosticdataneedstobedeterminedasdescribedintheGSDfileand manual for each slave station.Thefirstsixbytesofstandarddiagnosticdatahavethefollowingmeanings.For details, see the PROFIBUS-DP specification.Standard diagnostic dataItem DescriptionSTATIONSTATUS1(Size: 1 byte)The state of a Slave is indicated.Bit 7: Diag.Master_LockThis bit indicates that the parameters of the Slave are set by another Master. Whenthe value of MASTER_ADDRESS is neither 255 nor the address of the Master, this bitis set by the Master.Bit 6: Diag.Prm_FaultThis bit is set by the Slave when the parameter data contains an error.Bit 5: Diag.Invalid_Slave_ResponseThis bit is set by the Master when incorrect data is received from the Slave.Bit 4: Diag.Not_SupportedThis bit is set by the Slave when the Slave receives an instruction that is not supportedby the Slave.Bit 3: Diag.Ext_DiagThis bit is set by the Slave when extended diagnose data can be used. The Master ofFANUC CNCs can reference up to 236 bytes of the extended diagnose data.Bit 2: Diag.Cfg_FaultThis bit is set by the Slave when the configuration data differs from the data held bythe DP-Slave.Bit 1: Diag.Station_Not_ReadyThis bit is set by the Slave when the Slave is not ready for data transfer.Bit 0: Diag.Station_Non_ExistentThis bit is set by the Slave when communication with the Slave is impossible.STATIONSTATUS2(Size: 1 byte)The state of a Slave is indicated.Bit 7: Diag.DeactivatedThis bit is set by the Master when communication with the Slave is disabled duringslave parameter setting.Bit 6: Reserved (undefined)Bit 5: Diag.Sync_ModeThis bit is set by the Slave when the Sync control command is received.Bit 4: Diag.Freeze_ModeThis bit is set by the Slave when the Freeze control command is received.Bit 3: Diag.WD_OnThis bit is set by the Slave when the disconnection detection function is operating.Bit 2: Reserved (set to 1 at all times)Bit 1: Diag.Stat_DiagIf this bit is set by the Slave, the Master reads the diagnose data until this bit is reset.Bit 0: Diag.Prm_ReqThis bit is set by the Slave when the parameters of the Slave need to be set again. Thesetting of this bit is held until the parameters are set again.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 21 -Standard diagnostic dataItem DescriptionSTATIONSTATUS3(Size: 1 byte)The state of a Slave is indicated.Bit 7: Diag.Ext_Diag_OverflowThis bit is set by the Master when there is much diagnostic data that cannot be storedin extended diagnostic data to be set on the slave table screen. This Master of FANUCCNCs can reference up to 236 bytes of the extended diagnose data.Bits 6 to 0: ReservedMASTERADDRESS(Size: 1 byte)This station number of the Master that set the parameter of the Slave is set (when thismaster device set the parameter, the station number of the maser is set).If the parameters are not set by the Master, 255 is set.IDENTNUMBER(Size: 2 bytes)The identification number of a Slave is set.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 22 -SLAVE PARAMETER screenProcedure1 Presssoftkey[SLAVEPARAM]todisplaytheSLAVEPARAMETER screen.2 On theSLAVEPARAMETER screenforeach slave,pagekeysPAGEPAGE can be used to switch between pages.3 Move the cursor to the item to set and then enter the parameter.- Set each parameter as described in the Setting item later.- ForUSERPARAMDATAandSLAVEUSERDATA,enter only the specified size of data.- TheCONFIGDATAvaluesareindicatedaccordingtothemodule data entered on the MODULE DATA screen shownlater.It does not need to be set on this screen. SLAVE PARAMETER screen SLAVE PARAMETER screenSLAVE PARAMETER screen(USER PRM DATA)(SLAVE USER DATA)B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 23 -SLAVE PARAMETER screen(CONFIG DATA)4 Use the following soft keys as needed.[PREVI SLAVE], [NEXT SLAVE] :Movestothenextorpreviousslavestation.Pressingsoftkey[PREVISLAVE]or[NEXTSLAVE]afterenteringastation number moves to the specified station number.[ INITIALIZE ] :Performs initialization according to the FANUC CNC slavestation.Display itemItem DescriptionSLAVE NO. Station number of the partner slave deviceThe value entered on the slave table screenis indicated.CONFIG DATA Configuration dataThe data is automatically calculated fromMODULE DATA specified for each slot.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 24 -Setting itemItem DescriptionIDENTNO. Identification number of a slave stationSpecify the identification number of a slavestation to connect to.SLAVETYPE Manufacturer-specified type indication for aslave stationWD FACT1, WD FACT2 Factor used to determine the time for brokenwire detection10WD_FACT1WD_FACT2(Unit: ms)MINTSDR Minimum time that elapses a response to themaster station (this master device) isreturned (Unit: Bit time)SLAVEFLAG Flag for setting communication with a slaveBit 7: ACT(ACTIVE)0: Does not perform communicationwith a slave station1: Performs communication with a slavestationBit 6: NPR(NEW PRM)0: Does not send new parameter datato a slave station1: Sends new parameter data to a slavestationRSV: Reserved (to be set to 0)STATION STATUS Flag for setting the operation condition of aslaveBit 7: LOC (LOCK REQ)Bit 6: UNL (UNLOCK REQ)When LOC = 1 and UNL = 0, DP-Salveparameters cannot be changed by DP-Master.When LOC = 0 and UNL = 1, DP-Salveparameters can be changed by DP-Master.Bit 5: SYN (SYNC REQ)Be sure set 0.Bit 4: FRZ (FREEZE REQ)Be sure set 0.Bit 3: WD (WD REQ)When WD = 1, broken wire detection isperformed.RSV : Reserved (to be set to 0)GROUPIDENT Specify groups for the DDLM_Global_Controlcommand. Up to eight groups can bespecified because each bit represents agroup.USERPARAMDATA User parameter data.This data is specified by a manufacturer.SLAVEUSERDATA Slave user data.This data is specified by a manufacturer.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 25 -Remarks) Explanation of terms used in the above tableBroken wiredetection: This function check whether data exchangeisperformednormallybetweenamasterstation and a slave station.An error occurs when the broken wire timecalculatedwithWDFACT1andWDFACT2elapseswithoutreceivingadataexchange request from the master station.Bit time : Time (sec) required to send one bit of dataataspecifiedtransferrate.Thisisequivalenttothereciprocalofatransferrate (bps).NOTESlave parameters must be set as described in theGSD file that comes with each slave device.Slave parameters can also be set as described in"SETTING BY USING A PERSONAL COMPUTER"in SUPPLEMENT1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 26 -MODULE DATA screenProcedure1 Presssoftkey[MODULEDATA]todisplaytheMODULEDATA screen.2 Onthemoduledatascreenforeachslot,pagekeys PAGEPAGEcan be used to switch between slots.3 Set the size for LENGTH and then enter data.MODULE DATA screen4 Use the following soft keys as needed.[PREVI SLAVE], [NEXT.SLAVE] :Pressing soft key [PREVI SLAVE] moves the cursor to thefirstslotofthepreviousslavestation.Pressing[NEXTSLAVE] moves the cursor to the first slot of the next slavestation.Pressingsoftkey[PREVISLAVE]or[NEXTSLAVE]afterenteringastationnumbermovesthecursorto the first slot of the specified station number.[PREVI SLOT], [NEXT SLOT] :Pressing soft key [PREVI SLOT] moves to the previous slot.Pressingsoftkey[NEXTSLOT]movestothenextslot.Pressingsoftkey[PREVISLOT]or[NEXTSLOT]afterentering a slot number moves to the specified slot.[ SHIFT ] :Pressingsoftkey[SHIFT]switchesthevaluebetweenONand OFF. Normally select ON.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 27 -Display itemItem DescriptionSLAVE NO Station number of a slave stationSLOT NO Slot numberMAX The maximum allowable MODULE LENGTH isindicated. The total size that can be set within thesame slave station is 128 bytes.Setting itemItem DescriptionSet the data length of the keyword Module in theGSD file.MODULE LENGTHSetting range : 0 to 128 (bytes)NOTE) The total size that can be set within thesame slave station is also 128 bytes.MODULE = Set the data (HEX data) of the keyword Module inthe GSD file.SHIFT Soft key [SHIFT] switches between ON and OFF.ON : Newly reserves the area with a size of thespecified MODULE LENGTH. Normallyselect this option.OFF : Does not newly reserves the area with a sizeof the specified MODULE LENGTH. See thefollowing NOTE.NOTEMODULE LENGTH needs to be set even whensettings are made as described in "SETTING BYUSING A PERSONAL COMPUTER" inSUPPLEMENT. In this case, since data of Module isalready entered, however, switch SIHFT to OFF andenter only MODULE LENGTH.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 28 -Example of setting module dataExample)Thefollowingshowsanexampleofsettingaslavedevice(station number 3) consisting of four modules.[Placement of modules]Main bodymodule(NO I/O)I/O module(TYPE A)I/O module(TYPE B)I/O module(TYPE A)Slot number 0 Slot number1Slot number2Slot number3 [Types of modules]- Main body module: No input/output- I/O module (TYPE A) : Input 1 byte/Output 1 byte- I/O module (TYPE B) : Only output 1 byteThekeywordModuleintheGSDfileisassumedtobedescribed as follows.::Module = NO I/O 0x00EndModuleModule = TYPE A0x10, 0x20EndModuleModule = TYPE B 0x20EndModule::Contents of the GSD fileIntheexampleabove,thesettingsofthemoduledatascreensareasfollows.SLAVE NO/ SLOT NO Setting valueSLAVE NO. = 3SLOTNO. = 0MODULE LENGTH = 1MODULE= 00SLAVE NO. = 3SLOTNO. = 1MODULE LENGTH = 2MODULE= 10 20SLAVE NO. = 3SLOTNO. = 2MODULE LENGTH = 1MODULE= 20SLAVE NO. = 3SLOTNO. = 3MODULE LENGTH = 2MODULE= 10 20NOTESince modules that can be set are listed in the GSDfile, select and set an appropriate one from Modulekeywords based on the module to use.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 29 -DI/DO ADDRESS screenProcedure1 Press soft key [DI/DO ADDR] to display the DI/DO ADDRESSscreen.2 Page keys PAGEPAGE can be used to switch between pages.3 Make sure the SLT (TYP) value for each slot is correct.4 SettheDI/DOaddresses(DIADDRandDOADDR)andthesizes (DI SIZ and DO SIZ) for each slot.DI/DO ADDRESS screenDisplay itemItem DescriptionNO Station number of a slave stationSLT(TYP) The slot number and the type of the specifiedmodule is indicated.The status of the module is displayed based onthe module data set on the module data screen.TOTAL SLOTS Total number of slots including those for allslaves currently set (up to 48)Check the SLT (TYP) indication is one of the following normal states(a) to (e).When the indication is (f) or (g), set correct module data again.Description of SLT (TYP)(a) - - - : "---": No module(Same as when MODULE LENGTH = 0)(b) I / - : Input module(c) - / 0 : Output module(d) 2I / 0 :Input/output module(e) 2- / - : Module without DI/DO(SameaswhenMODULELENGTH=1andMODULE = 00)1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 30 -(f) OVR : DI SIZE + DO SIZE exceeds 244 bytes.(g) ERR : The data assigned to "MODULE =" does not adhere tothe PROFIBUS specification.Setting itemItem DescriptionSet the first addresses of DI and DO. DI ADDRDO ADDR Setting range : See CAUTION below.Set the sizes of DI data and DO data. DI SIZDO SIZ Setting range : 0 to 244 (bytes) CAUTIONWhen assigning addresses, keep the following inmind.(1) Be sure to use R addresses and E addresses.For multipath PMC, enter a PMC address in thefollowing format.:For the PMC second path R00500, for example,"2:R00500" must be entered. When only thePMC address was entered, the first path(1:R00500) is assumed.When there is no : key, it is substituted with the/ or EOB key.(2) The DI data area, DO data area, diagnostic dataarea, and operation mode display area cannotoverlap each other.(3) The area assignment area and the area used bythe ladder program cannot overlap each other.NOTEThe maximum DI/DO transfer size per slave stationis 244 bytes in all of DI/DO.In addition, the slots for which communication isenabled are those of the slave stations for whichcommunication is enabled on the SLAVE TABLEscreen.The slave station for which communication isenabled is indicated by "*" to the left of the slavestation number on the slave table screen. The slotsfor which communication is enabled are indicated by"---", "I/O", "I/-", "-/O", or "-/-" in the (TYP) field on theDI/DO ADDRESS screen.5 Use the following soft keys as needed.[PREVI SLAVE], [NEXT SLAVE] :Pressing soft key [PREVI SLAVE] moves the cursor to thefirstslotofthepreviousslavestation.Pressing[NEXTB-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 31 -SLAVE] moves the cursor to the first slot of the next slavestation.Pressingsoftkey[PREVISLAVE]or[NEXTSLAVE]afterenteringastationnumbermovesthecursorto the first slot of the specified station number.[INSERT] :Adds a new slot before the slot number on which the cursoris placed.[ DELETE ] :Deletestheslotonwhichthecursorplacedandmovesupthe following slots. [AUTO (SIZE)] :Automatically sets the DI/DO size "DI SIZ, DO SIZ" for theslotsfollowingthecursorbasedonthemoduledata.Thesettings are made only for the slots in the same slave.[ AUTO (ADDR) ] :Whenpressingsoftkey[AUTO(ADDR)]aftersettingtheDI/DOaddressoftheslotsonwhichthecursorisplaced,thissoftkeyassignstheaddresses(DIADDRandDOADDR)ofthefollowingslotsbasedonthespecifiedaddressandsize.Thesesettingsarevalidonlywithinthesame slave station.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 32 -STATUS INFORMATION screen1 Press soft key [STATUS] to display the STATUS screen.STATUS INFORMATION screenDisplay itemItem DescriptionREFRESH TIME Refresh time (Unit : ms)See NOTE below.CURRENT MODE Indicates the current mode.PARAMETER ERR1PARAMETER ERR2Indicates the error number related to parametersettings.Indicates the number of the slave on which anerror occurred.(When there are multiple slave stations on whichan error occurred, the smallest station number isindicated.)INTERNAL ERR1, 2 Indicates the internal error occurred between theCNC and the PROFIBUS board.Description of PARAMETER ERR10000 : Normal (ERR2 is not used.)0001 : WhentheDI/DOtotalsizeinaslavestationexceeds244bytes.0002 : When no modules are set in a slave station.0003 : Whentheamountofdataintheslaveparameterinaslavestation exceeds the allowable range.0004 : When invalid module data is set in a slot.(ThehighbyteandlowbyteofERR2indicatesthecorrespondingslavestationnumberandslotnumber,respectively.Whentherearemultipleslots,thesmalleststation number and slot number are indicated.)B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 33 -NOTEThe data refresh time represents time require forupdating DI/DO data for all slave stations assignedto PMC addresses by address assignment.- The data refresh time does not include the timerequired for processing the ladder program.- The response time from when the master devicesends DO data to when it receives the DO dataas DI data after the DO data is returned by aslave device must be estimated as at least doublethe data refresh time.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 34 -OPERATION MODE screen1 Presssoftkey[MODE]todisplaytheOPERATIONMODEscreen.OPERATION MODE screen2 ToselecttheSTOPmode,CLEARmode,orOPERATEmodedefinedinthePROFIBUSspecification,asoperationmode,press soft key [STOP], [CLEAR], or [OPERATE], respectively.The setting order must be [OPERATE] [CLEAR] [STOP]or [STOP] [CLEAR] [OPERATE].3 To indicate the current operation mode to a PMC address, set the1-byte address for INDICATION ADDRESS.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 35 -The following describes each mode and the identification valuesused when giving notification to a PMC address.Description of each mode and identification valuesItem DescriptionIn this mode, communication with all nodes isdisabled.OFFLINEIdentification value : 0x00In this mode, communication with anothermaster station (such as class 2 station) isenabled.Communication with a slave station is disabled.STOPIdentification value : 0x40In this mode, output (DO) is cleared for all slavestations for which communication is enabled.CLEARIdentification value : 0x80In this mode, DI/DO communication is beingperformed for all slave stations for whichcommunication is enabled.OPEARTEIdentification value : 0xC0 CAUTIONWhen assigning addresses, keep the following inmind.(1) Be sure to use R addresses and E addresses.For multipath PMC, enter a PMC address in thefollowing format.:For the PMC second path R00500, for example,"2:R00500" must be entered. When only thePMC address was entered, the first path(1:R00500) is assumed.When there is no : key, it is substituted with the/ or EOB key.(2) The DI data area, DO data area, diagnostic dataarea, and operation mode display area cannotoverlap each other.(3) The area assignment area and the area used bythe ladder program cannot overlap each other.4. Use the following soft keys as needed.[INITIALIZE] :Disables notification to a PMC address.In this case, "-----" appears in the INDICATION ADDRESSfield.(The notification is disabled during initial setup.)1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 36 -NOTEKeep the following in mind about operation modes.(1) If the power is turned on when there are one ormore active slave stations, the OPERATE modeis automatically selected during startup, wherean active slave station represents the slavestation for which communication is enabled onthe slave parameter screen and Active andNew_Prm of SLAVE FLAG on the slaveparameter screen are set to 1.(2) Otherwise, that is, if the power is turned onwhen there are no active slave stations, theSTOP mode is automatically selected duringstartup.(3) A FANUC master station cannot be switched tothe OFFLINE mode manually.When the OFFLINE mode is selectedimmediately after power-up, check thecommunication settings again.B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 37 -1.2UPDATING DI/DO DATA FOR THE MASTER FUNCTIONRelationship with the ladder programDI/DO data for PROFIBUS is updated not in synchronization with theexecutionoftheladderprogram.Therefore,keepthefollowinginmind when creating a ladder program. CAUTIONDI/DO data for PROFIBUS is updated not insynchronization with the execution of the ladderprogram. Therefore, keep the following in mindwhen creating a ladder program. When the input signal of PROFIBUS is read attwo points in the ladder program, even though theread operation is completed in the same cycle ofthe ladder program, there is no guarantee that thesame value will be read. When the ladder program writes the PROFIBUSoutput signal in the specified PMC address, thesignal may be transferred to a slave device beforethe ladder program is completely executed.1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 38 -1.3GSD FILE FOR THE MASTER FUNCTIONTheGSDfileforthemasterstationoftheFANUCCNCisshownbelow.GSD file for the master function#Profibus_DPVendor_Name = "FANUC"Model_Name = "FANUC CNC"Revision = "1.0"Ident_Number = 0x00CBProtocol_Ident= 0Station_Type = 1FMS_supp = 0Hardware_Release = "Release 1.0"Software_Release = "Release 3.0"9.6_supp = 119.2_supp = 193.75_supp = 1187.5_supp = 1500_supp = 11.5M_supp = 13M_supp = 16M_supp = 112M_supp = 1MaxTsdr_9.6 = 60MaxTsdr_19.2 = 60MaxTsdr_93.75= 60MaxTsdr_187.5 = 60MaxTsdr_500 = 100MaxTsdr_1.5M = 150MaxTsdr_3M = 250MaxTsdr_6M = 450MaxTsdr_12M= 800Redundancy = 0Repeater_Ctrl_Sig= 224V_Pins = 0;B-63994EN/01 SETTING1.PROFIBUS-DP FUNCTIONS FOR 30i-A- 39 -; Master specific parameters;Download_supp = 1Upload_supp = 1Act_Para_Brct_supp = 1Act_Param_supp = 1Max_MPS_Length = 65532Max_Lsdu_MS = 244Max_Lsdu_MM = 244Min_Poll_Timeout = 100;Trdy_9.6 = 11Trdy_19.2 = 11Trdy_93.75 = 11Trdy_187.5 = 11Trdy_500 = 11Trdy_1.5M = 11Trdy_3M = 11Trdy_6M = 11Trdy_12M = 11;Tqui_9.6 = 0Tqui_19.2 = 0Tqui_93.75 = 0Tqui_187.5 = 0Tqui_500 = 0Tqui_1.5M = 0Tqui_3M = 3Tqui_6M = 6Tqui_12M = 9;Tset_9.6 = 1Tset_19.2 = 1Tset_93.75 = 1Tset_187.5 = 1Tset_500 = 1Tset_1.5M = 1Tset_3M = 4Tset_6M = 8Tset_12M = 16;1.PROFIBUS-DP FUNCTIONS FOR 30i-ASETTING B-63994EN/01- 40 -LAS_Len = 32;Tsdi_9.6 = 70Tsdi_19.2 = 70Tsdi_93.75 = 70Tsdi_187.5 = 70Tsdi_500 = 150Tsdi_1.5M = 200Tsdi_3M = 250Tsdi_6M = 450Tsdi_12M = 800;Max_Slaves_supp = 32;III. CONNECTIONB-63994EN/01 CONNECTION 1.CONNECTING THE PROFIBUS FUNCTIONS- 43 -1CONNECTING THE PROFIBUSFUNCTIONSThischapterprovidesanexplanationofhowtoconnectthePROFIBUS-DP. CAUTIONIsolating the PROFIBUS cables from noise sources.The PROFIBUS cables are of the group Cclassification.Refer to the Section Action against noise in the"Connection Manual (Hardware) " for an explanationof how to isolate the PROFIBUS cables from cablesof the group A and B classifications.1.CONNECTING THE PROFIBUS FUNCTIONS CONNECTION B-63994EN/01- 44 -1.1PROFIBUS CONNECTIONExample of a PROFIBUS-DP system with a single DP-MasterUp to 48 DP-Slaves can be connected to a single DP-Master(Class1).DP-Master(Class1) #1#N #6 #5 #4 #3

DP-SlavesB-63994EN/01 CONNECTION 1.CONNECTING THE PROFIBUS FUNCTIONS- 45 -1.2PROFIBUS CABLE AND TRANSFER RATEPROFIBUS communication uses shielded twisted-pair cable.The cable must satisfy the requirements listed below.Item RatingCharacteristic impedance 150 (f < 2 MHz)Capacitance < 30 nF/KmResistance < 110 /KmWire gauge > 0.64 mmConductor cross-sectional area > 0.34 mm2Recommended cableSINEC L2 Bus cable 6XV1 830-0AH10,manufactured by SIEMENSThemaximumallowablebuscablelengthvariesdependingonthetransferrateforwhichthecableisused.Determinethelengthfromthe following table.Baud rate (kbps) 9.6 to 93.75 187.5 500 1500 3000 to 12000Maximum allowableoverall cable length (m)1200 1000 400 200 1001.CONNECTING THE PROFIBUS FUNCTIONS CONNECTION B-63994EN/01- 46 -1.3CONNECTORNine-pin D-Sub female connector CAUTIONThe VP and CNTR-P pins are used for controlling arepeater. Do not connect these pins to anythingunless a repeater is used. Otherwise, damage to thedevice is likely. If you want to use these pins, consultwith FANUC beforehand.You can use the following cable-end connector to perform wiring andterminate the cable easily.Cable-end connector:SUBCON-PLUS-PROFIB, manufactured by Phoenix Contact, orequivalentForcable-endconnectormanufacturedbyPhoenixContact,thedirection from which a cable is drawn can be changed in units of180 degrees.10163544.560Outside Dimensions of the SUBCON-PLUS-PROFIB Connector6 VP78 RxD/TxD (-)91 PE23 RxD/TxD (+)45 CNTR-PPE :ShieldingRxD/TxD (+) : Transmission/receptiondata (+)CNTR-P :Not used (repeater control)DGND :Signal groundVP :Not used (+5V output)RxD/TxD (-):Transmission/receptiondata (-)B-63994EN/01 CONNECTION 1.CONNECTING THE PROFIBUS FUNCTIONS- 47 -Cable-end connector:S7SINECL2busconnector6ES7972-0BA11-0XA0,manufactured by Siemens, or equivalent35.6 15.828.464.035.0Outside Dimensions of the S7 SINEC L2 Bus ConnectorNOTEWhen the bus connector 6ES7 972-0BA11-0XA0 isused with the LCD-mounted type unit, the cablemust be drawn upward as shown below. Whenusing this connector, note the direction of cable. Ifthe cable needs to be drawn downward, use theconnector manufactured by Phoenix ContactWhenthecableisassembledwiththeconnector,refertotheaccompanying manual.NOTEThe shape, dimensions, and other characteristics ofthe connector are subject to change without notice.1.CONNECTING THE PROFIBUS FUNCTIONS CONNECTION B-63994EN/01- 48 -1.4CABLE CONNECTIONConnect the PROFIBUS cable as shown in the following diagram.PROFIBUSA Station at theprevious stageBCNCShieldShield(03)(08)ABD-sub connectorPROFIBUSA Station at thenext stageBConnecttwowirestoeachofthepinsNos.3and8oftheD-Subconnector.A:RxD/TxD (+)B:RxD/TxD (-)For a bus connector manufactured by Siemens and Phoenix ContactCNCShieldShield(A1)ABBus connector(B1)(A2)(B2)PROFIBUSA Station at theprevious stageBPROFIBUSA Station at thenext stageBThe bus connector has an internal mechanism to connect two wires.A:RxD/TxD (+)B:RxD/TxD (-)Shielding treatmentClamp both the cable drawn from the station at the previous stage andthat leading to the station at the next stage on the CNC side.Foranexplanationofhowtotreatthecableateachstation,refertothe respective manuals for the stations.B-63994EN/01 CONNECTION 1.CONNECTING THE PROFIBUS FUNCTIONS- 49 -1.5TERMINATING RESISTOREach end of the bus cable must be terminated with a resistor as shownbelow.Ru=390, 1/4WRt=220, 1/4WRd=390, 1/4WVP(6)RxD/TxD(+)(3)RxD/TxD(-)(8)DGND(5)SincetheconnectormanufacturedbyPhoenixContactorSiemensincludetheterminatorsabove,theswitchontheconnectorcanbeused to enable or disable the terminators. In a configuration as shownbelow, turn on the switches of the connectors for stations #3 and #6.#3 #7 #4 #5 #1 #61.CONNECTING THE PROFIBUS FUNCTIONS CONNECTION B-63994EN/01- 50 -1.6CABLE SHIELDINGClamp the PROFIBUS bus cable as shown in the following diagram.Theclampingmethodshownbelowhastwopurposes:Cablefasteningandshielding.Itisveryimportanttoclampthecabletomaintain stable system operation; do not forget to clamp the cable.Asshownbelow,removepartofthecablesheathtoexposetheshielding conductor, and clamp the exposed shielding portion againstthe grounding plate with the clamping fixture.Grounding plateCableCable clampGroundingplateCable sheathShieldingB-63994EN/01 CONNECTION 2.INSTALLATION- 51 -2INSTALLATIONThischapterprovidesinformationrequiredtoinstallthePROFIBUSmaster board.2.INSTALLATION CONNECTION B-63994EN/01- 52 -2.1SPECIFICATIONThissectiondescribesthehardwarespecificationofthePROFIBUSmaster board.Order specification A02B-0303-J311Board number A20B-8101-0050Applied model FANUC Series 30i-ANOTEWhen using the board, it is necessary to adhere tothe installation condition (the environmentalcondition in the cabinet) of the CNC control unit inwhich the board is installed.TheheatingvalueofthePROFIBUSboardisshownbelow.FortheheatingvaluesoftheCNCbodyandotheroptionunits,refertotheconnection manual of the CNC.Name Heating valuePROFIBUS Master board 6WB-63994EN/01 CONNECTION 2.INSTALLATION- 53 -2.2MountingThissectionprovidesinformationonmountingofthePROFIBUSboard for the Series 30i-A.2.2.1Mounting into the LCD-mounted Type UnitTheboardismountedintoanoptionslotofthecontrolunit.Itoccupies one slot. The option slot does not have mounting limitations.PROFIBUS Masterboard2.INSTALLATION CONNECTION B-63994EN/01- 54 -2.2.2Mounting into the Stand-alone Type UnitTheboardismountedintoanoptionslotofthecontrolunit.Itoccupies one slot. The option slot does not have mounting limitations.B-63994EN/01 CONNECTION 2.INSTALLATION- 55 -2.3COMPLETE CONNECTION DIAGRAMAnoverviewofthecompleteconnectionisshownbelow.Forconnectionsthatarenotshowninthefigurebelow,refertothe"Connection Manual (Hardware)" of the CNC main unit.DP-Slave#5DP-Slave#4DP-Slave#3Option slotCNC main boardPROFIBUSMaster boardCN1CNC systemDP-Master#1Network PROFIBUSIV. MAINTENANCEB-63994EN/01 MAINTENANCE1.HARDWARE- 59 -1HARDWAREThischapterprovidesmaintenanceinformationonthehardwareofthe PROFIBUS board for the Series 30i.1.HARDWAREMAINTENANCE B-63994EN/01- 60 -1.1COMPONENT LAYOUTMPULSICN1DC/DCconverterLSIOrdering informationName Specification RemarksPROFIBUS Master board A20B-8101-0050B-63994EN/01 MAINTENANCE1.HARDWARE- 61 -1.2LED INDICATORS AND THEIR MEANINGSLED1LED2CN1NOTEThe face plate is indicated by the broken line.Name Color DescriptionLED1 Green Indicates whether the CPU of this board has beenactivated.Lit if the CPU has been released from the reset state andactivated.The LED does not go on when the power is turned on.LED2 Green Indicates whether normal communication is performed.Lit if normal communication is performed.Not lit if communication is not performed.The LED does not go on when the power is turned on.V. SUPPLEMENTB-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 65 -ASETTING BY USING A PERSONALCOMPUTERTosetthecommunicationparametersforaFANUCmasterstation,youcanusePROFIBUSDP-Configurator(toolrunningonaPC)manufactured by Softing as well as the local station.This chapter explains how to set the communication parameters usingPROFIBUS DP-Configurator. For details, refer to the PROFIBUS-DPConfigurator manual. CAUTIONIn remote downloading, the bus parameters andslave parameters set on a FANUC master stationare overwritten.In addition, PROFIBUS-DP Configurator cannotperform address assignment for diagnostic data andDI/DO, and cannot set slot information (number ofslots and module data length). Upon completion ofremote downloading, make settings on the SLAVETABLE screen, DI/DO ADDRESS screen, andMODULE DATA screen and then turn the power offand on again.A.SETTING BY USING A PERSONAL COMPUTER SUPPLEMENT B-63994EN/01- 66 -A.1SETTING BY USING SOFTINGS DP-CONFIGURATORForaFANUCmasterstation,youcanusePROFIBUS-DPConfigurator manufactured by Softing to remotely download bus andslave parameters.SoftingPROFIBUS-DPConfiguratoriscurrentlysupportedbythefollowing two I/F board products:- PROFIboard (Board for ISA/PCI slot)- PROFIcard (Board for PCMCIA)- PROFIcard (Board for PCMCIA) CAUTIONOn Windows NT 4.0, the remote communicationparameter download function cannot be used. UseSofting PROFIBUS-DP Configurator on Windows3.1, Windows 95, or Windows 98.Initial setting of PROFIBUS-DP Configurator(1) MountaPROFIboardorPROFIcardonyourpersonalcomputeraccordingtotheinstructionsdescribedinthecorrespondingmanual.(2) InstallPROFIBUS/DPDMKpackage,whichisanI/Fboarddriver provided by Softing.(3) InstallPROFI-KON-DP,whichisPROFIBUS-DPConfiguratorsoftware provided by Softing.NOTEDp_Konf.exe, execution file installed in step (3),uses papi_l.dll (.../Win95sdk/papi/lib16), dll fileinstalled in step (2). For this reason, remember tocopy papi_l.dll into the directory containingDp_Konf.exe or set an environment variable.B-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 67 -(4) Open PROFIBUS on the Control Panel. Screen A-1 is displayed.Select PROFIboard or PROFIcard in the tree and click Add, thenmake settings for the I/F board.WhenPROFIcardisselectedandsettingterminatesnormally,Screen A-1 below is displayed.Screen A-1NOTECheck that a green check mark is displayed for theset I/F board as shown in Screen A-1. If a red crossis displayed for the set I/F board, proper remotedownloading cannot be performed. In this case,check the installed software again.Green checkA.SETTING BY USING A PERSONAL COMPUTER SUPPLEMENT B-63994EN/01- 68 -(5) StartPROFIBUS-DPConfiguratorandopenOptions,thenPCInterface. Screen A-2 is displayed.On Screen A-2, select an I/F board type for PROFIBUS Interfaceunder Type.When PROFIcard is selected, Screen A-2 below is displayed.Screen A-2NOTEWhen the I/F board type is PROFIcard, set a file forLoadcard INI under Hardware Setup Files. The file isstored on cardinst (dos/loadcard.ini) which is afloppy disk provided by Softing. Specify the file.AgeneralinitialsettingprocedureforusingPROFIBUS-DPConfigurationisshownabove.Ageneraloperationprocedureforremote downloading is shown below.Operation procedure on a FANUC master station(1) Pressfunctionkey SYSTEMandthenpresssoftkey[PROFIMASTER] to display screen A-3. Screen A-3B-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 69 -(2) On screenA-3, presssoftkey [(OPRT)]andthen presssoftkey[ALL INIT].All of bus parameters, slave parameters, and address assignmentare initialized.(3) Turn off the CNC power and on again to display screen A-3 andthen press soft key [MODE].WhenscreenA-4appears,makesureSTOPisindicatedtotheright of CURRENT MODE.Screen A-4Now,remotedownloadingontheFANUCmasterstationisready to be performed.PROFIBUS-DP Configurator operation procedure(1) Start PROFIBUS-DP Configurator. Screen A-5 is displayed.Screen A-5A.SETTING BY USING A PERSONAL COMPUTER SUPPLEMENT B-63994EN/01- 70 -(2) Open DDB, then Import. Screen A-6 is displayed.Screen A-6On this screen, click Add to select the GSD file for each device(masterorslavestation)tobeusedforPROFIBUS-DPConfigurator.When the GSD file for each device is read correctly, it is addedto Import DDB list on Screen A-6.(3) Open Project, then New Project. Screen A-7 is displayed.Screen A-7B-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 71 -(4) SelectamasterstationforremotedownloadingfromMasterSelectionListunderDDBSelectionListonScreenA-7.ScreenA-8 is displayed.These parametersare usedas thebus parametersto beremotelydownloaded.Screen A-8On Screen A-8, set values for Station Address and Baudrate. CAUTIONFor Softing PROFIBUS-DP Configurator, the defaultTTR value is 50000. Click Edit and change the TTRvalue to 65000.(5) SelectaslavestationforremotedownloadingfromSlaveSelectionListunderDDBSelectionListonScreenA-7.ScreenA-9 is displayed.These parameters are used as the slave parameters to be remotelydownloaded.Screen A-9A.SETTING BY USING A PERSONAL COMPUTER SUPPLEMENT B-63994EN/01- 72 -On Screen A-9 set a value for Station Address. CAUTIONOn Screen A-9, there are an item for settingConfiguration Data on the Modules tab and an itemfor setting User Param Data on the Settings tab.Note that there is the following restriction on settingof these two parameters for a FANUC masterstation:configuration-data-length + user-param-data-length 204 bytesThese parameter lengths are described in the GSDfile for each slave station. See the GSD file.(6) Select the Modules tab on Screen A-9. Screen C-11 is displayed.Screen A-10Onthisscreen,selectamodulenamefromAvailableModulesand click Add. The selected module is added to Current Slots.This parameter is equivalent to slave parameter CONFIG DATAfor a FANUC master station.The format for the FANUC slave stations is used for the modulenames in Available Modules on Screen A-10. CAUTIONFor a FANUC slave station, set only one item forCurrent Slots.B-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 73 -(7) Select the Settings tab on Screen A-10. Screen A-11 is displayed.Screen A-11Set each parameter on Screen A-11 when required. CAUTIONFor setting for a FANUC slave station, change thevalues for the following two parameters:- Set 55 for Min. Station Delay Responder on ScreenC-12.- With PROFIBUS-DP Configurator, the value set forWatchdog Time cannot be changed. After remotedownloading, set WD FACT1 = WD FACT2 = 10directly on the slave parameter setting screen of theFANUC master station.(8) Then,setthebusparameterstobeusedwhenPROFIBUS-DPConfigurator is used as a class-2 master station.Open Options, then Busparameter Master Class2 on Screen A-7.Screen A-12 is displayed.Screen A-12A.SETTING BY USING A PERSONAL COMPUTER SUPPLEMENT B-63994EN/01- 74 - CAUTIONPay careful attention to the following points:- The station number specified for Station Address onScreen A-12 is used when PROFIBUS-DPConfigurator is attached to the network. For thisreason, do not specify the station numbers of theFANUC master station and other master and slavestations on the network.- Set the same baud rate as for the FANUC masterstation or another master station on the network.- When the baud rate is 19.2 or 9.6 kbps, set 10000[msec] for Poll Timeout of PROFIBUS-DPConfigurator. At this time, the values set for PollTimeout for the FANUC master station or anothermaster station on the network need not be changed.(9) Then, click Edit on Screen A-12. Screen A-13 is displayed.Screen A-13B-63994EN/01 SUPPLEMENTA.SETTING BY USING A PERSONAL COMPUTER- 75 - CAUTIONPay careful attention to the following two points: For Softing PROFIBUS-DP Configurator, thedefault TTR value is 50000. Change the TTRvalue to 65000. Change the values of the following threeparameters on Screen C-14 only when the baudrate is 12 Mbps:- Min. St. Delay Resp. : 11 13- Max. St. Delay: 800 802- Quiet Time : 9 12At this time, the values set for these threeparameters for the FANUC master station oranother master station on the network need notbe changed.(10) Select Download, then Remote. Remote downloading starts.Thebusparametersandslaveparametersareautomaticallydownloaded in this order.Now,busparametersandslaveparametershavebeensetbyapersonal computer.TheaddressassignmentfordiagnosticdataandDI/DOaswellassettingofslotinformation(numberofslotsandmoduledatalength)cannot be performed. Upon completion of remote downloading, makesettingsontheSLAVETABLEscreen,DI/DOADDRESSscreen,andMODULEDATAscreenandthenturnthepoweroffandonagain.B.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 76 -BEXAMPLE OF SETTINGThischapterexplaintheexampleofsettingsforconnectingslavedevices.Intheexample,SETTINGBYUSINGAPERSONALCOMPUTERofV.1isutilized.Iftheconfiguratorisnotused,pleaseinputtheparameterstoCNCscreendirectly,referringtothefigures of this chapter.B-63994EN/01 SUPPLEMENT B.EXAMPLE OF SETTING- 77 -B.1EXAMPLE OF CONNECTIONThe example of setting explains according to the following system.Example of connectionRemarkIn this example, the following WAGOs I/O system is used asthe instance of a remote I/O device.750-333 (Communication module)750-402 (4 channel DI module)750-402 (4 channel DI module)750-504 (4 channel DO module)750-504 (4 channel DO module)750-600 (Terminal module)As for the settings of your system, please set-up according toyour slaves, referring to this example.Series30i-AactsasMaster,anditconnectswithPowerMatei-D(Slave #3) and Remote I/O devices (Slave #4 and #5).As for Slave #4 which consists of four I/O modules, each I/O moduleisassignedtoPMCaddressof30i-Aseparately.Meanwhile,I/OsofSlave #5 is assigned to PMC address lumped together.Remote I/O deviceDP-Slave#4Series 30i-A(DP-Master#1)Power Matei-DDP-Slave#3DI: 64 signalsDO: 64 signalsDI: 8 signalsDO: 8 signalsDI: 8 signalsDO: 8 signalsPROFIBUS networkRemote I/O deviceDP-Slave#5B.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 78 -DI/DO signals are assigned to PMC addresses as follows.Slave DI DO Diagnostic dataSlave No. Slot No. Address Size Address Size Address Size#3 0 R00100 8 R00200 8 R00300 6#4 0 0 01 R00110 1 02 R00120 1 03 0 R00210 14 0 R00220 1R00310 6#5 0 R00130 2 R00230 2 R00320 6B-63994EN/01 SUPPLEMENT B.EXAMPLE OF SETTING- 79 -B.2PROCEDURE OF SETTING(1) Preparation on CNCAccordingtoOperationprocedureonaFANUCmasterstationofV.1.SETTINGBYUSINGAPERSONALCOMPUTER,pleaseinitializeallofPROFIBUSparameters,andconfirmthatOPERATION mode becomes [STOP].(2) Operation on a personal computerAccordingto(1)to(7)ofPROFIBUS-DPConfiguratoroperationprocedureofV.1.SETTINGBYUSINGAPERSONALCOMPUTER, please choose Bus parameter and Slave parameters.1) As for this example, the parameters are chosen as follows.2)The detail of Bus parameter is configured as follows.B.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 80 -3)SlaveparameterofSlave#3(PowerMatei-D)isconfiguredasfollows.B-63994EN/01 SUPPLEMENT B.EXAMPLE OF SETTING- 81 -4)Slave parameterofSlave#4(RemoteI/ODevices)isconfiguredas follows.5)SlaveparameterofSlave#5(RemoteI/ODevice)isconfiguredequal to Slave #4, except for Slave number(Station Address).B.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 82 -(3) Parameter transfer from a personal computer to CNCAccordingto(8)to(10)ofPROFIBUS-DPConfiguratoroperationprocedureofV.1.SETTINGBYUSINGAPERSONALCOMPUTER, please download Bus parameter and Slave parametersto CNC.(4) Settings on CNCAccordingtotheexplanationofII.SETTING,pleaseconfigureSlave table, DI/DO address and Module data length.1) By downloading, Bus parameter will be configured as follows.Bus parameter Value(1) STATION NO. 1(2) BAUDRATE(Kbps) 12000(3) BP FLAG(EAC) 0(4) MIN SLAVE INT 1(5) POLL TIME OUT 500(6) DATA CONTROL 100(7) T SL 1000(8) MIN T SDR 11(9) MAX T SDR 800(10)T QUI 9(11)T SET 16(12)TTR 65000(13)G 10(14)HSA 126(15)MAX RETRY 4(16)CLASS2 NAME SOFTING DP-CONFIGURATOR(17)MASTER USER DATA -B-63994EN/01 SUPPLEMENT B.EXAMPLE OF SETTING- 83 -2) Bydownloading,eachslaveparameterofSlave#3,#4and#5will be configured as follows.Slave parameter Slave#3Slave#4Slave#5(1) STATION NO. 3 4 5(2) IDENT NO 00A1 B754 B754(3) SLAVE TYPE 0 0 0(4) WD FACT1 25 25 25(5) WD FACT2 1 1 1(6) MIN TSDR 55 11 11(7) SLAVE FLAG(ACT) 1 1 1(8) SLAVE FLAG(NPR) 1 1 1(9) ST.STATUS(LOC) 1 1 1(10)ST.STATUS(UNL) 0 0 0(11)ST.STATUS(SYN) 0 0 0(12)ST.STATUS(FRZ) 0 0 0(13)ST.STATUS(WD) 1 1 1(14)GROUP IDENT 0 0 0(15)USER PRM DATA - (Remark) (Remark)(16)SLAVE USER DATA - - -(Remark)Length = 34Values = 00 00 00 00 00 00 00 02 00 CB 43 00 00 00 01 0000 00 00 80 21 00 21 01 00 21 01 00 21 02 00 2102 003) Pleaseconfigurethenumberofslots,PMCaddressandsizeofDiagnostic data into SLAVE TABLE screen. Settings on SLAVE TABLE screenB.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 84 -4)Next,InMODULEDATAscreen,pleaseselectOFFof[SHIFT], and configure the length of Module data. Then Moduledata will be shown. The length can be decided by the GSD file ofthe corresponding slave.Please refer to Example of setting module data of MODULEDATA screen of II. SETTING.Slave #3Slave #4(Slot #0)Slave #4(Slot #1)B-63994EN/01 SUPPLEMENT B.EXAMPLE OF SETTING- 85 -Slave #4(Slot #2)Slave #4(Slot #3)Slave #4(Slot #4)Slave #5B.EXAMPLE OF SETTING SUPPLEMENT B-63994EN/01- 86 -5)WhendisplayingDI/DOADDRESSscreen,eachslottypeSLT(TYP)willbeshownconformingwiththeconfiguredmoduledata.Pleasepresssoftkey[AUTO(SIZE)],andI/Osizeis configured automatically. 6) Please assign PMC address to DI/DO, and lastly reboot CNC.Settings on DI/DO ADDRESS screenB-63994EN/01 INDEXi-1INDEXA AA AAPPLICABLE MODELS.................................... 5B BB BBUS PARAMETER screen............................... 13C CC CCABLE CONNECTION................................... 48CABLE SHIELDING........................................ 50COMPLETE CONNECTION DIAGRAM........ 55COMPONENT LAYOUT.................................. 60CONNECTING THE PROFIBUS FUNCTIONS....................................................................... 43CONNECTOR................................................... 46D DD DDI/DO ADDRESS screen.................................. 29E EE EEXAMPLE OF CONNECTION ................. 76, 77G GG GGSD FILE FOR THE MASTER FUNCTION. 38H HH HHARDWARE..................................................... 59I II IINSTALLATION............................................... 51L LL LLED INDICATORS AND THEIR MEANINGS....................................................................... 61M MM MMASTER FUNCTION SETTING.................... 12MODULE DATA screen................................... 26Mounting ........................................................... 53Mounting into the LCD-mounted Type Unit .. 53Mounting into the Stand-alone Type Unit ...... 54O OO OOPERATION MODE screen ............................ 34P PP PPROCEDURE OF SETTING........................... 79PROFIBUS CABLE AND TRANSFER RATE 45PROFIBUS CONNECTION............................. 44PROFIBUS-DP FUNCTIONS............................ 7PROFIBUS-DP FUNCTIONS FOR 30i-A....... 11R RR RRELATED MANUALS ....................................... 6Relationship with the ladder program............ 37S SS SSETTING BY USING A PERSONALCOMPUTER.................................................. 65SETTING USING A PERSONAL COMPUTER........................................................................ 65SETTING USING DP-CONFIGURATORMANUFACTURED BY SOFTING .............. 66SLAVE PARAMETER screen .......................... 22Slave table screen ............................................. 17SPECIFICATION ............................................. 52STATUS INFORMATION screen.................... 32T TT TTERMINATING RESISTOR............................ 49U UU UUPDATING DI/DO DATA FOR THE MASTERFUNCTION................................................... 37Revision RecordFANUC PROFIBUS-DP Board For Series 30i-MODEL A OPERATORS MANUAL (B-63994EN)01Apr., 2003EditionDateContentsEditionDateContentsNo part of this manual may bereproduced in any form.All specifications and designsare subject to change withoutnotice.