background image

Documentation

BC5250

Bus Terminal Controller for DeviceNet

2.0.0
2017-07-18

Version:
Date:

Содержание BC**50 Series

Страница 1: ...Documentation BC5250 Bus Terminal Controller for DeviceNet 2 0 0 2017 07 18 Version Date ...

Страница 2: ......

Страница 3: ...Commissioning 27 4 1 Start up behavior of the Bus Terminal Controller 27 4 2 Configuration 27 4 2 1 Overview 27 4 2 2 Creating a TwinCAT configuration 29 4 2 3 Downloading a TwinCAT configuration 30 4 2 4 Uploading a TwinCAT configuration 32 4 2 5 Resources in the Bus Terminal Controller 33 4 2 6 ADS connection via serial interface 36 4 2 7 DeviceNet slave interface 37 4 2 8 K bus 45 4 2 9 PLC 47 ...

Страница 4: ...6 1 DeviceNet Introduction 73 6 2 Network Management 74 6 3 Object directory 74 6 4 ADS Communication 75 6 4 1 ADS services 75 7 Error handling and diagnosis 77 7 1 Diagnostics 77 7 2 Diagnostic LEDs 79 8 Appendix 82 8 1 Firmware Update 82 8 2 General operating conditions 84 8 3 Approvals 85 8 4 Test standards for device testing 86 8 5 Bibliography 86 8 6 List of Abbreviations 86 8 7 Support and S...

Страница 5: ...he data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT Safety over EtherCAT TwinSAFE XFC and XTS are registered trademarks of and licensed by Beckhoff Automation GmbH Other designations used in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owners Patent Pending The EtherCAT Technology is co...

Страница 6: ...miliar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions must be read carefully and followed without fail DANGER Serious risk of injury Failure to follow the safety instructions associated with this symbol directly endangers the life and health of persons WARNING...

Страница 7: ...s added 1 0 0 First public issue BC5250 firmware For updating your firmware you need a serial cable the KS2000 configuration software or the firmware update program Firmware Comment 0xB1 Firmware version 0xB1 The firmware and hardware versions delivery state can be found on the sticker on the underside of the Bus Terminal Controller ...

Страница 8: ...d data can be exchanged between the Bus Terminal Controller and the higher level controller via the fieldbus Fieldbus interface The variants of the BCxx50 series Bus Terminal Controllers differ in terms of their fieldbus interfaces Various versions cover the most important fieldbus systems BC3150 PROFIBUS DP BC5150 CANopen BC5250 DeviceNet BC8050 RS485 various protocols BC8150 RS232 various protoc...

Страница 9: ...ed All the terminal types have the same mechanical construction so that difficulties of planning and design are minimized The height and depth match the dimensions of compact terminal boxes Decentralised wiring of each I O level Fieldbus technology allows more compact forms of controller to be used The I O level does not have to be brought to the controller The sensors and actuators can be wired d...

Страница 10: ...annel at a location close to the sensors and actuators K bus The K bus is the data path within a terminal strip The K bus is led through from the Bus Coupler through all the terminals via six contacts on the terminals side walls The end terminal terminates the K bus The user does not have to learn anything about the function of the K bus or about the internal workings of the terminals and the Bus ...

Страница 11: ...he usual settings for the fieldbus system When converting to a different bus system it is necessary to bear in mind the need to change the timeout periods if the bus cycle time is longer The interfaces A Bus Coupler has six different methods of connection These interfaces are designed as plug connectors and as spring loaded terminals ...

Страница 12: ...icro controller Diagnostics LEDs 2 x power supply 2 x K Bus Configuration and programming software TwinCAT PLC Fieldbus interface BC3150 Fieldbus PROFIBUS DP Interfaces Serial interface COM1 RS232 for configuration and programming automatic baud rate detection 9600 19200 38400 baud Terminal Bus K Bus 64 255 with K bus extension ...

Страница 13: ...l K bus current 4 Starting current approx 2 5 x continuous current K bus current 5 V maximum 1000 mA Power contact voltage Up maximum 24 VDC Power contact current load Up maximum 10 A Recomm back up fuse Up 10 A Dielectric strength 500 V power contact supply voltage fieldbus Weight approx 100 g Dimensions W x H x D approx 44 mm x 100 mm x 68 mm Permissible ambient temperature range during operatio...

