Home
Set-up in PROFIBUS-DP
Contents
1. Figure 89 Graphical DONE BOOL Presentation of BOOL EXECUTE ERROR BOOL RDREC the PIB DWORD ID STATUS DWORD Interface INT INDEX Ik INT OFFSET WARNING BOOL o e seme Beton BOOL INIT ars RPTACT BOOL BOOL UOUTO GETO PART ERR_IREQ BOOL D STATUS BOOL UOUT1 TPC BOOL BOOL UOUT2 TP BOOL BOOL UOUTS UINO BOOL BOOL RDGATE PIB UIN1 BOOL T CMDDM UIN2 BOOL T CMDSEL UIN3 BOOL ET ARRAY 1 10 CMDREF CMDREF ARRAY 1 10 of CMD_STRUCT of CMD_STRUCT XBUFLEN XSTART Data ARRAY 1 N TXREF TXREF ARRAYT N of BYTE of BYTE T RXBUFLEN TRLEN INT T RXSTART ARRAY 1 N RXREF RXREF ARRAY 1 N Data of BYTE of BYTE 4 6 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A 3 1 2 Parameters Table 46 Name PIB Parameter description Description EXECUTE The user application program can start the operation of a block instance by setting this input parameter of type BOOL to TRUE Before starting the block operation the command and its associated parameters have to be put to the memory associated to the CMDREF parameter Also the CMDSEL parameter has to be set properly This parameter is activated with the rising edge ID The value of this input parameter is used as a unique identifier for addressing a single device or a slot within a device The det
2. M 4 Ucucmireium M R RM H m mt 4 Models e 5 IDataiCaliel Ss iei ocior bani hei cup nit M A EE Cui 5 Read Write heads eed etae aae EXER Aa A E Rue R E ga ENSE KAEN aeai AEN aaa Ea aaaea aY 5 Speed of data carrier to read write head ssssssssssssssssssssseseseeee nennen nennen nn nnne nnns 5 Read range Write range iore E eer R ere Ereta pea inse ees EE en dER 6 Compatibil osni 7 Applications examples 5 tete tb onain ode a amaa ae aaa A AKARE KE TO aA ANNUA EERE SoA E KEENE 7 D101579 1208 BL ident PROFIBUS DP 1 1 The TURCK BL ident system Schematic diagram of the identification system BL ident The TURCK BL ident system has multiple levels Each level offers opportunities for variation An application that is adjusted to the complete system is possible Figure 1 _ oen SPS PC for startup overview 3 Interface module for integration in fieldbus systems IP67 Read write device Air interface OQ O Mobile data carrier Support for BL ident projects The following software and documents will provide additional support for project planning installation and startup For simulation and optimization of an application please access the internet and go to http www turck com for a free BL ident 9 simulator
3. Figure 23 2 2 Pin assignment MA S connector left 3 e 1 f 2 and coupling 4 5 5 4 right Table 19 Chan Pin Pin Signal Color mapping Color Pin nel assignment of assign 4 RK4 5T and mapping assignment of the ment of WK4 5T FB4 5T BL67 2RFID BL67 B 2M12 the connector 1 0 1 1 MESE Brown Red 0 3 3 GND Blue Black 0 2 2 Data Black Blue 0 4 4 Data White White 2 11 1 Vep head Brown Red 1 3 3 GND Blue Black 1 2 2 Data Black Blue 1 4 4 Data White White A These specifications correspond to the BL ident ready made TURCK connectors B Supply voltage page 2 23 2 30 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Diagnostics via LEDs LEDs of the fieldbus side Industri A Table 20 LED Status Meaning Remedy LED displays GW off CPU is not supplied by Please check the supply voltage voltage of the system connected to the gateway green Firmware active gateway ready for operation and sending green blinking 1 Hz Firmware inactive If LED IOs red firmware download needed green blinking 4 Hz Firmware active hardware of gateway defective Replace the gateway red and LED IOs OFF D101579 1208 BL ident PROFIBUS DP Controller is not ready for operation or Vcc level is not in the required range gt possible causes too many modules on gateway shortcircuit in connected module gateway de
4. Cancel D101579 1208 BL ident PROFIBUS DP Startup example for S modules with STEP7 Industri A The module BL67 2RFID S is in the same file as the gateway Move the module with drag and drop to the BL67 GW DPV1 table Figure 66 H HW Config SIMATIC 300 1 Configuration TI BL67 DPV1 S Rad BL67 2RFID S Wy station Edt Insert PLC View Options Window Help afeafe Module Dlls u amp ee dii E 8 x configuration a nix m co xls __PROFIBUS 1 DP master system 1 ES ni 25 BLE Profile Standard zi CTT BL67 1CVI T BL67 1R5232 T E BL67 1RS422 T BL67 1RS485 T T BL67 18SI T BL87 2RFID A T BL6 2RFID C T L2 25 BL6 7 GW DPV1 BL67 2RFID S T Gat Slot d p Order Number Designatio 1 Address Q Address Lom i a Gorda PROFIBUS DP Slaves 195 BL6 2RFID S E m B CiR Object Closed Loop Controller M E 5 Transfer the configuration data to the automation system PLC Download Confirm the request for the module to be restarted Compiling the variable tables for the process data Switch the SIMATIC Manager range to compile a variable table for the process data Mark S7 Program and select Insert New Object gt Variable Table Figure 67 KJ SIMATIC Manager TI BL67 DPV1 S 2 C Programme Siemens Step7 s7proj TI BL67 E variable IB Fie Edt Insert PLC View Options Window Help ax
5. 1 3 0 1 Error Code 1 provides error information generated internally by PIB vendor specific coding of Error Code 2 1 3 0 1 B 15 Not defined here Bit 4 0 Error Code 2 contains vendor specific information Bit 4 1 Error Code 2 contains warning information Byte 5 Cl of acknowledge frame The Error Decode Byte is used to define the meaning of Function Num Error Code 1 and Error Code 2 D101579 1208 BL ident PROFIBUS DP Excerpt from the specifications Table 50 Error Decode Source Meaning Values from Byte Error Decode 0x00 PLC No error no warnings 0x01 Ox7F PLC Warning not used for this profile 0x80 DP V1 Error reported according to IEC 61158 6 2 0x81 Ox8F PLC Ox8x reports an error according the x th parameter of the call of the Comm FB as defined 0x90 OxFD reserved OxFE Profile PIB Profile specific error Ident device OxFF Profile PIB Reserved for future use Ident device The Error Code 1 provides a number detailing the error or warning Within the following table Error Decode is fixed to OxFE Table 51 Function Code Error Code 1 Sent by Meaning mandatory Values from Error Code decimal optional Byte Error Code 1 1 1 IG Tag memory error e g CRC error 1 2 IG Presence error o indicated by Ident Unit tag has left the transmission window 1 3 IG Address or command 0 does not fit the tag characteris
6. 1011 binary 0x1 0001 write length error 0x2 0010 invalid slot 0x3 0011 type conflict 0x4 0100 invalid area 0x5 0101 state conflict 0x6 0110 access denied 0x7 0111 invalid range 0x8 1000 invalid parameter 0x9 1001 invalid type OxA 1010 backup OxB to OxF User specific D101579 1208 BL ident PROFIBUS DP 3 73 Startup of a TURCK BL ident system Table 42 Digits 5 and 6 of the hex error code 3 74 Digit 5 of the Significance Digit 6 of the Significance hexadecimal error hexadecimal code error code OxC resource 0x0 0000 read constrain conflict 12 decimal 1100 binary write constrain conflict resource busy resource unavailable 0x4 to 0x7 0x8 to OxF not specific user specific OxD to OxF 13 to 15 decimal 1101 to 1111 binary User specific D101579 1208 BL ident PROFIBUS DP Industri A User data ranges of the data carrier versions Access to the data ranges of the data carriers Use a different data carrier as indicated in Hardware description of the project example page 3 3 or if you would like to access certain ranges of the data carrier you will need to change the values Start Address for Preparations of the vartable pibO for writing page 3 16 Seite 3 34 or for Preparations of the vartable pibO for reading page 3 18 Seite 3 36 The value Start Address is marked there with the legend point D and explained Figure 84 DBl
7. D101583 Installation of the BL ident system This manual contains the technical details of the available TURCK data carriers and the TURCK read write devices m D101581 Interface module for fieldbus connection This manual describes the professional operation of the BL ident interface modules D101607 This manual contains a software description of a so called handheld programming device which allows Read and Write access of data independent of location m D101585 This manual contains a hardware description of a so called handheld programming device which allows Read and Write access of data independent of location D101640 Startup of the CoDeSys for programmable gateways D101642 Startup with DeviceNet D101644 Startup with EtherNet IP D101648 Startup in PROFINET The list of manuals may be downloaded from the internet 1 2 D101579 1208 BL ident PROFIBUS DP Industri A Networking with BL ident systems Based on the possibility to integrate BL ident systems in existing bus systems the opportunity exists to network together multiple BL ident systems Valid are the guidelines for the maximum extension of the respective active bus system A PROFIBUS DP system with no repeater may include for example a max 31 stations and 1 master Identification systems with radio frequency technology RFID RFID is an abbreviation for radio frequency identification A R
8. Industrial Automation USER MANUAL RFID SYSTEM SET UP IN PROFIBUS DP All brand and product names are trademarks or registered trade marks of the owner concerned Edition 12 08 Hans Turck GmbH M lheim an der Ruhr All rights reserved including those of the translation No part of this manual may be reproduced in any form printed photocopy microfilm or any other process or processed duplicated or distributed by means of electronic systems without written permission of Hans Turck GmbH amp Co KG M lheim an der Ruhr Subject to alterations without notice Industri A 0 About this manual Concept of documaehltatlOh ss iion nu aono nhu nk uu inneem RR KA KRRKRARARAKRR RARE NAA SKEKRRR KRAKRRRRRRRRRRRARKSRRERRKRARRKRERR KR UE 0 2 Explanations of used symbols ceeeeeieeeeee eiie eee aiian aranana nnn nuin Eanna kranan ianua 0 2 General informatlOn rerit ect etra hip ana nasi eoe PR RR ERE X XR a S RRARRSRR REA ERXRKRR RR naaa REESE RR RR RN NER RRR 0 3 zeeM uI lee c 0 3 Instructions for project planning installation of product eessssssseessseenennnn 0 3 1 The TURCK BL ident system Schematic diagram of the identification system BL ident9 eese serere retenta 1 2 Support tor BL ident projects cies tese endete er Prae tn eti tae lapse dp tere o etn dentia 1 2 Networking with B
9. 4 8 127 IG Reserved for future profile use 4 128 255 IG Vendor specific 5 1 IG Wrong sequence number SN indicated by Ident Unit 5 2 PIB Wrong sequence number SN indicated by PIB Invalid data block number DBN indicated by Ident Unit 5 5 PIB Invalid data block number DBN indicated by PIB 5 7 PIB Invalid data block length DBL indicated by Ident Unit Invalid data block length DBL indicated by PIB Command from another user being processed indicated by Ident Unit 5 9 PIB D101579 1208 BL ident PROFIBUS DP The Ident Unit proceeds a hardware reset Init Active set to 1 Init Bit 15 within the cyclic control word is expected from the PIB Excerpt from the specifications Table 51 cont Values from Byte Error Error_Code Function Code Error Code 1 decimal Sent by Meaning mandatory optional PIB The command code m CMD and the respective acknowledgement do not correspond This is a software or synchronization error that cannot occur in normal operation PIB Wrong sequence of m acknowledge telegrams TDB DBN PIB Synchronization error m increment of AC_H AC Land CC_H CC_L in cyclic control word is wrong INIT needed to be performed 13 127 Reserved for future o profile use must not be used 128 255 1 Vendor specific o Invalid CMD 2 Invalid
10. DATA n c DATA2 RxD 2 45V RTS 7 oc AJOJN n c CLK2 TxD 3 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Figure 10 Connection between PC and BL20 gateway via the BL20 connection cable A SUB D female connector B BL20 connection cable C PS 2 connector D101579 1208 BL ident PROFIBUS DP 2 7 Mounting and installation Connections of read write heads Ready made connection cables The following table displays ready made connection cables with a coupling to connect the read write head and an open end to connect to the spring type terminals of the interface module The spring type terminal connection to the interface module is explained in paragraphs Connection terminals when using the connection cables RK4 5T and WKA 5T page 2 10 and Connection terminals when using the connection cables FB4 5T page 2 10 Table 4 Ready made connection cables BL20 2 8 Type description Coupling 2m 5m 10m 25m 50m Identnummer straight g angled a RK4 5T 2 S2500 g X 8035244 RK4 5T 5 S2500 g x 6699206 RK4 5T 10 S2500 g x 6699207 RK4 5T 25 S2500 g X 6699421 RK4 5T 50 82500 g X 6699422 WK4 5T 2 S2500 a X 8035245 WK4 5T 5 S2500 a x 6699208 WKA 5T 10 82500 a x 6699209 WK4 5T 25 S2500 a X 6699423 WK4 5T 50 S2500 a X 6699424 For the food and beverage range FB Food and B
11. Symbon 0 EJE command 3 DBl DBB 116 APPLO DB CMDBUF 3 CMD HEX B 16 71 B 16 71 A DBl DBB 120 APPLO DB CMDBUF 3 UID 1 HEX Be16 00 B l6 00 DBl DBB 121 APPLO_DB CMDBUF 3 UID 2 HEX B 16 00 B 16 00 DBl DBB 122 APPLO_DB CMDBUF 3 UID 3 HEX B 16 00 B 16 00 DBl DBB 123 APPLO DB CMDBUF 3 UID 4 HEX B 16 00 B 16 00 B DB1 DBB 124 APPLO DB CMDBUF 3 UID S5 HEX B 16 00 Bg16 00 DBl DBB 125 APPLO DB CMDBUF 3 UID 6 HEX Be16 00 B 16 00 DBl DBB 126 APPLO_DB CMDBUF 3 UID 7 HEX B 16 00 B 16 00 DBl DBB 127 APPLO_DB CMDBUF 3 UID 8 HEX B 16 00 B 16 00 DBl DBW 140 APPLO_DB CMDBUF 3 Length DEC 32 32 O C DBl DBD 142 APPLO DB CMDBUF 3 Start ddress DEC L o L 0 D DBl DBB 146 APPLO_DB CMDBUF 3 Attributes HEX B 16 00 B 16 00 E DBl DBB 147 APPLO_DB CMDBUF 3 NextMode HEX B 16 00 send buffer DB2 DBB BUFFER BUFFER 1 common data buffer HEX B 16 1B B 16 01 DB2 DBB BUFFER BUFFER 2 common data buffer HEX B 16 03 B 1l6g02 DB2 DBB 2 BUFFER BUFFER 3 common data buffer HEX B 16 01 B 1l6 03 DBZ DBB 3 BUFFER BUFFER 4 common data buffer HEX B 16 00 B 1l6g04 DBZ DBB 4 BUFFER BUFFER 5 common data buffer HEX Be1l6 00 B 1l6 05 DBZ DBB 5 BUFFER BUFFER 6 common data buffer HEX B 16 00 B 1l6 06 DBZ DBB 6 BUFFER BUFFER 7 common data buffer HEX B 16 00 B 16 07 DBZ DBB BUFFER BUFFER 8 common data buffer HEX B 16 00 B 16 08
12. The electrical installation must be done per the respective instructions for example line diameter fuse protection earthing equipment conductor Only qualified expert staff may complete all work related to transport installation startup and maintenance Follow IEC 60 364 or rather HD 384 or DIN VDE 0100 and national accident prevention regulations E Keep all covers and doors closed during operation D101579 1208 BL ident PROFIBUS DP v vi D101579 1208 BL ident PROFIBUS DP Industri A O About this manual Concept of COCUMENTATION 0 cscesecesensscesenssecsensnsesenenseseeensesaeeusnseeesesneeuseensensssneenssensenessneans 2 Explanations of used symbols Le Leere e eee ien eee u nnn nuu au nu uua uuu u Rua uua u ana uaa ua Ra uan n 2 General information ceci eee eee inue ne aaan aiana EAEan aaa aaa Eaa 3 Intended WIS noinine IE EL IL MEI n MI Mi EeiIE eee tes 3 Instructions for project planning installation of product sess 3 D101579 1208 BL ident PROFIBUS DP 0 1 About this manual Concept of documentation The first chapter of this manual provides an overview of the TURCK BL ident system The second chapter contains all information for mounting and installation The first part of the third chapter contains instructions for the start up of a BL ident system with the help of the standard function component Proxy Iden
13. Approvals and testing of the interface module ssssssssessssseeeeeeeneeeeeenerennnn 17 Gateway connection level i eeeseeesiseeeeeeenee senken eene kan nera ne anne d a aan n eaa a a pane Dae Ea kein na En una 18 Connection level of read write head sesssessssseeseeeeeeneeeen nennen nennen nnne nnne nnn 20 Interfaces with the protection class IP67 Le eere eese serene nean uana uana uana uan aua uaa 22 Diagrams and designs of the interface modules sssseeeeeeneeenn nnn 22 Principle switching diagrami 1 cente corio boe Enea ciues iae En e Ree DXR RAER 23 SUP PIV VOM rft P M 23 Fieldb s connection screen ti eerte Ein e Ex essa ne IO ERR RM ARES OR E ttawetantheans agent Ea A AEEA 24 a M12 bUS CONNGG OM m oaa 24 Bus tertmilddtioni uenisse a ear aa aa aaa Musis bim ur rerT s te SE RC ERE 25 PNCOIOSSIING e UE 25 SENICE MIR ize EE ETE ED D DELL DLL 26 Connections of read write heads sssssssssssssssessssseeeennenenn nennen nennen nnn nrennn sns n nennen nnn 27 Ready made connection cables with coupling and connector seeseeeeeeee 27 Ready made connection cables with coupling eese 28 Connection cables for installing a connector and a coupling eeeeeeeeeee 29 Connection level of t
14. Download of the active GSD file You will need the active GSD file to realize the configuration of the BL ident 9 interface module Please locate the active GSD file at http www turck com Download gt Direct search BL67 GW DPV1 Start of the STEP7 software and creating a new project If need be please actualize the GSD file prior or after start Start the SIMATIC basic software Step 7 After the start the window of the SIMATIC Manager will become active Use file gt New to open a new project and assign the project name here TI BL67 DPV1 S 2 for example Right click on the project name and then Insert New Project to select the control Figure 63 Add control to the project EJ SIMATIC Manager TI BL67 DPV1 S C Programme Siemens Step7 s7proj TI BL6_2 OK Bj Fie Edit Insert PLC View Options Window Help a x De ges oles al fo Sal afc Hela al enor ners EEA E gt TI BL67 ObLS TEMPIA Insert New Object SIMATIC 400 Station PLC SIMATIC 300 Station SIMATIC H Station SIMATIC PC Station Other station SIMATIC SS PG PC Rename F2 Object Properties Alt Return MPI PROFIBUS Industrial Ethernet PTP D101579 1208 BL ident PROFIBUS DP 3 45 Startup of a TURCK BL ident system Hardware configuration To configure the hardware open the hardware configurator by double clicking ly Hardware In the hardware configurator in the upper window area
15. Industri A 5 Glossary A Automation device Control device with inputs and outputs that is connected to a technical process Programmable controllers SPC are a special group of automation devices B Bulk capture Simultaneous unequivocal recognition of multiple RFID data carriers which are directed around a read write head transceiver Bus Bus system for the data transfer between hardware components for example CPU memory l O level A bus may consist of multiple parallel cables for the transfer of data addressing control and power supply Bus system The total of all devices that communicate with each other via a bus c Configuration Systematic mapping of a station s l O modules CPU English abbr for Central Processing Unit Central device for data processing the core of the processor D Distribution Distribution involves all activities concerning the transfer of goods between economic entities DIN Abbr for German Institute for Standardization Membership Corporation DP Master Class 1 The automation system SPC which mainly executes cyclic data processing The DPV1 functions may be used in addition or as an option also DPM1 DPC1 DP Master Class 2 Only acyclic demand data are transferred This data transfer may be executed with the help of an engineering tool PC user program for example DPV1 Expansion of functions for PROFIBUS DP In addition to the cyclic process data demand d
16. D101579 1208 BL ident PROFIBUS DP Warnings and error messages Industri A Table 39 Status value of Forts APPLO DB STATUS Status values Significance of error code DW 16 E4FE82xx The requested data volume exceeds the capacity of the internal memory DW 1 6 E4FE82xx A parameter of the active command is not supported DW 16 E4FE82xx An error with no details was indicated by the cyclic status word for example antenna out of service The error is independent of the active command BL ident specific error codes DW 16 E4FE80xx No read write head is connected DW 16 E4FE81xx The read write head is defective DW 16 E4FE84xx Telegram content is invalid for tags of type TW R22 HT B64 Range is write protected or not present DW 1 6 E4FE88xx The read write head is not sufficiently supplied DW 1 6 E4FE89xx The read write head sends permanent CRC errors on the RS485 line EMV problem DW 1 6 E4FE8Axx The Ident unit indicates permanent CRC errors on the RS485 line EMV problem DW 16 E4FE90xx The read write head does not recognize a command sent via Get RFID standard profile DW 1 6 E5FE82xx The Ident unit indicates a wrong sequence No SN DW 16 E5FE82xx The PIB FB indicates a wrong sequence No DW 16 E5FE82xx The Ident unit indicates an invalid data block No DW 1 6 E5FE82xx The PIB FB indicates an invalid data block No DW 1 6 E5FE82xx
17. n la amp x cse ol eia fa amp n e e HolL Xl aes Declaration ame fe inital valve coment Comment Variables per specifications execute command address BLxx 2RFID A lll channel 1 0 channel 1 APPLO DB APPLO_DB OFFSET APPLO DB RPTCMD e wl repeat command APPLO DB SRESET DBX0 2 cancel command APPLO DB INIT DBl DBX0 3 init PIB APPLO DB UOUTO DBl DBX0 4 not used APPLO DB DBl DBX0 5 not used APPLO DB DBl DBX0 6 not used DBl DBXO0 7 not used DB1 DBX1 0 not used DBl DBWZ number of commands DBl DBW4 selection of command APPLO DB TXBUFLEN DBl DBD6 send buffer length APPLO DB TXSTART DBl DBD10 start index send buffer APPLO DB RXBUFLEN DBl DBD14 receive buffer length APPLO_DB RXSTART DBl DBD18 start index receive buffer APPLO DB STATUS DBl DBD32 error warning code APPLO DB DONE DBl DBX30 0 command done APPLO DB BUSY DBl DBX30 1 PIB busy D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A Observation and control with the help of the variable table vartable_pibX Close the FB10 and open the variable table vartable pibO with the help of the Components file This table belongs to the first instance of the PIB and therefore to Channel 1 In order to read the status values and to upload the control values activate the online c
18. A The current consumption from the field supply U is the sum of Current consumption read write head x number of read write heads current consumption per 2 channel RFID module x number of modules B The current consumption from the system supply Usys is the sum of Current consumption of the gateway T current consumption per 2 channel RFID module x number of modules C To supply the RFID module electronics current is used from the field supply U as well as the system supply Usys D101579 1208 BL ident PROFIBUS DP 2 19 Mounting and installation Connection level of read write head Table 12 Technical data 2 20 Description Value Number of channels 2 Nominal voltage from supply terminal 24 VDC Nominal current from field supply lt 100 mA Nominal current from module bus lt 30 mA Power loss typical lt 1W Inputs Outputs Transfer rate 115 2 kbps Cable length 50m Cable impedance 120 Q Potential isolation Isolation of electronics and field level via optocoupler Utilization factor 1 Sensor supply 250 mA per channel short circuit protected Sum current via both channels 500 mA Number of diagnostic byte BL67 2RFID A BL67 2RFID S Number of parameter byte 4 8 BL67 2RFID A BL67 2RFID S Number of input byte Number of output byte 4 BL67 2RFID A 24 BL67 2RFID S 4 BL67 2RFID A 24 BL67 2RFID S Transfer type serial diffe
19. After the start of File Edit Insert PLC View Options Window Help the SIMATIC ole ge al 2 S Manger Objectname Symbolicname Type 1 Sie Auho Station configuration 10 05 2006 15 I CPU 3152 DP CPU 315 2 DP 2 CPU 16 11 2005 16 E3 S Proaram 1 By Sources Blocks Please open the project example with the File gt Retrieve Select from your directory the TURCK example file BL_ID_C zip The SIMATIC Manager will suggest a file location end directory for your BL ident test project You may acknowledge it or change it Acknowledge Do you want to open these now Hardware configuration and l O addresses When double clicking on SIMATIC in the file directory tree in the left side of the window Hardware appears among others in the right side of the window Here you may adjust the configuration settings when your hardware setup differs from the project example By double clicking on the PROFIBUS DP station here BL67 you may see the hardware configuration You may change the l O addresses suggested by the SIMATIC Manager Concerning the example it is beneficial if you keep the I or rather the Q addresses 2 33 as suggested Note i When using the function block PIB it is necessary to choose the same value for input and output addresses Transfer the configuration data to the automation system PLC gt Download Confirm the reques
20. DB2DBB 2 BUFFER BUFFER 3 common data buffer HEX B 16 01 B 16 01 C A and B t is not necessary to adjust these data fields Initially the fields were available for entries concerning number of blocks and number of byte per block of the data carrier Keep value 0x00 The value of the actively used data carriers are internally read and processed C The value 0x01 activates the transmitter antenna of the read write head The value 0x00 deactivates the transmitter D101579 1208 BL ident PROFIBUS DP 3 11 Startup of a TURCK BL ident system Initialization of the first channel In the Chapter Setting up the function component PIB page 3 6 you have been introduced to the settings control values relevant for initialization In case your BL ident project differs from the project example an adjustment of the control values took place Note a Load into your control Variable modify all values which were described in the prior chapters With the help of the column Status Values Variable monitor amp please ensure that the control has accepted the values Now start initialization Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window The command Initialization is executed with a positive edge of the control variable APPLO DB INIT You will create the positive edge by setting the variable from false to true Enter 1 or
21. DBZ DBB 8 BUFFER BUFFER 9 common data buffer HEX B 16 00 B 16 09 DB2 DBB 9 BUFFER BUFFER 10 common data buffer HEX B 16 00 B 16 0A DB2 DBB 10 BUFFER BUFFER 11 common data buffer HEX Bg16 00 Bg16 0B DB2 DBB Ek BUFFER BUFFER 12 common data buffer HEX Bg16 00 B 16 0C DBZ DBB 12 BUFFER BUFFER 13 common data buffer HEX B 16 00 B 16 0D DB2 DBB 13 BUFFER BUFFER 14 common data buffer HEX B 16 00 B16 0E DB2 DBB 14 BUFFER BUFFER 15 common data buffer HEX B 16 00 B 16 0F F DB2 DBB 15 BUFFER BUFFER 16 common data buffer HEX B 16 00 B 16 10 DE2 DBB 16 BUFFER BUFFER 17 common data buffer HEX B 16 00 Bf l6fll A DR DRR 17 RITRRRD RITEERDIIAI nanmam data huffer HRY Rel RENN R led12 A Here the code is entered for the command which is to be executed next with command 3 You may find an overview of all possible commands at 3 1 4 Commands page 4 23 The command code 0x71 is used for the command to write to a physically present TAG Physical Write B This data field has 8 byte and may contain an UID This UID is always compared to the UID of the TAG when values z 00 have been entered here Ensure that here all 8 byte have the value 00 if you do not wish to execute the UID comparison function C Here you may enter the number of byte which are to be transferred from the send data field The number of possible byte depends on the size of the send data field nage 3 10 and the memory capacity of the used TAGs In this TUR
22. DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false You may find a complete description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Reset the variable APPLO_DB EXECUTE to false after the write operation was successful With Variable gt Modify or zl false again becomes status value Read from data carrier Channel 1 This chapter explains the reading of 32 byte data with discretionary content from your RFID data carrier Reading from the data carrier of the first channel is possible after Initialization of the first channel page 3 12 has been completed D101579 1208 BL ident PROFIBUS DP 3 17 Startup of a TURCK BL ident system In the prior chapter you wrote data arbitrary to the data carrier with the command Physical Write In this chapter you will read the same data with the Physical Read command dt physical reading from the data carrier Enter the command code 0x70 for Physical Read into the field Command 3 of the vartable pibO A full description of this command code is at Physical Read page 4 24 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Now enter 3 for the control value APPLO_DB CMDSEL of the vartable pibO to select
23. PIB 001KB CYC to a total of 1 kilobyte Here it is indicated that the send buffer for the first channel occupies Range 1 The receive buffer occupies the Range 201 to 400 for the second channel the Ranges 401 to 600 and 601 to 800 are being occupied respectively compare vartable pib1 E Here you may enter 1 2 or 3 if only one of three possible commands see vartable pibX Command 1 WriteConfig INIT Command 2 for example Inventory is to be executed If initially only the Write Config Command Write Config page 4 26 is to be executed 1 has already been entered here The hexadecimal coding for the command Write Config is 0x78 The configuration data change may be executed per the specification Config page 4 26 via a Reset 0x01 via writing of the new data 0x02 with a combination of Reset and new configuration data 0x03 like in the example H The number of configuration data to be written here it is 3 configuration data to the data carrier which will be explained more closely in the next paragraph omn 3 28 D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A Activation and deactivation of the read write head using configuration data By entering the values in E to H Figure 47 page 3 27 you have made the preparations for sending the configuration values In the TURCK project example the configuration values are already stored in Send Data
24. Physical Write page 4 25 and is called Start Address The table explains the data structure of the data carrier TW 114 B128 TW L43 43 F B128 TW L82 49 P B128 TW R16 B128 TW R20 B128 TW R30 B128 TW R50 B128 TW R50 90 HT B128 D101579 1208 BL ident PROFIBUS DP 3 75 Startup of a TURCK BL ident system Table 43 Byte No Content Access Block No Data struct s red ne s one block has 4 SL2 data byte carrier 16 to 9 UID Read only via 4 to 3 Inventory page 4 29 8 to 5 Tag information Read only via 2 xx i specific commands 4 to 1 Conditions for Write access Oto 111 User data range Read write via 0 to 27 Physical Read page 4 24 and Physical Write page 4 25 The data carriers type I Code SL1 are writable and readable starting with the byte No 18 to byte No 63 The Start Byte No is part of the command structure Physical Read page 4 24 and Physical Write page 4 25 and is called Start Address The table explains the data structure of the data carrier E TW R16 B64 E TW R22 HT B64 E Table 44 Byte No Content Access Block No Data structure of l Code StartAddress one block has 4 SL1 data byte carrier Oto7 UID Read only via 0 to 1 Inventory page 4 29 8to 11 Conditions for Write Read only via specific 2 access command 12 to 15 Special functions for Read Write only via 3 4 example EAS specific commands QUIET 16 family code 17 applicat
25. data carriers read write heads and interface modules Entirely different values may be valid for data carriers of other manufacturers This is why external products may only be used after they have been released by TURCK Applications examples The performance characteristics described in the prior chapter support the application of a TURCK BL ident system in the following industries Automobile Transport and handling Machine building Food and beverages Chemical industry Pharmaceutical and petrochemical industries D101579 1208 BL ident PROFIBUS DP 1 7 The TURCK BL ident system The application in all areas is possible here like Assembly lines Materials handling Industrial manufacturing Inventory and storage Logistics Distribution Consignment Transport logistics D101579 1208 BL ident PROFIBUS DP Industri A 2 Mounting and installation Interfaces with the protection class IP20 eLe eroe rere esee enean nnne a una uu aun uana aun nan 2 Diagrams and designs of the interface modules sssssseeeeeeeeen nennen 2 OUPPIY VONAGE E X 3 FIGIADUS COMMECUIOM eO EET EE A A E E T 3 DXen ccnee 5 ServiceInterfaCe uncut enne gera e T E ERAN ERRARE KE Ex Ke Ren a E RE RA ER eREAE ein ehe ET 6 Connection With BE20 cable 5 ener eire ved le eee deeds a Aaaa RA
26. i and WK4 5T i mm GND BU GND 3 BU 424 VDC BN i 424 VDC 1 BN d 13 n 23 7 Transceive Data 1 2 BK i Data 1 4 WH Table 5 Signal Color mapping Color mapping of M rwihiead Brown BN the connection GND Blue BU cables BK45T and eae Black BK WKA 5T Data White WH Connection terminals when using the connection cables FB4 5T Figure 12 Data 0 BU Data 0 WH Connection of read write head transceiver for connection cables FB4 5T Transceive FT GND 3 BK s24AVDC RD ii i 424VDC 1 RD i Data 1 4 WH 2 10 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Table 6 Signal Color mapping Color mapping of ME Red RD the connection GND Black BK cables BAST Data White WH Data Blue BU Diagnostics via LEDs LEDs of the fieldbus side Table 7 LED Status Meaning Remedy Fieldbus side GW green 5 VDC operating voltage present firmware active gateway ready for operation and sending green Firmware inactive Re upload the firmware Please call blinking your TURCK contact person 1 Hz and LED lOs red green Firmware active Replace the gateway blinking hardware of gateway 4 Hz defective green Usys Undervoltage or Please check whether the voltage blinking overvoltage supply is within the allowe
27. true as control value Figure 30 Control field of vartable pibO DBl DBX DBl DBX DBl DBX DBl DBX DBl DBX DBl DBW control O APPLO DB l APPLO DB 2 APPLO DB 3 APPLO DB O APPLO DB APPLO DB EXECUTE RPTCMD SRESET INIT RDGATE CMDSEL execute command BOOL E false repeat command BOOL El false cancel command BOOL E false init PIB Boor false A not used BOOL E false selection of command DEC ib 1 A Initialization takes place with the positive edge switch from false gt true or 0 gt 1 With Variable gt Modify or E the command Initialization is executed D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A You may observe the command execution in the Status Field of the vartable pibO Figure 31 idiot DBl DBX 30 0 APPLO DB DONE command done BOOL crue Status Field of DBl DBX 30 1 APPLO DB BUSY PIB busy BOOL E false vartable pibO DBl DBX 30 2 APPLO DB ERROR execution failed BOOL P false DBl DBX 30 3 APPLO DB WARNING warning reported BOOL El false DBl DBX 30 4 APPLO DB RPTACT repeat accepted BOOL Ba false DBl DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL B taise DBl DBD 32 APPLO DB STATUS error warning code HEX DWU 16 00000000 DB1 DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 1 DBl DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL crue DBl DBX 3
28. 16 00 field DBZ DBB 203 BUFFER BUFFER 204 common data buffer HEX B 16 08 DBZ DBB 204 BUFFER BUFFER 205 common data buffer HEX B 16 E0 DBZ DBB 205 BUFFER BUFFER 206 common data buffer HEX B lesos DBZ DBB 206 BUFFER BUFFER 207 common data buffer HEX B l6 01 DBZ DBB 207 BUFFER BUFFER 208 common data buffer HEX B 16 09 DBZ2 DBB 208 BUFFER BUFFER 209 common data buffer HEX Bel e ce A DBZ DBB 209 BUFFER BUFFER 210 common data buffer HEX ELSE ra DB2 DBB 210 BUFFER BUFFER 211 common data buffer HEX Be16 45 DB2 DBB 211 BUFFER BUFFER Z212 common data buffer HEX B 16 D1 3 14 D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A A The 8 byte comprising UID is stored in the received data buffer starting with byte 5 Byte 5 reflects the MSB and byte 12 the LSB of the UID Byte 1 and 2 always display 0x0001 for BL ident Bulk reading systems will indicate here which of the data carriers has been actively read from the Bulk Together byte 3 and 4 display the length of the UID here 0x0008 Reset the variable APPLO_DB EXECUTE to false after the successful reading of the UID With Variable gt Modify or E false again becomes status value Write to data carrier Channel 1 This chapter explains the writing of 32 byte data with discretionary content to your RFID data carrier Writing to the data carrier of the first channel is possible after Initialization
29. 60 distance DBl DBX 30 0 APPLO DB DONE d di BOOL Status Field of 7 a Eze 7 DBl DBX 30 1 APPLO DB BUSY PIB busy BOOL S false vartable pibO DBl DBX 30 2 APPLO DB ERROR execution failed BOOL mui false DBl DBX 30 3 APPLO DBE WARNING warning reported BOOL pi false DBl DBX 30 4 APPLO DB RPTACT repeat accepted BOOL ai false DBl DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL wm false DB1 DBD 32 APPLO DB STATUS error warning code HEX DU 1l 6 00000000 DBl DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 1 DBl DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL Mj crue DBl DBX 30 7 APPLO DB TP tag in air interface AI BOOL Wue DBl DBX 31 0 APPLO DB UINO transmitter active BOOL En DBl DBX 31 1 APPLO DB UINl tag fully read BOOL Wue DBl DBX 31 3 APPLO DB UIN3 transceiver connected BOOL Mj crue For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false Here the received data is APPLO_DB TRLEN 32 long You may find a full description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 In the received data field of the vartable pibO you may find the data read by the TAG D101579 1208 BL ident PROFIBUS DP 3 37 Startup of a TURCK BL ident system Figure 61 Received d
30. Attributes 0x04 is supported A data record per I amp M specifications I amp MO is returned The connected read write head is being written to Dev Status page 4 28 3 42 D101579 1208 BL ident PROFIBUS DP Definitions within the command and diagnostics levels Industri A Example Table 29 From byte to byte Field Content Example for Dev Status 0 9 Manufacturer specific header O 0 0 O 0 0 0 0 0 0 10 11 MANUFACTURER_ID 0x0B12 299 TURCK 12 31 ORDER_ID IN CKA40 H1147 0x00 0x20 0x20 0x20 0x20 0x20 0x20 32 47 SERIAL_NUMBER not supported 48 49 HARDWARE_REVISION 0x0003 50 53 SOFTWARE_REVISION V 0x56 0x01 0x03 0x00 2 V1 3 0 54 55 REVISION COUNTER not supported 56 57 PROFILE ID 0x5B00 identification system PIB profile 58 59 PROFILE SPECIFIC TYPE 0x0000 60 61 IM VERSION 0x01 0x01 I amp M V1 1 62 63 IM SUPPORTED 0x01 I amp MO supported Next Only the parameter NextMode 0 or 1 is supported Next page 4 25 Get This command is used to set the write protection of a block of a Tag In order to set write protection it is necessary to know the organization of the memory of the used tag number and size of the blocks The organization of the memory is shown in chapter Access to the data ranges of the data carriers page 3 75 Attention Setting of write protection for a block can not be reversed D101579 1208 BL ident PROFIBUS DP 3 43 St
31. BUFFER BUFFER 6 common data buffer HEX Be16 00 BHleEgos DBZ DBB 6 BUFFER BUFFER 7 common data buffer HEX B 16 00 B 16 07 DB2 DBB BUFFER BUFFER 8 common data buffer HEX B 16 00 B 16 08 DBZ DBB 8 BUFFER BUFFER 9 common data buffer HEX B 16 00 B 16 09 DBZ DBB 9 BUFFER BUFFER 10 common data buffer HEX B 16 00 Bf l6f0A DBZ DBB 10 BUFFER BUFFER 11 common data buffer HEX B 16 00 B 16 0B DBZ DBB 1l BUFFER BUFFER 12 common data buffer HEX B 16 00 B 16 0C DB2 DBB l2 BUFFER BUFFER 13 common data buffer HEX B 16 00 B l6f D DBZ DBB 13 BUFFER BUFFER 14 common data buffer HEX B 16 00 BHLESOE DBZ DBB 14 BUFFER BUFFER 15 common data buffer HEX B 16 00 E 16 0F F DB2 DBB 15 BUFFER BUFFER 16 common data buffer HEX B 16 00 B 16 10 DB2 DBB l6 BUFFER BUFFER 17 common data buffer HEX B 16 00 B l6 l1l DB2 DBB 17 BUFFER BUFFER 18 common data buffer HEX B 16 00 B l6 lz DBZ DBB 18 BUFFER BUFFER 19 common data buffer HEX BH16 13 ne nopo na DrTPPTn DIRERNI NI nanman daen hes Bmw uev D Tcela A Here the code is entered for the command which is to be executed next with command 3 You may find an overview of all possible commands at 3 1 4 Commands page 4 23 The command code 0x71 is used for the command to write to a physically present TAG Physical Write B This data field has 8 byte and may contain an UID This UID is always compared to the UID of the TAG when values z 00 have been entered here Ensure tha
32. Connecting an electrically conductive part to the earth electrode via a piece of grounding equipment GSD General Station Description Formerly master file The GSD file describes the device features which are used in PROFIBUS DP The GSD file is a readable text file and is provided in different languages Project planning tools require the device information for configuration and start up The content of the GSD file typically consists of general information for example manufacturer name and version and for modular devices it consists of communication characteristics for example module names texts for diagnostic messages parameterization possibilities and parameter names of the individual modules Hexadecimal Number system with the basis 16 The count starts at 0 to 9 and continues with the letters A B C D E and F IEC 61131 IEC 61131 is an international standard which covers the basics for programmable controllers Initialization At initialization the required memory for example variables code buffer is reserved and filled with start values IP International Protection The protection class IP identifies the suitability of electrical operating devices for example devices installation material in regards to different ambient conditions also the protection of people against potential dangers when the electric operating devices are being used Logistics Logistics involves the teachings of comprehensive plannin
33. EE ea ge P oda ere V Y na EIER 3 42 InVeritory iiti een E bit eb ua ic ue te UAR RR T 3 42 Physical Read C N 3 42 Physical Wrlte 8h eA ede ERA 3 42 pef 3 42 DevsStatus ATR TTT T Re E ira iE RATER EIER Ies lets RR AERE TT 3 42 Next iue eine E ubl ive din esp enc en tin leet oe 3 43 er A IEE EE dusk sda bcauss ih E AA EA ss saclay casaatetedashin thes aie 3 43 Other commands o Severe aee eevee ewe vae da die aa et 3 44 Startup example for S modules with STEP7 s eecceeeeeeeeeeeeeeeeeeaeeeeeeeeeeeeeeseeeeeeeeesneeeeeeeeeeeeees 3 45 Hardware description of the project example cece cece eeeceeeeee cette eee eeeeeeeeeaaaeeeeeeeeeeeeeeeeeeeeeaaeaes 3 45 Download of the active GSD file o oo eee e cece cence eee eee eee ett aa aaa eee sete aeaaeee sees eee e teenies 3 45 Start of the STEP7 software and creating a new project ecceceeeeeeeeeee eee eeeeeeeeecenaaeeeeeeeeeeeeees 3 45 Hardware configuration iui ciere eee pee di tai LY e RE o FE Y ae E ERE Ea e REY a ue A 3 46 Compiling the variable tables for the process data sssssesssssseeeeeeenrenrrrnnn 3 47 Activating the read write head sssssssesessseseeseeeeeeeee enne nnne nennen nnne nnn nnns 3 49 Initialization RESET Channel 1 sssssessssssessssseeeeeeenennnn seer eee nnn nnn nnnetrtnss sn nnn nnns n nnn nnne 3 50 Read
34. Field of vartable pibO The Send Data Field is below the command range of vartable pibX here X 0 Only the value of the third configuration byte is of significance Activation Deactivation of read write head is requested using this value and with the next initialization An active read write head creates an electromagnetic field a signal is transferred with 13 56 MHz for example The command Write Config page 3 41 is executed during initialization After the initialization has been completed activation and deactivation of read write head is executed with the command Write Config page 3 41 0x78 and a positive edge of the control variables APPLO_DB EXECUTE For executing the command please follow the same instructions for Read and Write for example B Write to the data carrier Channel 1 page 3 33 Note i Load all values to your control Variable modify 7 and ensure with the help of the column Status Values Variable monitor 4 that the control has accepted the values Figure 48 55 DB2 DBB 0 BUFFER BUFFER 1 common data buffer HEX B 16 00 B 16 00 A Send Data Field 56 DB2 DBB l BUFFER BUFFER Z common data buffer HEX B 16 00 B 16 00 B 57 DBZ DEB 2 BUFFER BUFFER 3 common data buffer HEX B 16 01 B 16 01 of vartable pibO 58 DBZ DBB 3 BUFFER BUFFER 4 common data buffer HEX B 16 00 59 DBZ DBB 4 BUFFER BUFFER S common data buffer HEX B 16 00 A and B t is not necessary to adjust these d
35. Ident devices Sol 8 Set Attribute Command 3 1 3 Get Attribute Command 3 1 3 Write Config Command 3 1 3 Read Config Command 3 1 3 Mem Status Command Sol 8 Dev Status Command 3 1 3 Inventory Command 3 1 3 Read BarCode Command 4 2 1 Reading_Gate Control Bit 4 2 1 Command Control Bit repetition 4 2 2 Target_Presence_ Status Bit Changed 4 2 2 Target_Present Status Bit MaxPacketSize Max Ident PDU size supported D101579 1208 BL ident PROFIBUS DP 4 37 Excerpt from the specifications Appendix B Elementary data types used within this specification This informative annex provides the data type definitions used for this specific profile specification Table 57 Data types Name BOOL Definition Boolean The possible values of variables of this data type shall be 0 and 1 corresponding to the keywords FALSE and TRUE respectively Source IEC 61131 3 DWORD Bit string of length 32 IEC 61131 3 WORD Bit string of length 16 IEC 61131 3 INT Integer The range of values for variables of this data type is from 2161 to 1 IEC 61131 3 ANY IEC 61131 3 DINT Double integer The range of values for variables of this data type is from 2 to 29977 IEC 61131 3 BYTE Bit string of length 8 IEC 61131 3 ARRAY 1 x of Data Type IEC 61131 3 CMD_ STRUCT TYPE CMD STRUCT STRUCT CMD BYTE Config BYTE OffsetBuffer INT UID
36. Length 8 Buffer 8 Startadress 16 CMDSEL 3 COMMANDS Example INIT 0 EXECUTE 1 ERROR ERROR_CODE STATUS ERROR ACTION ERROR 1 DONE 1 ERROR 0 DONE 1 ERROR 0 EXECUTE 0 must be 0 can be 3 Note ER Please note that query of parameters DONE ERROR TP etc always relates to a signal change edge D101579 1208 BL ident PROFIBUS DP 3 39 Startup of a TURCK BL ident system Definitions within the command and diagnostics levels Table 26 Conformity table 3 40 Name Type The startup of the TURCK BL ident system with the Proxy Ident Function Block involves some discrepancies from Excerpt from the specifications page 4 1 PROFIBUS specifications The discrepancies involve the command and diagnostics levels The following conformity table shows the commands and status or rather diagnostic messages of the complete specifications of BL ident that are not supported Additional information conform concerning the TURCK Y N specific design In regards to Point 3 1 4 of the PROFIBUS specifications Read Command N Get Command Y Physical Read Command Y Write Command N Put Command N Physical Write Command Y Format Command N Create Command N Delete Command N Clear Command N Update Command N Next Command Y Get Directory Command N Set Attribute
37. Note i Decoding of the 2 byte error code is described in Chapter Warnings and error messages page 3 68 D101579 1208 BL ident PROFIBUS DP 3 61 Startup of a TURCK BL ident system Process output data Table 34 Bit Output data bytes 7 6 5 4 3 2 1 0 Channel 1 0 XCVR NEXT TAG ID READ WRITE TAG XCVR RESET INFO _INFO 1 res res res res res Byte Byte Byte Count2 Count CountO 2 MSB AddrHi LSB 3 MSB AddrLo LSB 4 8 byte write data 5 6 7 8 9 10 11 Channel 2 12 XCVR NEXT TAG ID READ WRITE TAG XCVR RESET INFO _INFO 13 res res res res res Byte Byte Byte Count2 Count Count0 14 MSB AddrHi LSB 15 MSB AddrLo LSB 16 8 byte write data 17 18 19 20 21 22 23 A Byte No 3 62 D101579 1208 BL ident PROFIBUS DP Process image of BL67 2RFID S BL20 2RFID S Module Industri A Significance of the Command Bits Control Bits Note i If more than one command bit has been set via TAG ID READ WRITE TRANSCEIVER INFO or TAG INFO the BL67 2RFID S module will generate an error message The Bit XCVR must always be set to execute a command so that the read write head remains active The following table provides the significance of the command Bits of the process output data shown above Significance 1 The read write head is activated the signal is transferred e g with 13 56 MHz 0 The read write
38. O File handler LJ User data coding Currently it is usual to consider data as a packet that is interpreted by both applications the one in the Ident Unit and the one within the PLC using the PIB see figure below D101579 1208 BL ident PROFIBUS DP 4 3 Excerpt from the specifications Figure 87 Data transfer IEC 61131 3 Comm FB Iz IEC 61131 3 PIB Application program PROFIBUS DPV1 physical exchange of data containers exchange of application data Air interface Slave interface Interrogator barcode reader PIB amp logical logical D101579 1208 BL ident PROFIBUS DP Industri A 2 Modelling the Proxy Ident Block PIB 2 1 Principles of modelling The following principles of modelling for the Proxy Ident Block PIB have to be met To fit into the existing PLC systems e g using the existent addressing concept O To be efficient and without overhead that means the model shall be performance oriented Li To enable an easy application program portation between different PLC systems LJ To use directly the existing Comm FBs Li To apply good programming style is to avoid dependencies of the hardware configuration data such as addressing in the application program 2 2 General PIB model The PIB is modeled as a Proxy FB representing a complete Ident U
39. Startup of a TURCK BL ident system A This is the start address for the BL ident 9 process data of the first module The process data for a BL ident module in the cyclic data exchange comprise 32 byte in total The ID start address for a second module must be therefore 34 here for a third 66 and for a fourth 98 The address range for the channel relevant 2 byte process data of the respective channel is only determined with the Offset legend point C B The index 111 indicates that the next execution will cause a data transfer also parameter data to Channel 1 The index 112 refers to Channel 2 This is the case for each BL ident 9 module of the station Differing indices for example 113 create an error message DW 16 E7FE06xx page 3 70 These indices are being used universally also parameter transfer data The indices 101 and 102 which are to be specifically selected for parameter data transfer per the specifications are no longer used C This Offset is added to the start address A The calculated address refers to the process data that belongs to one channel Here the Offset is 0 because vartable pibO belongs to the first channel The respective Offset in the vartable pib1 which belongs to the second channel is always 2 D The buffer range for the Read and Write data for the first instance first channel is displayed here The Memory requirements for the Read and Write data page 3 3 is limited with the selection of a
40. The PIB FB indicates an invalid data block length DW 16 E5FE82xx The Ident unit executes a hardware reset Init_Active is set to 1 Init Bit 15 within the cyclic Control Word is expected by the PIB DW 16 E5FEOAxx The command code CMD and the respective command acknowledgement do not match Involved is a software or synchronization error which is not permitted during normal operation DW 16 E5FEOBxx The sequence of the telegram for receipt acknowledgement is wrong DW 16 E5FEOCxx Synchronization error Distance of step of AC_H AC_L and CC_H CC_L in the cyclic Control Word is wrong A new initialization must be done DW 16 E6FE82xx Invalid command D101579 1208 BL ident PROFIBUS DP 3 69 Startup of a TURCK BL ident system Table 39 Status value of Significance of error code Forts APPLO_DB STATUS Status values DW 16 E6FE82xx The Ident unit indicates an invalid command index DW 16 E6FE82xx The Ident unit indicates that at this time only Write commands Write Config are allowed BL ident specific error codes DW 16 E6FE80xx No previous tag was recognized no UID was stored at Next DW 16 E6FEFFxx Unknown error RFID standard profile DW 16 E7FE82xx Only command INIT is permitted in this state indicated by PIB DW 16 E7FE82xx CMDSEL gt CMDDIM or command code CMD not permitted DW 16 E7FE82xx The PIB indicates Parameter Length of command is too long fo
41. a measurement value input channel or to create a physical output signal output channel Thus the ident channels represent the Ident Unit Channels are counted separately for each module starting with first channel 1 A module may contain up to 8 ident channels 4 5 2 Block mapping for cyclic PROFIBUS DP data transfer The output values from master to the slave and the input values from the connected sensors are transferred as cyclic data Cyclic data will be transferred via the Data_Exchange service cyclic exchange of the I O data with the DP Master Class 1 The input and output values are mapped into the cyclic data stream This mapping is device global The principle is shown in figure 30 The mapping relies on the modular structure of the GSD 7 The modules in a device are defined using the Module EndModule keywords The assignment to a slot is controlled by the values inside the SlotDefinition EndSlotDefinition keywords The assignment of modules to physical slots is done by the configuration device D101579 1208 BL ident PROFIBUS DP 4 31 Excerpt from the specifications 4 5 3 Block Mapping for Acyclic PROFIBUS DP Data Transfer The acyclic PROFIBUS read and write services are based on slot index address combinations Within this profile a mapping is defined between the device structure and the slots The device block is always assigned to slot number 0 zero Every module of a device is mapped to one slot Each p
42. after command execution The two following diagrams show the status messages depending on the procedural sequence Figure 79 Resetting of CMD 01 CMD 1 0 command Bit after execution command is done by transceiver Figure 80 disd Resetting of commana Is qone command Bit CMD 0 1 by transceiver prior to execution CMD 1 0 3 58 D101579 1208 BL ident PROFIBUS DP Industri A Process image of BL67 2RFID S BL20 2RFID S Module Process input data Table 32 Bit Input data bytes 7 6 5 4 3 2 1 0 Channel 1 0 DONE BUSY ERROR XCVR_ XCVR_ TP TFR res CON ON 1 2 byte error code LSB Warnings and error messages page 3 68 2 MSB 3 res res res res res res res res 4 8 byte read data 5 6 7 8 9 10 11 Channel 2 12 DONE BUSY ERROR XCVR_ XCVR TP TFR res CON ON 13 2 byte error code LSB Warnings and error messages page 3 68 14 MSB 15 res res res res res res res res D101579 1208 BL ident PROFIBUS DP 3 59 Startup of a TURCK BL ident system Table 32 Bit Input data bytes 7 6 5 4 3 2 1 0 16 8 byte read data 17 18 19 20 21 22 23 A Byte No Significance of the Status Bits The following table provides the significance of the status Bits of the process data indicated Significance 1 At this time the system is not processing a command and is ready to receive the next
43. byte 112 byte user data For the calculation max 200 byte Read memory and 200 byte Write memory are factored in Each channel then occupies 400 byte Both channels 800 byte For the total memory requirements the Basic memory requirements page 3 3 and the Memory requirements per PIB instance Channel page 3 3 times two are added to 800 byte Total memory requirements 14 kilobyte 2 x 0 6 kilobyte 800 byte 16 kilobyte Uploading the project example and downloading the active GSD file With the project example provided by TURCK you may simulate a first startup with ease TURCK provides the project example on the CD BL IDENT CD with the Ident No 1545052 The project example is available as a ZIP file Please keep a copy of the ZIP format and log the file location You will need the active GSD file to realize the configuration of the BL ident 9 interface module Please locate the active GSD file at http www turck com Download gt Direct search BL67 GW DPV1 You will be able to start up differing applications as well with the help of operating instructions provided in this document 3 4 D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A Start of the S7 software and upload of the project example If need be please actualize the GSD file prior or after start Start the SIMATIC basic software Step 7 After the start the window of the SIMATIC Ma
44. can only be guaranteed when the cover is correctly closed D101579 1208 BL ident PROFIBUS DP 2 25 Mounting and installation Service interface The service interface connects the BL ident interface module to a PC With the software l O ASSISTANT the interface module can be projected and diagnostic messages can be indicated The service interface must be connected to the PC with a special ready made cable to be used for this purpose E TURCK connection cable I O ASSISTANT cable BL20 BL67 Ident No 6827133 The cable has a PS 2 connector for connecting the female connector to gateway and a SUB D female connector for connecting the connector to the PC Figure 19 PS 2 connector on the connection cable to the gateway top view Figure 20 9 pole SUB D female connector on the connection cable to the PC top view Figure 21 Connection between PC and BL67 interface module with the TURCK connection cable 2 26 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Pin assignment Industri A The table shows the pin assignment when using the PS 2 cable Table 16 PS 2 9 pole serial interface on Pin PC assignment with PS 2 Pin Standard BL67 gateway PS 2 Pin Connector cable No PS 2 connector female connector No 1 CLK 5 V from gateway 4 6 DTR DSR 2 GND GND 5 GND 3 DATA not protected 4
45. command 0 All arriving commands are ignored except the RESET command DONE only switches to status 1 when all command Bits READ WRITE are 0 Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module page 3 58 1 The system is actively executing a command 0 Command execution was terminated BUSY is not the inversion of DONE and possibly can not be used with a handshake operation Use the variable DONE to set up a handshake operation above Table 33 Description Significance of the Status Bits DONE BUSY ERROR 3 60 1 An error occurred during command execution If this flag follows a write command WRITE for example the data of the send buffer were not written to the data carrier If this flag follows a read command no data was read from the data carrier and no new data was stored in the received data buffer 0 The last write or read command was successfully executed The received data buffer contains valid data Detailed information is provided via the two byte error code The table Status values page 3 68 provides the meaning for the error code D101579 1208 BL ident PROFIBUS DP Industri A Table 33 Description Significance Significance of the Status Bits XCVR_CON 1 The read write head is correctly connected to the BL67 2RFID S module 0 The read write head is not yet correctly connected to the BL67 2RFID S module XCVR_ON 1 Transfer with 13 56 MHz
46. command index Cl indicated by Ident Unit Invalid command o parameter e g data range indicated by Ident Unit Wrong synchronization o between application program and Tag A command expected is missing Object detect error Only Write Config m command permissible in this state indicated by Ident Unit 6 127 128 255 IG IG Reserved for future o profile use Vendor specific o 4 20 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 51 cont Values from Byte Error Function Code Error Code 1 Error Code decimal Sent by Meaning mandatory optional PIB Only INIT command permissible in this state indicated by PIB PIB PIB Command code CMD not permissible Parameter Length of the command too long does not fit the global data reserved within the TXBUF indicated by PIB PIB RXBUF overflow more data received than memory in RXBUF available PIB PIB This indication tells the user that only a INIT is permitted as the next command All other commands will be rejected Wrong Index out of range 101 108 PIB Ident Unit does not respond to INIT Init Active expected in cyclic status message PIB PIB Time out during Init 60 seconds as defined by TC3WG9 Command repetition not supported by the PIB PIB Error during
47. description Identnummer Designs of the BL ident 9 TI BL67 DPV1 2 1545028 interface modules with BL67 DPV1 4 1545029 the protection 7 J class IP67 TI BL67 DPV1 6 1545030 TI BL67 DPV1 8 1545031 TI BL67 DPV1 S 2 1545106 TI BL67 DPV1 S 4 1545107 TI BL67 DPV1 S 6 1545108 TI BL67 DPV1 S 8 1545109 2 22 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Principle switching diagram Industri A The following diagram shows among other things how the voltages V Pin 4 and Vo Pin 5 from the programmed Ethernet gateways are used and then transmitted Figure 14 EE Principle BL67 switching System bus diagram of the 668 l interface Coo interface module PS 2 I communi l cation DP OUT l bus interface I module bus i DP IN interface i I I m Mo 5 VDC I EN i power bus short circuit V a T r w head protection 1 PIE i GND ese ii Supply voltage The interface module is supplied via the 7 8 connector with the imprint Power Figure 15 7 8 connector Table 14 Pin Color 7 8 Description Pin Nr assignment of the 7 8 1 black GND connector blue GND green PE Protective earth yellow 4 brown V Us Feeding in of nominal voltage for inputs sensor supply Vs 4 44 from it the system supply is won 5 white Vi Ug Feedi
48. fatal error init required BOOL false DBl DBD 32 APPLO DB STATUS error warning code HEX Dw 16 00000000 DBl DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 1 DBl DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL Wue DBl DBX 30 7 APPLO DB TP tag in air interface AI BOOL Mcrue DBl DBX 31 0 APPLO DB UINO transmitter active BOOL Wru DB1 DBX 31 1 APPLO DB UINl tag fully read BOOL Mlcrue For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false Here the received data size is APPLO_DB TRLEN 32 You may find a full description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 In the received data field of the vartable pibO you may find the data read by the TAG Figure 42 receive buffer Received data DB2 DBB 200 BUFFER BUFFER 201 common data buffer HEX B 16 01 n DB2 DBB 201 BUFFER BUFFER Z02 common data buffer HEX B 16 02 field of the DB2 DBB 202 BUFFER BUFFER 203 common data buffer HEX Be16 03 vartable pibO DB2 DBB 203 BUFFER BUFFER 204 common data buffer HEX B 16 04 after successful DBZ DBB 204 BUFFER BUFFER 205 common data buffer HEX B 16 05 reading DB2 DBB 205 BUFFER BUFFER Z 06 common data buffer HEX B 16 06 DBZ DBB 206 BUFFER BUFFER 207 common data buffer HEX B 16 07 DB2 DB
49. head is deactivated no signal is transferred First the read write head must be activated before another command can be initiated with a following process image If XCVR 0 is set during the time the BL ident system is busy with the command execution the command will be executed first The read write head is only switched off when the Status Bit is DONE 1 1 Exactly one command can be executed with the same data carrier If an additional command is initiated with the same data carrier the Status Bit BUSY 1 remains The BL ident system must be reset RESET or the command must be executed with another data carrier 0 Function is not used 0 gt 1 The command to read the UID is initiated with the rising edge The command is executed when a data carrier is within the detection range of the read write head UID page 5 4 0 Function is not used 0 gt 1 The read command is initiated with the rising edge The command is executed when a data carrier is within the detection range of the read write head The byte number ByteCountO ByteCount2 is read from the data carrier address AddrLo AddrHi 0 Function is not used Table 35 Description Significance of the command Bits XCVR NEXT TAG_ID READ WRITE 0 gt 1 The write command is initiated with the rising edge The command is executed when a data carrier is within the detection range of the read write head The byte number ByteCoun
50. o UOUT2 BOOL Bit 0 0 1 o UOUT3 BOOL Bit 0 0 1 o RDGATE BOOL 0 reading gate is not active o 1 reading gate is active CMDDIM INT 2 10 CMDSEL INT 1 oO CMDREF ARRAY 2 CMDDIM CMDDIM x 42 from CMD STRUCT TXBUFLEN INT 0 32768 TXSTART INT 0 32768 RXBUFLEN INT 0 32768 The user program has the task to reset and change all input parameters D101579 1208 BL ident PROFIBUS DP 4 11 Excerpt from the specifications Table 47 Name Data type Range User cont conditions Features of PIB miz parameters mandatory o optional RXSTART INT 0 32768 m RXREF ARRAY N m 1 N of BYTE TRLEN INT 0 32768 DONE BOOL 0 command not completed or m last command finished with error 1 2 command completed ERROR BOOL 0 last command not m completed or finished without error 1 last command finished with error WARNING BOOL 0 no warning information m available 1 2 warning information available STATUS DWORD Refer to chapter 3 1 3 BUSY BOOL 0 PIB currently does not exe cute a command 1 2 command currently executed by the PIB RPTACT BOOL 0 no repeat command o function active at the PIB 1 repeat command function active at the PIB ERR_REQ BOOL 0 no error indicated from the m PIB 1 error indicated by the PIB UINO BOOL Bit 0 0 1 o UIN1 BOOL Bit 0 0 1 o UIN2 BOOL Bit 0 0 1 o UIN3 BOOL Bit 0 0 1 o TP BOOL 0 no targe
51. packet size adoption within PIB 7 11 127 7 128 255 PIB PIB Reserved for future profile use Vendor specific Bit O to 3 decimal coded of Function Num IU D101579 1208 BL ident PROFIBUS DP Ident Unit 4 21 Excerpt from the specifications The Error_Code_2 provides either warning information if Bit 4 of Function_Num is set 1 or optional vendor specific number detailing the error if Bit 4 of Function Num is reset 0 The warnings are mapped from the acyclic acknowledge telegram Byte 5 CI Table 52 Error Decode Error Code 2 Source Meaning Coding of Bit position warnings OxFE 0 Ident Unit Bit is fixed to 0 OxFE 1 Ident Unit Vendor specific OxFE 2 Ident Unit Vendor specific in case of Ident Unit being a Barcode Reader Low Battery in case of Ident Unit being a RFID OxFE 3 Ident Unit Vendor specific OxFE 4 Ident Unit Vendor specific OxFE 5 Ident Unit Vendor specific OxFE 6 Ident Unit Vendor specific OxFE 7 Ident Unit Vendor specific 4 22 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A 3 1 4 Commands This chapter describes the commands supported by the PIB and their associated parameters The following restrictions apply to the use of commands Cyclic control flow is of higher priority in relation to acyclic transmitted commands INIT and SRESET are aborting the execution of a command withi
52. table ols BP lax e al fo a 20 fz amp ale Sm xl 2 THBL6 7 DPV1 S 2 B Quellen 3 Bausteine Symbole x i SIMATIC 300 1 c Egg m Que Cut Ctri X fa Bau Copy Ctri C Delete Del Source Folder PLC Block Folder Offline Rename F2 STL Source Object Properties Alt Return nbn ek ganization Special Object Properties EE Function Block Function Data Block Data Type Variable Table Text Library Folder Assign symbolic names for the variable tables for example input and output data Create the table As orientation use the structure of the Process input data page 3 59 and the Process output data page 3 62 D101579 1208 BL ident PROFIBUS DP 3 47 Startup of a TURCK BL ident system Figure 68 Structure of the variable table Input data ea Input data TI BL67 DPV1 S SIMATIC 300 1 CPU 315 2 DP S7 Program 1 Bom Sapertems Bares a IB 11 HEX 121 BOOL 122 BOOL 1 123 BOOL 4n 4 DANI To make orientation easier you may assign names here symbols for the individual variables Open OB1 and select Extras Symbol Table For this example the descriptions from tables Process input data page 3 59 and Process output data page 3 62 were adopted Figure 69 Symbols descriptions for the output Saws Taine nar omui E WRITF DATA 4 Press F1 to get Help 3 48 D101579 1208 BL id
53. the command 3 Figure 39 Preparations of the vartable pibO for reading 3 18 K Table Edit Insert PLC Variable View Options Window Help osa amp leel x es ve Ser Sa zl Address Symbol Symbol comment Disp Status value Modify value 40 command 3 41 DBl DBB 116 APPLO_DB CMDBUF 3 CMD HEX Ceren sd B 16 70 A 42 DBl DBB 120 APPLO DB CMDBUF 3 UID 1 HEX BH16 00 r B 16 00 43 DBl DBB 121 APPLO DB CMDBUF 3 UID 2 HEX B 16 00 B 16 00 a 44 DBl DBB 122 APPLO DB CMDBUF 3 UID 3 HEX B 16 00 B 16 00 45 DBl DBB 123 APPLO DB CMDBUF 3 UID 4 HEX B 16 00 B 16 00 B 46 DB1 DBB 124 APPLO_DB CMDBUF 3 UID 5 HEX B 16 00 B 16 00 47 DBl DBB 125 APPLO DB CMDBUF 3 UID 6 HEX B 16 00 B 16 00 48 DBl DBB 126 APPLO_DB CMDBUF 3 UID 7 HEX B 16 00 B 16 00 49 DB1 DBB 127 APPLO_DB CMDBUF 3 UID 8 HEX B 16 00 B 16 00 50 DBl DBW 140 APPLO_DB CMDBUF 3 Length DEC 32 32 C 51 DBl DBD 142 APPLO DB CMDBUF 3 Start ddress DEC L o L 0 D 52 DBl DBB 146 APPLO_DB CMDBUF 3 Attributes HEX B 16 00 B 16 00 E 53 DBl DBB 147 APPLO DB CMDBUF 3 NextMode HEX B 16 00 A Here the code is entered for the command which is to be executed next with command 3 You may find an overview of all possible commands at 3 1 4 Commands page 4 23 The command code 0x71 is used for the command to read from a physically present TAG Physical Read B This data field has 8 byte and may conta
54. 0 7 APPLO_DB TP tag in air interface AI BOOL Merve DBl DBX 31 0 APPLO DB UINO transmitter active BOOL W erue DB1 DBX 31 1 APPLO_DB UIN1 tag fully read BOOL Mj crue DBl DBX 31 3 APPLO DB UINS transceiver connected BOOL Wru For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed Error free execution is acknowledged with APPLO_DB ERROR false The descriptions of some error codes of the status variables APPLO_DB STATUS especially in regards to the BL ident specific errors you will find in Warnings and error messages page 3 68 A complete description of the status data can be found in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Reset the variable APPLO_DB INIT to false after successful initialization With Variable gt Modify or E false again becomes status value Read of UID from data carrier Channel 1 Each RFID data carrier receives a UID page 5 4 unique identifier by the manufacturer The UID reproduces a worldwide unique TAG ID No and has 8 byte Chapter Access to the data ranges of the data carriers page 3 75 shows the memory structure of the different data carriers Read of the UID is executed with the command Inventory In the TURCK project example the command code 0x69 to inventory has been already entered into the field Command 2 The comprehensive description of the command cod
55. 03 common data buffer HEX Be16 00 DB2 DBB 203 BUFFER BUFFER Z204 common data buffer HEX B 16 08 DB2 DBB 204 BUFFER BUFFER Z205 common data buffer HEX E 16 E0 DB2 DBB 205 BUFFER BUFFER Z206 common data buffer HEX B 16 08 DB2 DBB 206 BUFFER BUFFER Z207 common data buffer HEX B l6 0l DB2 DBB 207 BUFFER BUFFER Z208 common data buffer HEX B 16 09 A DB2 DBB 208 BUFFER BUFFER 209 common data buffer HEX Bf le sCc6 DB2 DBB 209 BUFFER BUFFER Z10 common data buffer HEX Bf l s 21 DBZ DBB 210 BUFFER BUFFER Z11 common data buffer HEX Be16 45 DB2 DBB 211 BUFFER BUFFER Z12 common data buffer HEX Bfl6s Dl DB2 DBB 212 BUFFER BUFFER 213 common data buffer HEX B 16 00 1 DB2 DBB 213 BUFFER BUFFER 214 common data buffer HEX B 16 00 DB2 DBB 214 BUFFER BUFFER 215 common data buffer HEX B 16 00 DBZ DBB 215 BUFFER BUFFER Z16 common data buffer HEX B 16 00 DB2 DBB 216 BUFFER BUFFER Z17 common data buffer HEX B 16 00 A The 8 byte comprising UID is stored in the received data buffer starting with byte 5 Byte 5 repeats the MSB and byte 12 the LSB of the UID Byte 1 and 2 always display 0x0001for BL ident Bulk reading systems will indicate here which of the data carriers has been actively read from the Bulk Together byte 3 and 4 display the length of the UID here 0x0008 Reset the variable APPLO_DB EXECUTE to false after the successful reading of the UID With Variable gt Modify or m false a
56. 1 Diagnostic messages and parameterization of the gateway eeeeceeeeeeseneeeeeeeeeeeeeeeeenaeeeeeeeeanees 2 15 Parameterization of the BL20 2RFID A BL20 2RFID S Modules eese 2 15 Diagnostic messages of BL ident channels essent 2 15 echnical data sssrin Em 2 17 Interfaces with the protection class IP67 ussssununsunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnna 2 22 Diagrams and designs of the interface modules sseeenneeenennm enne 2 22 Guppy elite EEEE R 2 23 Fieldbus corinectlon ier anaana aa RR RRERRERRRR ISEERRRENRERRK Ra R AREE nn ER RERKPRER XN RR MRNA TNUERER 2 24 A COIOSSING mee RRRT 2 25 SEMVICS interface ae e 2 26 Connections of read write heads cccessccceeeeeseeceeeeeneeeeeeeeeeeeeeesesseeeeeeesaaeseeeseseeeeeesseeeseeetenies 2 27 Diagnostics Via EDS ete reet boe tete em cente Ded DESEE cedet eee Etats 2 31 Diagnostic messages and parameterization of the gateway ssseeeeene 2 36 Parameterization of the BL67 2RFID A BL67 2RFID S modules eese 2 36 Diagnostic messages of BL ident Channels csssscsessescsessescseseescsesesecsesesecsesesecassesecsesesecacseees 2 36 Technical data 2 IRERER e ERR nent sane vecccuaneseannceugdsaracuaeaxiedceivn E ss 2
57. 200 byte Write memory are factored in Each channel then occupies 400 byte Both channels 800 byte For the total memory requirements the Basic memory requirements page 3 21 and the Memory requirements per PIB instance Channel page 3 21 times two are added to 800 byte Total memory requirements 22 kilobyte 2 x 1 8 kilobyte 800 byte 26 4 kilobyte Upload of the project example and download of the active GSD file5 With the project example provided by TURCK you may simulate a first startup with ease TURCK provides the project example on the CD BL IDENT CD with the Ident No 1545052 The project example is available as a ZIP file Please keep a copy of the ZIP format and log the file location You will need the active GSD file to realize the configuration of the BL ident interface module Please locate the active GSD file at http www turck com Download gt Direct search BL67 GW DPV You will be able to start up differing applications as well with the help of operating instructions provided in this document Start of the S7 software and upload of the project example If need be please actualize the GSD file prior or after start Start the SIMATIC basic software Step 7 After the start the window of the SIMATIC Manager will become active 3 22 D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A Figure 43 KJ SIMATIC Manager BL ID Ce
58. 37 D101579 1208 BL ident PROFIBUS DP i 3 Startup of a TURCK BL ident system DPV1 startup example for A modules with STEP7 and PIB cceceeeeeseeeeeeeeeeeeeeeeeeeeseeeseeeeeeeeeeees 3 3 Hardware description of the project example 0 0 cceeeee cece eeeeeeeeee eee eee e eee eeeeeceeaaaaeeeeeeeeeeeeeeeeeeeeeaaae 3 3 Memory requirements for a BL ident startup ccccsccssssssesesssssssessessssesessusesessuseveussseveususesensuses 3 3 Memory requirements for the hardware example ceeeccceeeeneeee cette ee eee eeeeeeaaaeeeeeeeeeeeeeeeeeeeeeaae 3 4 Uploading the project example and downloading the active GSD file ssssss 3 4 Start of the S7 software and upload of the project example seseeesseeesee 3 5 Hardware configuration and l O addresses ssesssseeeeeeeeeeen nennen nennen 3 5 Setting up the function component PIB cceee cece eee e ee eeeeeea ease eee ee eee teeta aaaaeeeeeeeee eee snnt nnne 3 6 Read of UID from data carrier Channel 1 cccccceceeeeeeeeeeeeeeeeee cette eee teeta eaaaeeeeeeeeeeeeeeeeeeeeeeaaae 3 13 Write to data carrier Channel 1 cccccececeeeeeeeeeeeeeeeeeeaaee cee eeeeeeeeaaaaaaaaaaeeeeeeeeeeeeeeeegecenaeaeeeeeess 3 15 Read from data carrier Channel 1 ou ee eee eee eee cn ee seca ee eeceeeseeeeseeeesaaeeseeeeeseeeeaeae 3 17 DPVO startup example for C modules with STEP7 and PI
59. 51 38 30 ASCIl table 0x00F1 The first 8 byte of the ORDER ID here product description are sent for example H1147 0 0 0x2D 48 31 31 34 37 5C 00 5C 00 0x00F2 The third 8 byte of the ORDER ID here product description are sent 0x00F3 The fourth 8 byte of the ORDER ID here product description are sent 0x00F4 The hardware and firmware versions of the read write head are sent Byte 0 Part x of hardware versionx y Byte 1 Part y of hardware version x y Byte 2 Letter V 0x56 of the firmware version Vx y z Byte 3 Part x of the firmware version Vx y z Byte 4 Part y of the firmware version Vx y z Byte 5 Part z of the firmware version Vx y z Byte 6 to byte 7 is not used RESET 0 gt 1 A Reset of the BL ident system is done with the rising edge When the status bit BUSY is set the execution of the active command is interrupted and the status bit DONE is set The status bit ERROR and the two bytes error message error code of the process input data are deleted ByteCountO 2 3 64 Number of byte 1 which still need to be read READ or written WRITE 111 0x7 gt 8 byte still must be read written D101579 1208 BL ident PROFIBUS DP Process image of BL67 2RFID S BL20 2RFID S Module Industri A Table 35 Description Significance Significance of the command Bits AddrHi AddrLo Array of the length 2 byte Repeats the start address
60. 75 Overview of the Turck data carriers nennen nennen nnne enn 3 75 4 Excerpt from the specifications 1T General infOrmallOn ueniet nt ta eren nnn ou nte RARRRYRR ERR S XRERRSAReRIRERRERRDRERERRRRRRRTRRR MR ARRRERARRR RAE RRRRD 4 2 1 6 Functional requirements eieeessssssesssseeesessseeeeennennnnn nennen nenne tnnntrrtnssn sanas nsn n nnn nnn nnns nas 4 2 2 Modelling the Proxy Ident Block PIB eese nennen nennen nennen nn nnns 4 5 2 1 Principles or modelling rede O eter xd Pese ie aea e eurer EA E eed R NR EE 4 5 2 2 General PIB mod l 3 eite ere ree Eee RR nex Ru exu Io n ER aAa RAN adiga a aa Anai REN RRIR 4 5 2 3 Hepresentatlon eer E ea aa a aa iaa aE E anaE a ea eaaa AE Vaa ERRARE E SERRA FRE XR RE 4 5 3 Definition of Proxy Ident Blocks PIB cecceseeseeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeeceseeeeeeeseeeeaseeaneeseeeeeesneeeenees 4 6 4 Communication between PIB and device eeeeeseseeesessseeseee enne n nennen nennt nn 4 31 4 5 Data access within field device eessessssssesesssseeeeneeneeenenenenennn nennen nnne nnne 4 31 5 Identification amp maintenance functions I amp M functions eee 4 35 48 10 318 SN TIE 4 35 5 2 Channel related Information sssssssssssssssssesssssseeeeneenennneennenn nennen nennen nnne snas 4 35 Appendix A Compliance table uo cierre etta aan
61. 79 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A The command Physical Write is realized with a positive edge of the control variable APPLO_DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 or true as control value Figure 56 10 control Control field of 1l DB1 DBX 0 0 APPLO_DB EXECUTE execute command BOOL DM false A onto Ie o tz DEl DEX 0 1 APPLO DB RPTCMD repeat command BOOL E false vartable pibO 13 DE1 DEX 0 2 APPLO DB SRESET cancel command BOOL fM false A Physical Write takes place with the positive edge switch from false gt true or 0 1 With Variable Modify or zi the command Physical_Write is executed You may observe the command execution in the Status Field of the vartable pibO Figure 57 LM see g DBl DBX 30 0 APPLO_DB DONE command done BOOL true Status Field of DBl DBX 30 1 APPLO_DB BUSY PIB busy BOOL f false vartable pibO DBl DBX 30 2 APPLO DB ERROR execution failed BOOL EE false DBl DBX 30 3 APPLO DBE WARNING warning reported BOOL Ej false DB1 DBX 30 4 APPLO DB RPTACT repeat accepted BOOL I false DB1 DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL 1 false DBl DBD 32 APPLO_DB STATUS error warning code HEX DW 16g00000000 DBl DBD 36 APPLO_DB TRLEN number of bytes transmitted DEC L 1 DBl DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL Mj cru
62. 920 925 MHz D101579 1208 BL ident PROFIBUS DP 5 3 Glossary UID English abbr for Unique Identifier The UID is an unique serial No for transponders As address it refers to the data belonging to the transponder rather the tagged product This data may be stored in a data base for example 5 4 D101579 1208 BL ident PROFIBUS DP Industrial Automation www turck com Support RFID Tel 49 0 208 4952 4666 E Mail rfid support turck com Hans Turck GmbH amp Co KG WitzlebenstraBe 7 45472 Mulheim an der Ruhr Germany Tel 49 0 208 4952 0 Fax 49 0 208 4952 264 E Mail more turck com Internet www turck com D101579 1208
63. AEN Es R eua degna Ee c Sex EYE Eee 6 Connections of read write heads ssssssssssesesesseeeeneeeen nennen nennen E NENESE AEREA 8 Ready made connection cables eeeeeseissessesseseeeeeene nennen nnne nennen nnne n tnnt nne 8 Connection cables for installing a coupling eeeseseeeeeeeeeeeeennnnennm nnn 9 Connection terminals when using the connection cables RK4 5T and WK4 5T 10 Connection terminals when using the connection cables FB4 5T sseeeseeee 10 Diagnostics via ND c 11 LEDs of the fieldbus side ooo eee cececcccee eee e cette ee eeeeee ee aaeeeeeee seen eeaaaaaaaaaaaeaeeeeeeeeeeegsaaaaeaeeeaeeeeeees 11 LEDs for the RFID connections c c ccccceceeeeeeeeeeeeeneeeeeeeeeeeeeesaaaaaaaeaaeaeeeeeeeeseeseeeneeaeeeaeeeeeees 14 Diagnostic messages and parameterization of the gateway 2 0 0 eeeeseceeeeesneeeeeeeeneeeeeeeeeeeeeeeeenaeees 15 Parameterization of the BL20 2RFID A BL20 2RFID S MoOdules esee 15 zBE20 2RE IDSA o ct ctt nes cto sitet aae tenet rud rer pe rer rere n aa taf eite cut ES 15 uid 15 Diagnostic messages of BL ident channels sssssscscscscsesssssssssecscscscsesesesesesesssececseseseseseseseseeeeees 15 Technical Cate c Ada 17
64. ARRAY 1 8 OF BYTE FileName ARRAY 1 8 OF BYTE Offset DINT Length INT StartAddress DINT Attributes BYTE NextMode BYTE Timeout INT ObjectNumber INT FileType Word END STRUCT END TYPE 4 38 D101579 1208 BL ident PROFIBUS DP Industri A Table 57 Name Definition Source cont Data types DIRELEMENTS_ TYPE STRUCT DIRELEMENTS_STRUCT STRUCT FileName ARRAY 1 8 OF BYTE UsedLength DINT Attributes BYTE FileLength DINT FileType WORD END STRUCT END_TYPE DIRLIST_ Whereas this structure is defined in ST STRUCT notation it is not intended to become copied into a ST program as it contains an array of dynamic length which is not conform to IEC 61131 3 ST ST has only been chosen for consistency reason within the document TYPE DIRLIST_ STRUCT STRUCT UID1 ARRAY 1 8 OF BYTE TagName ARRAY 1 8 OF BYTE FreeUserMem DINT Checksum WORD FileCount INT FileList ARRAY 1 FileCount of DIRELEMENTS STRUCT END STRUCT END TYPE UID STRUCT Whereas this structure is defined in ST notation it is not intended to become copied into a ST program as it contains an array of dynamic length which is not conform to IEC 61131 3 ST ST has only been chosen for consistency reason within the document TYPE ObjectLength INT END_TYPE TYPE UID STRUCT STRUCT UID ARRAY 1 8 OF BYTE Data ARRAY 1 ObjectLength 8 OF BYTE END STRUCT END TY
65. B cccccceseeeeeeeeeeeeeceeeeeeeeeeeeeeeeeneeees 3 21 Hardware description of the project example 0 c cece eee eeeeeeeeee cette eee eeeeeeaaaaeeeeeeeeeeeeeeeeeeeeeaaeees 3 21 Memory requirements for a BL ident StartUp cccccsscescsssscsscseescscesesecseeecsecaesecsecacsacsessesecasenens 3 21 Memory requirements for the hardware example sssssessssseeeeeeeeeeneee nennen 3 22 Upload of the project example and download of the active GSD file5 sssussss 3 22 Start of the S7 software and upload of the project example sse 3 22 Hardware configuration and l O addresses sssseseeeeeeeeen nennen 3 23 Setting up the function component PIB sssssssssssssssssseseseeeene nennen nnne retrtrtn rnnt nenne nnn 3 24 Read of UID from data carrier Channel 1 eesssssssssssessseseeeneneeeenn nennen nnne 3 31 Write to the data carrier Channel 1 ssssssssssssssesssseseeeeneeneeeeemenen nnne nnne nennen nis 3 33 Read from the data carrier Channel 1 sesssssssssssssseeseeeneeeenneeen nnne nennen nnne 3 35 Flow diagram of PIB functionality eeeeeeeee eren nn nnn nennen nnn nnne n nnns 3 39 Definitions within the command and diagnostics levels eee 3 40 AEE aD DC A ea Acer 3 41 Read Gonflg ecce eid iic e d a pee eno A e d e
66. B 207 BUFFER BUFFER Z08 common data buffer HEX B 16 08 DB2 DBB 208 BUFFER BUFFER 209 common data buffer HEX B 16 09 DB2 DBB 209 BUFFER BUFFER Z10 common data buffer HEX Bf l6f0A DBZ DBB 210 BUFFER BUFFER Z11 common data buffer HEX B 16 0B DB2 DBB 211 BUFFER BUFFER Z12 common data buffer HEX B 16 0C DBZ DBB 212 BUFFER BUFFER Z13 common data buffer HEX B 16 0D DB2 DBB 213 BUFFER BUFFER Z14 common data buffer HEX B 16 0E DBZ DBB 214 BUFFER BUFFER Z15 common data buffer HEX B 16 0F DB2 DBB 215 BUFFER BUFFER Z16 common data buffer HEX B 16 10 DBZ DBB 216 BUFFER BUFFER Z17 common data buffer HEX B 16 11 DBZ DBB 217 BUFFER BUFFER Z18 common data buffer HEX B l6 l2 DBZ DBB 218 BUFFER BUFFER Z19 common data buffer HEX B 16 13 DB2 DBB 219 BUFFER BUFFER ZZ0 common data buffer HEX BHl6 14 DBZ DBB 220 BUFFER BUFFER ZZ1 common data buffer HEX B 16 15 DB2 DBB 221 BUFFER BUFFER ZZ2 common data buffer HEX B 16 16 DBZ DBB 222 BUFFER BUFFER ZZ3 common data buffer HEX B 16 17 DB2 DBB 223 BUFFER BUFFER Z224 common data buffer HEX B 16 18 Reset the variable APPLO_DB EXECUTE to false after the read operation was successful With Variable gt Modify or Bil false again becomes status value 3 20 D101579 1208 BL ident PROFIBUS DP Industri A DPVO startup example for C modules with STEP7 and PIB The startup of a BL ident system using the SIMATIC basic software Step 7 and
67. BOOL true gin air interface AI BOOL erue ransmitter active BOOL erue tag fully read BOOL erue transceiver connected BOOL Bitrue HEX B l6878 B 16 78 F HEX B 16 03 B 16 03 G DEC 3 3 H gt m Monitoring and Modif o ft Oyo CE 3 9 Startup of a TURCK BL ident system A This is the start address for the BL ident process data of the first module The ID start address for a second module must be 6 for a third 10 and for a fourth 14 The address range for each individual channel is first determined with the help of the Offset legend point C B The index 111 indicates that the next execution will cause a data transfer also parameter data to Channel 1 The index 112 refers to Channel 2 This is the case for each BL ident 9 module of the station Differing indices for example 113 create an error message DW 16 E7FEO6xx page 3 70 These indices are being used universally also parameter transfer data The indices 101 and 102 which are to be specifically selected for parameter data transfer per the specifications are no longer used C This Offset is added to the start address A The calculated address refers to the process data of the channel Here the Offset is 0 because vartable pibO belongs to the first channel The process data for one BL ident channel contain 2 byte The respective Offset in the vartable pib1 which belongs to the second channel is 2 D Here the buffer range for the Read and Write da
68. BX 31 1 APPLO DB UINI tag fully read BOOL Mi crue DBl DBX 31 3 APPLO DB UIN3 transceiver connected BOOL Mj crue For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false The descriptions of some error codes of the status variables APPLO_DB STATUS especially in regards to the BL ident specific errors can be found in Warnings and error messages page 3 68 A complete description of the status data can be found in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Reset the variable APPLO DB INIT to false after successful initialization With Variable gt Modify or false again becomes status value Read of UID from data carrier Channel 1 Each RFID data carrier receives a UID page 5 4 unique identifier by the manufacturer The UID repeats a worldwide unique TAG ID No and has 8 byte Read of the UID is executed with the command Inventory dt Inventory In the TURCK project example the command code 0x69 to inventory has been already entered into the field Command 2 The comprehensive description of the command code is at Inventory page 4 29 Figure 51 35 command 2 i e Inventory Command 2 of 36 DB1 DBB 78 APPLO DB CMDBUF 2 CHD HEX Be16 69 B 16 69 2 37 DBl DBW 102 APPLO DB CMDBUF 2 Length DEC vartable pibO 38
69. Bl DBD 142 APPLO DB CMDBUF 3 Start ddress DEC L 0 L o HE D DBl DBB 146 APPLO_DB CMDBUF 3 Attributes HEX B 16 00 B 16 00 E DBl DBB 147 APPLO_DB CMDBUF 3 NextMode HEX B 16 00 A Here the code is entered for the command which is to be executed next with command 3 You may find an overview of all possible commands at 3 1 4 Commands page 4 23 The command code 0x70 is used for the command to read from a physically present TAG Physical Read B This data field has 8 byte and may contain an UID This UID is always compared to the UID of the TAG when values z 00 have been entered here Ensure that here all 8 byte have the value 00 if you do not wish to execute the UID comparison function C Here you may enter the number of byte which are to be transferred into the send data field The number of possible byte depends on the size of the received data field page 3 10 and the memory capacity of the used TAGs In this TURCK example 32 byte are written to the TAG 112 byte The size of the received data field is 200 byte D With the help of this address each byte on the TAG may be explicitly accessed as start address The start address L 0 is selected in this example If you use a different data carrier than the one in this project example please follow Chapter User data ranges of the data carrier versions page 3 75 E With these Attributes some commands may be specified more closely This value is not considered
70. CK example 32 byte are written to the TAG 112 byte The size of the send data field is 200 byte D With the help of this address each byte on the TAG may be explicitly accessed as start address In this example the start address L 0 is selected If you use a different data carrier than the one in this project example please pay attention to the paragraph User data ranges of the data carrier versions page 3 75 E With these Attributes some commands may be specified more closely This value is not considered with the Write and Read command In 3 1 4 Commands page 4 23 you will find an overview for all possible commands and the possibilities to more closely specify them via Attributes In any case please also pay attention to Definitions within the command and diagnostics levels page 3 40 F Into this send data field enter the data which you would like to use to write to your TAG with Note Load all the field values Control Command 3 and Send Data Field into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the values D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A The command Physical Write is realized with a positive edge of the control variable APPLO_DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 o
71. Command N Get Attribute Command N Write Config Command Y Read Config Command Y Mem Status Command Y Dev Status Command Y Inventory Command Y Read Bar Code Command N In regards to Point 4 2 1 of the PROFIBUS specifications Reading Gate Control Bit N Repeat Command Control Bit Soft Reset Control Bit Y D101579 1208 BL ident PROFIBUS DP Industri A Table 26 Name Type Additional information conform Forts concerning the TURCK Y N Conformity specific design table In regards to Point 4 2 2 of the PROFIBUS specifications Target Presence Chan Status Bit Y ged Target Present Status Bit Soft Reset Active Status Bit Y Repeat Status Bit N Command Active Busy Status Bit Y Error Status Bit Y UIN3 Status Bit Read write head connected Y UIN2 Status Bit N UIN 1 Status Bit Data of Tag complete read Y to read write head UINO Status Bit Read write head is Y activated also see WriteConfig The following commands show discrepancies from the PROFIBUS specifications Write Config This command is initiated in PIB via INIT and supports Config 1 only Reset and Config 3 write data and Reset 3 byte of Config data can be written With the Config data there is the possibility to switch the transmitter of the read write head on and off The on and off switching of the transmitter can be used to prevent a mutual interference of closely positioned read write head
72. DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 or true as control value Figure 34 ff control Control Field of DBl DBX 0 0 APPLO DB EXECUTE execute command BOOL o false A DB1 DBX 0 1 APPLO_DB RPTCMD repeat command BOOL Ej false vartable pibO DBl DBX 0 2 APPLO DB SRESET cancel command BOOL Ej false DBl DBX 0 3 APPLO DB INIT init PIB BOOL E false A Inventory takes place with the positive edge switch from false gt true or 0 gt 1 With Variable gt Modify or Bi the command Inventory is executed You may observe the command execution in the Status Field of the vartable pibO For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false At Inventory 8 UID data byte are received Here the transferred data is APPLO_DB TRLEN 12 long You may find a complete description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Now you may read the Unique Identifier UID in the received data field of the vartable pibO Figure 35 receive buffer The UID in the DBZ DBB 200 BUFFER BUFFER 201 common data buffer HEX B 16 00 received data DB2 DBB 201 BUFFER BUFFER Z02Z common data buffer HEX Be16 01 DB2 DBB 202 BUFFER BUFFER Z203 common data buffer HEX B
73. DBD 142 APPLO DB CMDBUF 3 Start ddress DEC L 0 L 0 Preparations of DBl DBB 146 APPLO_DB CMDBUF 3 Attributes HEX B 16 00 B 16 00 the DBl DBB 147 APPLO DB CMDBUF 3 NextMode HEX B 16 00 vartable pibO ff send buffer E DBZ DBB 0 BUFFER BUFFER 1 conmon data buffer HEX Bfl6 1B Bg16 01 for writing DBZ DBB 1 BUFFER BUFFERIZ common data buffer HEX B l6g03 B 16 02 DBZ DBB 2 BUFFER BUFFER 3 common data buffer HEX B 16 01 Bg16 03 DEZ DEB 3 BUFFER BUFFERI 4 common data buffer HEX B l6 00 Bg16 04 DBZ DBB 4 BUFFER BUFFER S common data buffer HEX B 16 00 B 16 05 DBZ DBE 5 BUFFER BUFFER 6 common data buffer HEX B 16 00 B 16 06 DB2 DBB 6 BUFFER BUFFER 7 common data buffer HEX B 16 00 B 16 07 DB2 DBB 7 BUFFER BUFFER S common data buffer HEX B 16 00 Bg16 08 DBZ DBB 8 BUFFER BUFFERI9 common data buffer HEX B 16 00 Bg16g09 DBZ DBB 9 BUFFER BUFFER 10 conmon data buffer HEX B 16 00 B 16 0A DBZ DBB 10 BUFFER BUFFER 11 common data buffer HEX B 16 00 B 16 0B DBZ DBB 11 BUFFER BUFFER 12 common data buffer HEX B 16 00 Bg16g0C DBZ DBB 12 BUFFER BUFFER 13 common data buffer HEX B l6 00 B 16 0D DBZ DBB 13 BUFFER BUFFER 14 conmon data buffer HEX B 16 00 B 16 0E Overview of the Turck data carriers The data carriers type l Code SL2 are writable and readable starting with the byte No 0 to byte No 111 The Start Byte No is part of the command structure Physical_Read page 4 24 and
74. DBX DBl DBX DBl DBW O APPLO DB l APPLO DB 2 APPLO DB 3 APPLO DB 0 APPLO DB APPLO DB EXECUTE RPTCMD SRESET INIT RDGATE CMDSEL execute command BOOL El false repeat conmand BOOL B false cancel command BOOL E false init PIB BOOL I false A not used BOOL El false selection of command DEC 1 l A Initialization takes place with the positive edge switch from false gt true or 0 gt 1 With Variable gt Modify or E the command Initialization is executed D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A You may observe the command execution in the Status Field of the vartable pibO Figure 50 f f status Status Field of DBl DBX 30 0 APPLO DBE DONE command done BOOL I true DBl DBX 30 1 APPLO_DB BUSY PIB busy BOOL E false vartable pibO DBl DBX 30 2 APPLO DB ERROR execution failed BOOL E false DBl DBX 30 3 APPLO DBE WARNING warning reported BOOL I1 false DB1 DBX 30 4 APPLO DB RPTACT repeat accepted BOOL El false DBl DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL E false DBl DBD 32 APPLO DB STATUS error warning code HEX DW 16 00000000 DB1 DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 1 DB1 DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL Mj crue DB1L DBX 30 7 APPLO DB TP tag in air interface AI BOOL Wue DBl DBX 31 0 APPLO DB UINO transmitter active BooL Mj crue DBl D
75. DBl DBD 104 APPLO DB CMDBUF 2 Start ddress DEC L o 39 DBl DBB 108 APPLO_DB CMDBUF Z Attributes HEX B 16 00 B 16 00 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Most likely the control value APPLO_DB CMDSEL of the vartable pibO still has the value 1 because you have executed Initialization with Command 1 as the final step Now enter 2 for this control value to select the command 2 D101579 1208 BL ident PROFIBUS DP 3 31 Startup of a TURCK BL ident system Figure 52 control Control Field of DBl DBX 0 0 APPLO_DB EXECUTE execute command BOOL E false DBl1 DBX 0 1 APPLO DB RPTCMD repeat command BOOL E false vartable pibO DBl DBX 0 2 APPLO DB SRESET cancel command BOOL E false DBl DBX 0 3 APPLO DB INIT init PIB BOOL E false DBl DBX 1 0 APPLO_DB RDGATE not used BOOL id false DBl DBW 4 APPLO DB CMDSEL selection of command DEC 2 2 Note Load all values to your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the values The command Initialization is displayed with a positive edge of the control variable APPLO_DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 or true as control value Figure 53 control X 7 DB1 DBX 0 0 APPLO_DB EXECUTE execute
76. EC 364 4 41 Approvals and testing of the interface module Table 23 Description Value Approvals and testing per EN 61131 2 Approvals cec Us UL B Ambient temperature Operating temperature 0 to 55 C 32 to 131 F Storage temperature 25 to 85 C 13 to 185 F relative humidity Vibration test 5 to 95 internal Level RH 2 no condensation at 45 C storage per IEC 61131 2 Shock test per IEC 68 2 27 Dumping and falling per IEC 68 2 31 and free fall per IEC 68 2 32 Electromagnetic compatibility per IEC 61131 2 Protection class IP 67 Reliability Lifespan MTBF min 120000 h Pull plug cycles of electronic 20 modules D101579 1208 BL ident PROFIBUS DP 2 37 Mounting and installation Note Additional technical specifications for testing TURCK products of the BL67 product family can be found in the catalog BL67 Modular I O Bus Terminal System in IP67 BL67 D d300574 and the manual BL67 User Manual for PROFIBUS DP D300570 Gateway connection level Table 24 Technical data of the fieldbus side 2 38 Description Value Supply for outputs Supply voltage page 2 23 Vo U nominal value range 24 VDC 18 to 30 VDC Max field supply 10A Supply for inputs also read write heads and system supply transformed to 5 VDC V Ug nominal value range 24 VDC 18 t
77. FID system consists of a data carrier a device for Read and Write access to the data carrier as well as other devices used for data transfer and processing The transfer of data from the data carrier to the read write head occurs contact free with the help of electromagnetic waves The type of transmission is insensitive to dirt and temperature fluctuations The data carriers may be directly affixed to a product This is why the term mobile data memory is used as well Other terms for the data carrier are TAG or transponder The data content may consist of production and manufacturing data The data that identifies the product is important here This is where the description identification system comes from Further reaching possibilities are a result of the fact that the data content can be changed by writing to the data carrier Because of this production manufacturing processes can be retraced Logistics distribution may be optimized The identification systems may be integrated into existing fieldbus automation systems for example PROFIBUS DP The connection to the respective fieldbus system is done with suitable interface modules Standardized software components for example the Proxy Ident Function Block PROFIBUS DP make system integration and startup easy D101579 1208 BL ident PROFIBUS DP 1 3 The TURCK BL ident system Performance characteristics and applications of the BL ident system To meet the requiremen
78. IB 1 ERR LSB HEX B 16 00 9 IB 2 ERR_MSB HEX B 16 00 If a data carrier is in the detection range of the read write head the user range of the data carrier is automatically and fully read During this process TFR 0 and changes to TFR 1 after the read operation is fully completed Only after the detection range has been evacuated TFR again becomes 0 This automatic read operation is interrupted by all user commands the TFR Bit keeps its active value The process is restarted when no other commands exist and when TP 1 Read commands can directly access already stored data via TFR 1 After command execution the read data are in READ DATA 1 to READ DATA 8 D101579 1208 BL ident PROFIBUS DP Startup example for S modules with STEP7 Industri A Figure 76 s Input data after a Var Input_data TI BL67 DPV1 S 2_STEP7 SIMATIC m oO x command a execution Table Edit Insert PLC Variable View Options Window Help 5 x a osla a zelel xj es 8 el jar e es o el Adaress symbot Display format Stats value Modity value 2 02 TP XCVR ON XCVR_CON 0 5 ERROR BUSY DONE ERR LSB ERR MSE READ DATA 1 READ DATA 2 READ DATA 3 READ DATA 4 READ DATA 5 READ DATA 6 READ DATA 7 READ DATA 8 The explanations for the status messages can be found in Significance of the Status Bits page 3 60 D101579 1208 BL ident PROFIBUS DP 3 55 Startup of a TU
79. IBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A aum 26 HS4LAD STL FBD OB1 ne pee File Edit Insert PLC Debug View Options Window Help eve gE TALLERES UID EN Ed p peas IIS ERU MEME CI EV CLASS Comment Bits 0 3 1 Coming event Bits 4 7 3 Sce EE Cold restart scan l of OB 1 Priority of OB Execution l Organization block 1 OBL uc MAIN FB10 The master program OB1 mainly accesses the FB10 Close the OB1 and double click on FB10 in the Components file D101579 1208 BL ident PROFIBUS DP 3 7 Startup of a TURCK BL ident system PIB variable table with the FB10 The FB10 assigns to the variables per the specifications formal parameters the variables for the PIB instance of a channel The explanations for all variables in this component are in 3 Definition of Proxy Ident Blocks PIB page 4 6 In the TURCK project example 2 channels are available for a BL ident 9 communication and this is why two instances of the Proxy Ident Function Block are created The PIB instance to the first channel is identified with 0 All variable names to the first instance also contain a O The second channel is accordingly identified by 1 etc Figure 27 Variables to the first instance 3 8 HESILAD STL FBD FB10 BL ID AeXSIMATIC 300 Station CPU 315 2 DP G File Edit Insert PLC Debug View Options Window Help
80. It counts the number of data transferred starting at the position referenced by TXSTART OffsetBuffer or RXSTART OffsetBuffer This output parameter indicates if set to TRUE that a command has been executed with a positive result The application program should check this flag before calculating the data transferred while executing the command Table 46 Name cont PIB Parameter description RXBUFLEN RXSTART RXREF TRLEN DONE ERROR WARNING This output parameter is used to indicate if set to TRUE that an error has been recognized The error may be recognized local within the host or re mote within the Ident Unit Detailed error information is provided by the STATUS parameter The flag is set by the PIB internally depending on the Error bit within the acknowledgement frame Bit O of CI The flag is reset to FALSE by the PIB instance after a new call of a command This output parameter is used to indicate if set to TRUE that a warning has been recognized The warning may be recognized local within the host or remote within the Ident Unit Detailed warning information is provided by the STATUS parameter The flag is set by the PIB internally depending on the warning bits within the acknowledgement frame Bit 1 7 of CI one or more bits are set to 1 The flag is reset to FALSE by the PIB instance after a new call of a command Note In case of WARNING all user data associated to a command ma
81. L ident systemS uei rtt erste o e Eine Roni nte schen ss epu iai nt ass 1 3 Identification systems with radio frequency technology RFID eere 1 3 Performance characteristics and applications of the BL ident system sess 1 4 PrOtectloniclass aiite ess ba cte aei cite cdi ees ctu Eit teles ec 1 4 LING CY ClO vss e M 1 4 Hiene e ea e 1 4 MOdeIS E E E E E ES 1 5 Speed of data carrier to read write head essssssssssssssssssesseseeee nennen nennen nnne nnne 1 5 Read range Write range cerises iania cue acad nima a saa na na Tane Eanan 1 6 COMPAID aes C UH T 1 7 Applications examples ER 1 7 2 Mounting and installation Interfaces with the protection class IP20 ccccceesseneeeeseeeeeeeeeneeneeeeeeeenseeeeseeeeeeeseeeneeeesseeeneeesseeeneeeenss 2 2 Diagrams and designs of the interface modules sssssseeeeeeeenen nenne 2 2 Supply Volt ge 3 cnp edebat p entres I 2 3 FICIGDUS COMMECUION ere e a N 2 3 nNel crigee e EL 2 5 Service Interface etx Seas Aea ie saciertuse sa Aaaa aa da apa ar ONE EAA RRON 2 6 Connections of read write heads cccceseccceeeeeseeceeeeeeeeceeeeessenseeeeaaeeeeenesgensessessaeeeeseesseeeeseeeeenees 2 8 Diagnostics Via LEDS insansan E sat bwedscedebeceh vee actacd dese bed dad staaeeveed Soeeeaeali 2 1
82. L ident PROFIBUS DP Industri A 4 Communication between PIB and device 4 5 Data access within field device 4 5 1 General device model A PROFIBUS device is whether a compact or a modular device see figure below In case it is a modular device it is constructed of a head station and a number of modules It may optionally have binary inputs and outputs The granularity of devices and modules may vary Figure 92 General Device Model 2 2 MSO cyclic operation Output Telegram Input Telegram PROFIBUS L Module O 1 2 3 n Slave 2 e 5 Head station SOS KO KO e Head station The head station contains the interface to PROFIBUS and the according parameters The head station can be redundant In this case the redundant head station may occupy a backplane slot different from 0 Module A module usually contains a logical or physical combination of channels The modules are inserted into the slots or are otherwise stacked A module may contain several channels Modules are counted continuously starting with the module next to the head station Modules can exist which do not contain channels e g power supply A module is logically identified by a slot number as shown in the figure above The slot number is used for addressing purpose Channel Achannel contains all hard and software components used to produce
83. LO DB RXSTART start index receive buffer DEC L 201 ho control i i DB1DBXx 0 0 APPLO DB EXECUTE execute command BOOL DB1 DBX 0 1 APPLO_DB RPTCMD repeat command BOOL is DBiDBX 02 APPLO DB SRESET cancel command BOOL i4 DBIDBX 03 APPLO_DB INIT init PIB BOOL s DBIDBX 10 APPLO DE RDGATE not used BOOL he DBI DBW 4 APPLO DB CMDSEL selection of command IDEC 1 E i status mei ia DBIDBX 30 0 APPLO DB DONE command done BOOL ja DBIDBX 30 1 APPLO DB BUSY PIB busy BOOL 20 DB1 DBX 302 APPLO_DB ERROR execution failed BOQ 21 DBIDBX 30 3 APPLO_DB WARNING warning reported OOL DB1 DBX 30 4 APPLO_DB RPTACT repeat accepted BOOL 23 DBI DBX 30 5 APPLO DB ERR IREG fatal error init required BOOL 24 DB1DBD 32 APPLO_DB STATUS errorvarning cod HEX 25 DBIDBD 36 APPLO DB TRLEN number of byfes transmitted DEC 26 DB1 DBxX 30 6 APPLO DB TPC number tags in Al changed BOOL DBiDBX 30 7 APPLO DB TP taf air interface AI BOOL 28 DBIDBX 31 0 APPLO_DB UINO ansmitter active BOOL DBiDBX 31 1 APPLO DB UIN1 tag fully read BOOL ao DB1 DBx 313 APPLO DE LIN transceiver connected BOOL 31 v command 1 WriteContig INIT li i 32 DBiDBB 40 APPLO DB CMDBUF 1 CMD HEX Bit 6 78 F s3 DBiDBB 41 APPLO_DB CMDBUF 1 Contig HEX BfleR01 G 34 DB1 DEW 64 APPLO DB CMDBUF 1 Length DEC 0 E D101579 1208 BL ident PROFIBUS DP 3 27
84. Modifying Variables vartable pibO BL ID AeXSIMATIC 300 Station CPU 315 2 DP S7 Program 1 ONLINE K Table Edit Insert PLC Variable View Options Window Help a oela S tlele x fees xe erle oli Smet command 3 DBl DBB 116 APPLO DB CMDBUF 3 CMD HEX Bf le6f 71 B 16 71 A DBl DBB 120 APPLO_DB CMDBUF 3 UID 1 HEX B 16g00 B Hl6 g00 DBl DBB 121 APPLO DB CMDBUF 3 UID 2 HEX B 16g00 B 16 00 DBl DBB 122 APPLO_DB CMDBUF 3 UID 3 HEX B 16 00 B 16 00 DBl DBB 123 APPLO_DB CMDBUF 3 UID 4 HEX B 16 00 B 16 00 B DBl DBB 124 APPLO_DB CMDBUF 3 UID 5 HEX B 16 00 B 16 00 DBl DBB 125 APPLO_DB CMDBUF 3 UID 6 HEX B 16 00 B 16 00 DBl DBB 126 APPLO DB CHMDBUF 3 UID 7 HEX B 16 00 BE 16 00 DBl DBB 127 APPLO_DB CMDBUF 3 UID 8 HEX B 16 00 BH16 00 DBl DBW 140 APPLO_DB CMDBUF 3 Length DEC 32 32 b C DBl DBD 142 APPLO DB CMDBUF 3 Start ddress DEC Lio L o CE D DBl DBB 146 APPLO DB CMDBUF 3 ttributes HEX B l6 00 B le 00 E DBl DBB 147 APPLO_DB CMDBUF 3 NextMode HEX B 16 00 send buffer DBZ DBB o BUFFER BUFFER 1 common data buffer HEX B 16 1B B 1l6 0l DBZ DBB 1 BUFFER BUFFER Z common data buffer HEX B 16 03 B 16 02 DBZ DBB 2 BUFFER BUFFER 3 common data buffer HEX B 16 01 B 16 03 DBZ DBB 3 BUFFER BUFFER 4 common data buffer HEX B 16 00 B 1l6 04 DBZ DBB 4 BUFFER BUFFER 5 common data buffer HEX Be16 00 B 16 05 DBZ DBB 5
85. Nj APPI DB TXSTART j APPLO DB RXBUFLENj APPLO DB RXSTART APPLO DB STATUS APPLO DB DONE APPLO DB BUSY APPLO DB ERROR APPLO DB WARNING j APPLO DB RPTACT APPLO DB ERR IREQ APPLO DB TPC APPLO DB TP APPLO_DB UINO APPLO DB UINL APPLO_DB PIBO INSTANCE EXECUTE ID INDEX OFFSET RPTCMD SRESET INIT UoUTO UOUT1 CMDSEL TXBUFLEN TXSTART RXBUFLEN BXSTART STATUS DONE BUSY ERROR WARNING RPTACT ERR IREQ TPC TP UINO UINl DBl DBD22 DBl DBW26 DBl DBW28 DBl DBXO DBl DBXO DBl DBXO DBl DBXO DBl DBXO DBl DBXO DBl DBXO DBl DBXl DB1 DBWZ DB1 DBW4 DBl DBD6 DB1 DBD10 DBl DBD14 DBl DBD18 DBl DBD32 DB1 DBl1 DEL DEL QO J m i eo meti DBX30 DBX30 DBX30 DBX30 DBl DBX30 DBl DBX30 DBl DBX30 DBl DBX30 DBl DBX31 DBl DBX31 First instance for Channel 1 FOTN OH RWNr OO oea amp ee ol epu Po Safer 1 Dopey c 3H Title pib cycli execute c address B lll cha 0 cham repeat co cancel co init PIB not used not used not used not used not used number of selection send buff start ind receive b start ind error war command d PIB busy execution Warning r repeat ac fatal err number of tag in ai transmitt tag fully D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A Observation
86. PE D101579 1208 BL ident PROFIBUS DP 4 39 Excerpt from the specifications Table 57 Name Definition Source cont Data types UidList Despite the fact that this structure is defined in the ST language it must not be copied into a ST program because it contains an array field with a dynamic length that does not meet IEC 61131 3 ST ST was only selected in the document based on reasons of consistency TYPE ObjectNumber INT END TYPE TYPE UldList ARRAY 1 ObjectNumber OF UID_STRUCT END TYPE The encoding of UID is defined within Technical Report ISO IEC TR 15963 Automatic identification Radio Frequency Identification for item management Unique identification for RF tags Annex A as follows Table 58 AC Allocation Class UID issuer Registration Serial number Encoding of Number UID 8 Bit Size defined by AC value Size defined by AC value MSB LSB Table 59 AC value Class UID issuer Serial Number Registration AC values identifier size size authority of UID issuer Registration Number 11100000 7816 6 8 Bit 48 Bit APACS ISO IEC 7816 6 registration authority 11100001 14816 perNEN perNEN NEN ISO 14816 registration authority 11100010 EAN UCC per EAN UCC per EAN UCC EAN UCC 000xxxxx INCITS 256 per ANS per ANS ANSI ASC INCITS T6 INCITS 256 INCITS 256 11100011 to RFU N A N A Reserved for future 11101111 use by ISO 4 40 D101579 1208 BL ident PROFIBUS DP
87. PIB has to send automatically a Write Config command to the Ident Unit This parameter is activated with the rising edge UOUTO This parameter of type BOOL represents the user specific bit 0 as defined to be transferred within the cyclic control word see chapter 4 2 1 The parameter is mapped to bit O of the cyclic control word UOUT1 This parameter of type BOOL represents the user specific bit 1 as defined to be transferred within the cyclic control word See chapter 4 2 1 The parameter is mapped to bit 1 of the cyclic control word The user program has the task to reset and change all input parameters D101579 1208 BL ident PROFIBUS DP 4 7 Excerpt from the specifications Description This parameter of type BOOL represents the user specific bit 2 as defined to be transferred within the cyclic control word see chapter 4 2 1 The parameter is mapped to bit 2 of the cyclic control word This parameter of type BOOL represents the user specific bit 3 as defined to be transferred within the cyclic control word see chapter 4 2 1 The parameter is mapped to bit 3 of the cyclic control word This parameter of type BOOL represents the optional bit 8 as defined to be transferred within the cyclic control word see chapter 4 2 1 If set to 1 means start operation In order to write a more efficient user application several Commands can be stored within the memory The number of commands stored
88. PPLO DB ERROR APPLO DB WARNING APPLO DB RPTACT APPLO DB ERR IREQ APPLO DB STATUS APPLO DB TRLEN DBl DBX 30 6 APPLO DB TPC DBl DBX 30 7 APPLO DB TP DBl DBX 31 0 APPLO DB UINO l 3 ak ONBO DB1 DBX 31 APPLO DB UINl DBl DBX 31 APPLO DB UIN3 Gonmana 1 Wescetontag UTI 7 DBl DBB 40 APPLO DB CMDBUF 1 CMD DB1 DBB 41 APPLO_DB CMDBUF 1 Config DBl DBW 64 APPLO DB CMDBUF 1 Length pw Pw Pe ww EEE pm mmm epee pepe pepe pepe pe pepe FEE EI SESE eae e s s 8 44 nammi a Turomnenvre L_ID_Ae SIMATIC 300 Station 57 Program 1 s Start VJ SIMATIC Manager B D101579 1208 BL ident PROFIBUS DP w Jalal ec oz Symbol comment Disp Status value Modify value address BLxx ZRFID A DEC L 2 L 2 A 111 channel 1 DEC BID 111 C m B 0 channel 1 DEC o o SES C send buffer length DEC L 200 L 200 n start index send buffer DEC L 1 L 1 E D receive buffer length DEC L 200 L z00 fo start index receive buffer DEC L 201 L 201 execute command BOOL ni false repeat command BOOL m false cancel command BOOL B false init PIB BOOL B false not used BOOL i false selection of command DEC 1 1 SEND E command done BOOL crue PIB busy BOOL B ts execution failed BOOL false warning reported Bod BB false repeat accepted BOOL B false fatal error init reg BOOL P3 taise error warning cog HEX DWf l6f E7FEO0100 number of bye s transmitted DEC L 0 number tags in AI changed
89. PV1 diagnostic messages Path BL67 2RFID S 3 SIMATIC 300 TACPU 315 2 DP Operating mode ofthe CPU lt RUN Status OK General Diagnostic Interrupt Master Address 2 Manufacturer s ID 16 FF2E Hex Format Standard Diagnosis ofthe Slave Watchdog activated Channel Specific Diagnostics Slot Channel n Error Help on selected diagnostic row Close Update Print Help Parameterization Parameterization of the BL67 2RFID S module is only needed when at startup the error ERR_LSB 1 and ERR_MSB 02 was sent with the error byte of the input data In this case the parameter bypass time Kx n 4ms is available per channel Parameter setting is done in the Hardware configurator in Offline Mode Click on the assembly diagram to open the slot list Select the subitem Object Properties by right clicking on the BL67 2RFID S module in this list The parameter is set with Device specific Parameters on the register card Parameter assignment Read the chapters Parameter page 3 65 and Determination of the parameter value bypass time Kx n 4ms page 3 66 if you would like to change the value bypass time Kx n 4ms D101579 1208 BL ident PROFIBUS DP 3 57 Startup of a TURCK BL ident system Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module The values of the command Bits TAG ID READ WRITE can be reset to the output value 0 prior or
90. R CMD BYTE Ox71 q END VAR Parameter Description OffsetBuffer This parameter determines the relative Offset in the TXBUF With it the first address in the memory range is set in which the first byte of the parameter data to be sent will be stored UID This parameter identifies a single data carrier UID 0 Arbitrary no specific data carrier The active present tag is read Length This parameter specifies the number of bytes to be send to the transponder starting at the address indicated by the parameter StartAddress Start This parameter specifies a physical address within the Address trans ponder memory Table 53 Name cont Description of the PIB command Physical_ Write Next This is the command to finish operations regarding one transponder The next command will be executed when the next transponder is recognized indicated VAR CMD BYTE Ox6E n END VAR Parameter Description UID This parameter identifies a single transponder UID 0 Any no specific The tag currently present is read NextMode valid values NextMode 0 The next command can be applied to each another or the same tag NextMode 1 only a different tag will become handled D101579 1208 BL ident PROFIBUS DP 4 25 Excerpt from the specifications Description Table 53 Name cont Description of the PIB command Write Config This service is used to modify operation of t
91. R REQ This output parameter indicates if set to TRUE that the PIB noticed a fatal error It is mapped from the Error Flag of the cyclic input data The output parameter remains active as long as the bit within the cyclic telegram is set The PIB remains in the current state state machine After noticing that this parameter is TRUE the user has to set the INIT input parameter of the PIB or send a Dev Status command if possible UINO This output parameter of type BOOL represents the user specific bit O as defined to be transferred within the cyclic status word see chapter 4 2 2 UIN 1 This output parameter of type BOOL represents the user specific bit 1 as defined to be transferred within the cyclic status word see chapter 4 2 2 UIN2 This output parameter of type BOOL represents the user specific bit 2 as defined to be transferred within the cyclic status word see chapter 4 2 2 UIN3 This output parameter of type BOOL represents the user specific bit 3 as defined to be transferred within the cyclic status word see chapter 4 2 2 TP This output parameter indicates if set to 1 that a target is in the range of the Ident Unit The parameter corresponds to the Target Present bit of the cyclic status word see chapter 4 2 2 It becomes reset in case there is no target in the range of the Ident Unit In case an Ident Unit does not support this feature the parameter is set to 0 This parameter is not used for bar cod
92. RCK BL ident system Error messages via the input data Occurring errors are displayed with the input data via the Accumulative Error Bit ERROR More detailed information for cause of error are provided by the two bytes ERR_LSB and ERR MSB In the table Status values page 3 68 the two digital values in bold correspond to the first and the second error byte of the input data Figure 77 Error display xi COX No read write z ES bes K Table Edit Insert PLC Variable View Options Window Help Connection x 3 plal a slale x 2 e Svjae e x re Symb Displayformat Status value Mody value 0 2 TP faise XCVR ON XCVR CON ERROR BUSY DONE ERR LSB ERR MSB READ DATA 1 READ DATA 2 READ DATA 3 READ DATA 4 READ DATA 5 READ DATA 6 READ DATA 7 READ DATA 8 2 3 4 5 6 8 9 jo m 12 IE 16 IE 29 21 3 56 D101579 1208 BL ident PROFIBUS DP Startup example for S modules with STEP7 Industri A DPV1 diagnostic messages To display Diagnostics page 3 67 change to the hardware configurator Create the online connection with E Double click on the assembly diagram to open the subitem Assembly Status The standard diagnostics of the slave are displayed in the top field on the register card DP slave Diagnostics The diagnostic data of the BL67 2RFID S module are displayed below in the area Channel specific Diagnostics Figure 78 D
93. RFID systems actually standardization activities are under progress These activities are targeted on defining the air interface ISO IEC 18000 as well as the file format and handling of files ISO IEC 15962 as illustrated below This profile specification explicitly focuses on data transfer via industrial networks based on PROFIBUS as well as on the integration into programmable controller systems Figure 86 Relevant Application Interrogator AIR Interface RF Tag standardization decoder tag physical memory activities ogical encoder memory application t mak commands tag driver commands command and a e p response unit mapping application rules responses responses i logical x memory Note the logical memory map in the tag physical memory is given by the tag architecture and the mapping rules in the tag driver All the information in the logical data protocol physical memory is represented in the processor interrogator logical memory map ISO IEC 15961 ISO IEC 15962 ISO IEC 15962 ISO IEC 18000 Annexes Because of these ongoing processes it seems not to be needed to consider these subjects within this document Later on if the standardization within IEC is finished the related documents can be referenced Consequently this document will not consider O Air interface Li File format
94. activation of the read write head using configuration data By entering the values in E to H page 3 9 you may prepare for Send Configuration Values In the TURCK project example the configuration values are already stored in Send Data Field of vartable pibO The Send Data Field is below the command range of vartable pibX here X 0 Only the value of the third configuration byte is of significance Activation Deactivation of read write head is requested using this value and with the next initialization An active read write head creates an electromagnetic field a signal is transferred with 13 56 MHz for example The command Write Config page 3 41 is executed when initialization takes place After the initialization has been completed activation and deactivation of read write head is executed with the command Write Config page 3 41 0x78 and a positive edge of the control variables APPLO_DB EXECUTE For executing the command please follow the same instructions for Read and Write for example B Write to data carrier Channel 1 page 3 15 Note i Load the values to your control Variable modify and ensure with the help of the column Status Values Variable monitor 4 that the control has accepted the values Figure 29 ii send buffer Send buffer of DB2DBB 0 BUFFER BUFFER I common data buffer HEX Bi 6400 B 16 00 A vartable pibO DB2DBB 1 BUFFER BUFFER 2 common data buffer HEX Bit 6x00 B 16 00 B
95. ailed description is given in 4 In combination with the parameter INDEX it addresses an individual Ident Unit INDEX The value of this input parameter is used to identify a single ident channel within a slot of a device The use of the parameter corresponds to the definition of the address parameter Index within 1 and 2 OFFSET The value of this input parameter is used to identify the channel related 1 O data as transferred cyclically as subpart of the data associated to a slot module RPTCMD This parameter forces the Ident Unit to repeat the command currently executed or next to be executed as long as the parameter is set to 1 The parameter is mapped to the Repeat Command bit of the cyclic control word see chapter 4 2 1 SRESET If this input parameter is set to 1 the command currently processed within the Ident Unit will become cancelled The parameter is mapped to the Soft Reset bit of the cyclic control word see chapter 4 2 1 This parameter is activated with the rising edge INIT This input parameter forces if set from 0 to 1 the Ident Unit to restart its operation except the communication interface Local Ident Unit operations done within this procedure are manufacturer specific The parameter is mapped to the Init bit of the cyclic control word see chapter 4 2 1 After the sequence Init Active O Init Active 1 Init_Active 0 cyclic status word has been completed the
96. amp M3 0x08 channel related I amp M information data record I amp M4 0x09 Ox7F reserved 0x80 OxFF manufacturer specific OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area where the first byte of data read is to be stored 4 28 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 53 cont Description of the PIB command Name Description Inventory This command is used to request a list of all UID s currently accessible within the antenna lobe Vendor specific it is possible to deliver additional information The RXBUF is structured as follows Following an example is given to illustrate the construction of the data transferred It is not intended to be used as Structured Text code within the PLC program The example represents the transmission of 5 objects ObjectNumber 5 and ObjectLength 16 VAR CONSTANT ObjectNo INT 5 ObjectLength INT 16 END_VAR TYPE UID_STRUCT STRUCT UID ARRAY 1 8 OF BYTE Data ARRAY 1 ObjectLength 8 OF BYTE END STRUCT END TYPE TYPE UidList ARRAY 1 ObjectNo OF UID STRUCT END TYPE VAR CMD BYTE 0x69 i END VAR Parameter Description Attributes This parameter is used to specify the information to be read Valid values are 0x00 all UID s are read without additional information 0x01 Ox7F r
97. and control with the help of the variable table vartable_pibX Close the FB10 and open the variable table vartable pibO with the help of the Components file This table belongs to the first instance of the PIB and therefore to Channel 1 In order to read the status values and to load the control values activate the online connection to your control PLC Connect to Direct CPU The Mode RUN is displayed green at the bottom right of the window Please adjust the values that are described in the legend in points A through D in the column Control Values when your application differs from the project example Note Load the values to your control Variable modify and ensure with the help of the column Status Values Variable monitor that the control has accepted the values Figure 47 Entries into vartable pibO Ral Yar yartable_pibO Table Edit Insert PLC Variable View Options Window Help osu S X 2 2l E e Er E AS bdule and channel PIBO DB1 DBD 22 APPLO_DB ID address BLxx 2RFID C DEC L 2 A s DB1 DBW 26 APPLO_DB INDEX 111 channel 1 DEC 11 RB DB1 DEW 28 APPLO DB OFFSET 0 channel 1 Dec D E c 5 if selection of send and receive buffer j i p DB1DBD 6 APPLO DB TXBUFLEN send buffer length oec C uo DBIDBD 10 APPLO DB TXSTART start index send buffer DEC Un e DBIDBD 14 APPLO DB RXBLFLEN receive buffer length DEC L 200 DBiDBD 18 APP
98. arameter of a module has to be mapped to an index in order to be accessible by MS1 MS2 services Figure 93 PROFIBUS DP Mapping of input and output values to cyclic index I I i I communication 9 Index Data Set up to 240 Bytes Basic unit Module 1 Module 2 Module 3 Module 4 254 0 Index Index Index 0 254 2 0 1 2 238 239 1 0 1 2 0 0 1 O I I I I I 0 1 2 3 4 Slot Number ascending from left to right In case several channels are assigned to one module they will share the addressing space of the related slot All parameters independent from the channel they are assigned to have to become addressed by an individual index as illustrated below Figure 94 PROFIBUS DP Assignment of parameters and addresses 4 32 Index 254 Index 4 Basic unit Module 1 Module 2 Module 3 Module 4 Parameter n Oi Parameter n 02 Index 0 254 Channel n Channel 2 Parameter n 01 Parameter 1 0i Parameter 1 02 Channel 1 O O O O Slot_Number ascending from left to right Parameter 1 01 D101579 1208 BL ident PROFIBUS DP Industri A 4 5 4 Ident channel definition This chapter describes the mapping of ident channels to modules Basically it is possible that up to 8 ident channels
99. arameterization Channel 8 CHL 8 109 110 reserved 111 Data transfer Channel 1 CHL 1 112 Data transfer Channel 2 CHL 2 113 Data transfer Channel 3 CHL 3 114 Data transfer Channel 4 CHL 4 115 Data transfer Channel 5 CHL 5 116 Data transfer Channel 6 CHL 6 D101579 1208 BL ident PROFIBUS DP 4 33 Excerpt from the specifications Table 54 Indices of a module 4 34 Index Use 117 Data transfer Channel 7 CHL 7 118 Data transfer Channel 8 CHL 8 119 200 reserved 201 254 Manufacturer specific 255 I amp M functions D101579 1208 BL ident PROFIBUS DP Industri A 5 Identification amp maintenance functions I amp M functions The main purpose of the I amp M functions is to support the end user during various scenarios of a device s life cycle be it configuration commissioning parameterization diagnostics repair firmware update asset management audit trailing and alike Well defined uniform parameters and rules should enable the manufacturers to offer devices that behave in a uniform manner and that should enable the end user to act quick and straight Information provided by the I amp M function may be related to the complete device to an individual module within a device ar a channel associated to a module Data structures and access mechanisms for device and module related I amp M functions are defined in PROFIBUS Profile Guideline Part 1 Iden
100. artup of a TURCK BL ident system Table 30 Send data field for command Get Table 31 Received data 3 44 Byte in send data field Content 0 0x02 1 UID of tag UID 0 gt arbitrary UID of tag UID of tag UID of tag UID of tag UID of tag UID of tag UID of tag Q Qo o oO BRB OJN 0x67 i Block No of the block to be switched to write protected 0x00 1 Block OxFF 256 Block When successful the following data is returned Byte in received data field Content 0 0x02 1 0x67 2 Command index If an error occurs there will be a respective display in STATUS Other commands An overview of additional commands can be found in 3 1 4 Commands page 4 23 To execute the commands follow the same process as with Write and Read D101579 1208 BL ident PROFIBUS DP Industri A Startup example for S modules with STEP7 Hardware description of the project example These hardware components were used for the following startup example S7 control CPU 315 2DP DPV1 capable CPU BL ident Interface module TI BL67 DP1 S 2 BL ident read write head TN CK40 H1147 Data carrier TW R50 B128 user data 112 byte Suitable connection lines Please download D101583 which you may find in the download area of the TURCK website if you have questions or if you desire clarification concerning the read write heads and the data carriers
101. ata field of the vartable pibO after successful reading 3 38 receive buffer DB2 DBB 200 FFER DBZ BUFFER BUFFER 201 BUFFER 202 BUFFER BUFFER 204 BUFFER BUFFER 205 BUFFER BUFFER Z07 BUFFER 208 BUFFER ZO09 BUFFER BUFFER Z10 BUFFER BUFFER Z11 BUFFER BUFFER Z12 i BUFFER 213 BUFFERIZ14 BUFFERI215 BUFFER BUFFER Z18 ER 219 UFFER ZZ BUFFER BUFFER Z221 BUFFER BUFFERI222 BUFFER BUFFER 223 BUFFER BUFFER Z224 Te BUFFER 227 BUFFER BUFFER 228 i BUFFER BUFFER Z16 BUFFER BUFFER Z17 Reset the variable APPLO_DB EXECUTE to false after the read operation was successful With Variable gt Modify or false again becomes status value D101579 1208 BL ident PROFIBUS DP Industri A Flow diagram of PIB functionality The following flowchart shows the functionality of the PIB at a glance Additional support for an appropriate programming is provided by the Excerpt from the specifications page 4 1 and the following chapters Figure 62 Flow diagram PIB INITIALISATION RESET Buffer 1 CMD 78h Buffer 1 Config 1 CMDSEL 1 INITIALISATION RESET INIT 1 EXECUTE 0 ERROR 1 DONE 1 ERROR 0 DONE 1 ERROR 0 COMMANDS Example Buffer 3 CMD 70h Buffer 8
102. ata fields Initially the fields were available for entries concerning number of blocks and number of byte per block of the data carrier Keep value 0x00 The value of the actively used data carriers are internally read and processed C The value 0x01 activates the transmitter antenna of the read write head The value 0x00 deactivates the transmitter D101579 1208 BL ident PROFIBUS DP 3 29 Startup of a TURCK BL ident system Initialization of the first channel In the Chapter Setting up the function component PIB page 3 6 you have been introduced to the settings control values relevant for initialization In case your BL ident project differs from the project example an adjustment of the control values took place Note Load into your control Variable modify all values which were described in the prior chapters With the help of the column Status Values watch variable amp please ensure that the control has accepted the values Now start initialization Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window The command Initialization is executed with a positive edge of the control variable APPLO_DB INIT You will create the positive edge by setting the variable from false to true Enter 1 or true as control value Figure 49 Control field of vartable pibO 3 30 control DB1 DBX DBl DBX DBl DBX DB1
103. ata may be transferred via acyclic communication functions The acyclic services are chronologically processed in parallel and in addition to the cyclic process data transfer they are completed with low priority E Earth In electrical engineering the term for conductive earth of which its electrical potential is zero at each point Within the vicinity of grounding equipment the electrical potential of the earth may differ from zero in this case the term common ground reference potential is used Earth electrode One or more components which have direct and good contact with the earth EEPROM Electrically Erasable Programmable Read Only Memory EEPROM describes a non volatile electronic memory component An EEPROM consists of a field effect transistor matrix with insulated floating gate in which each transistor represents a bit D101579 1208 BL ident PROFIBUS DP 5 1 Glossary EMC Electromagnetic compatibility EMC identifies the generally desirable state in which technical devices are not interfering with each other based on unintentional electric or electromagnetic effects Fieldbus Data network at sensor actuator level A fieldbus connects the devices in the field with a control device High transfer safety and real time behavior are characteristic for the fieldbus FRAM Ferroelectric Random Access Memory FRAM describes a non volatile electronic memory type based on crystals with ferroelectric features Grounding
104. between read write head and data carrier is active 0 Transfer with 13 56 MHz between read write head and data carrier is not active TP 1 A data carrier is within the detection range of the read write head and Tag present is recognized by the read write head 0 No data carriers are within the detection range of the read write head or the read write head has not recognized the data carrier TFR 1 All data ranges of the data carrier were fully read by the Tag fully read BL ident system and the data carrier still is within the detection range TP 1 Automatic reading always occurs when a data carrier is within the detection range of the read write head The time between TP 1 and TFR 1 can not be seen as reference time for a read and write command If only few bytes are read or written with a Read or write command the command is being executed significantly faster than the full reading of a 2000 byte data carrier for example With TFR 1 read commands can directly access already stored data 0 The BL ident system has not fully read all data ranges of the data carrier or the data carrier is within the detection range of the read write head This automatic read operation is interrupted by all user commands the TFR Bit keeps its active value The process is restarted if no other commands exist and TP 1 Note ba Depending on the system and in many cases the status bit BUSY can not be used for a handshake operation
105. cerpt from the specifications Table 51 Function Code Error Code 1 Sent by Meaning mandatory cont Error Code decimal optional Values from Byte Error 3 5 IG Create command file 0 already exists in direc tory indicated by Ident Unit 3 6 IG Access right violation o indicated by Ident Unit 3 7 IG File length overflow o indicated by Ident Unit 3 8 IG File not accessible o corrupted indicated by Ident Unit 3 9 127 IG Reserved for future o profile use 3 128 255 IG Vendor specific o 4 1 IG Power supply failure o indicated by Ident Unit 4 2 IG Hardware failure within Ident Unit indicated by Ident Unit 4 3 IG Antenna not operating o indicated by Ident Unit e g switched off or disconnected 4 4 IG Command buffer 0 overflow within Ident Unit indicated by Ident Unit 4 5 IG Data buffer overflow 0 within Ident Unit indi cated by Ident Unit 4 6 IG Command inthis mode o not supported by Ident Unit indicated by Ident Unit 4 18 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 51 cont Values from Byte Error Function Code Error Code 1 Error Code decimal Sent by Meaning mandatory optional Ident Unit reports an unspecific error indicated by the cyclic Status Word e g antenna does not work This error is not related to a specific command
106. command BOOL false OO Control field of DBl DBX 0 1 APPLO DB RPTCMD repeat command BOOL E false vartable pibO DBl DBX 0 2 APPLO DB SRESET cancel command BOOL false DBl DBX 0 3 APPLO DB INIT init PIB BOOL EI false DBl DBX 1 0 APPLO DB PRDGATE not used BOOL E false A Inventory takes place with the positive edge switch from false true or 0 gt 1 With Variable Modify or Bi the command Inventory is executed You may observe the command execution in the Status Field of the vartable pibO For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false At Inventory 8 UID data byte are received Here the transferred data is APPLO_DB TRLEN 12 long You may find a full description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Now you may read the Unique Identifier UID in the received data field of the vartable pibO 3 32 D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Figure 54 The UID in the received data field D101579 1208 BL ident PROFIBUS DP Industri A receive buffer DB2 DBB 200 BUFFER BUFFER Z201 common data buffer HEX B 16 00 DB2 DBB 201 BUFFER BUFFER 202 common data buffer HEX Bfl6 01 DB2 DBB 202 BUFFER BUFFER Z2
107. commended Transfer the configuration data to the automation system PLC gt Download Note When using the function block PIB it is necessary to choose the same value for input and output addresses Confirm the request for the module to be restarted 3 5 Startup of a TURCK BL ident system Figure 25 Hardware Station Edit Insert PLC View Options Window Help configurator Ds a s 5 doli SED 38 rel FIf siMATIC 300 Station Configuration BL ID Ae ol x PROFIBUS 1 DP master system 1 oT EET IEEE Profile Standard x X PROFIBUS DP S82 PROFIBUS PA Wl SIMATIC 300 B SIMATIC 400 SIMATIC PC Based Control 300 400 SIMATIC PC Station ea 15 BLE7 Gw DPV1 Te PROFIBUS DP slaves for SIMATIC S7 Bg M7 and C7 distributed rack Setting up the function component PIB In the project example the basic settings have been selected The following explanations will add to a more thorough understanding so that you may start up differing applications based on this project example as well Close the hardware configurator if it remains open In the left window of the project tree open the file Blocks bottom point in the project tree The component OB1 represents the top program level which is being cyclically processed by the CPU By double clicking on OB1 you may see the program structure 3 6 D101579 1208 BL ident PROF
108. compliant with this PNO specification shall provide a list in the format of this table and shall identify all compliant features of the PIB supported Table 55 Clause Feature Implementation Implementa chosen tion dependant features for the PIB 3 Maximum memory size supported for the TXBUF 3 Maximum memory size supported for the RXBUF 3 Maximum number of commands to be stored within the CMDREF The following table lists the communication related features of the Ident Unit relevant to this profile specification A manufacturer of an Ident Unit which claims to be able to communicate with an instance of a PIB shall provide a list in the format of this table and shall identify all compliant features of the Ident Unit supported Table 56 Clause Feature Explanation Implementation compliant Conformance specific additional Y N table for information Ident devices 3 1 3 Read Command 3 1 3 Get Command 3 1 3 Physical Read Command Sila Write Command 3 1 3 Put Command 3 1 3 Physical_Write Command 3 1 3 Format Command 3 1 3 Create Command SHES Delete Command 3 1 3 Clear Command 3 1 3 Update Command 3 1 3 Next Command 3 1 3 Get Directory Command 4 36 D101579 1208 BL ident PROFIBUS DP Industri A Table 56 Clause Feature Explanation Implementation compliant cont specific additional Y N Conformance information table for
109. control and command bits via the process output data D101579 1208 BL ident PROFIBUS DP 3 49 Startup of a TURCK BL ident system Figure 71 read write head is connected and activated a TFR i2 IP BOOL I false 0 3 XCVR ON BOOL Mitre 0 4 XCVR CON BOOL I true 0 5 ERROR BOOL J false 0 6 BUSY BOOL I false 0 7 DONE BOOL I true IB 1 ERR_LSB HEX B 16 00 IB 2 ERR_MSB HEX B 16 00 Initialization RESET Channel 1 Initialization should be executed after it has been ensured that the read write head is connected and switched on The command to execute initialization is initiated by changing the respective command value from 0 to gt 1 Ensure with the help of Variable monitor that the variable RESET and all other variables have the active output value false 0 starting with Bit 0 0 to 0 6 In the column Modify value set the variable RESET to 1 true Note i Download the changed value into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the value The variable RESET may be reset to false now or after execution The chapter Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module page 3 58 shows how the process flow effects the status messages With Variable Modify or a false again becomes status value 3 50 D101579 1208 BL ident PROFIBUS DP Startu
110. ction of the station to the existing module list red blinking Invalid station 1Hz addresses set D101579 1208 BL ident PROFIBUS DP Please set the correct station address via the hex rotary switch decimal rotary switch Mounting and installation LEDs for the RFID connections Table 8 RFID connections LED Status Meaning Remedy DIA OFF Normal data exchange red Module bus Please check whether more than communication failure two neighboring electronic modules were pulled Relevant are those modules which are positioned between the gateway and this particular module red blinking Diagnostics present 0 5 Hz RWO OFF No Tag in received RW 1 range green Tag in received range green blinking 1 Hz Data transfer from to Tag red Error in read write head red blinking Short circuit read write 2 Hz head supply D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Diagnostic messages and parameterization of the gateway A full description of the gateway diagnostic messages and the parameterization possibilities can be found in the manuals BL20 PROFIBUS DP D300822 BL67 BL20 DPV1 Gateway D300955 Updated Manual for DPV1 Parameterization of the BL20 2RFID A BL20 2RFID S modules BL20 2RFID A At this time parameterization is not needed BL20 2RFID S The only parameter Bridging Time Kx n 4ms must only be changed adjusted wh
111. ction straight z s cables BL67 angled a RK4 5T 2 S2500 S X 8035244 RK4 5T 5 S2500 S X 6699206 RK4 5T 10 S2500 s x 6699207 RK4 5T 25 S2500 S x 6638421 RK4 5T 50 S2500 S T 6638422 WK4 5T 2 S2500 a x 8035245 WK4 5T 5 S2500 a x 6699208 WK4 5T 10 S2500 a x 6699209 WK4 5T 25 S2500 a x 6699423 2 28 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Industri A Table 18 Type description Coupling 2m 5m 10m 25m 50m Ready made Ident No if connection straight s cables BL67 angled a WK4 5T 50 S2500 a x 6638424 For the food and beverage range FB Food and Beverage IP69K FB RK4 5T 5 S2502 S X 8036404 FB RK4 5T 10 82502 S x 8036405 FB RK4 5T 25 82502 S X 8037011 A The Coupling is used to connect the read write head Connection cables for installing a connector and a coupling The BL ident suitable cable CABLE BLIDENT 100M can be self assembled For this purpose install the M12 connector BS8151 0 9 6904613 to connect the interface module and the M12 coupling B8151 0 9 6904604 to connect the read write head Note When installing the connector and the coupling please pay attention to Pin assignment for connection cables page 2 30 Connection level of the base module BL67 B 2M12 Figure 22 Connection level D101579 1208 BL ident PROFIBUS DP 2 29 Mounting and installation Pin assignment for connection cables
112. current via both channels 500 mA Nominal voltage V 24 VDC Isolation voltage Module bus against field side 1000 VDC Supply of read write heads against data 0 VDC cables Field supply against supply of read write 0 VDC heads D101579 1208 BL ident PROFIBUS DP 2 39 Mounting and installation 2 40 D101579 1208 BL ident PROFIBUS DP Industri A 3 Startup of a TURCK BL ident system DPV1 startup example for A modules with STEP7 and PIB eene 3 Hardware description of the project example sssssssessssssssesseeeneenrr nennen nnne 3 Memory requirements for a BL ident startUp cccccccsssessssesessscescssscescscseescssseescassesecatseencatsaeeasenens 3 Basic memory requirements eeesesssisessseesseeeeeeeenn nennen nnne A AREAS ANEN nnne nennt nnn 3 Memory requirements per PIB instance Channel eeesesssssssesseeeeeeeeneneennnentnne 3 Memory requirements for the Read and Write data ssessssseeeeeneeeeenen enn 3 Memory requirements for the hardware example ssssssssssssssseeeseeeeeen nennen 4 Uploading the project example and downloading the active GSD file sssssssss 4 Start of the S7 software and upload of the project example seeeessssseeeeees 5 Hardware configuration and l O addresses eessssss
113. d diagnostics red Gateway sends Replace the gateway static diagnostics hardware error red blinking Gateway sends expanded Please check the single 1Hz diagnostics electronic modules of your BL6 station for diagnostic messages Please check the diagnostic messages of your PLC software 2 33 Mounting and installation Table 20 LED Status Meaning Remedy cont LED displays Bus OFF Fieldbus not in operation Please wait until the firmware download is completed After completion of the download Hardware error replace the gateway green Communication between gateway and PROFIBUS DP master is error free red Bus error on gateway Please check whether the there is no data exchange address that was issued for the station in the project of the control software matches the address set on the module Please check whether the PROFIBUS DP is terminated with an active terminating resistance when the BL67 gateway is the last participant in the bus topology Please check the PROFIBUS DP connector for tight fit Please check the cable to the PROFIBUS DP master for damages and correct connection Please check whether the correct baud rate is set in the PLC master Please compare the projection of the station to the existing module list red blinking A PROFIBUS DP address Please check the PROFIBUS 1Hz that is not allowed has DP address set on th
114. d its own buffer Upon completion of the calculation you may select the function component suitable for your application D101579 1208 BL ident PROFIBUS DP 3 3 Startup of a TURCK BL ident system The total data volume is the result of the following sum Data volume which is read via all active channels and stored in a new Only Read Memory Range Once it has been determined that the Read operation on the individual channels always occurs with an adequately long time offset the memory range may be shared by the channels E Data volume which is read via all active channels and stored in a new Only Read Memory Range Once it has been determined that the Read operation on the individual channels always occurs with an adequately long time offset the memory range may be shared by the channels Data volume which can repeat Read as well as Write data The memory range is alternately used as Write memory range and Read memory range The needed memory range may be reduced to half Note i Please ensure that in any case there is adequate time to hand off the data when you use the Read or Write memory for multiple channels and or alternately for reading and writing Memory requirements for the hardware example Hardware description of the project example page 3 3 offers two channels for connecting one read write head each The Read range and the Write range should have a separate layout The used data carrier may store max 128
115. d range 1 Hz U Undervoltage lOs green Configured constellation of the module bus participant corresponds to the real one communication is active green Station is in the Force Please deactivate the Force mode blinking mode of the I O of the I O ASSISTANT 1Hz ASSISTANT red and LED Controller is not ready Please check the bus refreshing GW OFF for operation or Vcc module at the right side next to the level is not in the gateway and its wiring When the required range power supply voltage is wrongly connected please call your TURCK contact person red Module bus not Please check whether the single ready for operation D101579 1208 BL ident PROFIBUS DP BL20 modules are correctly installed 2 11 Mounting and installation Table 7 cont Fieldbus side LED Status Meaning Remedy red blinking Inadaptable Please compare the projection of 1 Hz modification of the real your BL20 station to the real constellation of the constellation module bus participant Please check the assembly of your BL20 station for defective or wrongly plugged electronic modules red green Adaptable modification Please check the BL20 station for blinking 1 Hz of the real constellation pulled or new modules that are not of the module bus projected participant red blinking No communication via Please check whether the 4 Hz the module bus guidelines for supply module applicatio
116. device model 3 cried ere e eerie cesta 31 4 5 2 Block mapping for cyclic PROFIBUS DP data transfer eeseeeeee 31 4 5 3 Block Mapping for Acyclic PROFIBUS DP Data Transfer seeeeeeeeeee 32 4 5 4 Ident channel definition sseessseseeeeeeesesseeee eene eene nennen nennen nnne nnnnnnnanaa inia rrr rn nnns 33 5 Identification amp maintenance functions I amp M functions eee ees 35 Maedg c p 35 5 2 Channel related Information cecinere nnne nennen nenne nennen nsns nnns 35 Appendix A Compliance table erre ie iere e inae n enean nun uu nana nua uuu aua uua ua Raum R uua uan uar 36 Appendix B Elementary data types used within this specification 38 D101579 1208 BL ident PROFIBUS DP 4 1 Excerpt from the specifications 1 General information TURCK publishes this excerpt of the PROFIBUS Specification Profile for Identification Systems Proxy Ident Function Block Version 1 20 June 2007 by courtesy of the PNO PROFIBUS Nutzer Organisation Please also note Definitions within the command and diagnostics levels page 3 40 1 6 Functional requirements This sub clause defines the functional requirements coming from the application of RFID and BR systems They define the restrictions lim
117. double click on Insert Object and then SIMATIC 300 gt RACK 300 gt profile track In the right window area select from the catalog the CPU type here GES7 315 2AF02 0ABO for your control and insert it with drag and drop In the window Parameter that is opening to the interface select new for Subnet and acknowledge the suggested name for example PROFIBUS 1 Configure the interface module by first dragging the gateway and dropping it into the window with the graphic diagram in order to move it to the system The gateway can be found in the device overview at the right side of the window under PROFIBUS DP gt Additional field devices gt IO gt TURCK gt BL67 gt BL67 GW DPV1 Figure 64 Gateway configuration Figure 65 Gateway Address 3 46 33 HW Config SIMATIC 300 1 Configuration TI BL67 DPV1 S oh Station Edit Inset PLC View Options Window Help Dggs m B S doli ED E3 9 x 0 UR Eind t i PROFIBUS 1 DP master system 1 en ATA Profile Standard x 42 PROFIBUS DP Additional Field Devices vo 1 0 4 TURCK C3 BL67 BLB7 GW DPv1 Universal module Leerplatz BL67 4DI P S BL67 4DI P S Enter as gateway parameter the address that you had set on the gateway housing with the address switch Properties PROFIBUS interface BL67 GW DPV1 General Parameters Address Transmission rate 1 5 Mbps Subnet Properties
118. e DB1 DBX 30 7 APPLO DB TP tag in air interface AI BOOL Mj crue DBl DBX 31 0 APPLO DB UINO transmitter active BOOL Mj crue DBl DBX 31 1 APPLO DB UINl tag fully read BOOL true DB1 DBX 31 3 APPLO_DB UIN3 transceiver connected BOOL W crue For a short period of time the status variable APPLO_DB DONE switches to the status Busy and then continues to display Command Executed true Error free execution is acknowledged with APPLO_DB ERROR false 32 data are sent during Physical_Write this is why the length of the transferred data is APPLO_DB TRLEN 32 You may find a full description of the status data in Warnings and error messages page 3 68 and 3 1 3 Error and Warning Concept page 4 13 Reset the variable APPLO_DB EXECUTE to false after the write operation was successful With Variable gt Modify or Bi false again becomes status value Read from the data carrier Channel 1 This chapter explains the reading of 32 byte data with discretionary content from your RFID data carrier Reading from the data carrier of the first channel is possible after Initialization of the first channel page 3 12 has been completed D101579 1208 BL ident PROFIBUS DP 3 35 Startup of a TURCK BL ident system In the prior chapter you wrote data arbitrary to the data carrier with the command Physical Write In this chapter you will read the same data with the Physical Read command from the data ca
119. e been set on the gateway gateway No allowed are 000 and addresses 125 Please refer to Chapter Addressing page 2 25 2 34 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Industri A LEDs for the RFID connections The LEDs are positioned on the modules above the connection level Table 21 RFID connections LED Status Meaning Remedy D OFF Normal data exchange red Module bus Please check whether more communication than two neighboring electronic failure modules were pulled Relevant are those modules which are positioned between the gateway and this particular module red blinking Diagnostics present 0 5 Hz RW 0 OFF No Tag in received RW 1 range green Tag in received range green Data transfer from to blinking 1 Hz Tag red Error in read write head red blinking Short circuit 2 Hz read write head D101579 1208 BL ident PROFIBUS DP 2 35 Mounting and installation Diagnostic messages and parameterization of the gateway A full description of the gateway diagnostic messages and the parameterization possibilities can be found in the manuals BL67 User Manual for PROFIBUS DP D300570 for DPVO BL67 BL20 DPV1 Gateway D300955 Updated Manual for DPV1 Parameterization of the BL67 2RFID A BL67 2RFID S modules BL67 2RFID A At this time parameterization is not needed BL67 2RFID S The only parameter Bridging Time Kx n 4ms must only be c
120. e internal algorithm for packaging data and align the PDU size 00 Default corresponds to 240 Byte 64 240 max permitted PDU size of within the PIB 01 63 reserved 241 255 reserved 4 26 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Description This service is used to read config data out of the Ident Unit The RXBUF is used as manufacturer specific area for config data Config data are manufacturer specific The parameter TRLEN of the PIB indicates the number of bytes received VAR CMD BYTE 0x61 a END VAR Parameter Description OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area where the first byte of data read is to be stored Table 53 Name cont Description of the PIB command Read Config Mem Status This service is used to read the status of a tag battery condition memory size type of tag available capacity The RXBUF is used as manufacturer specific area for status data Status data are manufacturer specific The parameter TRLEN of the PIB indicates the number of bytes received VAR CMD BYTE 0x73 s END VAR Parameter Description UID This parameter identifies a single transponder UID 0 Any no specific The tag currently present is read Attributes This parameter is used to specify the cla
121. e is at Inventory page 4 29 Figure 32 6 DB1 DBB 78 APPLO DE CMDEUF 2 CHD HEX B l 69 B 16 69 Command 2 of kd DBl DBW 102 APPLO DBE CMDBUF 2 Length DEC 0 H 8 DBl DBD 104 APPLO DB CMDBUF 2 Start ddress DEC L 0 vartable pibO 9 DBl DBB 108 APPLO DB CMDBUF 2 A ttributes HEX B 16 00 BHl 00 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Most likely the control value APPLO_DP CMDSEL of the vartable pibO still has the value 1 because you have executed Initialization with command 1 as the final step Now enter 2 for this control value to select the command 2 D101579 1208 BL ident PROFIBUS DP 3 13 Startup of a TURCK BL ident system Figure 33 10 ff control DBl DBX 0 0 APPLO DB EXECUTE execute command BOOL El false Control Field of DBl DBX 0 1 APPLO DB RPTCMD repeat command BOOL false vartable pibO DBl DBX 0 2 APPLO DB SRESET cancel command BOOL EE false DB1 DBX 0 3 APPLO DB INIT init PIB BOOL isl false DBl DBX 1 0 APPLO DB RDGATE not used BOOL EB false DBl DBW 4 APPLO DB CMDSEL selection of command DEC Z r4 Note Load all values to your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the values The command Initialization is displayed with a positive edge of the control variable APPLO_
122. e measures at his own expense Attention The auxiliary supply must meet the requirements of the safety low voltage SELV Safety extra low voltage per IEC 364 4 41 Approvals and testing of the interface module Table 10 Approvals Approval and testing per ce EN 61131 2 3 Ambient temperature Operating temperature 0 to 55 C 32 to 131 F Storage temperature 25 to 85 C 13 to 185 F relative humidity 5 to 95 96 internal Level RH 2 no condensation at 45 C storage Vibration test per EN 61131 Shock test per IEC 68 2 27 Dumping and falling per IEC 68 2 31 and free fall per IEC 68 2 32 Electromagnetic compatibility per EN 61131 2 Protection class IP20 Reliability Lifespan MTBF 120000 h Pull plug cycles of electronic modules 20 Note i Additional technical specifications for the tests and for TURCK products of the BL20 product family can be found in the catalog BL20 Modular I O Bus Terminal System D300417 and the Manual BL20 PROFIBUS DP Hardware and Projection D300822 D101579 1208 BL ident PROFIBUS DP 2 17 Mounting and installation Gateway connection level Table 11 Description Technical data of the fieldbus side Value Field supply U Supply voltage page 2 3 U Nominal value range 24 VDC per 61131 2 I Max field supply current 10A Current from field supply per 2 channel 100 mA RFID module no ac
123. e reader TPC This output parameter indicates if set to 1 that a new target is in the range of the Ident Unit The parameter corresponds to the Tar get Presence Changed bit of the cyclic status word see chapter 4 2 2 The parameter is reset to 0 after the next Inventory command succeeded In case an Ident Unit does not support this feature the parameter is set to 0 This parameter is not used for barcode reader The user program has the task to reset and change all input parameters 4 10 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 47 Name Data type Range User Features of conditions PIB parameters mg mandatory o optional EXECUTE BOOL When DONEzO or ERRORzO a m change from 0 to 1 of the parameter EXECUTE forces the function block to execute a command if DONE 0 and ERROR O0 the PIB has not been initialized or a command is in process ID DWORD 0x00000000 Ox FFFFFFFF m please see 4 INDEX INT 101 108 111 118 201 254 OFFSET INT 0 244 RPTCMD BOOL 0 No Repeat Command o 1 2 Repeat Command SRESET BOOL Change from 0 to 1 forces m the function block to execute the SRESET command termination of the last actual command INIT BOOL Change from 0 to 1 forces m the function block to execute the initialization procedure UOUTO BOOL Bit 0 0 1 o UOUT1 BOOL Bit 0 0 1
124. e s t eaa rone tesa aaan Dabo pasan soci a3 36g 4 36 Appendix B Elementary data types used within this specification eeeeeee esse 4 38 5 Glossary D101579 1208 BL ident PROFIBUS DP iii D101579 1208 BL ident PROFIBUS DP Industri A Safety instructions Prior to installation work Switch device to zero voltage Protect device from restart Determine voltage free state Earth and short circuit Cover or construct a barrier around neighboring parts components under voltage Please follow the respective instructions for mounting the device Only staff appropriately qualified per EN 50 110 1 2 VDE 0105 Section 100 may handle the device system When performing the installation please pay heed to the requirement of conducting a statical discharge on your person prior to touching the device The function earth FE must be connected to the protective earth PE or the potential equalization The builder is responsible for the design of this connection Connection and signal lines are to be installed in such a way that inductive and capacitive controls may not have a diminishing impact on automation functions Automation engineering equipment and its service components are to be installed in such a way that they are protected from accidental operation In order to prevent that a line or wire breakage on the signal side does not lead to undefined states in the automation equipment res
125. ead and by the speed with which the data carrier passes by the read write head The read write heads that use UHF operating frequencies will reach a distance of several meters Read write heads that operate with 13 56 MHz HF transfer frequencies will reach shorter distances Here the longest distance approx 500 mm will be reached with the model TNLR Q350 H1 147 if a round data carrier with a 50 mm diameter is used With the help of the software BL ident simulator the application parameters speed range and data volume may be changed Therefore an optimum combination read write head and data carrier may be selected for the appropriate application You may find the simulator online at http www turck com D101579 1208 BL ident PROFIBUS DP Performance characteristics and applications of the BL ident system Industri A Figure 2 BL ident Know what s coming simulator 9 Modular RFID System 9 d Time 1 10 257 Bytes 128 68 msec 128 68 mm Tag 1542329 TW R50 HT Features Mami 20 Mem write RW Head TN S32XL H1147 Features Type TN S32XL H1147 Mounting conditions non flush writa read distance 15 160 Accept data quantity byte iata quantity byte 5 125 wee S p C 1100 ENT QRM 15o Compatibility All technical data refer to the BL ident system this means to the combination of BL ident
126. ed 0x5C Alarm Ack 0x5D reserved Ox5E Read 0x5F Write 0xCO reserved 0xC1 FE 0xC2 NI 0xC3 AD 0xC4 EA D101579 1208 BL ident PROFIBUS DP 3 71 Startup of a TURCK BL ident system Table 40 Digits 1 and 2 of the hexadecimal error Significance Digits1and2 code of the hex error code 0xC5 LE 0xC6 RE 0xC7 IP 0xC8 SC 0xC9 SE OxCA NE OxCB DI 0xCC NC OxCD TO OxCE CA OxCF to OxDO reserved OxD1 Error Data Transport OxD2 to OxD6 reserved 0xD7 Error Initiate 0xD8 reserved 0xD9 reserved OxDA reserved 0xDB reserved OxDC Error Alarm Ack 0xDD reserved OxDE Error Read OxDF Error Write 3 72 D101579 1208 BL ident PROFIBUS DP Warnings and error messages Industri A Table 41 Digits 3 and 4 of the hexadecimal error Significance Digits 3and4 code of the hex error code 0x00 to 0x7F reserved 0x80 DPV1 0x81 to OxFD reserved OxFE to OxFF PROFILE_SPECIFIC Table 42 Digit 5 of the Significance Digit 6 of the Significance Digits 5and6 hexadecimal error hexadecimal of the hex code error code error code OxA application 0x0 0000 read error 10 decimal z 1010 binary 0x1 0001 write error 0x2 0010 module failure 0x3 to 0x6 not specific 0x7 0111 busy 0x8 1000 version conflict 0x9 1001 feature not supported OxA to OxF User specific 0xB access 0x0 0000 invalid index 11 decimal
127. eeseeeeeeneneeeen nennen nene nnne 5 Setting up the function component PIB ssssssssssssssssssesseseee enne enne rennnn nnn nnns nini innen 6 PIB variable table with the FB10 sssssssssssssssssssssseseseeeee eene nrethn nsn nn nnne nnn nn nennen nnns nns 8 Observation and control with the help of the variable table vartable pibX s 9 Activation and deactivation of the read write head using configuration data 11 Initialization of the first channel ccc cccceeeeeeeeeeeeeeeeeeeeeeeeeeee ees eaaaaaaaeaeeeeeeeeeeeeeeseenaaaeaeeeeeeeeees 12 Read of UID from data carrier Channel 1 cccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaaeaaaeeeeeeeeeeeeeeeeeeeeseaaeees 14 Write to data carrier Channel 1 c ccccccceeeeeeeeeeeeeeeneaeeeceeeeeeeeeeaaaaaaaeaeaeeeeeeeeeeesesessaneaeaaeeeeeeeeees 15 Read from data carrier Channel 1 o ceceeeeccceeeneeeeee eee eee eeeeeaaaeaeeeeeeeeeeeeeeaeaaaaaaaeeeeeeeeeeeeeeeeenenaaeees 18 DPVO startup example for C modules with STEP7 and PIB ee 21 Hardware description of the project example ssesssesssssssssssseeeneneee nnne nnns 21 Memory requirements for a BL ident 9 startup essent tete te tnn tn tete inis 21 iBasic memory requirements ssis eene rre nn EX NENNEN AARAA NEEE A KESASAR ARARKEN RRR 21 Memory requiremen
128. egeneration RFID Radio Frequency Indentification RFID Technology This technology supports a contact free transfer of data with the help of an electromagnetic alternating field This type of transfer is also called radio frequency technology A Tag is used as data carrier is Station Function block of the assembly consisting of multiple components STEP 7 STEP 7 is the current programming software of the Simatic S7 SPS family of the company Siemens AG and is the sequence to STEP 5 Ba Tag RFID tags are small transponders in an application suitable enclosure for example sticker chip card tag Transceiver Sender and receiver combination The RFID technology uses transceivers in form of so called Readers These devices send a signal first which the transponder for example RFID tag acknowledges by sending a response which in turn is received by the transceiver and sent to a computer system for further processing Transponder Transmitter Responder Response sending device A transponder consists of a microchip with an unique identification No a send receive antenna and an enclosure Data is transferred between a read device and a transponder via electromagnetic waves Transponder Technology also RFID Technology vu UHF Ultra High Frequency This frequency range belongs to the microwave range RIFD functions in Europe with 865 868 MHz USA 902 928 MHz Japan 955MHz China 840 845 MHz and
129. en a certain error message appears at startup Parameter page 3 65 Diagnostic messages of BL ident channels Possible software diagnostic messages I O ASSISTANT Table 9 Diagnostics of Ident module Diagnostic byte Description l O ASSISTANT DPV1 Error and bit code Diagnostic channel 1 0 0 reserved 1 reserved 2 Overload Ident Overcurrent the supply of the 4 read write head transceiver is switched off 3to 7 reserved 1 0 Hardware failure Transceiver hardware error 21 1to2 reserved 3 Undervoltage Transceiver voltage supply error 2 4 to 7 reserved D101579 1208 BL ident PROFIBUS DP 2 15 Mounting and installation Table 9 cont Diagnostics of Ident module Diagnostic byte Description l O ASSISTANT DPV1 Error and bit code Diagnostic channel 2 2 0 reserved 1 reserved 2 Overload Ident Overcurrent the supply of the 4 read write head transceiver is switched off 3to 7 reserved 3 0 Hardware failure Transceiver hardware error 21 1to2 reserved 3 Undervoltage Transceiver voltage supply error 2 4 to 7 reserved D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Technical data Warning This device may cause radio interference in living quarters and small industry living business and commercial areas small business In this case the user may be asked to implement respectiv
130. enn 63 I 65 Determination of the parameter value bypass time Kx n Ams esseseseesesesesess 66 BI egfocu P 67 Warnings and error messages sense eeeeeesaeee ee nau aau season sesso aa saa anas RR nnn 68 IEC conform error messages ccsa Degree p dep AE ue Her ELE e FE doe ere aa E 71 User data ranges of the data carrier versions eere eee ee eerie nee ea enne a nna a anu u anna nan 75 Access to the data ranges of the data carriers essssssssssesseeeneeeenen enne 75 Overview of the Turck data carriers sseessessssssssssssssssssesenennnn enne nennen nnne nrerrn inn n nennen nnn 75 D101579 1208 BL ident PROFIBUS DP Industri A DPV1 startup example for A modules with STEP7 and PIB The startup of a BL ident system using the SIMATIC basic software Step 7 and the standard software component Proxy Ident Function Block PIB for interface modules with A discs for example TI BL20 DPV1 2 is described below A first startup should be easy and it should be possible to do this with no programming skills For this purpose TURCK provides a project example You may order the CD BL IDENT CD with the project example directly from TURCK Ident No 1545052 Hardware description of the project example These hardware components were used for the following startup examp
131. ent PROFIBUS DP Startup example for S modules with STEP7 Industri A Activating the read write head You may access the process data and their functions via both variable tables Open the variable table Output_data to activate the read write head An active read write head creates an electromagnetic field the signal is transferred with 13 56 MHz for example In order to read the status values and to download the control values activate the online connection to your control PLC gt Connect to gt Direct CPU The Mode RUN is displayed with a green mark at the bottom right of the window You will receive the active values of the process output data via Monitor Variable J In the column Modify value set the variable XCVR to 1 true Figure 70 ra The read write Table Edit Insert PLC Variable View Options Window Hep head variable poela al x c XCVR x oela a x m e e x fE ne far saa l Fia ial Address 1 RESET J false 1 XCVR_INFO 2 TAG INFO 3 WRITE 0 ByteCount0 BateCount1 2 ByteCount2 AddrHi AddrLo WRITE DATA 1 ooooooonononon WRITE DATA 8 Note Hi Download the changed value into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the value Note it Ensure that the read write head is connected and activated before setting additional
132. ere the first byte of data received has to be stored All following bytes have to be stored at incremented addresses Length This parameter specifies the number of bytes to be sent to the Ident Unit starting at the address indicated by the parameter Offset Buffer The range is 0 226 Physical This is the command to read data from a transponder using a physical start Read address and the length of data to be read The parameter TRLEN of the PIB indicates the number of bytes received VAR CMD BYTE 0x70 p END_VAR Parameter Description OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area where the first byte of data received has to be stored All following bytes have to be stored at incremented addresses UID This parameter identifies a single transponder UID 0 Any no specific The tag currently present is read Length This parameter specifies the number of bytes to be read from transponder starting at the address indicated by the parameter StartAddress Start This parameter specifies a physical address within the Address trans ponder memory D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Description This command permits writing to a data carrier of data that is defined via a physical start address and the length of the data to be written VA
133. eserved 0x80 OxFF manufacturer specific OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area where the first byte of data read is to be stored D101579 1208 BL ident PROFIBUS DP 4 29 Excerpt from the specifications Table 53 Name Description cont Description of the PIB command Definition of sub parameters delivered within the response Parameter Description Object This parameter specifies the number of UID s delivered No within the acknowledge Object This parameter specifies the number of bytes associated Length to a single UID length of UID additional data In case of Attributes 20x00 the following applies ObjectLength 8 UidList This optional parameter contains a list of manufacturer specific information associated to the UID s currently accessible within the antenna lobe 3 1 6 PIB Timing The following diagram represents the general timing of the PIB Figure 91 1 2 3 General timely EXECUTE control of PIB SRESET W IlU fF or INIT oo A fJfeliyo avr E Sel Sw ERROR o 1 The EXECUTE INIT SRESET input remains 1 until the function block invocation has completed it is reset by the user after DONE gets 1 2 The user pulses the EXECUTE INIT SRESET input only for one invocation The request is not aborted 3 Like case 1 but an error occurred 4 30 D101579 1208 B
134. ess input data Figure 83 s a iih Two erorbyte B 8 1 ERRLSB HEX Bites of the process 9 IB 2 ERR_MSB HEX B 16480 input data IB 4 READ DATA 1 HEX B 16 00 IB 5 READ DATA 2 HEX B 16 00 an ID c NCAM MATA J ucv DODOBACHAN The following table explains the significance of STATUS values Table 39 Status value of Significance of error code Status values 3 68 APPLO DB STATUS RFID standard profile DW 16 E1FE82xx Tag memory error for example CRC error DW 16 E1FE82xx Dwell period of the tag in the detection range was not sufficient for successful command processing Information for the possible cause and correction of this error can be found in Determination of the parameter value bypass time Kx n 4ms page 3 66 for the BLxx 2RFID S Module DW 16 E1FE82xx The indicated address range or command does not match to the used tag type DW 16 E1FE82xx Tag is defective and must be replaced DW 16 E1FE82xx Tag in the detection range does not have the expected UID DW 16 E1FE82xx Tag does not support the active command DW 16 E1FE82xx At least one part of the indicated range in the tag is write protected DW 16 E4FE01xx Supply of read write head was switched off because of increases current consumption for example short circuit DW 1 6 E4FE82xx Antenna or rather transmitter of the read write head is switched off WriteConfig needed Write Config page 4 26 page 3 10 page 3 41
135. everage IP69K FB RK4 5T 5 S2502 g X 8036404 FB RK4 5T 10 S2502 g x 8036405 FB RK4 5T 25 S2502 X 8037011 A The Coupling is used to connect the read write head D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Characteristics of the connection cables of type RK and WK Shielded E PUR outer jacket PVC silicone and halogen free Highly flexible Crosslinked by irradiation resistant to weld flash oils High mechanical durability Approval Characteristics of connection cables of type FB Shielded PVC outer jacket Approval Connection cables for installing a coupling The cable CABLE BLIDENT 100M suitable for BL ident can be assembled by the user For this purpose please install the M12 coupling B8151 0 9 6904604 to connect the read write head Note i When connecting the coupling please note the column Color Mapping RK4 5T and WK4 5T of Pin assignment for connection cables page 2 30 Note E Please close the open end of the connection cable per the following two paragraphs D101579 1208 BL ident PROFIBUS DP 2 9 Mounting and installation Connection terminals when using the connection cables RK4 5T and WK4 5T Figure 11 Data 0 BK Connection of Datas 0 WH read write head n transceiver for connection cables RK4 5T
136. false 0 starting with Bit 0 0 to 0 6 In the column Modify value set the variable READ to 1 true As an example 8 byte should be read here With ByteCountO to ByteCount2 the value 8 1 721115 4 must be displayed Set the Bits to 1 true D101579 1208 BL ident PROFIBUS DP 3 53 Startup of a TURCK BL ident system With the data carrier TW R30 B128 the user data range starts at 0 other data carriers may have differing user data ranges Please observe chapter Overview of the Turck data carriers page 3 75 With the variables AddrHi and AddrLo the range on the data carrier is accessed The variable READ may be reset to false now or after execution The chapter Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module page 3 58 shows how the process flow effects the status messages Note i Download the changed value into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the value The following diagram displays the status data after the command Bit has been reset again prior to command execution Figure 75 Input data prior to command execution 3 54 E E Symbol Display format Status value Modify value NI TFR BOOL B false 2 02 TP BOOL I false 0 3 XCVR ON BOOL tne 04 XCVR CON BOOL Mitre 5 05 ERROR BOOL I false 6 06 BUSY BOOL I false 07 DONE BOOL Mitre 8
137. fective Please check the supply voltage of the system connected to the gateway and the wiring Pull surplus modules Replace the gateway if needed 2 31 Mounting and installation Table 20 LED Status Meaning Remedy cont LED displays lOs OFF CPU is not supplied by Please check the supply voltage voltage of the system connected to the gateway green Configured constellation of the module bus participant corresponds to the real one communication is active green blinking Station is in the Force Please deactivate the Force 1 Hz mode of the mode of the l O ASSISTANT l O ASSISTANT green blinking The allowed max number Please check the number of 4Hz of modules connected to modules connected to the the gateway has been gateway and pull surplus exceeded modules if needed red and Controller is not ready for Please check the supply LED GW OFF operation or Vcc level is voltage of the system not in the required range gt connected to the gateway and possible causes the wiring too many modules on Pull surplus modules gateway Replace the gateway if short circuit in connected needed module gateway defective red blinking Not adaptable Please compare the projection 1Hz Modification of the real of your BL6 station to the real constellation of the module constellation bus participant Please check the assembly of your BL67 station for defective or wrongly plugged i
138. g control execution allocation optimization and control of processes for the movement from one location to another of goods data energy and persons as well as the needed means of transport LSB English abbr for Least Significant Bit Bit with the least significance Master The Master controls access of a master slave operation in the fieldbus range MSB Abbr for Most Significant Bit Bit with the most significance Parameterization Setting of parameters of the individual bus participants or rather their modules in the configuration software of the DP Master D101579 1208 BL ident PROFIBUS DP Industri A PIB Abbr for Proxy Ident Function Block This function block represents an Ident system in the control This is why there exists a uniform program interface for the actual application PLC Abbr for Programmable Logic Controller R Read write head The read write head also read write device creates an electromagnetic high frequency field This is how data is transferred and the data carrier transponder is supplied with power The data is displayed with the help of modulation of the electromagnetic field Repeater In the field of digital communication technology the repeater is a signal regenerator which receives a signal in the bit physical layer then regenerates it and resends it Noise as well as jitter of the run time and the pulse format are removed from the received signal during this type of r
139. g to the data volume when reading and writing With the BL ident system TURCK supplies PIB versions to accommodate the different data volumes when reading and writing PIB 001KB CYC PIB 016KB CYC PIB 032KB CYC D101579 1208 BL ident PROFIBUS DP 3 21 Startup of a TURCK BL ident system The following calculation rule shows how the memory requirements for Read and Write are being calculated Prerequisite is that the buffer is being used by multiple channels instances The memory requirements will significantly increase when each instance is assigned its own buffer Upon completion of the calculation you may select the function component suitable for your application The total data volume is the result of the following sum Data volume which is read via all active channels and stored in an Only Read Memory Range Data volume which is written via all active channels and stored in an Only Write Memory Range Data volume which can repeat Read as well as Write data The memory range is alternately used as Write memory range and Read memory range The needed memory range may be reduced to half Memory requirements for the hardware example Hardware description of the project example page 3 21 offers two channels for connecting one read write head each The Read range and the Write range should have a separate layout The used data carrier can store max 128 byte For the calculation max 200 byte Read memory and
140. gain becomes status value Write to the data carrier Channel 1 This chapter explains the writing of 32 byte data with discretionary content to your RFID data carrier Writing to the data carrier of the first channel is possible after Initialization of the first channel page 3 12 has been completed In this example we have selected data which can be easily recognized during the following Read from data carrier Channel 1 page 3 17 Writing of data is executed with the command Physical_Write dt physical writing Enter the command code 0x71 for Physical Write into the field Command 3 of the vartable pibO A full description of this command code is at Physical Write page 4 25 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Now enter 3 for the control value APPLO_DB CMDSEL of the vartable pibO to select the command 3 In the send data field enter 32 byte as hexadecimal numbers Following writing we will explain reading We enter the number series 1 2 3 4 5 6 7 8 9 A B 20 which will be easily recognizable for us You may enter the hexadecimal digits as single digits or double digits and without additional format instructions B 16 The SIMATIC Manager adapts to the suitable format 3 33 Startup of a TURCK BL ident system Figure 55 Preparing the vartable pibO for writing 3 34 fA Monitoring and
141. hanged adjusted when a certain error message appears at startup Parameter page 3 65 Diagnostic messages of BL ident channels Possible software diagnostic messages I O ASSISTANT Table 22 Diagnostic Description I O ASSISTANT DPV1 Error Diagnosticsof byte and code Ident module bit Diagnostic channel 1 0 0 reserved 1 reserved 2 Overload Ident Overcurrent the supply of the read 4 write head transceiver is switched off 3to7 reserved 1 0 Hardware failure Transceiver hardware error 21 1to02 reserved 3 Undervoltage Transceiver voltage supply error 2 4to7 reserved Diagnostic channel 2 2 0 reserved 1 reserved 2 Overload Ident Overcurrent the supply of the read 4 write head transceiver is switched off 3to7 reserved 3 0 Hardware failure Transceiver hardware error 21 1to2 reserved 3 Undervoltage Transceiver voltage supply error 2 4to7 reserved 2 36 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Technical data Industri A Warning This device may cause radio interference in living quarters and small industry living business and commercial areas small business In this case the user may be asked to implement respective measures at his own expense Attention The auxiliary supply must meet the requirements of the safety low voltage SELV Safety extra low voltage per I
142. hannel 1 ssssssssssssssessssseeeeeenee eene 36 Flow diagram of PIB functionality Leser ierieeeeie iieri ene u ununi nana anu a aaa u a uua una aua a 39 Definitions within the command and diagnostics levels 1 eec 40 Write C Omg e 41 Example for configuration data sesssssssesseeeeeeeeeeeennenne nennen enne rnnt nnn 41 Reena i Mee 42 WAV SIAL OMY E HEU E PEE 42 meii 42 Physical Witte EEE 42 MU E 42 Dev Statis n anesan sec cena oi a a a a a SEE MEET 42 mccum 43 m K 43 Co 43 Other COMMAS aote ote tke RM a itttcss a 44 D101579 1208 BL ident PROFIBUS DP 3 1 Startup of a TURCK BL ident system 3 2 Startup example for S modules with STEP7 scssessscesessscnseeesenseeeescseeesenseeenenensenseensesseenees 45 Hardware description of the project example 00 cece eee eeeceeeeeeeee cette ee eeeeaaaaaaaeeeeeeeeeeeeeeeeeeeseneaaeees 45 Download ofthe active GSD flle it tette re avec eters ee E Rang 45 Start of the STEP7 software and creating a new project sesessss
143. he Ident Unit except interruption of the communication It is possible to send new parameters to the Ident Unit ConfigData Also a reset can be initiated requesting the Ident Unit to restart operation The TXBUF is used as manufacturer specific area for config data Config data are manufacturer specific Normally Write Config is executed automatically by the PIB during INIT Optionally Write Config may be started with EXECUTE Mandatory operation to be supported Config 1 Optional to be supported Config 2 or Config 3 VAR CMD BYTE Ox78 x END VAR Parameter Description OffsetBuffer This parameter specifies the relative offset within the TXBUF It specifies the first address within the memory area where the first byte of data to be sent is to be stored Length This parameter specifies the number of config data byte to be written to the Ident Unit Config Config 0 not allowed Config 1 Reset no ConfigData Config 2 no Reset ConfigData to be send Config 3 Reset ConfigData to be send Config gt 3 reserved Definition of sub parameters delivered within the response MaxPacketSize This parameter is transmitted from the PIB to the PIB and provides information about the max length of the Ident PDU Ident header data the slave device is able to receive or send The PIB checks the PDU length supported by the PIB dynamically within the initialization phase INIT PIB adapts th
144. he base module BL67 B 2M102 seessseeseeneeeeeeenneeenen nen 29 DiaQnostics Vid LEDS HOPES 31 LEDs of the fieldbus SIGE assscesccncscddeevnessetets aaaeaii aiaa Seana ceayhcceduaeGnetecudsayteusskdeeysecegacesoeeee 31 LEDs for the RFID connections c cscecceceeeeeeeeeeeeeeeeeeaeeeeeeeee eee eaaaaaaaaaeaeeeeeeeeeeeseeeeneaaaaeseseeeens 35 Diagnostic messages and parameterization of the gateway essen 36 Parameterization of the BL67 2RFID A BL67 2RFID S modules eee 36 xr M 36 xy 36 Diagnostic messages of BL ident Channels sssssscscscscsesesesssesecscscscsesesesesesesssecacsesesesesesesesecavaes 36 NEZ ge iMorwlim cL HEUS 37 Approvals and testing of the interface module ssssssssssseesseeeeeeneneeeeennrnnnnn 37 Gateway connection leval serrare iania Ret cg aerei rta De pesce ED ERE E Y TEES HEAR RANA RKAS 38 Connection level of read write head esssesesieesesseeeesee nennen nennen nnn nennen nnn 39 D101579 1208 BL ident PROFIBUS DP 2 1 Mounting and installation Interfaces with the protection class IP20 Diagrams and designs of the interface modules The BL ident 9 PROFIBUS interface is available with 2 4 6 8 channels Interface modules w
145. hia fo Salar Es AO el Bl Main Program Sweep Cycle Comment Lx The master program OB1 mainly accesses the FB10 Close the OB1 and double click on FB10 in the Components file D101579 1208 BL ident PROFIBUS DP 3 25 Startup of a TURCK BL ident system PIB variable table with the FB10 10 The FB10 assigns to the variables per the specifications formal parameters the variables for the PIB instance of a channel The second channel is accordingly identified by 1 etc The explanations for all variables in this component are in 3 Definition of Proxy Ident Blocks PIB page 4 6 In the TURCK project example 2 channels are available for a BL ident 9 communication and this is why two instances of the Proxy Ident Function Block are created The PIB instance to the first channel is identified with 0 All variable names to the first instance also contain a O Figure 46 Variables to the first instance 3 26 Options Window Help VSLAD STL FBD FB10 MAIN BL ID CeXSIMATIC 300 StationCPU 315 2 DP FB10 ick File Edit Insert PLC Debug View P B DDOlKB CYC 2 APPLO DB Variables per specifications APPLO DB APPLO DB OFFSET APPLO DB RPTCMD APPLO DB SRESET APPLO DB INIT APPLO DB vuoUTO APPLO DB UOUT1 APPLO DB UOUTZ z APPLO DB UOUTS3 APPLO DB RDGATE APPLO DB CMDDIM APPLO DB CMDSEL APPLO B TXBUFLE
146. ics Industri A There are three diagnostics for read write head with 2 byte for each channel These diagnostics are also displayed with the ERROR byte of the process input data Table 37 Bit Diagnostic Data byte 7 6 4 3 2 1 0 Channel 1 0 Overload 1 Error Hardware error Channel 2 2 Overload 3 Error Hardware error A Byte No Table 38 Description Significance Significance of the error Bits Overload The voltage supply of the read write head was switched off because of overcurrent DW 16 E4FE01xx page 3 68 Hardware error There is a hardware error of the read write head DW 16 E4FE81 xx page 3 69 Undervoltage The voltage supply of the read write head is not in the required range DW 16 E4FE88xx page 3 69 D101579 1208 BL ident PROFIBUS DP 3 67 Startup of a TURCK BL ident system Warnings and error messages At the startup of an interface module type TI BLxx DP1 x or TI BLxx DPO x and the Proxy Ident Function Block an error and warning code is sent with the variables APPLO DB STATUS Figure 82 23 DBl DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL false The variable 24 DB1 DBD 32 APPLO DB STATUS error warning code HEX APPLO DB 2s DBl DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 0 STATUS At the startup of an interface module type TI BLxx DPV1 S x the error and warning code is displayed with two byte of the proc
147. iew page 1 2 Depending on the application the time for data transfer and processing within the complete installation may vary If your application requires a fast sequence of data carriers it may be necessary to decrease the speed with which the data carrier passes by the read write head When in doubt we recommend to empirically determine the possible speed Note EU The transfer curves max read write distance length of transfer zone only represent typical values and test lab conditions Because of component tolerances installation situation of the application ambient conditions and interferences caused by materials especially metals the distances that can be reached may differ up to 30 96 This is why it is absolutely necessary to test the application especially during Read and Write when movement occurs under real conditions In addition the recommended distance from data carrier to read write head should be complied with if possible in order to gain errorless read write operations despite of possible discrepancies Depending on the actual transfer curve of the respective application the parameters of reachable pass over speeds Read and Write on the Fly and the max transferable data volume also change Read range Write range The reachable read write distances depend on the respective combination of data carrier and read write head The possible read write distance is influenced by the data volume to be written and to be r
148. in an UID This UID is always compared to the UID of the TAG when values z 00 have been entered here Ensure that here all 8 byte have the value 00 if you do not wish to execute the UID comparison function C Here you may enter the number of byte which are to be transferred into the send data field The number of possible byte depends on the size of the received data field nage 3 10 and the memory capacity of the used TAGs In this TURCK example 32 byte are written to the TAG 112 byte The size of the received data field is 200 byte D With the help of this address each byte on the TAG may be explicitly accessed as start address The start address L 0 is selected in this example If you use a different data carrier than the one in this project example please follow Chapter User data ranges of the data carrier versions page 3 75 E With these Attributes some commands may be specified more closely This value is not considered with the Write and Read command In 3 1 4 Commands page 4 23 you will find an overview for all possible commands and the possibilities to more closely specify them via Attributes In any case please also pay attention to Definitions within the command and diagnostics levels page 3 40 Note i Load all the field values Control and Command 3 into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the val
149. influences the range of memory to be instantiated for this PIB instance The input parameter CMDDIM defines the number of command parameter structures CMD_STRUCT As there may be a certain number of commands stored in parallel there must be a selector for a single command to be executed The input parameter CMDSEL is used for this purpose It references one of the predefined commands The first CMD_STRUCT is reserved for parameters associated to the command Write Config This In Out parameter references a global memory range This memory range is used to store commands and their associated parameters The max number of commands stored in association with a single PIB instance shall not exceed 10 Chapter 3 1 4 defines the commands supported by the profile version supported by the profile version This input parameter specifies the number of bytes used by this instance of the PIB for storing data to be send The number is calculated starting from the relative position within the memory range defined by the TXSTART parameter For consistency reasons it is recommended not to modify this parameter after the PIB is instantiated The input parameter TXSTART indicates the relative position of the TXBUF within the global memory area referenced by the parameter TXREF This is the starting point of memory assigned to the PIB instance For consistency reasons it is recommended not to modify this parameter after the PIB is instantia
150. ing of UID from the data carrier Channel 1 ssessseeeeeennn menn 3 51 Write to data carrier Channel 1 cccccceccceeeeeeeeeeeeeeeeeaaaeeeeeeeeeeeeeaaaaaaaaaeeeeeeeeeeeeeeeeeseceieaeeeeeees 3 52 Read from the data carrier Channel 1 ssesssssssssssssssseeeeeeenenne nennen nennen 3 53 Error messages via the input data nennen nnne nennen nnns 3 56 DPV1 diagnostic messages eeessssesseseesesseeeeen nennen nennen nnns nn EANNA ANELEE nennen esent 3 57 Parameterization teilte dde Ee Re ip rA o des RESET CHEER SERA Des Pe HERE aana idas DEER 3 57 Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module 3 58 ii D101579 1208 BL ident PROFIBUS DP Industri A Process image of BL67 2RFID S BL20 2RFID S Module eene 3 59 PROCESS INPUL Cate esc cxehceecs EE 3 59 Pro ess OUTPUT data Eri re deh ux cadeedeanecneddvhs cess dan vecendeeesdastaniuey sas MERRER Ne KRENE RE RN 3 62 Parame lO acensas 3 65 DIAQMOSTICS erie Lm 3 67 Wamings and error messages ice eerie too reticere enne Ere uuu ie tcu pr aen iones knee irn rua ao eec cu ara arie uana 3 68 IEC conform error messages excutere ii retirer etie dil a Ra ede a gn Ere Ee ad acu d das 3 71 User data ranges of the data carrier versions ceeeeeeeeeeeeeeeeneneennnen nennen nnne nnns 3 75 Access to the data ranges of the data carriers 3
151. ion identifier 18 to 63 User data range Read write via 4 5 to 15 Physical Read page 4 24 and Physical Write page 4 25 3 76 D101579 1208 BL ident PROFIBUS DP User data ranges of the data carrier versions Industri A The data carriers type FRAM are writable and readable starting with the byte No 0 to byte No 1999 The Start Byte No is part of the command structure Physical_Read page 4 24 and Physical Write page 4 25 and is called Start Address The table explains the data structure of the data carrier E TW R20 K2 TW R30 K2 E TW R50 K2 E TW R50 90 HT K2 a Table 45 Byte No Content Access Block No Data structure StartAddress of the FRAM one block has 8 data carriers byte 0 to 1999 User data range Read write via 0 to 249 Physical_Read page 4 24 and Physical_Write page 4 25 2000 to 2007 UID Read only via 250 Inventory page 4 29 2008 to 2015 AFI DSFID EAS Read Write with 251 limitations via specific command 2016 to 2047 Special functions Read only via 252 to 255 for example EAS QUIET specific command D101579 1208 BL ident PROFIBUS DP 3 77 Startup of a TURCK BL ident system 3 78 D101579 1208 BL ident PROFIBUS DP Industri A 4 Excerpt from the specifications 1 General information 1 1 eier eerie ien ee uu uunuu au ua arua aaa ERR RR RRRRRRRRR ARRA RR ARR RER RREuERORRa AERA 2 1 6 Functional Requ
152. irements essssssssssssessseeeeseeeeenennnnnnnnn nnne nnn nnn nnnnnen iss s ann n nnn n nn tern n renes nns 2 1 6 1 General requirements priii nran rataan eraa aapa aaa aava aak EKE adadni TANAR aS aaa ES 2 1 6 2 Requirements coming from the use of Radio Frequency Identification Systems 3 2 Modelling the Proxy Ident Block PIB ee eere eee ree rere renean nnne n nnn nana nana 5 2 1 Principles of Modelling tinere ie ERR RRIERE Fe ee XR EERe eka EORR ERR ERR Roa X RRE Rene ERR useETY 5 2 2 General PIB modeel eiiis aaia aaaea rrr nnn nnn nn nena tenen esas ss Daaa Saaie iaaiiai 5 VESNSITel i aule 5 3 Definition of Proxy Ident Blocks PIB eeee eere e eere e eren nere n nnne u nnn nun 6 3 121 Block Definition B prr ase e aa ei dah eed 6 z33 2 Parameters 304 se ce cass ces cae a detexit tete i oct ELLE 7 8 1 3 Error and Warning Concept seseeessessseeseeeeseene nenne nnne nnne nennt nnn nnne nennen nnn 13 ees olaan TR To AERE ED T E E E A E E E E TTE 23 xu iR 30 4 Communication between PIB and device Lec eere eese serae nennen uae nuu uana uana uana 31 4 5 Data access within field device ccccecccccccececeeeeeceeceeeeeeaeeeassssesssseseseeecececeeeeeeeeeeesseeasaaanaaaaes 31 4 5 1 General
153. itations for the design of the PIB and the corresponding functions to be realized within the field device As there are different functions regarding RFID and BR they are described in parallel 1 6 1 General requirements The basic idea is to adapt existing RFID and BR systems to PROFIBUS technology enabling integration into existing systems and to ease the use in new systems refer to figure below Figure 85 Basic design 4 2 IEC 61131 3 Comm FB amp A4 PRORIBUS DPVA Air interface Y IEC 61131 3 acyclic file transfer PIB Interrogator Barcode reader cyclic control and status word p Buffer e e Application e program not modified e As existing proprietary solutions have to overcome there are certain restrictions to be considered in addition to the conformance to PROFIBUS technology It is required that LJ Integration of RFID and BR systems do interfere with existing Profibus systems to a minimum extend Control flow is done with cyclic communication Data transfer is done with acyclic communication Application programs are kept independent from introducing PIB Fragmentation Defragmentation of data packages is kept inside the PIB D101579 1208 BL ident PROFIBUS DP 1 General information Industri A 1 6 2 Requirements coming from the use of Radio Frequency Identification Systems Regarding
154. ith the add on S Simple stand for a user friendly startup opportunity With a Write or Read command 8 byte can be transferred Interface modules without the add on S offer a higher number of possible commands and a large data transfer volume per command Figure 3 BL ident Interface modules with the protection class IP20 2 and 8 channeled Table 1 Product description Identnummer BL ident Interface modules with the protection class IP20 TI BL20 DPV1 2 1545004 TI BL20 DPV1 4 1545005 TI BL20 DPV1 6 1545006 TI BL20 DPV1 8 1545007 TI BL20 DPV1 S 2 1545074 TI BL20 DPV1 S 4 1545075 TI BL20 DPV1 S 6 1545076 TI BL20 DPV1 S 8 1545077 2 2 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Supply voltage The supply of the BL ident interface module is done via both connection terminals U and Usys field supply and system supply A voltage in the range 18 to 30 VDC nominal value 24 VDC is connected to each of the 2 pole screw terminals In the transformed state the system supply is 5 VDC from 24 VDC and can supply a max 1 5 A This voltage is internally transmitted with the wire pair of the 7 wire module bus and serves to supply the module electronics on the module bus side The field supply voltage is 24 VDC and can supply a max 10 A This voltage is led through the interface module via a conductor line The module electronics on the fie
155. ldbus side and the connected read write device are fed by the field supply voltage Connections of read write heads page 2 8 Figure 4 Supply of the BL ident interface module UL Usys Fieldbus connection A SUB D connection supports the communication of the gateways via the fieldbus PROFIBUS DP Figure 5 PROFIBUS SUB D connection D101579 1208 BL ident PROFIBUS DP 2 3 Mounting and installation Attention A SUB D connector with special shield and certified per PROFIBUS standard is needed for fieldbus transfer because of the high transfer speed Ready made PROFIBUS cables from TURCK with a connector type certified per PROFIBUS standard can be found in the TURCK catalog Fieldbus Technology D301052 If the BL ident interface module is used as the first or last participant in the bus communication at one end of the bus segment a connection of type D9T451 xM must be used The SUB D connectors of these connector types have an integrated terminating resistance and a connected PROFIBUS cable The SUB D connectors for the TURCK connections of type D9 451 xM xM have an integrated terminating resistance and two PROFIBUS connectors x indicates the length of the connected PROFIBUS cable s As an example the pin assignment of the female connector is displayed here Attention If the BL ident interface module is used as the first or last participant in the bus communication the use of a special bu
156. le E ST7 control CPU 315 2DP DPV1 capable CPU E BL ident Interface module TI BL67 DP1 2 E BL ident read write head TN CK40 H1147 Data carrier TW R50 B128 user data 112 byte Please download D101583 which you may find in the download area of the TURCK website if you have questions or if you desire clarification concerning the read write heads and the data carriers Memory requirements for a BL ident startup Basic memory requirements The basic memory requirements for the startup of the BL ident system using the Proxy Ident Function Block is 14 kilobyte Memory requirements per PIB instance Channel An instance of the Proxy Ident Function Block is created for each channel In addition to the basic memory requirements each channel will need 0 6 kilobyte Memory requirements for the Read and Write data The Proxy Ident Function Block PIB occupies one memory range as a send and receive buffer The size of the memory range must be laid out according to the data volume when reading and writing With the BL ident system TURCK supplies PIB versions to accommodate the different data volumes when reading and writing E PIB 1KB PIB 16K E PIB 32K The following calculation rule shows how the memory requirements for Read and Write are being calculated Prerequisite is that the buffer is being used by multiple channels instances The memory requirements will significantly increase when each instance is assigne
157. mal Bit O to 3 decimal 0 Oso amp 0 1 OD so WS No error 1 0 1 0 1 Doon US Error not related to DP protocol and not defined for this profile 1 2 0 1 Qaoo IS Error message regarding DP protocol refer to 2 and 4 1 3 0 1 0 vendor specific coding of Error Code 1 and Error Code 2 1 3 0 1 1 Error Code 1 provides error information related to Tag Transponder Barcode vendor specific coding of Error Code 2 1 3 0 1 2 Error Code 1 sends error information to air interface manufacturer specific coding of Error Code 2 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 49 Frame PDU Error Code 2 is cont Select or Indicator used for warnings Values ofbyte Bit 7 Bit 5 to 6 Bit 4 Function decimal decimal Num Function Code Error Code Bit O to 3 decimal Description per this profile 1 3 0 1 3 Error Code 1 provides error information related to file system vendor specific coding of Error Code 2 1 3 0 1 Error Code 1 provides error information related to Ident Unit Interroga tor Barcode Reader vendor specific coding of Error Code 2 1 3 0 1 1 3 0 1 Error Code 1 provides error information regarding communication between PIB and Ident Unit except DP error vendor specific coding of Error Code 2 Error Code 1 provides command specific error information vendor specific coding of Error Code 2
158. may be assigned to an individual module Module 0 is not used to support an ident channel For each of the ident channels two indices are used for acyclic communication O Index 10x x representing the channel number Indices 101 to 108 are used to parameterize one ident channel Only the Write_Config command is allowed to be transferred through these indices After the module starts up a Write Config must be sent to each ident channel The channel is not ready for operation until this is done A Write Config is also accepted during normal operation Write Config interrupts a running command The user receives no further acknowledgment for the interrupted command O Index 11x x representing the channel number Indices 111 to 118 are used for sending the actual commands and related acknowledgments all commands except Write_Config Note i BL ident Modules have 2 channels per module This only allows the use of Indices 111 to 112 Other indices only carry error messages DW 16 E7FE06xx page 3 70 The indices of a module are used as follows Table 54 Index Use Indices of a module 0 100 reserved 101 Parameterization Channel 1 CHL 1 102 Parameterization Channel 2 CHL 2 103 Parameterization Channel 3 CHL 3 104 Parameterization Channel 4 CHL 4 105 Parameterization Channel 5 CHL 5 106 Parameterization Channel 6 CHL 6 107 Parameterization Channel 7 CHL 7 108 P
159. n electronic modules red blinking No communication At least 1 electronic module 4Hz via the module bus must be plugged in and able to communicate with the gateway red green Adaptable modification of Please check the BL6 station blinking 1 Hz the real constellation of the for pulled or new modules that module bus participant are not projected Voc 5 CPU is not supplied Please check the system supply on the gateway green Module bus and CPU o k 2 32 D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Table 20 cont LED displays D101579 1208 BL ident PROFIBUS DP Industri A LED Status Meaning Remedy Vo green Supply of outputs o k green Undervoltage Vo system Please check the supply blinking 1 Hz is running voltage of the system m connected to the gateway green blinking Overvoltage Vo 4 Hz System is running OFF Voltage supply missing Vi green V o k 5 green blinking Undervoltage V systemis Please check the supply 1Hz running voltage of the system Y connected to the gateway green blinking Overvoltage V 4 Hz system is running red Short circuit or overload on An automatic restart occurs as sensor supply Vs 4 44 2 Soon as the error no longer switching off the sensor exists supply OFF Voltage supply missing Please check the supply voltage of the system connected to the gateway DIA OFF Gateway does not sen
160. n alarm message to a HMI system by the application program or by the PLC system automatically Note i In case 1 only very few different reactions dependent on the indicated error are typical Detailed error information is hardly used As the PIB encapsulates other FB s Communication FB s and functions the STATUS parameter represents status information generated by several sources Also the parameter STATUS can be used to provide warning information Optionally to the use of the STATUS parameter it is possible to transmit error and warning information within diagnostic data refer to chapter 4 4 D101579 1208 BL ident PROFIBUS DP 4 13 Excerpt from the specifications The STATUS output has the data type DWORD which is interpreted as a packed array of four bytes as described in the following table Table 48 Byte Name Definition Data type Structure of STATUS output 0 Function_Num Please see Table 49 Byte 1 Error_Decode Please see Table 50 Byte 2 Error_Code_1 Please see Table 51 Byte 3 Error_Code_2 Warnings of manufacturer Byte specific errors The Function_Num byte definition is based on 2 and extends the additions made in 4 It is used for grouping of failures and warnings Table 49 Frame PDU Error Code 2 is Function Description per this Values ofbyte Selector Indicator used for warnings Code profile Function_ Bit 7 Bit 5 to 6 Bit 4 Error_Code Num decimal deci
161. n c DATA2 TxD 2 RxD 5 5 V CtriMode RTS 6 n c CLK2 RxD 3 TxD Connections of read write heads Ready made connection cables with coupling and connector Table 17 Type description Coupling Connector 2m 5m 10m Ready made connection Ident No straight g straight g cables BL67 angled a RK4 5T 2 RS4 51T S2500 g g x 6699200 RK4 5T 5 RS4 5T S2500 g g x 6699201 RK4 5T 10 RS4 5T 82500 g g X 6699202 WK4 5T 2 RS4 5T S2500 a g x 6699203 WK4 5T 5 RS4 5T S2500 a g x 6699204 WK4 5T 10 RS4 5T a g x 2500 6699205 Type description Coupling Connector 0 3m 25m 50m Ident No straight g straight g angled z a RKA4 5T 0 3 RS4 5T g g x 2500 6699210 RK4 5T 25 RS4 5T S2500 g g x 669921 1 D101579 1208 BL ident PROFIBUS DP 2 27 Mounting and installation RK4 5T 50 RS4 57 S2500 g g x 8035246 WKA 5T 25 RS4 5T a g x 2500 6638425 WKA 5T 50 RS4 5T a g x 2500 6638426 A The Coupling is used to connect the read write head B The Connector is plugged into the interface module Ready made connection cables with coupling The Coupling is used to connect the read write head M12 connectors BS8151 0 9 6904613 are used to connect the interface module Note i When installing the connectors please pay attention to Pin assignment for connection cables page 2 30 cedo Type description Coupling 2m 5m 10m 25m 50m Ready made Ident No A conne
162. n the Ident Unit Li After sending a cyclic control message INIT SRESET the consecutive change of parameter DONE is related to the cyclic control message and not to the command interrupted by INIT or SRESET L1 INIT resets communication cyclic control and status flow acyclic commands between PIB and Ident Unit For this procedure first Init is sent within cyclic control word After the Init Active bit within the status word is reset a Write Config command is generated and sent to the Ident Unit This requires that the user is providing Write Config parameters within the command area before requesting INIT see chapter 4 2 3 Li Write Config resets all functions within the Ident Unit except communication Lj SRESET terminates the last command D101579 1208 BL ident PROFIBUS DP 4 23 Excerpt from the specifications Table 53 Description of the PIB command 4 24 Name Description Get This is the command to read manufacturer specific data located at the Ident Unit The TXBUF is used as manufacturer specific area for parameter data optional send data Received data are stored within the RXBUF starting at the beginning of the RXBUF The parameter TRLEN of the PIB indicates the number of bytes received VAR CMD BYTE Ox62 b END_VAR Parameter Description OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area wh
163. nager will become active Figure 24 After the start of the SIMATIC Manger D101579 1208 BL ident PROFIBUS DP f SIMATIC Manager BL_ID_Ae X Edit Insert PLC View Options Window Help Sage X Bale aaj o 25 2l xp 21s x E BL ID Ae C Siemens Step7 S7proj BL_ID_Ae E BL ID amp e Object name Symbolic name ZR Bly Hardware E M CPU 3152 DP CPU 3152 DP Ex S Program 1 B Sources y Blocks f lt NoFiter gt l4 Author Last Comment 16 11 16 11 Type Size Station configuration CPU Please open the project example with the File gt Retrieve Select from your directory the TURCK example file BL_ID_A zip The SIMATIC Manager will suggest a file location end directory for your BL ident test project You may acknowledge it or change it Acknowledge Do you want to open these now Hardware configuration and I O addresses When double clicking on SIMATIC in the file directory tree in the left side of the window Hardware appears among others in the right side of the window Here you may adjust the configuration settings when your hardware setup differs from the project example By double clicking on the PROFIBUS DP station here BL67 you may see the hardware configuration You may change the l O addresses suggested by the SIMATIC Manager Concerning the example it is beneficial if you keep the l or rather Q addresses 2 5 as re
164. nd or with a country specific transfer frequency in the UHF range 860 960 MHz between the data carriers and the read write heads HF Systems that operate with this transfer frequency are to a large extent insensitive to electromagnetic interferences Therefore the 13 56 MHz transfer frequency has developed into the standard in many RFID applications UHF Systems in this frequency band gain higher read write ranges compared to HF typically several meters The carrier frequencies are country specific and in Europe for example they are between 865 and 868 MHz D101579 1208 BL ident PROFIBUS DP Industri A Models Data carriers HF For the HF operating frequency TURCK supplies round flat data carriers for example with 16 20 30 and 50 mm diameters The high temperature data carriers have a cylindric design for example 22 x 125 mm Inlays and adhesive labels have a foil thickness size for example 43 x 43 mm Special designs are suitable for installation in and mounting on metal Other designs are data carriers in a glass cylinder housing or as a flat bank card format Some data carriers have holes so that they may be affixed with screws UHF Data carriers for UHF have different designs and mounting possibilities and are optimized for either small housing dimensions or large data transfer ranges Data carriers with high protection class also for the application in the field are available as well as data carriers f
165. ng in of nominal voltage for outputs D101579 1208 BL ident PROFIBUS DP in case of the BL67 2RFID module supplies the microcontroller at the fieldbus side 2 23 Mounting and installation The Principle switching diagram of the interface module page 2 23 shows how the voltages V 4 and Vg 5 are used by the interface module and then transmitted The read write heads are supplied via the voltages Va 4 44 V This connection is overload and short circuit protected The LED V page 2 33 indicates when an error occurs with this voltage Ready made cables for PROFIBUS DP can be found in the appendix of the TURCK catalog Fieldbus Technology D301052 Fieldbus connection M12 bus connection The BL ident interface module is connected to the PROFIBUS DP via M12 x 1 connector 5 pole inverse coded M12 x 1 connector to connect to the arriving bus line Figure 16 PBDP connector DP IN Figure 17 PBDP female connector DP OUT Table 15 Pin assignment of M12 x 1 connector 2 24 Pin No M12 x 1 Description 1 5V Supply of external devices 2 A Data cable Received Send Data P green 3 GND Data reference potential 4 B Data cable Received Send Data N red 5 Shield Shield connection function earth Attention No equalizing current must flow across the shield For this purpose a safe system must be created for potential equalization D101579 1208 BL iden
166. nit It follows the basic concepts of Proxy FB modeling as described in 4 Figure 88 Using Comm FB and Proxy FB for PIB modelling PLC DP Master Class1 IEC 61131 3 Program D101579 1208 Proxy FB i i Proxy FB One Proxy FB FB_Field Device Control roxy m DeviD field device WRREG L METHOD l data m1 result m1 Comm FB data m2 result m2 inside a Proxy FB RDREC L EE Local Instance Data 2 3 Representation The representation of the interface of function block types is given in graphical and textual form according IEC 61131 3 The behavior of the function blocks is presented as a graphical state diagram with tables for the transitions and the actions BL ident PROFIBUS DP 4 5 Excerpt from the specifications 3 Definition of Proxy Ident Blocks PIB This chapter provides the specification of the Proxy Ident Block following the guidelines as stated within 4 Note In case several PIB instances are operated by an application program in parallel it must be guarantied that individual instances do not block each other 3 1 1 Block Definition The following figure provides a graphical presentation for the interface of the PIB
167. ns have been followed DIA OFF Gateway does not send diagnostics red blinking Gateway sends Please check the single electronic 1 Hz expanded diagnostics modules of your BL20 station for diagnostic messages Please check the diagnostic messages of your PLC software red Gateway generates Please check the single electronic static diagnostics modules of your BL20 station for diagnostic messages Please check the diagnostic messages with your PLC software Bus OFF Fieldbus not in Please wait until the firmware operation download is completed After completion of the download Hardware error replace the gateway green Communication a between gateway and PROFIBUS DP master is error free D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Table 7 LED Status Meaning Remedy cont Fieldbus side red Bus error on gateway Please check whether the PROFIBUS DP is terminated with an active terminating resistance when the BL20 gateway is the last participant in the bus topology Please check the PROFIBUS DP connector for tight fit or rather check the direct wiring connections All connections must be correct and they must have a tight fit Please check the cable to the PROFIBUS DP master for damages and correct connection Please check whether the correct bit transfer rate is set in the PLC master Please compare the proje
168. o 30 VDC l Safeguarding supply for inputs 4A against overload and short circuit Current from V to supply the gateway 650 mA Current from V to supply the 2 channel 130 mA RFID connection Current from V to supply the read write lt 250 mA heads for details please refer to technical data for read write heads System supply 5 VDC from V lug Max output current of module bus 1 5A supply Physical interfaces Transfer speed fieldbus 9 6 kbps to 12 Mbps Connection technology fieldbus 2 x M12 5 pole inverse coded Fieldbus termination external Address range fieldbus 1 125 Address range fieldbus 3 decimal rotary switches Service interface Connection technology power supply PS 2 female connector for I O ASSISTANT 5 pole 7 8 connector D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP67 Connection level of read write head Industri A Table 25 Technical data for connection level to read write heads Inputs Outputs Number of channels 2 Transfer type serial differential transfer to read write head Data buffer receive send 8 8 kbyte Transfer rate 115 2 kbps Cable length 50m Cable impedance 120 Q Potential isolation via optocoupler Connection technology read write heads M12 coupling Supply of read write heads from V 500 mA per channel short circuit protected Sum
169. of the first channel page 3 12 has been completed In this example we have selected data which can be easily recognized during the following Read from data carrier Channel 1 page 3 17 Writing of data is executed with the command Physical_Write dt physical writing Enter the command code 0x71 for Physical Write into the field Command 3 of the vartable pibO A full description of this command code is at Physical Write page 4 25 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Now enter 3 for the control value APPLO_DB CMDSEL of the vartable pibO to select the command 3 In the send data field enter 32 byte as hexadecimal numbers Following writing we will explain reading We enter the number series 1 2 3 4 5 6 7 8 9 A B 20 which will be easily recognizable for us You may enter the hexadecimal digits as single digits or double digits and without additional format instructions B 16 The SIMATIC Manager adapts to the suitable format D101579 1208 BL ident PROFIBUS DP 3 15 Startup of a TURCK BL ident system Figure 36 Preparations of the vartable pibO for writing 3 16 4 Monitoring and Modifying Variables vartable pibO BL ID AeYSIMATIC 300 Station CPU 315 2 DPYS7 Program 1 ONLINE K Table Edit Insert PLC Variable View Options Window Help a oela a slale x Pe ve Sylar Sea col
170. of the memory range in the data carrier which is to be accessed via the Write or Read command The writable and readable start addresses of the data carrier can be z 0 The Chapter Overview of the Turck data carriers page 3 75 provides information in regards to the writable readable start address of the data carrier versions WRITE_DATA Write data array of the length 8 byte Parameter At this time only the parameter bypass time K1 n 4ms and bypass time K2 n 4ms are transferred with the 8 byte parameter data image Table 36 Bit Parameter data bytes 7 6 5 4 3 2 1 0 0 reserved 1 2 3 4 5 bypass time K1 n 4ms 6 reserved 7 bypass time K2 n 4ms A Byte No Keep the default setting 20 of this parameter when a startup has occurred without the error message Dwell period of the tag in the detection range was not sufficient for successful command processing page 3 68 If the error message Dwell period of the tag in the detection range was not sufficient for successful command processing page 3 68 is indicated check whether your application supports the Adherence to Recommended Distances minimum distances a decrease in speed or data volume The specification recommended and maximum distance can be found in the manual D101583 in the section Operating Data In case the recommended distances can not be adhered to or in case the error indication concerning the recommended distances continues due to external inte
171. onnection to your control PLC gt Connect to gt Direct CPU The Mode RUN is displayed green at the bottom right of the window Please adjust the values that are described in the legend in points A through D in the column Control Values when your application differs from the project example Note Load the values to your control Variable modify and ensure with the help of the column Status Values Variable monitor that the control has accepted the values Figure 28 Entries into vartable pibO si Monitoring and Modifying Variables Gvartable pibO BL ID AeYSIMATIC 300 Station CPU 315 2 DP1S7 Program 1 ONLINE a Table Edit Insert PLC Variable View Options Window Help a oela a slale x es 8 ne far ia o s Gl Address Symbol selection of module and channel PIBO DBl DBD 22 APPLO DB ID DBl DBW 26 APPLO_DB INDEX DBl DBW 28 APPLO DB OFFSET HARE selection of send and receive buffer DBl DBD 6 APPLO DB TXBUFLEN DB1 DBD 10 APPLO DB TXSTART DBl DBD 14 APPLO DB RXBUFLEN DBl DBD 18 APPLO DB RXSTART E control DBl DBX 0 0 APPLO DB EXECUTE DBl DBX 0 1 APPLO DB RPTCMD DBl DBX 0 2 APPLO DB SRESET DBl DBX 0 3 APPLO DB INIT DBl DBX 1 0 APPLO DB RDGATE DB1 DBW 4 APPLO DB CMDSEL status DBl DBX 30 DBl DBX 30 DBl DBX 30 DBl DBX 30 DBl DBX 30 DBl DBX 30 DBl DBD 32 DBl DBD 36 APPLO DB DONE APPLO DB BUSY A
172. or direct mounting on metal or imprinted tags TURCK supplies customer specific data carrier solutions upon request Read write heads HF Read write heads are available in different designs from the standard unified threads M18 and M30 to cuboid designs Q14 CK40 Q80 S32XL including Q80L400 and Q350 for long distances of up to 500 mm UHF Different cuboid designs are available for example as compact read write head in a housing with approx 100 mm x 80 mm x 35 mm edge length L x W x D or in dimensions approx 240 mm x 240 mm x 40 mm for high data transfer ranges of several meters The read write heads have protection class IP67 and are suitable for the application in the field The quality of the air data transfer between data carrier and read write head is continuously checked also when in operation Each disturbance of the air interface is immediately diagnosed and signalled per LED chain Memory slot The memory capacity of the data carrier for the HF range is 64 or 128 byte 48 or 112 byte user data with an EEPROM memory and 2 or 8 kbyte 2000 or 8000 byte user data with a FRAM memory For the UHF range there is an EEPROM data carrier with 110 byte 94 byte user data FRAM Ferroelectric Random Access Memory non volatile longer life cycle because of a greater number of Read Write operations and faster Write operations compared to EEPROM EEPROM Electrically eraseable programmable read only memory non volatile The da
173. or qualified staff with the necessary technical know how Intended use Warning The devices described in this manual must be used only in the intended applications found in this manual and the respective technical description and only together with certified external devices and components The correct and safe operation of the devices is based on the prerequisite of proper transport storage assembly and mounting as well as carefully operation and maintenance Instructions for project planning installation of product Warning It is imperative that the instructions be followed for the safety and accident prevention for the respective application D101579 1208 BL ident PROFIBUS DP 0 3 About this manual 0 4 D101579 1208 BL ident PROFIBUS DP Industri A 1 The TURCK BL ident system Schematic diagram of the identification system BL ident9 iieee esee nnn nnn tnu 2 Support for BL ident projects aee sca tesedactcantehesentcatelilassca detdbasdcasndelabbadidecs scnandusestadelatinetnatieleantiatns 2 Networking with BL ident systems iscritte tiras prnttns schen tn n veau dab scan case a ea ese si DR 3 Identification systems with radio frequency technology RFID 3 Performance characteristics and applications of the BL ident system enne 4 Protection class tete tereti rte tese s En tud Rres mee ptem M Perd a ANE 4 Eu M
174. p example for S modules with STEP7 Industri A Reading of UID from the data carrier Channel 1 The command to read the UID from a data carrier is executed by changing the respective command value from 0 to gt 1 Ensure with the help of Variable monitor 4 that the variable TAG D and all other variables have the active output value false 0 starting with Bit 0 0 to 0 6 In the column Modify value set the variable TAG ID to 1 true Figure 72 Command to read the UID via the variable TAG ID COX Ka Table Edit Insert PLC Variable View Options Window Help a a oela amp x afe x ssl aa 4 seems To ri S i th e RESET XCVR INFO TAG INFO WRITE READ TAG ID NEXT XCVR ByteCount0 BateCount1 ByteCount2 AddrHi AddrLo WRITE DATA 1 WRITE DATA 2 WRITE DATA 3 WRITE DATA 4 WRITE DATA 5 WRITE DATA 6 WRITE DATA 7 MPI 2 directly Q Q Q Q Q Q Q Q Q Q Q O0 Cc 4 WD 1 5 6 8 9 10 14 16 13 e Note i Download the changed value into your control Variable modify and ensure with the help of the column Status value Variable monitor amp that the control has accepted the value The variable TAG ID may be reset to false now or after execution The chapter Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module page 3 58 shows how the process flow effects the status messages Wi
175. pective safety measures are to be implemented on the hard and software side during the I O coupling operation Please ensure a safe electrical isolation of the low voltage with a 24 volt supply Only use power supplies that meet the requirements per IEC 60 364 4 41 or rather HD 384 4 41 S2 VDE 0100 Section 410 Variations or rather deviations of the supply voltage from the nominal value may not exceed the tolerance limits specified in the technical data otherwise function errors and dangerous conditions can not be ruled out E EMERGENCY STOP per IEC EN 60 204 1 must remain active in all operational states of the automation equipment Unlocking the EMERGENCY STOP feature must not initiate a restart operation Built in devices for housings or cabinets may only be operated or serviced when they are installed and table devices or portables only when the housing is closed Precautions are to be made so that a program may be correctly restarted after it has been interrupted by voltage drops and power failures Here dangerous operating conditions must not occur also short term If need be force EMERGENCY STOP At locations where occurring failures of the automation equipment may cause injury to persons or damage to property external measures must be taken that also guarantee or rather force a safe operational status in case of error or breakdown for example with the help of independent limit value switches mechanical locks etc
176. r true as control value Figure 37 Control Field of vartable pibO Figure 38 Status Field of vartable pibO 10 control 1l DB1 DBX 0 0 APPLO_DB EXECUTE execute command BOOL EI false A lz DE1 DBX 0 1 APPLO_DB RPTCMD repeat command BOOL FI false 13 DB1 DBX 0 2 APPLO DB SRESET cancel command BOOL Ej false 14 DBl DBX 0 3 APPLO DB INIT init PIB BOOL El false 15 DBl DBEX 1 0 APPLO DB PRDGATE not used BOOL E false A Physical Write takes place with the positive edge switch from false gt true or 0 1 With variable modify or Bs the command Physical Write is executed You may observe the command execution in the Status Field of the vartable pibO f f status DBl DBX 30 0 APPLO DB DONE command done BOOL true DBl DBX 30 1 APPLO DB BUSY PIB busy BOOL E false DBl DBX 30 2 APPLO DB ERROR execution failed BOOL m false DBl DBX 30 3 APPLO DBE WAPRNING warning reported BOOL m false DBl DBX 30 4 APPLO DBE RPTACT repeat accepted BOOL E false DBl DBX 30 5 APPLO DB ERR IREQ fatal error init required BOOL isl false DBl DBD 32 APPLO DB STATUS error warning code HEX DW 16 00000000 DBl DBD 36 APPLO DB TRLEN number of bytes transmitted DEC L 1 DB1 DBX 30 6 APPLO DB TPC number of tags in AI changed BOOL erue DBl DBX 30 7 APPLO DBE TP tag in air interface AI BOOL Bi crue DB1 DBX 31 0 APPLO DB UINO transmitter active BOOL Mj crue For a short period of time the status variable APPLO_DB
177. r the global data range which is reserved within TXBUF DW 16 E7FE82xx RXBUF Overrun more data was received than can be stored in the memory RXBUF DW 1 6 E7FE82xx In any case the next command must be the INIT command All other commands are rejected DW 16 E7FEO6xx The index is outside the range 111 112 and therefore wrong DW 1 6 E7FE82xx BLxx 2RFID y does not respond to the INIT command Check whether the right ID is set DW 16 E7FE82xx Timeout during initialization DW 16 E7FE82xx Repeating the command is not supported by PIB DW 16 E7FEOAxx Error during determination of data package size within the PIB 3 70 D101579 1208 BL ident PROFIBUS DP IEC conform error messages Industri A The following tables show the design of the IEC conform error messages The error messages appear as 6 digit hexadecimal digital values The error s meaning consists of 4 information pieces which can be retrieved from the following three tables Table 40 Digits 1 and 2 of the hexadecimal error Significance Digits 1and2 code of the hex error code 0x40 reserved 0x41 Get_Master_Diag 0x42 Start_Seq 0x43 Download 0x44 Upload 0x45 End_Seq 0x46 Act_Para_Brct 0x47 Act_Param 0x48 Idle 0x49 to 0x50 reserved 0x51 Data Transport 0x52 to 0x55 reserved 0x56 RM 0x57 Initiate 0x58 Abort 0x59 reserved 0x5A reserved 0x5B reserv
178. rential transfer to read write head Data buffer receive send Connection technology read write heads 8 8 kbyte Spring type terminal Protection class IP 20 Stripped isolation length 8 mm max terminal range 0 5 to 2 5 mm Conductor suitable for clamping e one wire H 07V U 0 5 to 2 5 mm f fine wire H 07V K 0 5 to 1 5 mm f with wire end sleeves per DIN 46228 1 0 5 to 1 5 mm wire end sleeves crimped on gas tight D101579 1208 BL ident PROFIBUS DP Industri A Table 12 Description Value cont Technical data Plug gauge per IEC 947 1 1988 Al Measuring data per VDE 0611 Part 1 8 92 IEC 947 7 1 1989 Measuring voltage 250 V Measurement current 17 5A Measurement diameter 1 5 mm Measurement surge voltage 4 kV Degree of pollution 2 D101579 1208 BL ident PROFIBUS DP 2 21 Mounting and installation Interfaces with the protection class IP67 Diagrams and designs of the interface modules The BL ident PROFIBUS DP interface is available with 2 4 6 8 channels Interface Module with the add on S Simple stand for a user friendly startup opportunity With a Write or Read command 8 byte can be transferred Interface modules without the add on S offer a higher number of possible commands and a large data transfer volume per command Figure 13 BL ident interface modules with the protection class IP67 Table 13 Product
179. rferences the parameter bypass time Kx n 4ms must be set to a suitable value D101579 1208 BL ident PROFIBUS DP 3 65 Startup of a TURCK BL ident system Determination of the parameter value bypass time Kx n 4ms The parameter bypass time Kx n 4ms is the result of the used components the distances the speed of the data carrier to the read write head and other external interferences Therefore measure all needed bridging times directly on location The following diagram shows the typical run of the detection range Figure 81 Detection range of a read write head 3 66 35 A Distance bridged by the data carrier when passing by the read write head B Center of the read write head C Section of the distance that needs to be bridged For the section C in the above diagram the data carrier must use maximum the bypass time K1 n 4ms The data carrier must be within the detection range before the bridging time elapses so that the transfer can continue Additional diagrams for the detection ranges of different read write heads and data carriers are shown in the manual D101583 in the Chapter Pass Over Paths The LEDs of the Write Read head or rather the status bit TP of the process input data indicate if the data carrier is within the detection range or not D101579 1208 BL ident PROFIBUS DP Process image of BL67 2RFID S BL20 2RFID S Module Diagnost
180. rrier Enter the command code 0x70 for Physical_Read into the field Command 3 of the vartable pibO A full description of this command code is at Physical Read page 4 24 Please note that the online connection to your control must be active The Mode RUN is displayed green at the bottom right of the window Now enter 3 for the control value APPLO_DB CMDSEL of the vartable pibO to select the command 3 Figure 58 Preparing the vartable pibO for reading 3 36 std Monitoring and Modifying Variables ovartable pibO BL ID AeXSIMATIC 300 Station CPU 315 2 DP S7 Program 1 ONLINE a Table Edit Insert PLC Variable View Options Window Help xj nisu X es 8 X See sspe dol i TL Ten Pelee ele Address Symbol Symbol comment Disp Status value Moai ty value ff command 3 DBl DBB 116 APPLO_DB CMDBUF 3 CMD HEX B 16 70 1 Bf l6 70 A DB1 DBB 120 APPLO_DB CMDBUF 3 UID 1 HEX B 16 00 B 16 00 DBl DBB 121 APPLO_DB CMDBUF 3 UID 2Z HEX B 16 00 B 16 00 DB1 DBB 122 APPLO DB CMDBUF 3 UID 3 HEX B e16 00 B 16 00 DBl DBB 123 APPLO DB CMDBUF 3 UID 4 HEX Be16 00 Bf l6 00 B DBl DBB 124 APPLO DB CMDBUF 3 UID S5 HEX B 16 00 B 16 00 DBl DBB 125 APPLO_DB CMDBUF 3 UID 6 HEX B 16 00 B 16 00 DBl DBB 126 APPLO DB CMDBUF 3 UID HEX B 16 00 B 16 00 DB1 DBB 127 APPLO DB CMDBUF 3 UID S HEX B 16 00 B 16 00 DBl DBW 140 APPLO DB CMDBUF 3 Length DEC 32 32 C D
181. s Table 27 Byte Bit Significance Configuration data 0 0 7 Reserved must be 0 1 0 7 Reserved must be 0 2 0 1 Transmitter On 0 Transmitter Off default 1 1 7 Reserved must be 0 Example for configuration data 0x00 0x00 0x01 D101579 1208 BL ident PROFIBUS DP 3 41 Startup of a TURCK BL ident system Read Config The command reads the Config data described under Write Config Possible command specific STATUS values after erroneous execution Table 28 STATUS Error description STATUS value DW 16 E4FE82xx No read write head is connected Inventory Only the parameter Attributes 0 is supported Inventory page 4 29 Physical_Read The parameters StartAddress and Length StartAddress must be within the address range of the Tag Physical_Read page 4 24 Physical_Write The parameters StartAddress and Length StartAddress must be within the address range of the Tag Physical_Write page 4 25 Mem Status With the command Mem Status the Attribute 0x0x40 physical status information is supported The response of the Tag is transferred as data to a GET_SYSTEM_INFORMATION Command per ISO IEC15693 3 Byte 0 Series No UID LSB E B Byte 7 Series No UID MSB Byte8 Data Carrier Format DSFID Byte 9 Application ID AFI Byte 10 Memory Size Block No 1 Byte 11 Memory Size Byte Block 1 Byte 12 IC identification Dev Status Only the parameter
182. s connector with built in or shiftable terminating resistance is mandatory Figure 6 SUB D female connector top view Table 2 Pin assignment SUB Dfemale connector on gateway 2 4 5432 1 e e oe e 9876 Pin No Signal name Description 1 PE Shield connection function earth 2 not assigned 3 RxD TxD P Received Send Data P 4 CNTR P RTS Request to send 5 DGND Data reference potential 6 VP 5 VDC for the external bus connection 7 not assigned 8 RxD TxD N Received Send Data P 9 not assigned Attention No equalizing current must flow across the shield For this purpose a safe system must be created for potential equalization D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Addressing Addressing is done via the two decimal rotary switches on the fieldbus side gateway of the fieldbus interface Both switches are housed together with the service interface under a cover Figure 7 Decimal rotary switch for addressing on PROFIBUS DP Attention A max 99 addresses 01 to 99 can be assigned with the switch ADDRESS Each address can only be assigned once in the entire bus structure Bus address 00 must not be used Other participants of the entire bus structure can also be assigned to addresses from 100 to 125 The bus addresses 000 126 and 127 must never be assigned The rotary switches are marked with H for High higher val
183. ss of information to be read Valid values are 0x00 reserved 0x01 warning detail 0x02 reserved 0x03 reserved 0x04 physical status information man Spec details 0x05 file system related status information man Spec details 0x06 Ox7F reserved 0x80 OxFF manufacturer specific OffsetBuffer This parameter specifies the relative offset within the RXBUF It specifies the first address within the memory area where the first byte of data read is to be stored D101579 1208 BL ident PROFIBUS DP 4 27 Excerpt from the specifications Table 53 Name Description cont Description of the PIB command Dev This service is used to read the status of an Ident Unit The RXBUF is used as Status manufacturer specific area for status data Status data are manufacturer specific The parameter TRLEN of the PIB indicates the number of bytes received VAR CMD BYTE Ox74 t END VAR Parameter Description Attributes This parameter is used to specify the class of information to be read Valid values are 0x00 reserved 0x01 warning detail man Spec details 0x02 error history man Spec details 0x03 command history man Spec details 0x04 channel related I amp M information data record I amp MO 0x05 channel related I amp M information data record I amp M1 0x06 channel related I amp M information data record I amp M2 0x07 channel related I amp M information data record I
184. ssemenemnnnr 45 Hardware COnmouration scio iecit Ent be e Ro e eco p qe Eee 46 Compiling the variable tables for the process data ssssssssssseeeeeeeeereenn nennen 47 Activating the read write head aina oeann aia A EES rA eSEE AEA EAE NEE Ea Ees 49 Initialization RESET Channel 1 oia e a a eaa ea aa a aa aaea paad vda ga aa a Laa Taaa aaau aaa aSa 50 Reading of UID from the data carrier Channel 1 sssseesseeeeeennn men 51 Write to data carrier Channel F ni iaronn eee eeeeeeeeeaeeeeeeeeeeeeeeaaaaaaaaaeaaeeeeeeeeeeeeeseceaaaeaeeeeeeeeees 52 Read from the data carrier Channel 1 ssssssssssssssssessseeeeeee nennen nennen nnn nnne nnn nnne 53 Error messages via the input data eseeeeeeesiseeeeeeeeenee eee nennen nnne 56 DPV 1 GiagnOStiC MESSAGES Gaireas oee ree etc eire Eee i de ederet etra 57 Pararreterization iecit eie ate EL HER Leste orae cabe due 57 Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module 58 Process image of BL67 2RFID S BL20 2RFID S Module censere nnn 59 Process input data eie d end e rl eva e dem eaa e eg ee dpt es 59 Significance of the Status Bits sieren nenia i ARA A aA EEA aN A ATEA AAAA en arini 60 Process output data i imien en aia ahar daea ea Eaa tere A a ieee acta 62 Significance of the Command Bits Control Bits sssesssseeeeeeeenenenneenn
185. t PROFIBUS DP Interfaces with the protection class IP67 Industri A Bus termination If the BL ident interface module is used as first or last participant in the bus communication at the end of a bus segment the fieldbus must be terminated The gateway itself offers no opportunity to terminate the fieldbus The female connector that connects to the exiting bus cable DP OUT must be terminated with a connector with integrated terminating resistance for example RSS4 5 PDP TR Ident No 6601590 as passive terminating resistance or PDP TRA Ident No 6825346 as active terminating resistance Note i The bus termination is done externally with a connector with integrated terminating resistance Addressing Addressing of the BL ident interface module on the PROFIBUS DP is done via three decimal rotary switches next to the service interface Figure 18 901 Decimal rotary 8 2 switches for 7 3 x100 setting the 654 PROFIBUS DP address 9 0 1 8 2 X10 7 3 675 4 9 0 4 i s X1 7 3 654 Attention A max 125 addresses 001 to 125 can be issued Each address can only be issued once in the entire bus structure Bus addresses 000 126 and 127 must not be used Attention A After addressing the protective cover above the switches must be tightly screwed on again Please pay attention to the seal of the protective cover to protect it from damage or from moving out of place The protection class IP67
186. t Function Block The second part contains a start up instruction diagram of the interface module with the accessory S A SIMATIC S7 300 Station Siemens is used to demonstrate the sample start ups The SIMATIC basic software STEP 7 is used The fourth chapter includes an excerpt of the Proxy Ident Function Block specifications Explanations of used symbols 0 2 Warning This symbol appears next to an alert which points to a source of danger This may refer to injury of persons and damage to systems hard and software For the user this symbol means Please proceed with extreme caution Attention This symbol appears next to an alert which points to a potential source of danger This may refer to possible injury of persons and damage to systems hard and software and installations Note This symbol appears next to general instructions which point out important information concerning the procedure for one or more operational steps The relevant instructions may facilitate the work and may help prevent redundancy caused by incorrect operational steps for example D101579 1208 BL ident PROFIBUS DP Industri A General information Attention Please consider it mandatory to read this chapter because safe handling of electrical devices should not be left to chance This manual contains the required information for the start up of the TURCK BL ident System The concept was specifically created f
187. t for the module to be restarted D101579 1208 BL ident PROFIBUS DP 3 23 Startup of a TURCK BL ident system Figure 44 i HW Config SIMATIC 300 Station Configuration BL_ID_Ce Hardware Gly station Edit Insert PLC wiew Options Window Help configurator pelses S Sale ilia ED Sa 8A 2 Find Profile Standa PROFIBUS M PROFIBUS H E PROFINET HH SIMATIC 3 SIMATIC 4 mH SIMATIC P H E SIMATIC P EH CPU 315 2 DP PROFIBUS 1 DP master system 1 Comment Setting up the function component PIB In the project example the basic settings have been selected The following explanations will support the comprehensive understanding so that you may also start up differing applications based on this project example Close the hardware configurator if it remains open In the left window of the project tree open the file Blocks bottom point in the project tree The component OB1 represents the top program level which is being cyclically processed by the CPU By double clicking on OB1 you may see the program structure 3 24 D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A Figure 45 iSMLAD STL FBD OB1 Cycle Execution BL_ID_Ce SIMATIC 300 Station CPU 315 2 DP 0B1 Top program Eile Edit Insert PLC Debug View Options Window Help level olsa a slee ofc c
188. t here all 8 byte have the value 00 if you do not wish to execute the UID comparison function C Here you may enter the number of byte which are to be transferred from the send data field The number of possible byte depends on the size of the send data field nage 3 10 and the memory capacity of the used TAGs In this TURCK example 32 byte are written to the TAG 112 byte The size of the send data field is 200 byte D With the help of this address each byte on the TAG may be explicitly accessed as start address The start address L 0 is selected in this example If you use a different data carrier than the one in this project example please follow Chapter User data ranges of the data carrier versions page 3 75 E With these Attributes some commands may be specified more closely This value is not considered with the Write and Read command In 3 1 4 Commands page 4 23 you will find an overview for all possible commands and the possibilities to more closely specify them via Attributes In any case please also pay attention to Definitions within the command and diagnostics levels page 3 40 F Into this send data field enter the data which you would like to use to write to your TAG with Note Load all the field values Control Command 3 and Send Data Field into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp v that the control has accepted the values D1015
189. t present o 1 target present not used for barcode reader 4 12 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 47 Name Data type Range User cont conditions Features of PIB mz parameters mandatory o optional TPC BOOL 0 no target changed o 1 target changed not used for barcode reader The user program has the task to reset and change all input parameters To ease the access to individual elements of the command structure a common structure has been defined to be used for every command independent of the use of single parameters The use of a parameter depends on the definition of the command itself The parameters are defined in chapter 3 1 4 Figure 90 TYPE Data type CMD STRUCT definition of the PIB command SIRUCT CMD BYTE Config BYTE gt OffsetBuffer INT UID ARRAY 1 8 OF BYTE FileName ARRAY 1 8 OF BYTE Offset DINT Length INT StartAddress DINT Attributes BYTE NextMode BYTE Timeout INT ObjectNumber INT FileType WORD END STRUCT END TYPE 3 1 3 Error and Warning Concept The PIB indicates if the requested command was performed successfully or not The error indication is typically used for two purposes 1 Tochange the reaction to the process i e to implement a substitute reaction e g to repeat the request at another time or another place or to abort the process task 2 Toissue a
190. tO ByteCount2 is written to the data carrier address AddrLo AddrHi 0 Function is not used D101579 1208 BL ident PROFIBUS DP 3 63 Startup of a TURCK BL ident system Table 35 Description Significance of the command Bits Significance TAG_INFO 0 gt 1 The command TAG_INFO data carrier information is initiated with the rising edge The command is executed when a data carrier is within the detection range of the read write head With the process input data the data carrier information in the area read data are sent with the following 8 byte Byte 0 Number of blocks 1 of the data carrier this means 27 gt 28 blocks Byte 1 Number of bytes 1 per block this means 3 gt 4 bytes per block Byte 2 Is not supported DSFID data carrier format Byte 3 Is not supported AFI application recognition Byte 4 Is not supported ICID IC recognition is not supported Byte 5 to byte 7 0 0 Function is not used TRANSCEIVER _INFO 0 gt 1 The command TRANSCEIVER INFO read write head information is initiated and executed with the rising edge With the process input data the information is sent to the read write head in the area read data with 8 byte The content of the information is configurable The content of the information is selected with AddrHi AddrLo 0x00FO0 The first 8 byte of the ORDER ID here product description are sent for example TNER Q80 0x54 4E 45 52 2D
191. ta carrier for the HF operating frequency meet the communication standard ISO 15693 The data carriers in the UHF frequency band meet the communication standard ISO 18000 6C and EPCglobal Class 1 Gen 2 Speed of data carrier to read write head Note Hi The speed with which the data carrier can pass by the read write head is influenced by the data volume to be processed and varies according to the respective combination of read write head and data carrier that is being used This is why numerical data for max speed and data volumes can only be seen as examples D101579 1208 BL ident PROFIBUS DP 1 5 The TURCK BL ident system 1 6 The speed with which the data carrier can pass by the read write head may be increased for example with the data carrier TW R50 K2 and the read write head TN CK40 H1147 to up to 2 5 m s for 8 bytes at a distance of 36 mm With the help of the BL ident simulator see below the application parameters speed data volume and range can be changed The optimum combination read write head and data carrier for the respective application is apparent in the simulator The simulator is online at http www turck com In any case please follow the instructions including limits in this chapter Note i Next to the data processing time in the read write head the processing time within the complete installation of the identification system must also be taken under consideration System overv
192. ta for the first instance first channel is displayed The Memory requirements for the Read and Write data page 3 3 is limited with the selection of a PIB 1KB to a total of 1 kilobyte Here it is indicated that the send buffer for the first channel occupies Range 1 The receive buffer occupies the Range 201 to 400 for the second channel the Ranges 401 to 600 and 601 to 800 are being occupied respectively compare vartable pib1 The opportunity to use the memory range of multiple channels when an adequate time offset is present or to use Read and Write was not taken advantage off here E Here you may enter 1 2 or 3 if only one of three possible commands see vartable pibX Commando 1 WriteConfig INIT Commando 2 for example Inventory is to be executed If initially only the Write Config Command Write Config page 4 26 is to be executed 1 has already been entered here F The hexadecimal coding for the command Write Config is 0x78 G A configuration data change may be executed per the specifications Config page 4 26 with the help of a Reset 0x01 like in example or with a combination of Reset and new configuration data 0x03 H The number of configuration data to be written Here it is 3 configuration data to the data carrier which will be explained more closely in the next paragraph 3 10 D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Industri A Activation and de
193. ted Table 46 Name cont PIB Parameter description UOUT2 UOUTS RDGATE CMDDIM CMDSEL CMDREF TXBUFLEN TXSTART TXREF This In_Out parameter is a reference to a global memory area used by several blocks The PIB instance may share the memory with several other blocks The user program has the task to reset and change all input parameters 4 8 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Description This input parameter specifies the number of bytes used by this instance of the PIB for storing data received The number is calculated starting from the relative position within the memory range defined by the RXSTART parameter For consistency reasons it is recommended not to modify this parameter after the PIB is instantiated The input parameter RXSTART indicates the relative position of the RXBUF within the global memory area referenced by the parameter RXREF This is the starting point of memory assigned to the PIB instance For consistency reasons it is recommended not to modify this parameter after the PIB is instantiated This In_Out parameter is a reference to a global memory area used by several blocks The PIB instance may share the memory with several other blocks This output parameter indicates the number of user bytes transmitted sent or received depending on the command executed after the command succeeded
194. th Variable Modify or Bl false again becomes status value D101579 1208 BL ident PROFIBUS DP 3 51 Startup of a TURCK BL ident system After the Unique Identifier UID has been read it will be indicated via the variables READ_DATE_1 to READ DATA 8 of the variable table Input data Figure 73 UID in the variable table Input data 3 52 10 IB 4 READ DATA 1 HEX B 16 E0 M IB READ DATA 2 HEX B 16 04 12 B 6 READ DATA 3 HEX B 16 01 IB 7 READ DATA 4 HEX B 16 00 14 IB 8 READ DATA 5 HEX B 16 0B M5 IB 9 READ DATA6 HEX B 16 AE 6 IB 10 READ DATA 7 HEX B 16 1B 17 IB 11 READ DATA 8 HEX B 16 D0 Write to data carrier Channel 1 The command to write to a data carrier can be executed after changing the respective command value WRITE from 0 to gt 1 Ensure with the help of Variable monitor that the variable WRITE and all other variables have the active output value false 0 starting with Bit 0 0 to 0 6 The Bit XCVR must remain true In the column Modify value set the variable WRITE to 1 true As an example 8 byte should be transmitted here With ByteCountO to ByteCount2 the value 8 1 7 111 must be displayed Set the Bits to 1 true With the data carrier TW R30 B128 the user data range starts at 0 other data carriers may have differing user data ranges Please observe chapter Overview of the Turck data carriers page 3 75 With the variables AddrHi and AddrLo
195. the range on the data carrier is accessed In this example the variables WRITE_DATA_1 to WRITE_DATA_8 will receive the values 1 2 3 4 5 6 7 8 binary D101579 1208 BL ident PROFIBUS DP Industri A Figure 74 Values in the variable table i OX Output Data K Tabe Edit Insert PLC Variable View Options Window Hep 5 to write toadata x camer 2j oela amp i sael x fe vr a E e Ho RESET XCVR INFO TAG INFO WRITE READ TAG ID NEXT XCVR ByteCount0 BateCount1 ByteCount2 AddrHi AddrLo WRITE DATA 1 B 16 01 WRITE DATA 2 B 16 02 WRITE DATA 3 BF16 03 WRITE DATA 4 B 16 04 WRITE DATA 5 B 16 05 WRITE DATA 6 B 16 06 WRITE DATA 7 B 16 07 WRITE DATA 8 MPI 2 directly The variable WRITE may be reset to false now or after execution The chapter Flowchart diagram of command execution BL67 2RFID S BL20 2RFID S Module page 3 58 shows how the process flow effects the status messages Note ER Download the changed value into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp that the control has accepted the value Read from the data carrier Channel 1 The command to read from a data carrier can be executed after changing the respective command value READ from 0 to gt 1 Ensure with the help of Variable monitor amp that the variable READ and all other variables have the active output value
196. the standard software component Proxy Ident Function Block PIB for interface modules with C discs for example TI BL20 DPVO 2 is described below A first startup should be easy and it should be possible to do this with no programming skills For this purpose TURCK provides a project example You may order the CD BL IDENT CD with the project example directly from TURCK Ident No 1545052 Hardware description of the project example These hardware components were used for the following startup example S7 control CPU 315 2DP E BL ident Interface module TI BL67 DPO 2 E BL ident read write head TN CK40 H1147 Data carrier TW R50 B128 Please download D101583 which you may find in the download area of the TURCK website if you have questions or if you desire clarification concerning the read write heads and the data carriers Memory requirements for a BL ident startup Basic memory requirements The basic memory requirements for the startup of the BL ident system using the Proxy Ident Function Block is 22 kilobyte Memory requirements per PIB instance Channel An instance of the Proxy Ident Function Block is created for each channel In addition to the basic memory requirements each channel will need 1 8 kilobyte Memory requirements for the Read and Write data The Proxy Ident Function Block PIB occupies one memory range as a send and receive buffer The size of this memory range must be laid out accordin
197. tics memory size indicated by Ident Unit 1 4 IG Tag is defective o replace tag or battery 1 5 IG Tag memory overflow 1 6 IG Unformatted tag o 1 7 IG Inconsistent tag data o structure Reformat tag 4 16 D101579 1208 BL ident PROFIBUS DP 3 Definition of Proxy Ident Blocks PIB Industri A Table 51 Function Code Error Code 1 cont Error_Code decimal Values from Byte Error Sent by Meaning mandatory optional Tag within the o transmission window does not have the expected UID indicated by Ident Unit Command not o supported by the Tag Access violation e g o block locked refer to IS018000 x 1 11 127 Reserved for future o profile use 1 128 255 Vendor specific o 2 1 Communication time oO out at air interface indicated by Ident Unit More tags barcodes o within transmission window than allowed indicated by Ident Unit 2 3 127 2 128 255 IG IG Reserved for future o profile use Vendor specific o 3 1 Incorrect file name o indicated by Ident Unit File does not exist 0 indicated by Ident Unit The Tag type is o incorrect or unsuitable for the selected mode of operation No file system available on tag indicated by Ident Unit Create command no o more directory entries available indicated by Ident Unit D101579 1208 BL ident PROFIBUS DP Ex
198. tification and Maintenance Functions 5 Addressing of channel related I amp M functions is currently under discussion within TC3 of PNO The next version of the PROFIBUS Profile Guideline Part 1 Identification and Maintenance Functions will define how to access these information As it is the intention of TC3 WG9 not to define a proprietary version of channel related I amp M functions this new version of PROFIBUS Profile Guideline Part 1 Identification and Maintenance Functions shall become applicable here 5 1 PROFILE ID The Profile ID s used for the profile PROFIBUS Proxy Ident Function Blocks acc to IEC 61131 3 are 5B00H for RFID systems and 5B10H for barcode readers Assignment of Profile ID s is managed by PNO 5 2 Channel related Information For each channel it is possible to provide channel related I amp M functions Thus a device may contain as many channel related information as channels may be implemented in the individual modules The scope of this information is restricted to an individual channel The semantic meaning of the channel related I amp M information is the same as of those related to a complete device or module They are represented by the data types described in 5 D101579 1208 BL ident PROFIBUS DP 4 35 Excerpt from the specifications Appendix A Compliance table The following table lists the permitted Implementation dependant features of the PIB A manufacturer which claims to be
199. ts of a variety of applications the TURCK BL ident system offers multiple possibilities for combining data carriers and read write heads as well as interface modules to connect automation systems for example PROFIBUS DP Software components make integration and startup easy Performance characteristics of the TURCK BL ident system are as follows Protection class Some data carriers as well as the applicable read write heads have a high mechanical protection class for example IP67 and therefore may be used in the toughest industrial applications The read write heads are also available in IP69K wash down design Connection to the fieldbus system is realized with suitable TURCK interface modules The interface modules for CANopen are available in the protection class IP20 TURCK connection cables with the suitable protection class complement the identification system Temperature resistant data carriers up to 210 C are available for the high temperature range Life cycle The life cycle is a result of the possible Read Write operations to the data carrier FRAM data carriers can provide for an unlimited number of Read operations and 10 Write operations EEPROM data carriers can provide for an unlimited number of Read operations and 10 or 10 Writer operations The data carriers do not require batteries Transfer frequency The TURCK BL ident system operates with a transfer frequency of 13 56 MHz in the HF ba
200. ts per PIB instance Channel sese 21 Memory requirements for the Read and Write data sssesseseeeneeeeenen en 21 Memory requirements for the hardware example sssssessseeseeeeeenen nennen 22 Upload of the project example and download of the active GSD file5 useesesssss 22 Start of the S7 software and upload of the project example ssssseseseeeeee 23 Hardware configuration and l O addresses sseeseeeeeneeeeneeen nnne 24 Setting up the function component PIB ssssssssssssssssssseeeeeeee enhn nnnn nre nnn nnns nnns nnn 25 PIB variable table with the FB10 10 sesseesssssessessseseeseeeeeneneenene nennen nnn rtrnnnt nnne nnns 26 Observation and control with the help of the variable table vartable pibX 27 Activation and deactivation of the read write head using configuration data 29 Initialization of the first channel ccceeeccee cece eee eeeeeeeeaeeeee eee e eect eaaaaaaaeeeeeeeeeeeeeseecgeeeaeeeeeeseeeees 30 Read of UID from data carrier Channel 1 ccccccceeeeeeeeeeceeeeeeeeeeeeeeeeeeeeecaaaaaeeeeeeeeeeeeeeeseeeeeaaeees 32 Write to the data carrier Channel 1 ccccccccceeeeeeeeeeeeeceeeeeeeeeeeee treet eaaaaaaaaeeeeeeeeeeeeesesseeeeaaeeeeeeeeees 33 Read from the data carrier C
201. tuator sensor supply Current from field supply to feed read 250 mA write heads for details please refer to technical data for read write heads Isolation voltage 500 Vs U against Usys U against fieldbus U against FE Connection technology 2 pole screw terminal System supply Usy Supply voltage page 2 3 Usys nominal value range 24 VDC 18 to 30 VDC levs at Imp 1 2 A Usys 18 VDC max 900 mA Nominal current from Usys to supply 430 mA gateways Nominal current from Usys to supply a2 30 mA channel RFID module Isolation voltage Usys against U Usys 500 Vims against fieldbus Usys against FE Physical interfaces Transfer speed fieldbus 9 6 kbps to 12 Mbps Connection technology fieldbus SUB D female connector Fieldbus termination external Address range fieldbus 199 Address range fieldbus 2 rotary switches Service interface PS 2 female connector for I O ASSISTANT Connection technology power supply Screw connection Passive LWL adaptors are connectable Current consumption max 100 mA D101579 1208 BL ident PROFIBUS DP Interfaces with the protection class IP20 Industri A Table 11 Description Value cont Technical data of the Isolation voltage 500 Vims Fieldbus against Usys Fieldbus against U Fieldbus against FE Fieldbus shield connection Via SUB D connector
202. ue point and L for Low lower value point BL20 GW DPV1 Switch L is used to set L x10 L 0 to 9 Switch H is used to set H x 10 H 0 to 9 Note i After addressing the protective cover above the decimal rotary switches must be closed again Attention If the BL ident interface module is used as the first or last participant in the bus communication the use of a special bus connector with built in or shiftable terminating resistance is mandatory D101579 1208 BL ident PROFIBUS DP 2 5 Mounting and installation Service interface The service interface connects the BL ident interface module with the PC With the software l O ASSISTANT the interface module can be projected and diagnostic messages can be indicated A special ready made cable must be used to connect the service interface to the PC BL20 connection cable l O ASSISTANT ADAPTERCABLE BL20 BL67 Connection with BL20 cable The BL20 cable has a PS 2 connector connection of female connector to gateway and a SUB D female connector connection of connector to PC Figure 8 PS 2 connector on the connection cable to the gateway top view 4 3 Figure 9 9 pole SUB D female connector on the connection cable to the PC top view 5 43 2 1 9 8 7 6 Table 3 Pin assignment PS 2 and SUB D interface 2 6 Pin BL20 Gateway PS 2 female Sub D interface on PC Pin connector 1 CLK DTR DSR 4 6 GND GND 5
203. ues The command Physical Read is realized with a positive edge of the control variable APPLO DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 or true as control value D101579 1208 BL ident PROFIBUS DP DPV1 startup example for A modules with STEP7 and PIB Figure 40 Control field of vartable pibO 10 ERE 1z 13 14 15 control DBl DBX DBl DBX DB1 DBX DB1 DBX DBl DBX 0 APPLO DB APPLO DB Z APPLO DB 3 APPLO DB O APPLO DB EXECUTE RPTCMD SRESET INIT RDGATE execute command repeat command cancel command init PIB not used BOOL Ei false BOOL Ii false BOOL BE false BOOL ME false BOOL ff false Industri A A Physical Read takes place with the positive edge switch from false gt true or 0 1 With Variable Modify or RI the command Physical Read is executed You may observe the command execution in the Status Field of the vartable pibO D101579 1208 BL ident PROFIBUS DP 3 19 Startup of a TURCK BL ident system Figure 41 f status DBl DBX 30 0 APPLO DB DONE command done BOOL f true Status Field of DBl DBX 30 1 APPLO DB BUSY PIB busy BOOL false vartable pibO DB1 DBX 30 2 APPLO DB ERROR execution failed BOOL f false DB1 DBX 30 3 APPLO_DB WARNING warning reported BOOL E false DBl DBX 30 4 APPLO DB RPTACT repeat accepted BOOL Ej false DBl DBX 30 5 APPLO DB ERR IREQ
204. with the Write and Read command In 3 1 4 Commands page 4 23 you will find an overview for all possible commands and the possibilities to more closely specify them via Attributes In any case please also pay attention to Definitions within the command and diagnostics levels page 3 40 The command Physical Read is realized with a positive edge of the control variable APPLO DB EXECUTE You will create the positive edge by setting the variable from false to true Enter 1 or true as control value Note Load all the field values Control and Command 3 into your control Variable modify and ensure with the help of the column Status Values Variable monitor amp v that the control has accepted the values D101579 1208 BL ident PROFIBUS DP DPVO startup example for C modules with STEP7 and PIB Industri A Figure 59 a control Control field of 1 DB1 DBX 0 0 APPLO_DB EXECUTE execute command BOOL fa false A 2 DB1 DBX 0 1 APPLO DBE RPTCMD repeat command BOOL A false vartable pibO 3 DB1 DBX 0 2 APPLO DB SRESET cancel command BOOL m false 4 DB1 DBX 0 3 APPLO DB INIT init PIB BOOL i8 false 5 DB1 DBX 1 0 APPLO DB RDGATE not used BOOL zi false A Physical Read takes place with the positive edge switch from false gt true or 0 1 With Variable Modify or E the command Physical_Read is executed You may observe the command execution in the Status Field of the vartable pibO Figure
205. y be transferred correctly if ERROR is not set In this case the data buffer contains valid values The user program has the task to reset and change all input parameters D101579 1208 BL ident PROFIBUS DP 4 9 Excerpt from the specifications Table 46 Name Description cont PIB Parameter description STATUS The output parameter STATUS provides detailed error information or and warning information for the last command that has been executed with a negative result or warning indication The value changes not before the next appearance of a warning or error Coding depends on the source of the warning or error which may be reported from the embedded Comm FBs functions to access cyclic data the Ident Unit tag or from the PIB internal functions BUSY This output parameter indicates if set to TRUE that the PIB is busy and a command will no be accepted to become started except INIT and SRESET The parameter is intended to indicate the user that the PIB is still operating RPTACT This output parameter indicates if set to TRUE that the PIB accepted the request for repeating the current command It is mapped from the Repeat Command Active bit of the cyclic input data The output parameter remains active as long as the bit within the cyclic telegram is set The PIB provides data following a command execution as long as this output parameter is set the user shall read command result ER
Download Pdf Manuals
Related Search
Related Contents
SWITCH BLACK RAPIDTM 1000 ETHERNET GIGABIT DE 8 Simple Logger® II Series L32-C1 PDF形式 1.54Mバイト wiev the PDF instruction manual EELLLVVV66633 Trekstor 12GB USB-Stick CS-D User Manual for QuickStart BL3416E2-A04 SR-X7300CU Super_English_V1.2 Copyright © All rights reserved.
Failed to retrieve file