Create a New System Configuration

You can create a new system configuration in the FBEditor by:

System Diagram

You open the system diagram for editing by clicking on the corresponding element with the system name in the navigation tree. On this diagram you can add, edit and delete device instances as well as network segments and links.

The figure below shows the result of opening the system diagram for the TEST_NW example in the fbdk/src/testdirectory (the examples in this directory are used mostly for regression testing when changes are made to the FBDK).

Devices and Resources

You can add, edit and delete device instances in a system diagram in the same manner as for FB instances in a function block diagram.

You can open devices for editing by clicking on the corresponding device in the navigation tree.

When a device diagram is open for editing, you can add, edit and delete resources, FB instances and connections in the device in the same manner as for devices in a system diagram. However, you cannot edit or delete resources that are defined as part of the device type.

You can edit a resource's function block diagram in the normal way after opening the diagram for editing by clicking on the resource in the navigation tree. However, you cannot edit or delete FB instances that are defined as part of the resource type.

Network Segments and Links

You can use network segments and links to show the network layout in the system diagram. In the TEST_NW example shown above, the segments are the horizontal arrows and the links are the vertical lines between Devices and Segments.
Segments
  1. You can add a new Segment to the system diagram from the pop-up menu of the diagram, in the same manner as you would add a Device.
  2. You can drag a Segment in the diagram with the mouse, or move it incrementally with the Alt+Arrow keychords.
  3. You can open a Segment for editing by double-clicking, or from the Edit item of its pop-up menu.
  4. You can edit the Segment's parameters, one at a time, from the list provided with the Parameters item of the Segment's pop-up menu.
  5. You can delete a Segment from the diagram via the Delete item of the Segment's pop-up menu.
Links
  1. A Link can be drawn from a Segment to a Device by using the Connect gesture.
  2. You can open a Link to edit its comment by double-clicking, or from the Edit item of its pop-up menu.
  3. You can delete a Link from the diagram via the Delete item of the Link's pop-up menu.

Applications

Mapping

You can map a function block instance from an application to a device or resource with the New Mapping item of the popup menu for the function block instance in its application diagram. The destination of the mapping operation is chosen from the sub-menu of the Map item. All feasible event and data connections are also copied at the same time. Any errors detected during the mapping operation are displayed in the status line at the top of the editor pane.

Once a mapping has been established, you can navigate back and forth between the function block's occurrence in its Application and its containing Device or Resource by using the popup menu of the Mapping label at the bottom of the FB. This is illustrated below for the DEV_MGT_APP configuration in the FBDK's src/ita directory.

Mapping of a FB instance
In Application APP1 In Resource TOOL.RES1

Testing

See the separate documentation on Testing System Configurations.

Saving

When your editing is complete, save your work with the Save As... button.
Of course, it is a good idea to save your work from time to time while editing, too!


Last updated: 2011-02-14.
©2011 Holobloc Inc.
Licensed under the Academic Free License version 3.0.