Страница 14: ...ler Data transfer medium shielded twisted copper cable 2 x signal 1 x CAN ground recommended Cable length 500 m 250 m 100 m Data transfer rate 125 kbaud 250 kbaud 500 kbaud I O communication types polling bit strobe change of state cycle Amount of data 128 bytes input and 128 bytes output Baud rate Automatic baud rate detection for possible baud rates see data transfer rate ...

Страница 15: ...amming interface or via the fieldbus Program memory 48 kbyte Source code memory 128 kbyte Data memory 32 kbyte Remanent flags 2 kbyte PLC cycle time Approx 3 0 ms for 1000 IL commands without I O cycle Programming languages IEC 6 1131 3 IL LD FBD ST SFC Runtime 1 PLC task Online Change Yes Up Down Load Code Yes Yes ...

Страница 16: ...pler and a number of Bus Terminals will be used The mechanical dimensions of the Bus Couplers are independent of the fieldbus system Fig 3 BCxx50 The total width of the fieldbus station is the width of the Bus Coupler Bus Terminal Controller plus the width of the Bus Terminals being used incl KL9010 bus end terminal Depending on design the Bus Terminals are 12 mm or 24 mm wide The height is 100 mm...

Страница 17: ...y assembled no significant gap can be seen between the attached housings Fig 5 Power contact on the left Attention Bus Terminals should only be pulled or plugged in switched off state Insertion and removal of Bus Terminals is only permitted when switched off The electron ics in the Bus Terminals and in the Bus Coupler are protected to a large measure against damage but incorrect function and damag...

Страница 18: ...ler Bus Terminal Controller and Bus Terminals is realized automatically by latching the components The transfer of the data and the supply voltage for the intelligent electronics in the Bus Terminals is performed by the K bus The supply of the field electronics is performed through the power contacts Plugging together the power contacts creates a supply rail Since some Bus Terminals e g analog Bus...

Страница 19: ...ing e g breakdown of the insulation from a 230 V power consuming device to the PE conductor The PE supply line at the Bus Coupler Bus Terminal Controller must be disconnected for an insulation test In order to uncouple further feed locations for the purposes of testing the feed terminals can be pulled at least 10 mm out from the connected group of other terminals In that case the PE conductors do ...

Страница 20: ...ltage is used for the electronic components of the Bus Coupler Bus Terminal Controllers and via the K bus the electronic components of the Bus Terminals It is galvanically separated from the field level voltage Fig 8 Terminal points for the Bus Terminal Controller supply Fig 9 UL identification DANGER Note the UL requirements for the power supply To comply with the UL requirements the 24 VDC suppl...

Страница 21: ...the right hand face of the Bus Terminal Controller there are three spring contacts for the power contact connections The spring contacts are hidden in slots so that they cannot be accidentally touched By attaching a Bus Terminal the blade contacts on the left hand side of the Bus Terminal are connected to the spring contacts The tongue and groove guides on the top and bottom of the Bus Terminal Co...

Страница 22: ...rence 3 2 4 2 Bus length The maximum length of a CAN bus is primarily limited by the signal propagation delay The multi master bus access procedure arbitration requires signals to reach all the nodes at effectively the same time before the sampling within a bit time Since the signal propagation delays in the CAN connecting equipment transceivers optocouplers CAN controllers are almost constant the...

Страница 23: ...4 8 m 310 m 3 2 4 5 DeviceNet cable Screened twisted pair cables 2x2 with a characteristic impedance of between 108 and 132 Ohm is recommended for the CAN wiring ZB5200 CAN DeviceNet Cable The ZB5200 cable material corresponds to the DeviceNet specification and is also suitable for CANopen systems The ready made ZK1052 xxxx xxxx bus lines for the Fieldbus Box modules are made from this cable mater...

