background image

Technical information 

RFU6xx FB for 

GX Works 2 (PNDP) 

 

 

Page 9 

 

 

 

3.5.1 Mode 

The RFU can only communicate with a single transponder at the same time. For this reason, 
read  and  write  commands  are  always  addressed.  The  function  block  uses  the  transponder 
UII (Unique Item Identifier) in order to identify the transponder. 
 
The function block supports two different modes in order to determine which transponder UII 
is to be communicated with: 
 
Single-Tag mode:  
The  system  always  communicates  with  the  transponder  which  is  currently  in  the  reading 
field. This mode can only be used  when precisely  one tag is located  in the  reading field.  A 
special  configuration  of  the  RFU  output  format  with  SOPAS  (see  chapter  3.5.3)  is  required 
for this mode. If the Single-Tag mode is active, a trigger is automatically activated to read the 
UII and the antenna with the best signal strength (RSSI). 
 
Multi-Tag mode:  
A  user  defined  transponder  UII  is  used  for  purposes  of  communication.  The  antenna  to  be 
used must be defined in the respective read/write parameters. 
 

Parameter 

Declara-
tion 

Data type 

Description 

Mode 

Input 

Bit 

Addressing mode. 
 
FALSE:  Single-Tag mode active 
TRUE:  Multi-Tag mode active 

Mode_ 
UIILength 

Input / 
Output 

Word 
[Signed] 

Word length of the UII.  
 
0  

=   Unaddressed 

1...16  =   Word length of the UII defined in 

the Mode_UII array. 

Summary of Contents for RFU6 Series

Page 1: ...Technical information SICK RFU6xx function block SICK RFU6xx PROFIBUS PROFINET function block for Mitsubishi iQ PLCs GX Works2...

Page 2: ...rted PLC controls 4 2 2 PROFINET PROFIBUS configuration 4 3 Module description 5 3 1 Block specifications 5 3 2 Method of function 6 3 3 Timing 7 3 4 Behavior in the case of an error 7 3 5 Value trans...

Page 3: ...on block 1 1 Function of this document This operating instruction explains how to use the FB_SICK_RFU6xx_PNDP function block 1 2 Target group This technical instruction is intended for qualified perso...

Page 4: ...cessary to setup the hardware in the I O con figuration The function block communicates with connected device via process data varia bles These variables contain the cyclic process data of the fieldbu...

Page 5: ...the SICK_AutoIdentBase_PNDP li brary This library contains the FB_SICK_CCOM_PNDP which facilitates the communication between the PLC and the device The F_SICK_GetValue F_SICK_SetValue functions are u...

Page 6: ...a function TriggerOn ReadTag etc the desired function bit must be selected first Only one function can be carried out at the same time The Req parameter must be triggered with a rising edge signal ch...

Page 7: ...rminate the se quence 2 The ReqDone flag indicates that the sequence has been successfully completed If an error occurred the sequence is terminated with Error The parameter Errorcode contains the err...

Page 8: ...DP Page 8 3 5 Value transfer The Data parameter of the function block contains all input and output parameters for the supported block functions The data structure has a fixed definition and may not b...

Page 9: ...can only be used when precisely one tag is located in the reading field A special configuration of the RFU output format with SOPAS see chapter 3 5 3 is required for this mode If the Single Tag mode i...

Page 10: ...ngth parameter The UII is automatically determined in the Single Tag mode and does not have to be assigned Example UII hex 1234 0000 0000 0000 0000 0002 Mode_RSSI Output Word Signed 0 3 Outputs the RS...

Page 11: ...ger control must be defined that the trigger window is opened via a Command and closed when a Good Read result is received or after a defined period of time e g 1000ms Figure 6 Object Trigger settings...

Page 12: ...ged Figure 8 Settings for RSSI blocks RSAVG1 4 Depending on the number of tags located in the receiving range of the RFU and the config ured RSSI threshold the following ASCII telegrams are sent by th...

Page 13: ...ection of the memory bank that should be used 0 Reserved 1 UII EPC 2 TID 3 User memory ReadTag_ StartWord Input Word Signed First word 16Bit that should be read ReadTag_ WordCount Input Word Signed Nu...

Page 14: ...ternal Value A4 A3 A2 A1 1 X 2 X 4 X 8 X In the Single Tag mode the antenna is selected automatically antenna with the best signal strength Valid value range 1 15 ReadTag_ DataLength Output Word Signe...

Page 15: ...ion of the memory bank that should be written 0 Reserved 1 UII EPC 2 TID Read only 3 User memory WriteTag_ StartWord Input Word Signed First word 16Bit that should be written WriteTag_ WordCount Input...

Page 16: ...nna 3 external A4 Antenna 4 external Value A4 A3 A2 A1 1 X 2 X 4 X 8 X In the Single Tag mode the antenna is selected automatically antenna with the best signal strength Valid value range 1 15 WriteTa...

Page 17: ...dDone indicates that new data arrived for one PLC cycle Parameter Declaration Data type Description ReadResult_ Counter Output Word Signed This counter is incremented when a new telegram is arrived Va...

Page 18: ...k function Close a reading gate This function requires the following SOPAS setting Object Trigger Control Stop by Command The result sent from the device defined in the SOPAS output format is stored i...

Page 19: ...age 19 Parameter Decla ration Data type Description ReqBusy Output Bit Request in progress Error Output Bit Error flag FALSE No error TRUE Error occurred Errorcode Output Word Signed 0 1 Error status...

Page 20: ...K_CCOM_PNDP Reserved 0 16 0004 1 16 0000 Reserved FB_SICK_CCOM_PNDP Reserved 0 16 0005 1 16 0000 Reserved FB_SICK_CCOM_PNDP Reserved 0 16 0006 1 16 0000 Received telegram Record size FB_SICK_CCOM_PNDP...

Page 21: ...parameters 16 0011 Invalid character 16 0012 No message 16 0013 No answer 16 0014 Internal error 16 0015 Hub address wrong 16 0016 Hub address error 16 0017 Hub address error For a detailed descriptio...

Page 22: ...7 16 0021 1 16 0000 Reserved Reserved 0 16 0022 1 16 0000 No tag in the reading field No tag in the receiving range of the RFU This error can only occur in the Single Tag mode 0 16 0023 1 16 0000 More...

Page 23: ...2 words 64 bytes into the tag Valid value range 1 32 0 16 002B 1 16 0000 Invalid Retry value WriteTag_Retry Invalid retry parameter Write tag Valid value range Low nibble 0 7 High nibble 0 5 0 16 002C...

Page 24: ...a QJ71PB92D PROFIBUS gateway module Write tag Set the xStartWrite variable to write the actual PLC time sDataWrite into the current tran sponder The xWriteDone flag indicates a successful execution of...

Page 25: ...Technical information RFU6xx FB for GX Works 2 PNDP Page 25 Figure 10 Get current PLC time Figure 11 Communication Figure 12 Clear request flag Figure 13 Rising edge detection...

Page 26: ...Technical information RFU6xx FB for GX Works 2 PNDP Page 26 Figure 14 initialization Figure 15 Read tag Figure 16 Read tag done Figure 17 Write tag...

Page 27: ...Technical information RFU6xx FB for GX Works 2 PNDP Page 27 Figure 18 Write tag done...

Page 28: ...figuration see chapter 3 5 1 Figure 19 Selection of the communication mode To execute a read job it is necessary to define what content is to be read out of the tran sponder Bank 3 user memory Tag ran...

Page 29: ...t is available in array ReadTag_Data of the stRFUData variable The ReadTag_DataLength variable specifies how many words have been received and valid Figure 22 Read tag content Please note that the fir...

Page 30: ...hould be used If the bit Mode TRUE then the system will communicate with the specified transponder the UII of which is known in advance in this case hex 0123 4567 89AB CDEF Figure 24 Specification of...

Page 31: ...hannel Antenna selection 1 Internal antenna Content to be written 15 27 52 20 ASCII characters 10 Words Figure 25 Write tag parameters The write tag function WriteTag is executed as soon as the bit Re...

Reviews: