Branch
Instrument Type: |
Processed in PC |
Related Commands: |
--- |
Description: |
The Branch command allows you to start a different program either from the active Program or on a Control Panel. In order to start the program on a control panel, the Branch command needs to be assigned to a Script Button. For example, you can combine the Branch command with the Trigger Commands to define dynamic program runs. |
Function: |
If a Branch command is issued while a program is running, the execution of the active control file is stopped. The newly selected control file is used instead. The times in the new control file are automatically corrected by the program time that already passed. Example1 (within a program): |
|
0.000 Trigger Pressure > 300 |
|
Branch "Overpressure" |
|
EndTrigger |
|
If the pressure exceeds 300 bar (30 MPa = 4350 psi), the Overpressure program is started. You can use the Overpressure program, for example, to slow down the flow, turn off the lamp, and deliver the Message that the pressure within the system was too high and thus, the flow has been slowed down. Tip: In example 1, make sure that the program to be started via the Branch command is stored in the sequence to be processed. If the program is not stored in the sequence, specify the location in the program. As with the Script Button, use slashes to separate the different levels. |
|
Example 2 (as script button on a control panel): Add a Script Button to the Control Panel (see Creating a Script Button). Branch to the selected program by assigning the Branch command to the button. |
|
Branch "CM_Seminar/Programs/Equilibration" |
|
Click the button to start the column equilibration program that is stored in the CM_Seminar Datasource in the Programs directory. |
Parameter: |
|
Program |
Name of the program file used for further processing |
Tip: |
When making a backup of a sequence, all PGM Files that are included in the sequence are also saved automatically. Therefore, to ensure that PGM Files branched to via a Branch command are automatically added to your sequence backups, verify that they are saved in the corresponding sequence. |