Step 1 - Preparation
|Show all Hide all|
In this step, we will carry out some preparatory tasks prior to configuring the PFS. We will create a project, a driver is implemented and the necessary variables for our example are created.
Create a new project, with the name "PfsSample", in a new workspace.
In the context menu of the project select
Project configuration and
RT changeable files.
Do not generate and transfer checkbox
for the PFS. This way, any changes made to the PFS in the Editor
will be recompiled; changes made in the Runtime environment will
however be lost.
Do not decompile checkbox for the PFS.
Changes made in the Runtime are transferred to the Editor with
Integrate the Simulation driver. Accept all settings of the configuration.
Create the following variables:
HD-Bit; Offset 10; Bit 0; Name: Horn
HD-Bit; Offset 10; Bit 1; Name: Light I
HD-Bit; Offset 10; Bit 2; Name: Light II
HD-Bit; Offset 10; Bit 3; Name: Waste water pump
HD-Word; Offset 11; Name: Heating P I
HD-Word; Offset 12; Name: Heating P II
If the window Project info is not open when
starting the Editor, you can open it with the command
Project window in the menu
Activate the PFS by clicking on the appropriate register in the project window. The empty PFS workspace should now be displayed onscreen.
Maximize the window Project info by activating
Float in main
window or deactivating the option
Allow docking in the context menu of
the window. An enlarged display area within the project window
proves very useful when configuring the PFS.