How to Read Data With Serial Port

Serial Port Connection Guide:

  • Select “Modules” category from menu.
  • Select “Driver” to connect SERIAL PORT.

  • In “Drivers” page, click plus '+' button to add new driver.

  • Name: Write any name you like to describe connection, for example Serial_port
  • Endpoint: Write port=0 or port=1 to connect to the Device. (port=0 → Upper USB Port. port=1 → Bottom USB Port.)
  • Type: Choose SERIAL PORT for connection type.
  • Driver Specific Options: After choosing SERIAL PORT type for connection, default driver specific options will be appear. Set correct values for options. If default values are correct, leave it like that.

  • Then click “Save” button to establish connection.

  • To see connection established, select “Status” category from menu then click “Driver” option.
  • Driver name, last message and status are shown in this page, if connection is completed, green connected bar will be shown.

  • After connection established, tag must be added to driver. To do that:
    • Select “Modules” from menu, then click “Tag” option.
    • In “Tags” page, click plus “+“ button to add new tag.

  • “Details” page will be shown after clicked ”+” button.
  • In this page:
    • Name: Choose any name you like to describe tag.
    • Type: Choose proper type for data.
    • Address: Write tag address. To see serial port address guide, scroll down page.
    • Address Prefix: You can write address prefix.
    • Conversion Script: In this area, you can do mathematical operations with tag.
    • Driver Name: Choose correct Driver for Driver Name. In this example, Serial_port

  • Click “Save” button to add tag.

  • After adding tag, to see connection established and coming data, select “Status” category from menu then click “Tag” option.
  • In this page: Name, Last Value, Last Message, Last Update Time and Status will be shown
  • If tag is added to driver successfully, green OK message will be appear under Status.
  • Last Value: Last data will be shown coming from connection.