Step 5 - Other basic features

This page is part of a guide that gives a walkthrough over the major 4DIAC features.

  1. Overview
  2. Use 4DIAC locally
  3. Create a distributed application
  4. Deploy remotely
  5. Create your own Function Blocks
  6. Other basic features (YOU ARE HERE!)
  7. Advanced Features [optional]

This page shows the following interesting features in 4DIAC that might improve your work:

  1. Import Systems and Types
  2. Virtual DNS Functionality
  3. Create Boot files

Import an existing System

Existing Systems can be imported as follows:

  1. Start 4DIAC-IDE with the desired Workspace
  2. Select File/Import/Existing Projects into Workspace and press Next
  3. Choose the folder that contains the folder with the System you want to import
  4. Mark the desired System within the project field below
  5. if your project is not already within your workspace and if you do not want to modify the original version of your projekt mark Copy Projects into workspace and press Finish. Consider that if you did not check Copy Projects into workspace and you delete your System within 4DIAC then your System will be deleted permanently.
  6. Check the System is completely there, like the System Configuration with the Devices and Resources as well as the Application with FBs and both event and data connects.

Import existing IEC 61499 Types

New systems per default contain a copy the IEC 61499 types in the tool-library. If different types are need, for example from another project or another IEC 61499 engineering tool, these type files can be easily added by copying them into the project directory at the desired place. Furthermore the Type Navigator allows to drag and drop types between projects as well as within a project to a different folder.

Virtual DNS Functionality

The Properties View provides a Virtual DNS editor. This functionality allows defining a set of variables which are replaced by a specified value. The variable names can be used for parameters of Function Blocks and Devices. During the deployment, all variables which are available in the VirtualDNS are replaced with the specified value. For using a variable, the variable name has to be written between %. In the example below, two Configurations were created: local and rasbpi. The configuration rasbpi has the ip variable set to a value of 192.168.0.7, and the local to 127.0.0.1. In the main view, the variable ip is used as the ip address of the FORTE device. When you want to use a local FORTE, just change the configuration and check Active Configuration instead of changing each time the value.

Virtual DNS

Creating Boot-files

When the option FORTE_SUPPORT_BOOTFILE is enabled for the FORTE you are using, on startup FORTE tries to load a so called boot-file. This boot-file has to be located in the same directory as your FORTE binary and needs to be named forte.fboot. This file contains the FB network configuration for the device and will be automatically instantiated during startup of FORTE.

In order to create such boot-files you need to select one or more devices or resources in the Download Selection View and select Create FORTE boot-files... from the context menu

Create Boot-file context menu

In the wizard you can then select the devices and resources for which you like to create boot-files as well as the directory where to place them.

Create Boot-file Wizard

On pressing Finish one boot-file will be created per device. This boot-file will contain the selected resources and the FB networks contained in the resources. As only the resources selected are included in the boot-file you can have a larger set of resources during development (e.g., for test-code) and use only the main resources for the boot-file. The name of the boot-file will be a combination of system and device name dot fboot. Before using it you need to rename it to forte.fboot.

Where to go from here?

The last step is optional, and shows some advanced features of 4DIAC that you might use in more complicated applications.

Step 6 (optional) - Advanced Features

If you want to see some examples, the following link is an index of the available examples in the documentation:

4DIAC Examples

If you have a specific platform that has input and outputs that is supported by FORTE, for example a Raspberry Pi or a PLC, and you want to use them, go to following page:

Parameters for different platforms

If you want to use a specific communication protocol supported by FORTE, for example MQTT, OPC UA, Modbus and so on, go this page:

Communication Protocols

If you want to go back to see again how to create your own Function Blocks, here's a link

Step 4 - Create your own Function Blocks

If you want to go back to the Start Here page, we leave you here a fast access

Start Here page

Go to top