Versions Compared

Key

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

...

Now that the ADAM-4150 module is prepared to be accessed as a Modbus RTU device, with Modbus address of 01 and a 19200 Baud serial connection, the device can be added to the SmartServer IoT. To create a Modbus device, perform the following steps:

  1. Access the SmartServer IoT CMS/wiki/spaces/TEMP/pages/44041710 by using the CMS tab on the Configuration UI, or by entering the URL https://[SmartServer IP address]/cms/#/login

  2. Go to the Devices Types widget and click the Import button ().



  3. Select the ADAM-4150v20.dtp from the Start Kit Modbus RTU Channel folder in the DROP FILE HERE area.





  4. Click IMPORT FILE.

    Notification messages will appear indicating that files are being uploaded and the CPU usage on the main CMS page will show increased activity. After about a minute, you should see a message similar to the one shown below. (Click  to close All information messages.)



  5. Click BACK on the Device Types widget.

  6. Go to the Devices widget, which will be used to add a Modbus device to the system. Take note of the device name and character cases that will be used in creating the device. 

  7. Click the Create button () on the Devices widget and add a device as shown in the figure below (leave the Context field empty):
    • Name: DIO
    • Device categoryEdge Device



  8. Click NEXT.

  9. Set the following fields as shown in the figure below:
    • UID: 01:1
    • Integration method: Manual assignment
    • Owner: SmartServer IoT
    • Driver: Modbus
    • Device type: ADAM-4150



  10. Click SAVE.

  11. To provision the device, click the Action button () on the Devices widget for DIO device.

  12. Select the Provision device menu option.

    Within a few seconds, the DIO device fill should change from blue to green indicating that the device has be successfully provisioned. If the provision fails, confirm that the Modbus channel on RS-485-1 is set for 19200, no parity, and one stop bit as described in the Setting the RS-485 Configuration UI section.

    Warning
    Warning: With SmartServer IoT release 2.8, the Modbus engine is locked in to communicate to the device with the channel parameters already configured at device creation. If the Modbus channel parameters are changed, you will need to remove the Modbus device and recreate it.


...

Note
Note: Since monitoring is enabled for the DIO module points, polling done by the Datapoint Browser widget is redundant and not necessary. Therefore, before getting started with the Datapoint Browser widget, you will need to change the Poll Interval (Seconds) on the Datapoint Properties widget from 2s to 0s.

With Poll Interval (Seconds) set to 0s on the Datapoint Properties widget, the Refresh button () on the Datapoint Browser widget (shown in the figure below) can be used to force a get of the current value.


  1. Go to the Datapoint Browser widget.

    Note

    Notes: Click the Expand button (  ) for a better view of this widget. 

    To reduce the scope of data that appears on the Datapoint Browser widget, set the filter to narrow down the display to Modbus driver.


  2. Select the checkmark next to each of the following six datapoints: DI_0, DI_1, DI_2, DI_3, DO_0, and DO_1 (the checkmark changes from blue to yellow). Use the scroll bar as needed to select all of the desired devices.



  3. Click the Action button () on the Datapoint Browser widget and select the Show Selected Datapoints action.



    The Datapoint Browser display is updated with only the six selected datapoints.

    The action of the switches on the Starter Kit, and the modification of DO_0 and DO_1 values in the Datapoint Browser widget, will be reflected within the 2s poll interval that is defined in the Adam-4150V20.dla.csv file. This file is contained in the ADAM-4150v20.dtp archive that was imported the Creating Modbus Devices section.



    You have succeeded integrating a simple Modbus RTU device with the SmartServer IoT. Success requires device setup and serial frame compatibility. As with all RS-485 based devices, it is important to pay attention to the communication wire polarity, and the inclusion of the common ground. Go to Creating Devices to set up other devices.