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 VCCode 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.
!d: DMX event
The whole DMX universe can also be used as a start condition for a command line. As operators > < = are permitted.
Example:
!d1=255!…# -> If the value of the DMX channel 1 is equal 255, then the downstream command will be executed.
!d150<20!…# -> If the value of the DMX channel 150 is less than 20, then the downstream command will be executed.
!d512>175!…# -> If the value of the DMX channel 512 is greater than 175, then the downstream command will be executed.