As a start condition, either an “!i: Input event“, “!t: Time event“, “!rc: Real time clock event“, “!v: Variable event“, “!d: DMX event” or “!k: Infrared event” can be used at the beginning of the line only.
Unlimited (within reason) variable evaluations can be used between the start condition and the execution. This is a great way for example to combine inputs etc.
Attention!
During execution there is no complex syntax check. Therefore, we recommend using a code editor, such as VSCode with support for WEM | Script
Only variable conditions can be combined in one line. If you need a combination of several trigger events you have to do this via variables.
** As a start condition either an “!i: Input event“, “!t: Time event“, “!rc: Real time clock event“, “!v: Variable event“, “!d: DMX event” or “!k: Infrared event” can be used.
Attention!
After each “#“-character a new line should be started again, using the “!” syntax to denote the next command
Before you edit your Control.ini., please update always your WEIGL device first with the latest firmware version. In this way you ensure that your device is able to interpret the latest ASCII commands properly.
!tm00:00!rsnl1#
!t&45:00!vcc1=1!rst2#
1st line: At time 00:00, right after power up of the device or the insertion of the memory card, the first show (001_SHOW.WM1) will be started in loop mode.
2nd line: Because the command (!t&45:00#) is already true at power up or the insertion of the card, a variable !vmc1=1# need to be included in show 1. So every 45 minutes, this variable will be checked, if the value is 1 (!vcc1=1). If the condition is true, the second show will be started in terminate mode, i.e. all other shows will be stopped. In this example the loop of show 1 is interrupted. With a !rsa1# command at the end of the second show, the first show starts again.