background image

Technical Information 

RFH6xx PNDP  

Function Block  

 

 

Date: 12.06.2014 

 

12 

 

 

 

4.5.1 Mode 

The RFH can communicate only with one transponder at the same time. Therefore, reading 
and writing orders are always executed in an address. In order to identify the transponders, 
the UID (Unique Identifier) is being used.      
 
In  order  to  determine  with  which  transponder  the  UID  should  communicate,  the  function 
block supports two modes: 
 
Mode 1:   It is always communicated with the transponder that is actually in the reading field. 

This mode can only be used if there is exactly one tag in the field.  

Mode 2:   A from the user defined transponder-UID is used for the communication.  
 

Parameter 

Declaration 

Data type 

Description 

Mode.bMode 

Input 

BOOL 

Address mode 
 
FALSE:  Mode 1 active 
TRUE:  Mode 2 active 

Mode.arrUID 

Input/Output 

INT 

Transponder Identification (UID) 
 

In mode 1 the UID is read automatically 

Table 1: Mode Parameter 

 

Summary of Contents for RFH6 Series

Page 1: ...Technical Information SICK RFH6xx Function Block Version V2 X SICK RFH6XX PNDP Function Block for Siemens S7 Controls Step7 V5 5 ...

Page 2: ...5 4 Description of Function Block 7 4 1 Function block specification 7 4 2 Operation Mode 8 4 3 Behavior in the case of an error 10 4 4 Timing 10 4 5 Value transfer 11 4 5 1 Mode 12 4 5 2 Lock block 13 4 5 3 Inventory 13 4 5 4 Read Tag 14 4 5 5 Write Tag 14 4 5 6 Free Command 15 4 5 7 Reading Result 15 4 6 Receipt of read results 200 Byte 16 5 Parameter 18 6 Error Codes 21 7 Examples 24 7 1 Readin...

Page 3: ...n manual and SICK RFH6XX function block 1 1 Function of this document This operation manual describes how to use SICK RFH6XX PNDP Function Block It is used for guiding technical personnel working for the machine manufacturer operator in project planning and commissioning 1 2 Target group This Operation Manual is aimed for specialists such as technicians and engineers ...

Page 4: ...nding of a trigger CoLai command via the PLC Receiving of read results defined in SOPAS ETii output format Read and write transponder contents Carrying out an Inventory command display all transponders in the reading field Permanent locking of transponder blocks Carrying out a communication test Communication via free selectable CoLa commands CoLa A protocol Addressing of devices which communicate...

Page 5: ...with firmware version V1 15 CDM 420 incl CMF400 Profibus Module starting with firmware version V1 100 Necessary RFH firmware version RFH6xx starting with firmware version V1 31 3 3 Configuration in Step7 Before the function block can be used the RFH has to be projected in the hardware configu ration in Step7 Therefore the corresponding device file GSD file has to be imported in the hardware librar...

Page 6: ...Technical Information RFH6xx PNDP Function Block Date 12 06 2014 6 Image 2 Step7 Example of hardware configuration ...

Page 7: ... telegrams 4 1 Function block specification Number of function block FB73 Name of function block SICK RFH6XX PNDP Version 2 1 Called up function blocks SFC 14 DPRD_DAT SFC 15 DPWR_DAT SFC20 BLKMOV SFB4 TON FB10 SICK CCOM PNDP FC10 SICK COLA ACCESS Used data blocks DB73 SICK RFH DATA Function block call up Cyclically Used flag none Used counter none Used register AR1 AR2 for multi instance call up ...

Page 8: ...Trigger off Closes the reading gate of the device per CoLa command Read Tag Read transponder data Write Tag Write transponder data Inventory The inventory action searches in the reading area of the RFH for active transponders and returns their UID Lock Block Permanent locking of a selected transponder block Stay Quiet Muting of a RFID tag which is in the field Communication test Checks if the devi...

Page 9: ...Technical Information RFH6xx PNDP Function Block Date 12 06 2014 9 Image 3 SOPAS output format ...

Page 10: ...s been triggered with a positive edge signal change from cero to one The REQ_BUSY Bit signalizes that the order is in process As soon as the reset routine is terminated REQ_DONE Bit is being set Because of the reset the following actions are done Reset of the counter of confirmed messaging protocol device communication Reset of all error messages 4 4 Timing 1 Request through pos edge to START_REQ ...

Page 11: ...ins input and output parameters of all supported function block actions The data function block can be re named according to the user program The data structure is pre defined and must not be changed except for the last entry ReadingResult arrResult see chapter 4 6 Receipt of read results 200 Byte Image 5 Structure of SICK RFH DATA DBs ...

Page 12: ...the UID should communicate the function block supports two modes Mode 1 It is always communicated with the transponder that is actually in the reading field This mode can only be used if there is exactly one tag in the field Mode 2 A from the user defined transponder UID is used for the communication Parameter Declaration Data type Description Mode bMode Input BOOL Address mode FALSE Mode 1 active...

Page 13: ...ented from re writing 4 5 3 Inventory The Inventory Action searches in the entry area of the sensor for active transponders For each identified transponder max 5 transponders the function block displays the following information Parameter Declaration Data type Description Inventory iNumRetTags Output INT Number of identified transponders Inventory arrTagInfo nError Output BYTE Transponder Errorcod...

Page 14: ...put ARRAY 1 128 OF BYTE Content of the read blocks Table 2 Read Tag Parameter 4 5 5 Write Tag The Write Tag function writes onto a defined data area of a tag The action can only be done for one tag With which transponder should be communicated depends on the selected mode see chapter 4 5 1 Before the writing you have to decide at which block the writing starts and how many blocks should be read Si...

Page 15: ...th of the receiving CoLa tel egram FreeCommand arrResult Output ARRAY 1 100 OF CHAR Received answer of the sent CoLa telegram Table 4 Free Command Parameter 4 5 7 Reading Result In the array ReadingResult arrResult data is stored which is sent via trigger order TRIG_ON TRIG_OFF or directly from the device e g direct trigger via a light switch The output parameter RD_DONE signalizes whether data ha...

Page 16: ... has to be received fits into the data area of the variable Image 6 Receipt of read results 200 Bytes change in the UDT Change in the SICK RFH6XX PNDP function block In the static area of the variable survey the length of the variable arrRecord has to be adapted in such a way that the read result fits into the data area of the variable The array must not be below a length of 500 bytes but it has t...

Page 17: ...4 17 Image 8 Receipt of read results 200 bytes change in the UDT code After the change the instance of the function block has to be updated Afterwards the changed UDT as well as the function block have to be transferred to the PLC together with the updated instance ...

Page 18: ...work is used the CAN ID 0 The master resp multiplexer is always contacted with CAN ID 0 even if an other CAN ID is assigned TOUT INPUT TIME I M D L Const Time after which a timeout error is pro voked START_REQ INPUT BOOL I M D L Positive edge Carrying out the selected function block action TRIG_ON INPUT BOOL I M D L Const Function block action Carrying out a device trigger open trigger window TRIG...

Page 19: ...ransferring data func tion block has a valid block number see chapter 4 5 5 This action blocks the selected block permanently A de blocking is not pos sible STAY_QUIT INPUT BOOL I M D L Const Mutes the RFID tag which is in the field This action can only be done if the HF field of the RFID device is switched on permanently see SOPAS Tran sponder communication HF Feld COM_TEST INPUT BOOL I M D L Con...

Page 20: ... for storing the read results DB73 RD_DONE OUTPUT BOOL Q M D L Positive edge New read result is received REQ_DONE OUTPUT BOOL Q M D L Indicates if the chosen function block action can be carried out without error TRUE processing terminated FALSE processing not terminated REQ_BUSY OUTPUT BOOL Q M D L Request is in process ERROR OUTPUT BOOL Q M D L Error Bit 0 No error 1 Break off with error ERROR C...

Page 21: ...ults please have a look at chapter 4 6 W 16 0005 100 FreeCommand iCommandLength 0 Invalid length of the free command Valid value error 1 100 W 16 0006 Answer of the free com mand 100 Byte The answer to the sent free command is longer than 100 Byte W 16 0007 63 CAN_ID 0 Invalid CAN ID Valid value area 0 63 W 16 0008 Reserved Reserved W 16 0009 Communication error Communication to the device cannot ...

Page 22: ...a can be read In order to read more than 128 Byte data the action RD_TAG has to be carried out several times after each other W 16 0014 WriteTag iStartBlock 0 Invalid parameter Valid value area 0 Max Number of transponder blocks W 16 0015 32 WriteTag iNumBlocks 0 Per action call up max 128 Byte transponder data can be written 32 blocks 4 Byte each Valid value area 1 32 W 16 0016 WriteTag iBlockSiz...

Page 23: ...nown error 16 1F CRC error 16 20 Parity error 16 21 Timeout error 16 22 No response error 16 23 Collision error 16 24 Content check error 16 25 Framing error 16 26 Verify error 16 27 Transmit error 16 28 Receive error 16 29 Non addressed error 16 2A Tag type selection error 16 2B Max block count error 16 2C Block length mismatch error 16 46 Slot detect warning For further error codes please have a...

Page 24: ...H6XX FBs The logical input and output address starts with Byte 258 W 16 102 The length of the module projected in the hardware config uration is 32 Bytes Since the RFH is not in a CAN network a zero is fixed as CAN ID Program selection Image 9 Example of a SICK RFH6XX PNDP function block Image 10 Step7 Hardware projecting ...

Page 25: ...ted with the transponder which is in the reading area of the RFID sensor Image 11 Selection of the communication mode Then it has to be defined which contents should be read out of the transponder Start Block 0 Number of Blocks 2 Number of blocks to be read Image 12 Read Block Parameter The reading action bRdTag is carried out as soon as the bit bRequest is triggered with a positive edge Image 13 ...

Page 26: ...aLength indicates how many bytes were received resp are valid Image 14 Read tag contents 7 2 Writing of tag contents First of all it has to be decided with which transponder you want to communicate If the bit Mode bMode TRUE it is communicated with a given transponder which UID is known in advance here E0 04 01 00 06 D2 37 45 Image 15 Given transponder UII Then it has to be defined which contents ...

Page 27: ...blocks to be written Block size 4 depends on the transponder Data Hello World Image 16 Write Block Parameter The writing action bWrTag is carried out as soon as the bit bRequest is triggered with a positive edge Image 17 Starting the function block The writing action is finished as soon as the bit bReqDone TRUE ...

Reviews: