background image

Technical information 

RFU6xx FB for 

GX Works 2 (PNDP) 

 

 

Page 4 

 

 

 

General information 

The function block FB_SICK_RFU6xx_PNDP supports data exchange between a SICK 
RFU6xx RFID interrogator and a Mitsubishi Q-Series PLC via PROFIBUS or PROFINET.  
 
Functionality of the function block: 

Send a software trigger via the PLC 

Receive telegrams sent by the device which can be configured in the SOPAS

i

 output 

format (reading results) 

Read and write transponder content (Single-Tag / Multi-Tag mode) 

 

2.1 Supported PLC controls 

This function block can be used in combination with iQ-Series PLC which is able to connect a 
PROFIBUS or PROFINET device directly or via a gateway module (e.g. QJ71PB92D). 

2.2 PROFINET / PROFIBUS configuration 

Before starting with the function block, it is necessary 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 fieldbus device. The length of the 
selected  containers  indicates  the  amount  of  data,  which  can  be  exchanged  in  one  fieldbus 
cycle.  
 

 

Please note! 

 
The FB is only compatible with the following process data containers: 

32 byte input 

32 byte output 

 

Other modules can be plugged (e.g. parameter modules or Control In/Out 
modules) and have no influence on the functionality of the FB. 

 
If  a  telegram  is  longer  than  the  projected  module,  the  data  will  be  transmitted  fragmented 
over several PLC cycles. The data flow is managed via a handshake mechanism by the func-
tion block. 
 
Please use a free address for the data mapping with a global variable. 

 

Figure 1: Example PROFIBUS configuration 

 

 

Figure 2: Global label settings 

                                                

i

 SOPAS is an engineering tool used for configuring SICK sensors. 

Содержание RFU6 Series

Страница 1: ...Technical information SICK RFU6xx function block SICK RFU6xx PROFIBUS PROFINET function block for Mitsubishi iQ PLCs GX Works2...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Страница 27: ...Technical information RFU6xx FB for GX Works 2 PNDP Page 27 Figure 18 Write tag done...

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

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

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

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

Отзывы: