SICK RFID Reader Enet (RFH620 model)
This driver provides Ethernet communication with the SICK RFID Reader (RFH620 model).
Communication Setup: Xpanel
Create a new device Β | To create a new device, select [Tools] β [I/O Devices] or click the icon in the toolbar. The following picture shows the first step in creating a new device: I/O Device Name: Give a device name. This name will be used in the tag database, accompanied by the 'Station Name'. |
Select a device type Β | After selecting the [Ok] button in the previous step, the βEthernet Communication Configurationβ dialog box will appear as shown in the following picture: In this window, set the 'Device Type' to βSAIA S-BUSβ and configure the remaining Ethernet communication parameters. Ensure that these parameters match the device's configuration. Configure the remaining options as shown below: Protocol: TCP Time Out: 15 β 30 (Delay time of the response frame. You may set it from 15 to 30). Retry No: 1 (To avoid sending the same frame multiple times, this must be set to1). See the Communication Configuration section for more information about the remaining parameters. |
Create a station | Move to the [Station] tab of the βEthernet Communication Configurationβ dialog box. In this dialog box, connected PLC stations can be configured and registered to the Xpanel. Each field can be configured with the following rules: Station Name: Give a name to the PLC. This name will be used in the tag database, accompanied by the βDevice Nameβ. Station Type: Select βRFH620β (this is the only available option). Network ID:Β N/A IP Address: Enter the IP address of the RFID Reader. Socket Port No: 2112 is the default value (this is subject to change depending on the RFID readerβs type). See the Communication Configuration section for more information about the remaining parameters. |
Address Notation and Function Codes
The available memory addresses are listed in the following table:
Device name | Tag type | R/W | Address Range | Description |
D | Analog or String | R/W | D0 - D255 |
|
W | Analog or String | W | W0 - W255 |
|
S | Analog | R/W | S0 |
|
D: Used to read the code which is saved in the RFID Tag. It can save data using blocks of 4 bytes each. This register can be used to read from or write to the RFID tag.
Strings within the D register have the following format:
Strings starting with βIβ: Initialize the connected TCP Socket.
Strings starting with βDβ: Initialize the communication status and received Tag data.
W: Used to change the code value which is saved in the RFID Tag. It can save data using blocks of 4 bytes each. Only writing is possible.
S: Used to check the final communication status. The data type is UINT8.
Ex 1): Reading 16 words starting from Block 0 of the RFID Tag:
Register a string tag of length 16 to the database.
Type: String
Choose βReal Tagβ
I/O Address: D00
Select the βI/O deviceβ which you registered for the RFID reader (do not leave the 'I/O Device' field blank).
Advanced β Length of String: 16
Write a tag value to the real string tag you just registered.
Ex) if the tag name is βSTR_00β, you could use the following command expression to change the string value:
STR_00 = βtest valueβ
If the I/O device is configured correctly, the first 16 bytes of the RFID tag value will be updated to βtest valueβ.
Ex 2): Re-writing a string of length 16 from blocks 0 β 3 of the RFID tag.
Register a real string tag of length 16 to the database. Copy step 1 from the example above, but choose 'W00' for the I/O Device.
Type: String
Choose βReal Tagβ
I/O Address: W00
Select the βI/O deviceβ which you registered for the RFID reader (do not leave the 'I/O Device' field blank).
Advanced β Length of String: 16
Write a tag value to the real string tag you just registered.
Ex) if the tag name is βWSTR_00β, you could use the following command expression to edit the string value:
WSTR_00 = βABCDER1234567890β
The string will be saved in four 4-byte blocks, starting from block 0:
Block 0: βABCDβ
Block 1: βER12β
Block 2: β3456β
Block 3: β7890β
If the string length is over 16, only the first 16 characters will be saved to the RFID tag.
If the string length is less than 16, the remaining characters are set to 0 (ββ).
Reader Setup
Install the βSOPAS Engineering Toolβ program from the SICK homepage and install it.
Run 'SOPAS Single Device'.
Open the 'SOPAS Single Device' program.
Connect the device.
Connect a reader using a null modem cable, then click βSearch connected devicesβ.
Select 'RFH620' and click βNext' in the 'Connection Wizardβ window.
Select βStandard Protocol' and click 'Configure Interfaceβ
Select the COM port and use the default parameters in the 'Advanced' tab.
Click βOK' to finish the interface setup, then click βNextβ to move to the next step. The COM port will be found automatically, and the result will be displayed on the 'Found Devicesβ page.
Select the found device and click 'Next' to upload.
The device setup window is displayed after uploading.
Move to the 'Ethernet' tab and set up the IP address and subnet mask. The device will be rebooted after the setup is complete, and the configuration changes will be saved.
Protocol / Output Format: Output Format #1
Server / Client: Server
IP-Port: 2112 (if you change the port number here, you must change the port number in the XpanelDesigner I/O Device settings as well).
Β