background image

PROFIBUS DP communication

BK3xx0

53

Version: 4.3.0

5.1.2

K-bus Cycle

The K-bus cycle can be set to run freely (

FreeRun mode [

}

 53]

) or synchronously (

synchronous mode

[

}

 54]

) with respect to the DP cycle. The K-bus cycle for the DP coupler consists of the following parts:

Fig. 38: Configuration of the K-bus cycle for the DP couplers

The K-bus cycle time can be calculated with a precision of around 10 % using the following formula (4-
channel terminals or terminals with more than 6 bytes data (exception: ASI terminal KL6201: more than 12
bytes of data) require two or more K-bus cycles).

Tcyc (in µs) = number of K-Bus cycles x (600 + number of digital channels x 2.5 + number of analog
input channels x 32 + number of analog output channels x 42)

The K-bus cycle time can be read via 

DPV1 [

}

 60]

. If TwinCAT is used, this is possible on the "Beckhoff" tab

of the DP coupler in the System Manager.

K-bus modes

The K-bus mode (the type of synchronisation between the K-bus cycles and the DP cycle) is set via the

UserPrmData [

}

 35]

:

Byte 9, bit 4

Byte 9, bit 6

Byte 12, bit 0

Byte 12, bit 1

K-bus mode

0

bin

1

bin

0

bin

0

bin

Slow FreeRun

1

bin

1

bin

0

bin

0

bin

Fast FreeRun

0

bin

0

bin

0

bin

0

bin

Synchronous

0

bin

0

bin

1

bin

0

bin

Synchronous with optimized input update,
one cycle

0

bin

0

bin

0

bin

1

bin

Synchronous with optimized input update,
two cycles

FreeRun mode

Slow FreeRun (default setting)

In the 

FreeRun

 mode there is no synchronisation between the K-bus cycle and the DP cycle. It is a

characteristic feature of the 

Slow FreeRun

 mode that the K-bus cycle is called from the main task. Acyclic

communication or events result in heavy jitter in the K-bus cycle (KS2000, DPV1, terminal diagnosis, etc.),
because all of these functions are also called from the main task.

Fig. 39: K-bus - Slow FreeRun mode (default setting)

Содержание BK3 0 Series

Страница 1: ...Documentation BK3xx0 Bus Coupler for PROFIBUS DP 4 3 0 2019 04 03 Version Date...

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

Страница 3: ...3 4 3 Potential groups insulation testing and PE 24 3 4 4 Power supply 26 3 4 5 PROFIBUS cabling 29 3 5 ATEX 33 3 5 1 ATEX Special conditions standard temperature range 33 3 5 2 ATEX Special conditio...

Страница 4: ...DP Start up 67 6 2 3 Reaction to PROFIBUS Error 69 6 3 K bus diagnosis 69 6 3 1 K bus interruption 69 6 3 2 Terminal Diagnostics 70 7 Extended functions 72 7 1 2 byte PLC Interface 72 7 2 Word Alignme...

Страница 5: ...nder development We reserve the right to revise and change the documentation at any time and without prior announcement No claims for the modification of products that have already been supplied may b...

Страница 6: ...uction distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited Offenders will be held liable for the payment o...

Страница 7: ...ained specialists in control automation and drive engineering who are familiar with the applicable national standards Description of instructions In this documentation the following instructions are u...

Страница 8: ...rected 4 0 0 Migration 3 5 1 Notes regarding compliance with UL requirements added 3 5 BK3150 with firmware version B0 added 3 03 Corrections in English translation 3 02 GSD files updated for BK3110 B...

Страница 9: ...Product overview BK3xx0 9 Version 4 3 0 2 Product overview 2 1 BK30x0 BK3100 BK3110 BK3120 LC3100 Technical data Fig 1 BK3120 and LC3100 Bus Couplers for PROFIBUS DP...

Страница 10: ...K bus current 4 500 mA max BK3x00 70 mA total K bus current 4 200 mA max BK3x10 70 mA total K bus cur rent 4 max 500 mA 70 mA total K bus cur rent 4 max 200 mA Starting current 2 5 x continuous curre...

