Hi Folks,
I have wrote a FC which returns Dint Data based on a Station number (Byte)
ie
St1 DBD0
St2 DBD4
etc
St14 DBD52
First i wrote the following which doesn't work:
Ar1 value was L0.0 so i changed approach to this:
Which works fine - Could someone enlighten me to the problem with the first program?
I have wrote a FC which returns Dint Data based on a Station number (Byte)
ie
St1 DBD0
St2 DBD4
etc
St14 DBD52
First i wrote the following which doesn't work:
L #ByStationNo
+ -1
L 4
*D
SLD 3
T #tDwOffset
LAR1 P##tDwOffset
OPN #DbTargets
L DBD [AR1,P#0.0]
T #DiTarget
Ar1 value was L0.0 so i changed approach to this:
L #ByStationNo
+ -1
L 4
*D
SLD 3
LAR1
OPN #DbTargets
L DBD [AR1,P#0.0]
T #DiTarget
Which works fine - Could someone enlighten me to the problem with the first program?
Last edited: