Special Commands, Relay Control, and Miscellaneous
Trigger Commands
Note:
The trigger name must be unique; that is, no triggers by the same name can be used, nor device, relay, or signal names that were already assigned. The same trigger can initiate any number of reactions. The reactions of the trigger list are not supplied with time information. The trigger must always be completed by an EndTrigger command; for example:
Time |
Trigger TRIGGERNAME |
Condition,True,Delay,Limit,Hysteresis |
|
Reaction 1 |
|
|
Reaction 2 |
|
|
Reaction ... |
|
|
EndTrigger |
|
If a trigger condition consists of several values, operators can combine them. Available operators are +, -, *, /, AND, OR, NOT. The Trigger condition is fulfilled if the corresponding value is reached, not reached, or exceeded. This is indicated by the operators <, >, <=, >=, = and <>. Any dependence on various values can be realized via parentheses.
If the value is preceded by the name Delta, the slope (i.e., the first derivation) is processed as the trigger condition. Remote input signals or relay states can also be processed.
Note:
Due to lack of space, line breaks are inserted here. Normally, one command must be entered in one line. For a detailed description of the Trigger command, refer to Trigger in the Reference Information section.
Example 1: Peak Recognition via Absolute Value
0.000 |
Trigger EXAMPLE1 |
UV_VIS_1>100,True=1,Delay=5,Limit=4 |
|
Sound |
File="TEST.WAV" |
|
... |
... |
|
RELAYNAME.State |
=On |
|
EndTrigger |
|
Description: The trigger with the Trigger Name EXAMPLE1 monitors the channel UV_VIS_1. If the signal exceeds the value 100 for more than 1 second ((Trigger-)True), the Audio file TEST.WAV is played after a (Trigger-)Delay of 5 seconds. (If no sound card is installed in the PC, there is a short Beep instead. Also, refer to system command Sound.) At the same time, the RELAYNAME relay is enabled.
The entire process, i.e., exceeding the signal value 100 of channel UV_VIS_1 with a subsequent reaction, is limited to 4 times (Limit=4). If the (Trigger-)Limit is not entered, the process is always repeated when the condition becomes true.
Example 2: Peak Recognition via Signal Slope
0.000 |
Trigger EXAMPLE2 |
UV_VIS_1.Delta>1 |
|
Sound |
File="TEST.WAV" |
|
EndTrigger |
|
Description: The trigger EXAMPLE2 monitors the channel UV_VIS_1. At a slope value (Delta) above 1, the Audio file TEST.WAV is played. If no sound card is installed in the PC, there is a short beep instead.
Example 3: AND, OR, NOT
0.000 |
Trigger EXAMPLE3 |
((UV_VIS_1>100 AND UV_VIS_2>100) OR |
|
Sound |
File="TEST.WAV" |
|
EndTrigger |
|
Description: The EXAMPLE3 trigger monitors the UV_VIS_1, UV_VIS_2, and UV_VIS_3 channels as well as the REMOTE1 remote input. If the channels 1 and 2 simultaneously (AND) exceed the value 100, or (OR) if the channel UV_VIS_3 exceeds the value 200 and if the remote input REMOTE1 delivers no signal (AND NOT) at the same time, the TEST.WAV Audio file is played (without a sound card, there is a short beep instead).
Example 4: Further parameters that can be triggered
0.000 |
Trigger EXAMPLE4 |
Pressure.LowerLimit<20 OR |
|
AbortBatch |
|
|
EndTrigger |
|
Description: The trigger EXAMPLE4 monitors the pump pressure and the temperature of the column oven. If the pressure falls below 20 bar (= 2 MPa = 290 psi) or exceeds 300 bar (= 30 MPa = 4350 psi), or if temperature exceeds 60°C, the running sample batch is aborted (Abort Batch).