![HIQUEL SLS-500 Master Controller Software Manual Download Page 109](http://html1.mh-extra.com/html/hiquel/sls-500-master-controller/sls-500-master-controller_software-manual_2137777109.webp)
HIQUEL
HIQUEL
HIQUEL
HIQUEL
SLS-500-Configurator
www.hiquel.com
109
Example: STATE - Select alternative function
MyCounter==0
MyCounter==0
START
START
In
In
Value
Value
MyCounter
MyCounter
COUNT SET
COUNT SET
In
In
Value
Value
MyCounter
MyCounter
COUNT SET
COUNT SET
In
In
Value
Value
MyCounter
MyCounter
COUNT UP
COUNT UP
In
In
Value
Value
MyCounter
MyCounter
COUNT UP
COUNT UP
L1.DI1
L1.DI1
const
1
const
1
L1.DO1
L1.DO1
L1.DO2
L1.DO2
L1.DO3
L1.DO3
MyCounter==1
MyCounter==1
L1.DO1
L1.DO1
const 1
const 1
L1.DO2
L1.DO2
L1.DO3
L1.DO3
MyCounter==2
MyCounter==2
L1.DO1
L1.DO1
L1.DO2
L1.DO2
const 1
const 1
L1.DO3
L1.DO3
In
In
Value
Value
MyCounter
MyCounter
COUNT DOWN
COUNT DOWN
In
In
Value
Value
MyCounter
MyCounter
COUNT DOWN
COUNT DOWN
L1.DI2
L1.DI2
const
0
const
0
const
0
const
0
const 0
const 0
const 0
const 0
const 0
const 0
const 0
const 0
Process:
If digital input L1.DI1 has a rising edge the analogue memory
MyCounter will be increased be 1. If digital input L1.DI2 has a
rising edge the analogue memory MyCounter will be reduced
by 1.
If MyCounter has the value 0, only output L1.DO1 will be
energised. If MyCounter==1, the output L1.DO2 will be
energised. If MyCounter==3, the output L1.DO3 will be
energised. For all other values there will be no action.