Versions Compared

Key

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

This driver provides the a software interface and communication protocol between Xpanel and Pguard PGuard Gateway.

Communication Setup: Xpanel

You can perform an I/O device configuration for various types of field equipment from within Xpanel DesignerXpanelDesigner. More details about the I/O device configuration can be found in the I/O Device Configuration section.

Create a new device

To create a new device, select '[Tools' ] '[I/O device' Devices] in the menu or click on the (blue star) icon in the toolbar. The “I‘I/O device configuration” configuration’ dialog box will appear as shown below. Click [new deviceNew Device]. From the “I‘I/O Device Selection” Selection’ dialog box, select a device name and device type as shown below:

I/O Device Name: Set a device name. This name will be used in the tag configuration window of the database, accompanied by the ‘Station Name’.

Select a device type

After selecting the ‘OK’ [OK] button in the previous step, the ‘Serial Communication Configuration’ dialog box will appear as shown in the following picture.

In this window, select ‘PGuard gateway’ as the device type, then configure the remaining communication parameters appropriately. These parameters must be matched with the PGuard device. See the Communication Configuration section for more information.

Create a station

Move to the [Station] tab of the “Serial ‘Serial Communication Configuration” Configuration’ dialog box and click the [Add Station] button. The “Station” ‘Station’ dialog box will then appear. Configure the options as shown below, then click the “OK” [OK] button.

  • (blue star) Note: Only register 1 station for the ‘PGuard gateway’ driver. Registering more than 1 station may result in a malfunction. However, you may create multiple 'PGuard Gateway’ devices, each with a separate station.

Station Name: Give a name to the PLC. This name will be used to assign device tag names in the database window, accompanied by the 'Deviec Device Name'.

Station Type: Choose the 'SGW'.(No other type can be slectedselected)

Network ID: This field has no effect.N/A

Station No: Write the designated PLC station No. in PLC

16Bit Data Swap: This field has no effect.

32Bit Data Swap: This field has no effect.

Using checksum: This field has no effect.

Comm. Error Message Pop Up: If this item is checked, Xpanel displays a communication error notification message for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display the message for data receive errors. Only when there is a data transmit error (writing a tag value to the station) will the notification message pop up. The message box will close automatically after 5 seconds.

See the Communication Configuration section for more information about the remaining parameters.

Address Notation

  • Command Device

    • Notation: C00“C00”

    • Only analog tags may be registered.

    • Used to command Device Scan to Xpanelthe ‘Device Scan’ feature. Tags are write-only.

  • Read Buffer Device

    • 6 Bytes of data are received per device.

    • Notation:

      Bm

      “Bm.n.

      x

      x”

      • m: received order (0-15)

      • n: the byte address within the 6-byte group (0-5)

      • x: The bit address within the specified byte (0-7). This is only used for digital tags.

      • Examples:

        • Analog, Word: B0.3, B12.5, B15.0

        • Digital: B0.4.0, B1.3.7, B14.2.5

    • If stored to a string tag, the string should have a length of 6 or less

      than 6

      .

    • Tags for this mode are read-only. Writing to tags is not supported by this driver.