Страница 11: ...Product overview BK3xx0 11 Version 4 3 0 2 2 BK3150 Technical data Fig 2 BK3150 Bus Coupler for PROFIBUS DP...

Страница 12: ...current Us 70 mA total K bus current 4 max 320 mA Starting current Us 2 5 x continuous current K bus current 5 V up to hardware version 04 1000 mA from hardware version 05 1750 mA Power contact volta...

Страница 13: ...iber with 2 HP Simplex con nectors 2 x optical fibers with 2 HP Simplex con nectors each Power supply 24 VDC 15 20 Input current 70 mA total K bus current 4 500 mA 500 mA max Starting current 2 5 x co...

Страница 14: ...led over the bus system in addition to the sensor actuator level The Bus Terminal replaces the conventional series terminal as the wiring level in the control cabinet The control cabinet can have smal...

Страница 15: ...the fieldbus is prone to errors or fails for a period of time register contents such as counter states are retained digital outputs are cleared and analog outputs take a value that can be configured f...

Страница 16: ...n which the DP configuration the sequence of DP modules specifies the assignment of the output and or input data to the slave s actual process data Diagnosis during cyclic data exchange A slave can se...

Страница 17: ...tup of the cyclic DP mode Acyclic DPV1 C1 read and write telegrams can be sent from the master to the slave from the state WAIT CFG of the slave In contrast the C2 connection is established separately...

Страница 18: ...fibers plastic film etc Surroundings working place packaging and personnel should by grounded probably when handling with the devices Each assembly must be terminated at the right hand end with an EL...

Страница 19: ...l polycarbonate polyamide PA 6 6 Dimensions W x H x D 50 mm x 100 mm x 68 mm 44 mm x 100 mm x 68 mm 21 mm x 100 mm x 68 mm Mounting on 35 mm mounting rail according to EN60715 with locking mechanism S...

Страница 20: ...be made by pushing the housings together on the mounting rail When correctly assembled no significant gap can be seen between the attached housings Fig 7 Groove and tongue of the housings NOTE Bus Te...

Страница 21: ...nsity Standard wiring ELxxxx KLxxxx Fig 8 Standard wiring The terminals of ELxxxx and KLxxxx series have been tried and tested for years They feature integrated screwless spring force technology for f...

Страница 22: ...esign as the packaging density is twice as large as that of the standard 12 mm Bus Terminals Massive conductors and conductors with a wire end sleeve can be inserted directly into the spring loaded te...

Страница 23: ...e wire size width Terminal housing ELxxxx KLxxxx ESxxxx KSxxxx Wire size width single core wires 0 08 2 5 mm2 0 08 2 5 mm2 Wire size width fine wire conductors 0 08 2 5 mm2 0 08 2 5 mm2 Wire size widt...

Страница 24: ...s 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 per...

Страница 25: ...ng 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...

Страница 26: ...an operating voltage of 24 VDC The connection is made by means of the upper spring loaded terminals labelled 24 V and 0 V This supply voltage is used for the electronic components of the Bus Coupler...

Страница 27: ...nts of the Bus Terminals It is galvanically separated from the field level voltage Fig 15 Power supply connections for BKxx50 and BKxx51 Fig 16 UL identification DANGER Note the UL requirements for th...

Страница 28: ...of an EKxxxx 3 4 4 5 Power contacts Power contacts supply Up The bottom six connections with spring loaded terminals can be used to feed the supply for the peripherals The spring loaded terminals are...

Страница 29: ...ively connected to the base of the Fieldbus Box Pin assignment M12 socket B310 Fig 18 Pin assignment M12 socket B310 Pin assignment M12 socket plug connector B318 Fig 19 Pin assignment M12 socket plug...

Страница 30: ...the PROFIBUS standard see PROFIBUS layer 1 Physical Layer The types of area where a fieldbus system can be used is largely determined by the choice of the transmission medium and the physical bus inte...

Страница 31: ...or a connected PROFIBUS station not to achieve a connection but for it to be included again when the neighboring station is disconnected Or there may be transmission errors when a specific bit pattern...

