CONTROL.INI – WEM | SCRIPT ™ CASE STUDIES

 

The project contains three different show files, which are played in an interval of 90 minutes between 8 a.m. in the morning till 2 a.m. in the night. But only, if the key switch, which is connected to input 1 is closed.

 

The first show starts at 8 a.m. sharp, the second show at 8:30 a.m. and the third show at 9 a.m. sharp. Afterwards the first show starts again at 9:30 a.m. The procedure will be continued till 2 a.m. sharp of the following day.

 

Attention!

During execution there is no complex syntax check. Therefore, we recommend using a code editor, such as VSCode 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!vmc1=1#

!i1o!vmc1=0#

!i2c!vmc2=1#

!i2o!vmc2=0#

!i3c!vmc3=1#

!i3o!vmc3=0#

!vcc1=1!vcc2=0!vcc3=1!rsn1#

!vcc1=1!vcc2=1!vcc3=0!rsn2#

!vcc1=0!vcc2=1!vcc3=1!rsn3#

 

1st line: If input 1 is closed (!i1c), then the variable 1 attains the value 1 (!vmc1=1).

2nd line: If input 1 is open (!i1o), then the variable 1 attains the value 0 (!vmc1=0).

3rd line: If input 2 is closed (!i2c), then the variable 2 attains the value 1 (!vmc2=1).

4th line: If input 2 is open (!i2o), then the variable 2 attains the value 0 (!vmc2=0).

5th line: If input 3 is closed (!i3c), then the variable 3 attains the value 1 (!vmc3=1).

6th line: If input 3 is open (!i3o), then the variable 3 attains the value 0 (!vmc3=0).

7th line: If variable 1 gets the value 1 (!vcc1=1), the variable 2 the value 0 (!vcc2=0) and the variable 3 the value 1 (!vcc3=1), then the first show (001_SHOW.WM1) starts in normal mode (!rsn1).

8th line: If variable 1 and 2 gets the value 1 (!vcc1=1)(!vcc2=1) and the variable 3 the value 0 (!vcc3=0), then the second show (002_SHOW.WM1) starts in normal mode (!rsn2).

9th line: If variable 1 gets the value 0 (!vcc1=0), the variable 2 the value 1 (!vcc2=1) and the variable 3 the value 1 (!vcc3=1), then the third show (003_SHOW.WM1) starts in normal mode (!rsn3).