CONTROL.INI – WEM | SCRIPT ™ CASE STUDIES
In this example the command !vmc1=0# is inserted at the end of the first show, !vmc1=1# at the end of the second show, !vmc1=2# at the end of the third show and so on.
Attention!
During execution there is no complex syntax check. Therefore, we recommend using a code editor, such as VCCode with support for WEM | Script
The limit for an input event is one per line!
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.
The content of the Control.ini file looks like this:
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.
!i1c!vcc1=0!rst1#
!i1c!vcc1=1!rst2#
!i1c!vcc1=2!rst3#
!i1c!vcc1=3!rst4#
!i1c!vcc1=4!rst5#
!vcc1=4!vmc1=0#
1st line: If input 1 is closed (!i1c) and the value of variable 1 is equal 0 (!vcc1=0), then the first show (001_SHOW.WM1) will start in restart mode (!rst1).
2nd line: If input 1 is closed (!i1c) and the value of variable 1 is equal 1 (!vcc1=1), then the second show (002_SHOW.WM1) will start in restart mode (!rst2).
3rd line: If input 1 is closed (!i1c) and the value of variable 1 is equal 2 (!vcc1=2), then the third show (003_SHOW.WM1) will start in restart mode (!rst3).
4th line: If input 1 is closed (!i1c) and the value of variable 1 is equal 3 (!vcc1=3), then the fourth show (004_SHOW.WM1) will start in restart mode (!rst4).
5th line: If input 1 is closed (!i1c) and the value of variable 1 is equal 4 (!vcc1=4), then the first show (005_SHOW.WM1) will start in restart mode (!rst5).
6th line: If the value of variable 1 is equal 4 (!vcc1=4), then variable 1 will attain the value zero (!vmc1=0). If the pushbutton is activated again the whole process starts from the beginning.