SICK RFU6 Series Technical Information

SICK RFU6 Series Technical Information

Profibus / profinet function block for mitsubishi iq plcs gx works2

Advertisement

Technical information
SICK
RFU6xx function block
SICK RFU6xx PROFIBUS / PROFINET
function block for Mitsubishi iQ PLCs
(GX Works2)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RFU6 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SICK RFU6 Series

  • Page 1 Technical information SICK RFU6xx function block SICK RFU6xx PROFIBUS / PROFINET function block for Mitsubishi iQ PLCs (GX Works2)
  • Page 2: Table Of Contents

    RFU6xx FB for GX Works 2 (PNDP) Technical information Version history Version Date Description V1.0 29.09.2017 Initial version Table of contents 1 About this document ......................3 1.1 Function of this document .................... 3 1.2 Target group ........................ 3 2 General information ......................4 2.1 Supported PLC controls ....................
  • Page 3: About This Document

    This technical instruction is intended for qualified personnel such as planning engineers, de- velopers and operators of machines and systems who needs a communication between a SICK RFU6xx device and a Mitsubishi iQ-Serie PLC via PROFINET / PROFIBUS. Page 3...
  • Page 4: General Information

    GX Works 2 (PNDP) Technical information 2 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...
  • Page 5: Module Description

    GX Works 2 (PNDP) Technical information 3 Module description The FB_SICK_RFU6xx_PNDP function block simplifies the usage of a SICK RFU6xx RFID interrogator on Mitsubishi iQ-Series PLCs. The function block is working asynchronously, which means the processing is done via vari- ous function block call ups.
  • Page 6: Method Of Function

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.2 Method of function The following parameters must be specified before the FB_SICK_RFU6xx_PNDP function block can be used. InputData: Data link to the 16 Word (32Byte) input module of the fieldbus device OutputData: Data link to the 16 Word (32Byte) output module of the fieldbus device TOut:...
  • Page 7: Timing

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.3 Timing Figure 4: Timing diagram 1: The selected function (in this case “TriggerOn”) is executed if the “Req” input is triggered by a rising edge. The “TriggerOn” bit must be selected at the same time/in advance. Only one function can be executed at the same time, otherwise an error will terminate the se- quence.
  • Page 8: Value Transfer

    RFU6xx FB for GX Works 2 (PNDP) Technical information 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 be modified. Figure 5: ST_SICK_RFU6xx PLC data type Page 8...
  • Page 9: Mode

    RFU6xx FB for GX Works 2 (PNDP) Technical information 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.
  • Page 10 RFU6xx FB for GX Works 2 (PNDP) Technical information Parameter Declara- Data type Description tion Mode_UII Input / Word Transponder Identification (UII) in a hexa- Output [Signed] decimal format. (0..15) The length of the UII must be defined by the Mode_UIILength parameter.
  • Page 11: Single-Tag Mode: Sopas Object Trigger Control

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.5.2 Single-Tag mode: SOPAS object trigger control The object trigger control settings define the status of reading gate (open / closed). The de- vice sends a reading result to the PLC after each reading gate. The function block uses this mechanism in order to read the UII, the PC-Word and RSSI values of the corresponding transponder.
  • Page 12 RFU6xx FB for GX Works 2 (PNDP) Technical information Please ensure that the format of the blocks "RSAVG1...4" are set to hexadecimal format (double-click the respective block). The "PCUII" block may not be changed. 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 the device: Case 1: (Only one tag in the field):...
  • Page 13: Read Tag

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.5.4 Read tag The “Read Tag” function is used to read a defined data area of the tag. The selected mode determines which transponder should be used by the system (see chapter 3.5.1). The following parameters must be defined before you can start a read request: Parameter Declaration...
  • Page 14 RFU6xx FB for GX Works 2 (PNDP) Technical information Parameter Declaration Data Description type ReadTag_ Input / Word Antenna selection for the current read re- Antenna Output [Signed] quest. Only one antenna can be selected per request. A1 = Antenna 1 (internal/external, depend- ing on device type) A2 = Antenna 2 (external) A3 = Antenna 3 (external)
  • Page 15: Write Tag

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.5.5 Write tag The "Write Tag" function is used to write values to a defined data area of the tag. The select- ed mode determines which transponder should be used by the system (see chapter 3.5.1). The following parameters must be defined before you can start a write request: Parameter Declaration...
  • Page 16 RFU6xx FB for GX Works 2 (PNDP) Technical information Parameter Declaration Data type Description WriteTag_ Input/Output Word Antenna selection for the current write re- Antenna [Signed] quest. Only one antenna can be selected per request. A1 = Antenna 1 (internal/external, depend- ing on device type) A2 = Antenna 2 (external) A3 = Antenna 3 (external)
  • Page 17: Reading Result

    RFU6xx FB for GX Works 2 (PNDP) Technical information 3.5.6 Reading result The "ReadResult_Result" array stores data that is sent via a trigger command (TriggerOn, TriggerOff) or directly from the device (e.g. direct trigger via photoelectric sensor). The output parameter “RdDone” indicates that new data arrived for one PLC cycle. Parameter Declaration Data type...
  • Page 18: Parameter

    RFU6xx FB for GX Works 2 (PNDP) Technical information 4 Parameter Parameter Decla- Data type Description ration InputData Input Word[Signed] Data link to the 16 Word (32Byte) input module (0..15) of the fieldbus device. OutputData Output Word[Signed] Data link to the 16 Word (32Byte) output mod- (0..15) ule of the fieldbus device.
  • Page 19 RFU6xx FB for GX Works 2 (PNDP) Technical information Parameter Decla- Data type Description ration ReqBusy Output Bit Request in progress. Error Output Bit Error flag. FALSE: No error TRUE: Error occurred Errorcode Output Word[Signed] Error status (see Error codes) (0..1) Table 5: Function block parameter list Page 19...
  • Page 20: Error Codes

    RFU6xx FB for GX Works 2 (PNDP) Technical information 5 Error codes The “Errorcode” parameter contains the following error information: - Errors of the FB_SICK_RFU6xx_PNDP function block - Errors of the FB_SICK_CCOM_PNDP function block - Errors of the F_SICK_GetValue / F_SICK_SetValue functions - Errors sent by the device Error code Brief description...
  • Page 21 RFU6xx FB for GX Works 2 (PNDP) Technical information Error code Brief description Description [0] = 16#0011 Device error A device error is occurred. [1] = 16#XXXX XXXX = This error is sent by the connected device 16#0001: Access denied 16#0002: Unknown index 16#0003: Unknown index 16#0004: Wrong condition...
  • Page 22 RFU6xx FB for GX Works 2 (PNDP) Technical information Error code Brief description Description [0] = 16#0016 Invalid command re- The selected function could not be execut- [1] = 16#0000 sponse received ed because the device response is incor- rect. This could have the following reasons (de- pending on the block function): - Incorrect trigger setting in the SOPAS...
  • Page 23 RFU6xx FB for GX Works 2 (PNDP) Technical information Error code Brief description Description [0] = 16#0027 Invalid Retry value Invalid retry parameter (Read tag). [1] = 16#0000 (ReadTag_Retry) Valid value range: Low nibble = [0..7] High nibble = [0..5] [0] = 16#0028 1 >...
  • Page 24: Examples

    RFU6xx FB for GX Works 2 (PNDP) Technical information 6 Examples This example program enables you write the current time into the user memory of the current accessible RFID transponder using the function block. The RFU6xx RFID interrogator is connected via PROFIBUS to a QJ71PB92D PROFIBUS gateway module. Write tag: Set the "xStartWrite"...
  • Page 25 RFU6xx FB for GX Works 2 (PNDP) Technical information Figure 10: Get current PLC time Figure 11: Communication Figure 12: Clear request flag Figure 13: Rising edge detection Page 25...
  • Page 26 RFU6xx FB for GX Works 2 (PNDP) Technical information Figure 14: initialization Figure 15: Read tag Figure 16: Read tag done Figure 17: Write tag Page 26...
  • Page 27 RFU6xx FB for GX Works 2 (PNDP) Technical information Figure 18: Write tag done Page 27...
  • Page 28: Read Tag

    RFU6xx FB for GX Works 2 (PNDP) Technical information 6.1 Read tag First, it is necessary to select the transponder which should be used. If the bit "Mode”= FALSE", then the system will communicate with the transponder that is currently located in the reading field of the RFID device.
  • Page 29 RFU6xx FB for GX Works 2 (PNDP) Technical information The read tag function is completed as soon as bit “ReqDone” = TRUE. The parameter Mode_UII shows the UII of the selected transponder. The tag content is available in array "ReadTag_Data" of the “stRFUData” variable. The "ReadTag_DataLength"...
  • Page 30: Write Tag

    RFU6xx FB for GX Works 2 (PNDP) Technical information 6.2 Write tag First, it is necessary to select the transponder which should 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").
  • Page 31 RFU6xx FB for GX Works 2 (PNDP) Technical information Bank: 3 (user memory) Tag range: 10 Words from the word address 0 Number of retries: 0x32 (3 changes of channel with 2 retries per channel) Antenna selection: 1 (Internal antenna) Content to be written: "...

Table of Contents