Страница 24: ...l be fully connected through Notes related to checking the CAN wiring can be found in the Trouble Shooting section 3 2 4 7 Cable colors Suggestion for using the Beckhoff DeviceNet cables at the Bus Terminal and the Fieldbus Box BK52x0 pin BX5200 X520 PIN Fieldbus Box pin FC520x pin Function ZB5200 cable color 5 2 5 V red red 4 4 4 CAN high CAN white white 3 1 3 SHIELD Filler strand 2 5 2 CAN low C...

Страница 25: ... to earth at one location so that the common CAN reference potential is close to the supply potential Since the CANopen BK52x0 BX5200 Bus Couplers provide full electrical isolation of the bus connection it may in appropriate cases be possible to omit wiring up the CAN ground 3 2 4 10 ZS1052 3000 Bus Interface Connector The ZS1052 3000 CAN Interface Connector can be used as an alternative to the su...

Страница 26: ... 16 Pin assignment M12 plug fieldbus box BECKHOFFoffer plugs for field assembly passive distributor s termination resistors and a wide range of preassembled cables for the Fieldbus Box system Details be found in the catalog or under www beckhoff de ...

Страница 27: ...p If the system is in an error free state the I O LEDs should stop flashing after approx 2 3 seconds In the event of a fault the error type determines which LED flashes see chapter Diagnostic LEDs Fig 17 Start up behavior of the Bus Terminal Controller 4 2 Configuration 4 2 1 Overview Configuration types The Bus Terminal controllers of the BCxx50 BCxx20 and BXxx00 series can be configured in two d...

Страница 28: ... The following is required for the TwinCAT configuration TC file Via the fieldbus PROFIBUS CANopen Ethernet PROFIBUS BC3150 BX3100 PC with FC310x from version 2 0 and TwinCAT 2 9 build 1000 BX3100 with CIF60 or CP5412 TwinCAT 2 9 build 946 NOTE with PROFIBUS cards from Hilscher only one ADS communication is permitted i e either System Manager or PLC Control CANopen BC5150 BX5100 PC with FC510x fro...

Страница 29: ...ate a TC file 3 Configure fieldbus data in the TC file 4 Save the TC file 5 Opening a new system manager creating a PC file and reading in saved TX file 6 Creating a link to a PLC task 7 Saving the configuration 8 Starting the TwinCAT system 9 Open the TC file in the System Manager complete the configuration and transfer it to the BCxx50 BCxx20 or BXxx00 10 Transfer the program to BCxx50 BCxx20 or...

Страница 30: ...col all Bus Terminal Controllers of the BXxx00 and BCxx50 series Enter the serial ADS connection as described in the chapter Serial ADS 36 ADS protocol via the fieldbus BC3150 BC5150 BC9x20 BC9050 BX3100 BX5100 BX9000 only A prerequisite is that TwinCAT operates as master and is engaged in data exchange i e the physical and fieldbus configuration must be complete and data exchange must take place ...

Страница 31: ... the bottom right of the System Manager Fig 22 State of the Bus Terminal Controller In Config mode FreeRun the configuration can now be downloaded to Bus Terminal Controller If the Bus Terminal Controller is in Stop mode ADS communication is not yet activated In this case it is not possible to download the configuration To activate the TwinCAT configuration select Ctrl Shift F4 or Activate Configu...

Страница 32: ...l Serial ADS protocol all Bus Terminal Controllers of the BCxx50 BCxx20 and BXxx00 series Enter the serial ADS connection as described in the chapter Serial ADS 36 ADS protocol via the fieldbus BC3150 BC5150 BC9x20 BC9050 BX3100 BX5100 BX9000 only A prerequisite is that TwinCAT operates as master and is engaged in data exchange i e the physical and fieldbus configuration must be complete and data ...

Страница 33: ... uploaded Fig 27 Uploading the TwinCAT configuration 4 2 5 Resources in the Bus Terminal Controller The memory resources assigned in the Bus Terminal Controller are shown in the System Manager in the Resources tab of the Bus Terminal Controller Mapping code The mapping code is required for calculating the TwinCAT configuration see Figure Memory for the code mapping The percentages are added here I...

Страница 34: ...ory mapping Data memory for mapping The values are to be considered individually i e each value can be up to 100 Fig 29 Data memory mapping Used code and data memory Fig Code and data memory 1 Used PLC code in Fig Code and data memory 2 Used PLC data in Fig Code and data memory 3 Used PLC source in ...

Страница 35: ...sed Near Heap is required for the COM interface and SSB values Fig Other Memory 2 Used Huge Heap is required for the ADS communication values This value should be less than 30 Fig Other Memory 3 Used File Area is required for the TwinCAT configuration the TSM file and the 16 kbyte flash access values Fig 31 Other memory ...

Страница 36: ...h 1 1 If the IP address of the BX9xxx is changed the AMS Net ID of the BX9xxx also changes Example If you change the IP address to 10 2 3 7 the AMS Net ID changes to 10 2 3 7 1 1 BC9050 DEFAULT 172 16 21 DIP Switch 1 1 BC9020 DEFAULT 172 16 22 DIP Switch 1 1 BC9120 DEFAULT 172 16 23 DIP Switch 1 1 Initializing the ADS connection Enter the Bus Terminal Controller in the remote connection under Twin...

Страница 37: ... new serial ADS connection is only possible if the AMS Net ID is adjusted BX series reading the AMS Net ID The current AMS Net ID can be read from the menu via the display of BX series Bus Terminal Controller AMS 1 1 1 1 1 1 AMS Net ID 4 2 7 DeviceNet slave interface 4 2 7 1 DeviceNet slave interface EDS file BX5200 EDS file BX5200 eds for controllers other than TwinCAT https infosys beckhoff com ...

Страница 38: ...ed to send or receive more less than 8 bytes of data the default setting must be changed by means of the function block see DeviceNet specific function blocks Characteristics of DeviceNet communication The following characteristics can be set Mixed operation of the DeviceNet communication types is not possible Polling The master module scanner sends the output data cyclically to the assigned devic...

Страница 39: ...of valid telegrams to be present on the bus at the desired baud rate The RUN and CAN ERR LEDs blink in rapid alternation while the baud rate search is in progress Once a baud rate was detected and accepted the Bus Terminal Controller continues with the initialization A software reset does not lead to a new baud rate search The previously active baud rate is maintained 4 2 7 6 Master setting 4 2 7 ...

Страница 40: ...ways integrated in the RSNetworx with the EDS wizard Fig 34 EDS Wizard Finally the DeviceNet network is searched with the Network Browse for the nodes within the network If the BC BX are correctly connected to the network with the correct baud rate they are recognized and correspondingly displayed ...

Страница 41: ...BC5250 41 Version 2 0 0 Fig 35 Network Browse Double clicking the icon opens the configuration dialog for the units Below Parameter appear the I O data lengths that are currently set at the BC BX Fig 36 I O data lengths set on the BC BX ...

Страница 42: ...r BC BX Produced Size Input Size Scanner The data consumed are the output data of the master i e data that are sent from the master to the slave BC BX Consumed Size Output Size Scanner A double click on the Scanner DeviceNet Master icon opens the configuration dialog The recognized modules appear in the Available Devices list and must now be added to the Scanlist Fig 37 Adoption of the detected mo...

Страница 43: ...BC BX Consumed Size Output Size Furthermore it must be ensured that the I O operation mode selected here corresponds to the I O mode selection The Interscan Delay that is the time between each I O cycle must be selected according to the requirements of the BC BX with respect to the size of the PLC program and the I O data lengths ...

Страница 44: ... the interscan delay If there are components in the network that require a fast I O cycle the I O cycle can be set to Background under Poll Rate in the I O parameter settings More detailed information about this can be obtained from the scanner manual Fig 40 Setting the poll rate ...

Страница 45: ...ected the Bus Terminal Controller does not enter into data exchange The PLC project will not be started Auto K Bus Reset Once a K bus error has been rectified the Bus Terminal Controller automatically resumes the data exchange CAUTION Once a K Bus error has been rectified the outputs become active again im mediately Ensure that the outputs are reactivated immediately and that analog outputs retain...

Страница 46: ...Re Trigger 3 4 x 85 ms 340 ms Reaction on K Bus Error In the event of a K Bus error the K Bus inputs are set to 0 or retain their last state Response on PLC Stop The user can set the behavior of the fieldbus output data in the event of the PLC project being stopped The master will use these data as input data In the event of a PLC stop the data can be set to 0 or remain unchanged BX Diag tab Displ...