Страница 32: ...to the last module Installation guidelines When assembling the modules and laying the cables observe the technical guidelines provided by the PROFIBUS User Organization PROFIBUS Nutzerorganisation e V...

Страница 33: ...ct against the rated operating voltage being exceeded by more than 40 due to short term interference voltages The individual terminals may only be unplugged or removed from the Bus Terminal system if...

Страница 34: ...om the Bus Terminal system if the supply voltage has been switched off or if a non explosive atmosphere is ensured The connections of the certified components may only be connected or disconnected if...

Страница 35: ...e list which is not accessible from outside In case of an error the Bus Coupler enters the Stop state Once the start up has completed without error the Bus Coupler enters the fieldbus start state Fig...

Страница 36: ...0 0bin 2 byte PLC interface not activated default Extended 1bin 2 byte PLC interface is active see 2 byte PLC interface 72 7 0 0bin Response to K bus error Manual K bus reset default see K bus interr...

Страница 37: ...d 01bin If K bus mode is synchronous synchronous mode with optimized input update one cycle 10bin If K bus mode is synchronous synchronous mode with optimized input update two cycles 12 4 7 0bin Maxim...

Страница 38: ...ex function modules 39 Digital function modules 41 For TwinCAT applications these rules are followed by the TwinCAT system manager It adds the terminals or IE modules in the sequence in which they are...

Страница 39: ...input output are transmitted for each channel so that access can be had to the terminal s registers in addition to transmission of the 16 bit input value 0xB5 in GSD file 0xB2 0xB2 alternatively 0xF2...

Страница 40: ...y KL6021 KL6021 0xB5 in GSD file 0xF2 alternatively KL6051 compact KL6051 only the 32 input bits and 32 output bits are transmitted 0xB3 in GSD file 0xF1 alternatively KL6051 complex KL6051 48 input b...

Страница 41: ...8 digital input bits 1 x KL2012 2 digital output bits 52 digital input bits and 26 digital output bits The following combinations of DP modules could for instance now be added in the DP configuration...

Страница 42: ...duced to compensate If we have 20 x 4 channel KL3314 thermocouples then in compact mapping we find 20 Bus Terminals 4 channels 2 bytes per channel 20 4 2 160 bytes 160 bytes is larger than the 128 byt...

Страница 43: ...s of a download After a login to the terminal station it is possible to define settings in couplers terminals and Fieldbus Box modules directly online The same high level dialogs and register access a...

Страница 44: ...e g Visual C projects Script interface ADS script DLL for e g VBScript JScript etc The TwinCAT System Manager has the following properties Bit wise connection between server process images and I O ch...

Страница 45: ...e PROFIBUS DP I O modules selection of the PROFIBUS DP master PC card 2 Following the master card the bus nodes are then inserted Fig 27 Configuration of the PROFIBUS DP I O modules inserting the bus...

Страница 46: ...e devices in the Siemens software they must be copied into the Step7 S7Data NcBmp directory Fig 29 Busklemn bmp Fig 30 Busklems bmp Inserting the GSD files Go to Extras Install new GSD in the hardware...

Страница 47: ...ion to DP errors Reaction to fieldbus error 35 Reaction to K bus errors Reaction to K bus errors 35 Configuration of the BK3120 module with digital inputs outputs only Sample 1 1 x BK3120 10 x KL1xx4...

Страница 48: ...es i e enter 6 x 8 bit or 1 x 48 bit or 1 x 8 bit 1 x 40 bit etc see Fig Example for entering individual bytes and Fig Example for entering contiguous bytes Fig 32 Example for entering individual byte...

Страница 49: ...he complex modules must first be entered in the sequence in which they are plugged into the Bus Coupler For some byte oriented Bus Terminals it is possible to distinguish between compact and complex m...

Страница 50: ...0 50 Version 4 3 0 Fig 34 Example for compact representation of the Bus Terminal KL3312 Example 2 b 1 x BK3120 2 x KL1012 1 x KL2022 1 x KL3312 complex mapping 1 x KL9010 Fig 35 Example for compact re...

Страница 51: ...ates a memory area containing the current input bits and ensures that the bits in a second output memory area dedicated to the output channels are written out immediately following the update command...

Страница 52: ...s Coupler collects consecutively the individual entries for each of the channels in order to create the assignment list counting from left to right Four groups are distinguished in the assignment Grou...

Страница 53: ...used this is possible on the Beckhoff tab of the DP coupler in the System Manager K bus modes The K bus mode the type of synchronisation between the K bus cycles and the DP cycle is set via the UserPr...

Страница 54: ...lowing reception of the Data_Exchange telegram from the DP master The outputs are therefore generated as quickly as possible while the input cycles are always one DP cycle old Fig 41 K bus standard sy...

Страница 55: ...important here to ensure that two times the duration of the K bus cycle plus the delay time plus approx 20 to allow for the lower priority processes on the coupler is shorter than the DP cycle time w...

Страница 56: ...ssary for the K bus cycle counter byte to be configured in the CfgData before the complex terminals CfgData DP modules 0x10 K bus cycle counter 5 2 DPV1 acyclic data transfer 5 2 1 DPV1 Interface By d...

Страница 57: ...channel 2 in the function module 128 191 R W 2 Registers 0 63 of the channel 3 in the function module 192 254 R W 2 Registers 0 63 of the channel 4 in the function module Accessing parameters Index Ac...

Страница 58: ...Assignment of module 4 0 DP DataExchange default 2 disabled configured module missing Byte 1 bit 0 1 Assignment of module 5 0 DP DataExchange default 2 disabled configured module missing Byte 15 bit...

Страница 59: ...ts 15 1bin Always 1bin indicates that the terminal is digital Reading the terminal composition The terminal composition is represented in the DPV1 addressing as follows Slot number Index Byte Descript...

Страница 60: ...wing which the K bus error is detected Diagnostic data 64 5 2 3 5 Cycle Time Measuring The duration of the process data cycle 53 can be measured with DPV1 The cycle time measurement is started or stop...

Страница 61: ...ection to these Bus Terminals Fieldbus LEDs The upper three LEDs or the two LEDs on the left indicate the operating state of the PROFIBUS communication Fig 44 LEDs BK3120 and BK3150 BK3xx0 I O RUN BF...

Страница 62: ...on Operating state RUN inputs are read and outputs are set Everything is operating correctly on on blinking on 1 Bus activity but slave is already parameterized Start master 2 Bus error with reaction...

Страница 63: ...known data type Software update required for the coupler 2 pulses 0 Programmed configuration incorrect Check programmed configuration for correctness n 0 Incorrect table entry Bus Coupler incorrect ta...

Страница 64: ...rminals is no longer correct n number of Bus Terminals after booting 18 pulses n Bus Terminal identifier no longer correct after reset n Bus Terminal number Error location The number of pulses indicat...

Страница 65: ...ize and reconfigure slave 0x01 1 StatDiag slave signaling static diagnosis DPV1 slave application not yet ready for data exchange 0x01 2 PROFIBUS DP slave 0x01 3 WdOn DP watchdog on 0x01 4 FreezeMode...

Страница 66: ...15 0 7 DP start up error argument 67 Errors in the modules terminals IP modules IE module etc Diagnosis of the modules 70 must be activated through the UserPrmData 35 Couplers with a maximum of 64 pos...

Страница 67: ...ng DP start up this is indicated both through the fieldbus LEDs 61 and in the diagnostic data DiagData 64 Possible DP start up errors are identified by an error code and an error argument Errors when...

Страница 68: ...lated from the CfgData is too large 4 The length of the DP output data that has been calculated from the CfgData is too large 5 12 Reserve 13 Maximum input length exceeded 14 Maximum output length exc...

Страница 69: ...plex outputs are set to a planned substitute value 01bin Reaction to PROFIBUS error K bus outputs become 0 10bin Reaction to PROFIBUS error K bus outputs remain unchanged 6 3 K bus diagnosis 6 3 1 K b...

