Automatiker
Member
Hi,
why two following codes work differently?
First code:
and the second code:
The only difference ist that in the first one is
instead of
As a hint I can say that the second one does not work
why two following codes work differently?
First code:
TAR1
T #AR1_Temp
TAR2
T #AR2_Temp
AUF "DB_Taktband"
LAR1 P#DBX 2.1
AUF DI 108
LAR2 P#DIX 58.0
L 16
Nxt2: T #Laufvariable
U [AR1,P#0.0]
= [AR2,P#0.0]
L "DB_Taktband".SteinLaenge
+AR1
L P#0.1
+AR2
L #Laufvariable
LOOP Nxt2
L #AR1_Temp
LAR1
L #AR2_Temp
LAR2
and the second code:
TAR1
T #AR1_Temp
TAR2
T #AR2_Temp
AUF "DB_Taktband"
LAR1 P#DBX 2.1
AUF DB 108
LAR2 P#DBX 58.0
L 16
Nxt2: T #Laufvariable
U [AR1,P#0.0]
= [AR2,P#0.0]
L "DB_Taktband".SteinLaenge
+AR1
L P#0.1
+AR2
L #Laufvariable
LOOP Nxt2
L #AR1_Temp
LAR1
L #AR2_Temp
LAR2
The only difference ist that in the first one is
AUF DI 108
LAR2 P#DIX 58.0
instead of
AUF DB 108
LAR2 P#DBX 58.0
As a hint I can say that the second one does not work