bartjanisse
Member
Hi all,
I have the following FC:
FC100
INPUT
TRACK_NR := dint
FUNCTIE_NR := dint
BITJE := bool
INPUT/OUTPUT
FUNCTIE_WOORDEN := array[0..19] of dint
Network 1:
L P##FUNCTIE_WOORDEN
LAR1
//;
L #FUNCTIE_NR
SLD 5 // Multiply by 32
L #TRACK_NR
+D
+AR1
//;
U #BITJE
= [AR1,P#0.0]
I call this FC from a FB like this
FB1
STAT
FUNCTIE_WOORDEN := array[0..19] of dint
CALL FC 13
TRACK_NR := 0
FUNCTIE_NR := 0
BITJE := TRUE
problem:
when i look in the DB which belongs to the FB1 i would expect that FUNCTIE_WOORDEN[0] <> 0. But all i see is zero.
Can someone explain me what I am doing wrong ?
Thank a lot in advance,
Bart Janisse
I have the following FC:
FC100
INPUT
TRACK_NR := dint
FUNCTIE_NR := dint
BITJE := bool
INPUT/OUTPUT
FUNCTIE_WOORDEN := array[0..19] of dint
Network 1:
L P##FUNCTIE_WOORDEN
LAR1
//;
L #FUNCTIE_NR
SLD 5 // Multiply by 32
L #TRACK_NR
+D
+AR1
//;
U #BITJE
= [AR1,P#0.0]
I call this FC from a FB like this
FB1
STAT
FUNCTIE_WOORDEN := array[0..19] of dint
CALL FC 13
TRACK_NR := 0
FUNCTIE_NR := 0
BITJE := TRUE
problem:
when i look in the DB which belongs to the FB1 i would expect that FUNCTIE_WOORDEN[0] <> 0. But all i see is zero.
Can someone explain me what I am doing wrong ?
Thank a lot in advance,
Bart Janisse