Страница 47: ...word or data structures Automatic addressing via the System Manager is possible but should be checked for offset Note Word alignment byte orientation With data structures ensure that the Bus Terminal Controller saves the data in word align ment and the System Manager operates byte oriented see Data structures 59 A valid project has to be compiled and saved in PLC Control These data are saved as a ...

Страница 48: ...and hardware Once all links have been created activate the configuration Actions Activate Configuration Ctrl Shift F4 and start TwinCAT Set Reset TwinCAT to Run Mode Ensure that you have selected the correct target system bottom right in the System Manager window Fig 45 Target system display ...

Страница 49: ...ery 20 ms as long as the general cycle time is less than 20 ms To determine the load of your system the PLC cycle time can be measured in the System Manager In order to ensure trouble free operation the set task time should be 20 30 higher than the measured total cycle time A precise cycle time breakdown can be found under K Bus tab 45 description The total cycle time is displayed with the TcBase ...

Страница 50: ...utomatic baud rate detection The COM 1 interface of the BXxx00 features automatic baud rate detection between 9 6 kbaud and 56 4 kbaud Note Required KS2000 version Configuration or diagnostics of Bus Terminals at BXxx00 is supported from KS2000 version 4 3 14 In some Bus Terminals e g KL25xx KL6811 KL6201 KL6401 the following parameters must be set in order to be able to use the configuration dial...

Страница 51: ... generation Bus Terminal Controllers are configured with the TwinCAT System Manager and programmed with TwinCAT PLC Control TwinCAT PLC must be installed for these couplers Windows NT4 Windows 2000 Windows XP Programming and program transfer via the serial interface 71 via the fieldbus interface only for Bus Terminal controllers for PROFIBUS CANopen and Ethernet Online change The Bus Terminal Cont...

Страница 52: ... Out of global data memory Error POUs For each function block one POU process object unit is created 256 function blocks are available by default Fig 48 Maximum number of POUs exceeded If libraries are integrated this value may be insufficient In this case the number of POUs should be increased To this end open in PLC Control under Projects Options Fig 49 Menu path Projects Options Controller Sett...

Страница 53: ...l deactivate online changes Global memory error Fig 51 Global memory insufficient 2 x 16 kbyte of data are available by default If large data quantities are to be used this range should be increased A maximum of 14 data segments are possible for the BX Fig 52 Menu path Projects Options Build ...

Страница 54: ... used as remanent data Note Do not use VAR_RETAIN in function blocks VAR_RETAIN should not be used in function blocks All FB data are copied into the retain memory This leads to an unnecessary increase in cycle time and the retain memory is filled with unnecessary data Note Do not use variables with address as remanent data Variables that have been assigned an address MB QB IB must not be used as ...

Страница 55: ...saved as remanent data Reading writing of allocated flags via ADS The flags may also be read via the controller and ADS In PROFIBUS the DPV 1 services are used for this purpose in CANopen SDO communication is used The AmsNetID can be obtained from the System Manager or it can be displayed via the Bus Terminal Controller menu The PLC port number is 800 Index group Meaning Index offset value range 0...

Страница 56: ...The maximum number of data via the fieldbus is 128 bytes inputs and outputs for the BC5250 and 256 bytes inputs and outputs for the BX5200 DeviceNet data Mode Read Write BX process image polling mode Rx Tx IB1000 IB1007 QB1000 QB1007 If you want to use additional data or another mode then use the TwinCAT configuration or the library for the default configuration Addressing of the connected Bus Ter...

Страница 57: ...lobal variables and you will find here all the variables that you have assigned to the local PLC BCxx00 5 7 Mapping the Bus Terminals The precise assignment of the byte oriented Bus Terminals may be found in the configuration guide for the particular bus terminal This documentation is available on the Beckhoff Products Solutions CD or on the Internet under http www beckhoff de Byte oriented Bus Te...

Страница 58: ...s up orange when the boot project is deleted Note Using the current project as boot project After an online change the old project is still shown as boot project To use the current project after the online change as the boot project the boot project has to be recreated Bypassing the start of the boot project With the Bus Terminal controllers of the BX series starting of the boot project during boo...

Страница 59: ...er see TwinCAT configuration 27 It is also possible to upload an existing TwinCAT configuration 5 10 Communication between TwinCAT and BX BCxx50 For transferring data from TwinCAT to the Bus Terminal Controller it makes sense to organize the data in a structure Please note the following to account for the differences in data management on the two systems If two different data types are sent in seq...

Страница 60: ...Input from a terminal END_VAR Small programming example strData_Out wVar_1 0 bInput_01 Note Do not use real values in a mixed data structure A mixed data structure should not contain real values If this is nevertheless the case the high and low words must be swapped in the BX BCxx50 or in the TwinCAT master project It is better to use an array of Real values or to transfer the Real values individu...

Страница 61: ...line change is possible the PLC does not stop All files as Source code only plus all required libraries Source code only compile info excluded only the prx file is transferred Login is only possible when the PLC stops Which option you can use depends on the size of your projects Downloading a program The source code can be transferred to the target system on request This requires the user to be lo...

Страница 62: ...ownloading the program code After a short delay a window will open that indicates the download progress Fig 59 Download progress Uploading a program For uploading the program code again open a new file in PLC Control Then click on the PLC button ...

Страница 63: ... you are connected to the Bus Terminal Controller via the fieldbus or BCxx50 or BX via serial if you are connected to the Bus Terminal Controller via the serial interface Fig 61 Selecting the data transfer route Then select the device and confirm with OK Fig 62 Selecting the device The source code will now be uploaded ...

Страница 64: ...s zip 3730728971 zip TcSystemBCxx50 requires the TcBaseBCxx50 library TcBaseBCxx50 https infosys beckhoff com content 1033 bc5250 Resources zip 3730731147 zip ChrAscBX lbx https infosys beckhoff com content 1033 bc5250 Resources zip 3730733323 zip Note Use the library that matches the firmware The latest firmware requires the latest library If you update your Bus Terminal Controller please also up...

Страница 65: ...on Firmware BC3150 BC5150 BC5250 BC8150 DRAND B0 B0 B1 B0 SYSTEMTIME_TO_DT B0 B0 B1 B0 DT_TO_SYSTEMTIME B0 B0 B1 B0 GetSysTick B0 B0 B1 B0 PresetSysTick B0 B0 B1 B0 Reboot B0 B0 B1 B0 Debug Version Firmware BC3150 BC5150 BC5250 BC8150 F_ReadDebugTimer B0 B0 B1 B0 F_StartDebugTimer B0 B0 B1 B0 5 12 2 Data structure strBX5200_Set The DeviceNet specific blocks allow the setting of the DeviceNet speci...

Страница 66: ...s set bReadSet Positive edge reads the set DeviceNet parameters strDeviceNet_Set Data structure for the DeviceNet slave interface VAR_OUTPUT bBusy BOOL bError BOOL iErrorId WORD strDeviceNet DeviceNet_Setting bReboot_Necessary BOOL Key bBusy The block is active as long as it is TRUE bError Error bit iErrorId Error number strDeviceNet The type the firmware and the DeviceNet slave parameters are out...

Страница 67: ...3 1 System task information VAR_GLOBAL SystemTaskInfo SYSTEMTASKINFOTYPE END_VAR System flags are implicitly declared variables Using the Input Assistant a variable SystemTaskInfoArr can be found under system variables This variable is a field with four structures of type SYTEMTASKINFOTYPE 67 The structure definition can be found in the system library The index in this field is the task ID Develop...

Страница 68: ...be linked TwinCAT v2 9 0 BCxx50 BC9x20 Controller TcBaseBCxx50 lbx 5 12 3 4 System information type TYPE SYSTEMINFOTYPE STRUCT runTimeNo BYTE projectName STRING 32 numberOfTasks BYTE onlineChangeCount UINT bootDataFlags BYTE systemStateFlags WORD END_STRUCT END_TYPE Key runTimeNo indicates the number of the runtime system 1 projectName project name as STRING numberOfTasks number of tasks contained...

Страница 69: ... is stopped AdsServerDeviceState Data type read only Meaning INT 0 Start the local PLC is running 1 Start the local PLC is stopped AdsServerType Data type read only Meaning String BX PLC Server Register Port 100 On the Bus Terminal Controllers of the BX series and on the BCxx50 the ADS port number for register communication is fixed at 100 Index Group Index offset value range Meaning Hi Word Lo Wo...

Страница 70: ...s Start Debug Timer function Fig 64 Function block F_STARTDEBUGTIMER Calling this function starts the timer The return value is 0 Read Debug Timer function Fig 65 Function block F_READDEBUGTIMER This function reads the timer value The return value has to be multiplied with 5 12 µs Example VAR Timer_BX WORD i INT END_VAR Program F_STARTDEBUGTIMER For i 0 to 1000 do END_FOR Timer_BX F_READDEBUGTIMER...

Страница 71: ...und under Online Communication parameters in PLC Control The Bus Terminal Controller requires the following setting Baud Rate 9600 19200 38400 57600 baud automatic baud rate detection Stop bits 1 Parity Straight line Fig 67 Parameterization of the serial interface Program transfer via the serial interface and ADS The Bus Terminal Controller can be programmed via the PC s RS232 interface Before you...

Страница 72: ...Programming BC5250 72 Version 2 0 0 Fig 68 Selecting the data transfer route AMS PLC Control can be accessed via Online Communication Parameters Fig 69 Selecting the device ...

Страница 73: ...ally standardised EN50325 and is based on CAN Controller Area Network DeviceNet supports a number of communication types for the input and output data Polling The master module scanner sends the output data cyclically to the assigned devices and receives the input data in an answer telegram Change of State Telegrams are sent as soon as their contents have changed Cyclic The modules send the data a...

Страница 74: ...ws up to 64 nodes in one network segment The maximum possible size of the network for any particular data rate is limited by the signal propagation delay required on the bus medium For 500 kbaud for instance the network may extend 100 m whereas at 125 kbaud the network may reach up to 500 m At low data rates the size of the network can be increased by repeaters which also allow the construction of...

Страница 75: ...a type read only Meaning String Start the local PLC is running Start the local PLC is stopped AdsServerDeviceState Data type read only Meaning INT 0 Start the local PLC is running 1 Start the local PLC is stopped AdsServerType Data type read only Meaning String BX PLC Server Register port 100 On the Bus Terminal Controllers of the BX series and on the BCxx50 the ADS port number for register commun...

Страница 76: ...DeviceNet communication BC5250 76 Version 2 0 0 Note Setting the password When writing to the registers the password has to be set see the documentation for the particular Bus Terminal ...

Страница 77: ...e The Master has released the DeviceNet Slave Check the configuration 2 No data exchange between node and DeviceNet Master node access timeout Check the connection 18 Node is configured ready for data exchange none 42 Electronic Key Error Vendor ID Check identity of DeviceNet slave 43 Electronic Key Error Device Type Check identity of DeviceNet slave 44 Electronic Key Error Product Code Check iden...

Страница 78: ...dicated in the K bus state variable A more precise fault description can be obtained via a function block in preparation To this end link the K bus state variable with your PLC program Fig 73 State of the K bus Error bit Description Error type 0 No error No error Bit 0 K bus error Error Bit 2 K Bus is re triggered Note Reading K Bus state by ADS You can read the fieldbus state via ADSREAD in the d...

Страница 79: ...the right indicates the supply voltage and the K Bus state Fig 74 LEDs POWER LEDs for diagnostics of power supply LED Power LEDs Meaning LED Us LED off Bus Terminal Controller has no 24 VDC voltage LED Up LED off No power supply 24 VDC connected at the power contacts LEDs for K Bus diagnostics LED Power LEDs Meaning LED RUN LED off no K bus update LED on flashes K bus running LED ERR LED off No er...

Страница 80: ...Bus Terminal n Exchange the nth Bus Terminal 6 0 Error at initialization Replace BX Controller 1 Internal data error Perform a hardware reset on the BX Controller switch off and on again 2 DIP switch changed af ter a software reset Perform a hardware reset on the BX Controller switch off and on again 7 0 Note cycle time was exceeded Warning the set cycle time was exceeded This indication flash ing...

Страница 81: ...us connected Bus Terminal Controller searches for the baud rate 24 V DeviceNet voltage missing flashes Blink off Stopped no error Bus Terminal Controller searches for the baud rate off on off No error off flashes off Bus OFF wrong baud rate off off on Warning Level LED PLC PLC diagnostics LED Meaning PLC LED LED on PLC running LED off PLC stopped ...

Страница 82: ...omation GmbH Co KG Service Department Stahlstr 31 33415 Verl Germany Firmware update program 241 https infosys beckhoff com content 1033 bc5250 Resources zip 3238791819 zip 71 kbytes for Windows NT4 0 SP6 2000 XP The program FirmwareUpdate exe and the file TcRouterHelper dll have to be in the same directory Open the program by double clicking on FirmwareUpdate exe Update for Bus Terminal Controlle...

Страница 83: ...M port Fig 77 Select the COM port Open the file you wish to download Fig 78 Open the firmware file Start the download via the green traffic light The download begins after about a minute and is then also shown on the BX s display After successful download approx 2 to 3 minutes the Bus Terminal Controller reboots automatically ...

Страница 84: ...echnical data Installation position variable Vibration resistance conforms to EN 60068 2 6 Shock resistance conforms to EN 60068 2 27 EMC immunity conforms to EN 61000 6 2 Emission conforms to EN 61000 6 4 Transport and storage Condition Permissible range Permissible ambient temperature during storage 25 C 85 C Relative humidity 95 no condensation Free fall up to 1 m in the original packaging Prot...

Страница 85: ...E mark Conformity mark UL mark Mark for UL approval UL stands for the Underwriters Laboratories Inc the leading certification organization for North America based in the USA C Canada US USA UL file number E172151 Production identification From left to right this sequence of characters indicates the week of production 2 characters the year of production 2 characters the software version 2 character...

Страница 86: ...ources Franzis Verlag 2001 244 pages ISBN 3 7723 5745 8 8 6 List of Abbreviations CAN Controller Area Network Serial bus system standardized in ISO 11898 that is used as the basic technology for CANopen CiA CAN in Automation e V An international association of manufacturers and users based in Erlangen Germany COB Communication Object A CAN telegram with up to 8 data bytes COB ID Communication Obje...

Страница 87: ...ified from the point of view of the device under consideration Thus a TxPDO with input data from an I O module becomes an RxPDO from the controller s point of view SDO Service Data Object A CAN telegram with a protocol for communication with data in the object directory typically parameter data TxPDO Transmit PDO named from the point of view of the CAN node ...

Страница 88: ...ponents there Beckhoff Headquarters Beckhoff Automation GmbH Co KG Huelshorstweg 20 33415 Verl Germany Phone 49 0 5246 963 0 Fax 49 0 5246 963 198 e mail info beckhoff com Beckhoff Support Support offers you comprehensive technical assistance helping you not only with the application of individual Beckhoff products but also with other wide ranging services support design programming and commission...

Страница 89: ...ating a TwinCAT configuration 29 Fig 19 Selecting the Bus Terminal Controller 30 Fig 20 Downloading a TwinCAT configuration 31 Fig 21 Selecting the Bus Terminal Controller 31 Fig 22 State of the Bus Terminal Controller 31 Fig 23 Activating the TwinCAT configuration 31 Fig 24 Choose Target System 32 Fig 25 Selecting the Bus Terminal Controller 33 Fig 26 State of the Bus Terminal Controller 33 Fig 2...

Страница 90: ...ing a program 63 Fig 61 Selecting the data transfer route 63 Fig 62 Selecting the device 63 Fig 63 Function block BXBC52x0_Settings 66 Fig 64 Function block F_STARTDEBUGTIMER 70 Fig 65 Function block F_READDEBUGTIMER 70 Fig 66 Selecting the data transfer route serial interface 71 Fig 67 Parameterization of the serial interface 71 Fig 68 Selecting the data transfer route AMS 72 Fig 69 Selecting the...

Отзывы: