Creating own control program by using existing signals and control onboard I/O
In the Programming editor, you can create your own control program with the functionality you want. As a basis, you can use existing signals and control onboard I/Os.
Create an own control program
- In Project navigation view, click room segment folder %RSegm%.
- In Room segment editor, click Add control program.
- Type an Application name and Myname in the dialog and confirm with OK.
- The new chart is placed below the room segment folder %RSeg% and the Room programming editor is opened.
Create a chart interconnection
There are two ways to create a chart interconnection:
Via split window:
- Go to Library, select a function block and drag it onto the Room programming editor.
- In Project navigation view, go to the room folder Resources, right-click an existing signal and select Show in program from the context menu.
- Navigate to the toolbar on the top and select Split window.
- The Room programming editor view is split into two separate windows.
- Drag another chart onto the second window you want to interconnect the first one with.
- Select a pin on function block 1 and drag it onto function block 2.
- A chart interconnection is created.
Via context menu:
- Go to Library, select a function block and drag it onto the Room programming editor.
- In Project navigation view, go to room folder Resources, right-click an existing signal and select Show in program from the context menu.
- On the function block, right-click an output and select Interconnection to chart from the context menu.
- Open the drop-down menu next to the input.
- A new window opens showing all available charts.
- Select your control program on the left side and the Input signal on the right side.
- Confirm with
. - A chart interconnection is created.
Assign control onboard I/Os to signals
- A chart interconnection is created.
- In the Library, select a signal and drag it onto the Room programming editor.