
10
ld
wi2000
(load analogue input 0)
gt
wc2048
(greater than 2048?)
jmpcn
label3
(jump if false)
mov
c1 m40.1
(set a marker bit(chosen at random))
label3:
(jump label)
ld
wi2000
(load analogue input 0)
gt
wc2048
(greater than 2048?)
jmpc
label4
(jump if true)
mov
c0 m40.1
(reset the marker bit)
label4:
(jump label)
ld
m152.0
(load interlock)
jmpc
label4a
(jump if interlock is set)
ld
wm50
(any free marker word)
add
wc1
(increment by 1 each scan (100 msec))
st
wm50
(store counter)
ld
wm50
(load counter)
lt
wm100
(less then 100? 100 x scan (100msecs)
jmpc
label17
(jump if yes)
mov
c1 m152.0 (set interlock when counter > 100)
label4a:
ld
m40.4
(load second interlock bit)
jmpc
label10
(jump if true)
ld
m40.0
(load marker bit)
andn
m40.2
(and the interlock bit negated)
jmpcn
label6
(jump if false)
mov
bc0 bm3
(select telephone number 0)
mov
bc0 bm19
(select message number 0)
mov
bc3 bm2
(send SMS)
mov
c1 m40.2
(set interlock bit)
mov
c1 m40.4
(set second interlock bit)
jmp
label11
(jump)
label6:
(jump label)
Brodersen Controls A/S
●
Industrivej 3
●
DK-4000 Roskilde
●
Tel: +45 46 74 00 00
●
Fax: +45 46 75 73 36
E-mail: [email protected]
●
Internet: www.brodersencontrols.com