From Nolek Wiki
Jump to navigation Jump to search

5. Configuration

The configuration includes the following steps:

  1. Project
  2. Groups
  3. Devices
  4. Tags
  5. Save the new config

5.1 Project

Create new Project:

  1. Press the Project button in the menu bar and then the button View.
  2. After you have pressed View, a window will open with two boxes: one for the Project and the second for the Groups.
  3. In the Project box, you type in the Name and the Description for your project.
    1. Groups box to the left is an overview containing the Groups.
    2. The Selected Group box contains specific configurations for group that was clicked on.

5.2 Groups

Create new Group:

  1. To create a new Group, right-click in the Groups box.
  2. When you have right-clicked, a small window will pop up with options. Select Add Group.
  3. When you have selected Add Group, a window will pop up with the group properties.
  4. Now you need to fill in the text boxes.
  5. Set the Name for the Group, type in the Description, and optionally you can set this group as Active.
  6. When you have filled in the information, press OK, or press Cancel to cancel it.

Delete a Group:

  1. Right click the group you wish to delete, and press Delete Group or Delete All Groups.

5.3 Devices

5.3.1 Configuring Controller Device

To select a controller device type, extend the Drop-Down box under Controller and select the type (For more information about device types, see Device Type Description). OPC READ/OPC WRITE:

  1. To add the credentials of the OPC Server, you must first select the Group you want and then click Configure.
  2. When you have clicked Configure, a window will open with all the OPC servers you have installed on your PC.
  3. Find the one you want to work on, select it and press Save. FILE READ:

  1. To configure the file read of the selected group, click Configure.
  2. Browse to – or insert the folder path where the files will be read from.
  3. Select the extension that the files will have: .csv for excel files or .txt for text files.
  4. Check “Has Header” if the files should include headers (names) as the first row, rather than only the result values.
  5. Select the delimiter that splits the results.
  6. Select an update rate, currently it has to be at least 1.5 seconds.
  7. Select what to do with the result files after they have been read. To avoid uploading the same results repeatedly, they should be moved or deleted from the folder.

5.3.2 Configuring Data Device SQL SP:

Note: SQL Server configuration should only be configured after you have set up the controller device.

  1. To add the credentials of the SQL Server, you must select the Group you want and then click Configure.
  2. When you have clicked Configure, a window will open with the properties that you need to fill in.
  • Server:
  1. Select the server which the program interacts with.
  2. Here you can select an online server or a local server in your machine.
  3. For the local server, you can just press Search, and the program will find it for you. For an online server, you need to type in the name of the server.
  • Authentication:
  1. If it is an online server, select SQL server Authentication, or if it is locally accessed you must select Windows Authentication.
  • UserName:
  1. Type in your Username.
  • Password:
  1. Type in your Password.
  • Database:
  1. After you have filled in the previous options you can now select which database you want to use.
  2. There are two options: the first one is to type in the name of the database manually, and the second option is to press the button Search next to the dropdown arrow and the program will display all the available databases for the specific server.
  3. You then select the database. After you have selected it, you can test if the connection is established. To test the connection, press Test connection.
  4. If the connection is correct, you will get a pop up window saying, “SQL Connection established”, if not it will show what the error is.
  • Store Procedure:
  1. In this option you need to select the stored procedure that the program should use.

Case1: The stored procedure exists.

  1. If the stored procedure(s) exist, you simply press the Search button next to dropdown arrow. Now the program will display all the available stored procedures for the specific database.
  2. Find the one you want and press Save.

Case 2: Stored Procedures do not exist.

  1. If the stored procedures do not exist, you can create the base of it in the from the program, unless you are using FILE READ.
  2. First you must type the name of your selection and then press Create stored procedure. When the stored procedure is created, an information window will pop up with a success message, if not it will write the error.

5.3.3 Configuring Backup Device

To configure the Backup device of a group, click the Backup tab next to the Data tab, and Configure. To use the backup device, the controller type must be a READ. SQLITE:

  1. Select if the Backup should be enabled.
  2. Select the folder where the backup SQLITE database will be placed.
  3. Select the File name, preferably the name of the group.
  4. Select the Result capacity of the backup device.
  5. Select the max amount of attempts for the data device to upload a result from the backup device, before it stops trying until the next trigger.
  6. Select the delay between trying to upload.
  7. Select if the data device should retry to upload results.

5.4 Tags

5.4.1 Add Tags in a Group

After you have set the credentials for your Controller device you can now add the Tags that you want the program to use. OPC Controller

  1. First select the Group you want to add the Tags to, and then press Show.
  2. When you have pressed Show, a window will show up with the available groups from the OPC server that you have selected previously, and a notification will pop up in the right corner of your desktop writing “Successfully Connected/Reconnected to OPC”.
  3. Extend the folder of the Server, the Channel, the Device, and finally select the Group that contains the Tags you want to work on.
  4. When you have selected the Group you want, the window to the right will display the available Tags for the specific group.
  5. In order to add them in the Group you have previously created, you must select the tags one by one, or many at once. After that, you must right-click on them and press Add to Inspector Group.
  6. When you have finished adding the tags in the Group of your selection, you can see them in your Project. FILE READ

  1. Select the group that you want to add the tags to, and press Load Setup File.
  2. Select a .txt or .csv file that matches the format of a result file.
  3. Press Add All to Inspector.
  4. In the box to the right, select the dropdown for each tag that matches the parameters of the Data device. If the dropdown is empty, you need to set up the data device first, and then press Load Parameters in the data device config.

5.4.2 Edit/Remove Tags Remove selected Tag from Inspector

  1. Select the group you want to edit.
  2. Select the tag from the inspector box to the right that you want to remove.
  3. Press Remove. When you have pressed it, a window will pop up and ask for confirmation to delete the tag.
  4. If you want to continue, press Yes, or press No to cancel it. Remove all Tags from Inspector

  1. To remove a tag from the specific Group, select the Group in the left box, and then you will see the tags for this Group in the right box.
  2. Above the tags of your Group there is the button called Remove all tags.
  3. When you have pressed it, a window will pop up and ask for confirmation to delete the tags.
  4. If you want to continue, press Yes, or press No to cancel it.

5.4.3 Set the Trigger Config

The trigger config is about how the controller device will be signaled to perform a task, or signal that it is done with a task. OPC READ/OPC WRITE:

  1. To set the Trigger values for the specific Group, you must select the Group that you want.
  2. Now press Trigger Config. A window will open with the following options for the Trigger:
    1. Time to reset response in sec.:
      1. Here you set the time for when the Response tag should reset it to 0.
    2. Update rate (milliseconds):
      1. The rate of how often the program should read from the OPC.
    3. Using Gateway Response Values:
      1. By selecting this option, the Service will return responses from 1 to 3 to the OPC.
      2. If this option is not selected, the service will return responses to OPC from 1 to 99.
    4. Trigger tag:
      1. By pressing the dropdown arrow, you will get all the tags for the specific Group. Find the one you want and just click it.
    5. For the next two boxes, you must select one of them. These are the values to compare with the Trigger tag, to decide if it counts as a trigger.
      1. Value tag:
        1. By pressing the dropdown arrow, you will get all the tags for the specific Group. Find the one you want and click it; the value of this tag will be used.
      2. Value:
        1. You type the value as a number (e.g. 12).
    6. Validation:
      1. Select how to compare the trigger value with the value/value tag.
        1. There are 4 options:
          1. Equals.
          2. NotEquals.
          3. GreaterThan.
          4. LessThan.
      2. Response tag:
        1. Select which tag the program should display the response value after the execution.
      3. Key value tag:
        1. This option is available only when the Controller Device is OPC WRITE or OPC READWRITE.
        2. The value of this tag is used to look up data from the data device.

When you have finished filling in all the properties you just press OK. FILE Device

A file device will always be triggered as long as there is a result file in the selected folder.

5.5 Save the new Config

5.5 Save the new Config

After you have finished all the previous steps, you have two options:

  1. Export the config and use it later.
    1. In the menu bar you must press Project and then Export.
    2. When you have pressed Export, a new window will open. In this window you can select where you want to store the config file.
    3. After you have selected the location, press OK.
  2. Save the project, and the service will work in the background with this config file.
    1. To save the current config, you need to press Save in the top right corner of the page.
    2. When you have pressed Save, depending on your notification settings, a notification will pop up with a success message or the error which occurred during this action.