You can create a new system configuration in the FBEditor by:
FLASHER_TEST.sys,
FLASHER_TESTL.sys, FLASHER_TESTD.sys
or FLASHER_TESTR.sys
; orYou 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).
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.
TEST_NW
example shown above, the segments are the
horizontal arrows and the links are the vertical lines between
Devices and Segments.src/net
folder contains a few
"starter" Segment types to use in creating
Segments.dx1
attribute).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 |
See the separate documentation on Testing System Configurations.
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!