Страница 70: ...to the master and two bytes of diagnostic information starting at byte 16 of each channel for which a diagnosis is pending are inserted see Diagnostic data 64 Terminal diagnosis can be activated in t...

Страница 71: ...ry but if on the other hand consistency between the process data and the diagnostic data is desired then the diagnostic data should be transmitted along with the cyclic process data Maximum diagnosis...

Страница 72: ...gData checking is deactivated In that case the setting made in the UserPrmData applies to all modules The compact or complex mapping can be set in the UserPrmData 35 Byte Bit Value Description 9 2 0bi...

Страница 73: ...specify compact complex mapping textually in the master s configuration tool 7 4 Multi Configuration Mode Applications of the multi configuration mode Multi configuration mode can be used for the fol...

Страница 74: ...sabling Bus Terminals Those Bus Terminals that are present in the DP configuration but that are not in fact plugged in must be disabled This can be done in the UserPrmData 35 via DPV1 KS2000 or throug...

Страница 75: ...inal 128 0 DP DataExchange Default 2 disabled Multi Config Mode Enabling disabling via DPV1 Write The terminals are enabled disabled through Slot_Number 0 and Index 1 or 2 Index Byte Bit Description 1...

Страница 76: ...15 Assignment for terminal 8 0 DP DataExchange Default 2 disabled Multi Config Mode 31 14 15 Assignment for terminal 128 0 DP DataExchange Default 2 disabled Multi Config Mode Note the size of the Cf...

Страница 77: ...a software reset before the new value is adopted Register Description 2 maximum length of input data 3 maximum length of output data 4 maximum length of diagnosis data 5 maximum length of configuratio...

Страница 78: ...e necessary software modules are activated according to whichever machine extensions are in fact being used In order to create a control program suited to all implementation levels of the machine it i...

Страница 79: ...and the inputs are received in the associated telegram response In the PROFIBUS DP master interface the process images exchanged with the Bus Couplers are mapped to the process images of the control...

Страница 80: ...erminals present Setting the Bus Terminal extension in the Bus Coupler So that the same process image can always be transferred between the PROFIBUS DP master and the Bus Coupler independently of the...

Страница 81: ...information that is missing is that of which of the Bus Terminals that are included in the PROFIBUS DP configuration are indeed truly present This information can be transmitted via the acyclic DPV1 W...

Страница 82: ...nt activated not activated has been written by the PROFIBUS DP master the Bus Coupler again carries out an examination of the PROFIBUS DP configuration and automatically enters cyclic data exchange th...

Страница 83: ...Extended functions BK3xx0 83 Version 4 3 0 Fig 50 State transitions in the Bus Coupler...

Страница 84: ...ance According to EN 60068 2 27 EMC resistance According to EN 61000 6 2 Emission According to EN 61000 6 4 Transport and storage Condition Permissible range Permissible ambient temperature during sto...

Страница 85: ...fication Organisation for North America based in the USA C Canada US USA LISTED 22ZA the test results can be inspected under this entry Production identification From left to right this sequence of ch...

Страница 86: ...ledge with comparison options Franzis Verlag 2001 244 pages ISBN 3 7723 5745 8 English books in preparation Standards PROFIBUS DP IEC 61158 and IEC 61784 DIN 19245 Part 3 Euronorm EN 50170 Web sites h...

Страница 87: ...us for communication between Bus Coupler and Bus Terminals PNO PROFIBUS User Organisation seewww profibus de Repeater Provides signal conditioning connecting individual bus segments PLC Programmable l...

Страница 88: ...onents 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 offe...

Страница 89: ...sub socket 29 Fig 21 Pin assignment socket plug connector Fieldbus Box modules 30 Fig 22 PROFIBUS cable assignment 31 Fig 23 Start up behaviour of the Bus Coupler 35 Fig 24 KS2000 configuration softwa...

Страница 90: ...e 78 Fig 47 Process image of the production machine 79 Fig 48 Process images of the two different machine configurations 80 Fig 49 Process images of the two different machine configurations with deact...

Отзывы: