Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a new Device

 

To create a new device, select ‘Tools’ → ’I/O Devices’ or click the (blue star) 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).

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).

16-Bit Data Swap: N/A

32-Bit Data Swap: N/A

String Data Swap: N/A

Using Checksum: N/A

Comm. Error Message Pop Up: When this item is checked, Xpanel displays a communication error message box for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display a message for communication errors. This message box will close automatically after a few seconds.

Address

...

Notation and Function Codes

The available memory addresses are listed in the following table:

...

  • 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:

  1. Register a string tag of length 16 to the database.

    1. Type: String

    2. Choose ‘Real Tag’

    3. I/O Address: D00

    4. Select the ‘I/O device’ which you registered for the RFID reader (do not leave the 'I/O Device' field blank).

    5. Advanced → Length of String: 16

  2. Write a tag value to the real string tag you just registered.

    1. Ex) if the tag name is “STR_00“, you could use the following command expression to change the string value:

      1. STR_00 = “test value“

    2. 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.

  1. 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.

    1. Type: String

    2. Choose ‘Real Tag’

    3. I/O Address: W00

    4. Select the ‘I/O device’ which you registered for the RFID reader (do not leave the 'I/O Device' field blank).

    5. Advanced → Length of String: 16

  2. Write a tag value to the real string tag you just registered.

    1. Ex) if the tag name is “WSTR_00“, you could use the following command expression to edit the string value:

      1. WSTR_00 = “ABCDER1234567890“

      2. The string will be saved in four 4-byte blocks, starting from block 0:

        1. Block 0: “ABCD”

        2. Block 1: “ER12“

        3. Block 2: “3456”

        4. Block 3: “7890“

      3. If the string length is over 16, only the first 16 characters will be saved to the RFID tag.

      4. If the string length is less than 16, the remaining characters are set to 0 (““).

...