CONTROL.INI – WEM | SCRIPT ™ CASE STUDIES
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!rsr1#
!i1c!vcc1<6!vmc1+1#
!vcc1=0!ess000000#
!vcc1=1!ess100000#
!vcc1=2!ess110000#
!vcc1=3!ess111000#
!vcc1=4!ess111100#
!vcc1=5!ess111110#
!vcc1=6!ess111111#
1st line: If input 1 is closed (!i1c), then the show 1 (001_SHOW.WM1) will be started in restart mode (!rsr1).
2nd line: Each time if input 1 is activated (!i1c) and the variable 1 is less than 6 (!vcc1<6), then the variable increments by one (!vmc1+1).
3rd line: If the value of variable 1 is equal 0 (!vcc1=0), then the output 1 to 6 are cleared (!ess000000).
4th line: If the value of variable 1 is equal 1 (!vcc1=1), then the output 1 is activated and output 2 to 6 are cleared (!ess100000).
5th line: If the value of variable 1 is equal 2 (!vcc1=2), then the output 1 and 2 are activated and output 3 to 6 are cleared (!ess110000).
6th line: If the value of variable 1 is equal 3 (!vcc1=3), then the output 1 to 3 are activated and output 4 to 6 are cleared (!ess111000).
7th line: If the value of variable 1 is equal 4 (!vcc1=4), then the output 1 to 4 are activated and output 5 and 6 are cleared (!ess111100).
8th line: If the value of variable 1 is equal 5 (!vcc1=5), then the output 1 to 5 are activated and output 6 is cleared (!ess111110).
9th line: If the value of variable 1 is equal 6 (!vcc1=6), then all six output are activated (!ess111111).
10th line: If the value of variable 1 is equal 6 (!vcc1=6), then the value of variable 1 is set to zero (!vmc1=0).