Test Code
Hello LD,
I tested your code and found out result acc to question .But some parts in your code i do confusion. Could you give me a hand to understand in this code or explain a bit?
1.
L 2 // first ACCU1 then move to ACCU2
FL: T #ii // fetch array index
Why we need to intialize array index with 2 and later subtract 1 to get DB index 1?
2.
L #ii // fetch array data
+ -1 //
Result will store in ACCU1?
SLD 5 // shift 5 for DWORD and REAL in S7
LAR1 P#DBX 0.0 //
load AR1 with pointer + "above result" ACCU1?
Can i monitor ACCU1 online? i only found ACCU2 to monitor.
Thanks in advance and please!
Hello LD,
I tested your code and found out result acc to question .But some parts in your code i do confusion. Could you give me a hand to understand in this code or explain a bit?
1.
L 2 // first ACCU1 then move to ACCU2
FL: T #ii // fetch array index
Why we need to intialize array index with 2 and later subtract 1 to get DB index 1?
2.
L #ii // fetch array data
+ -1 //
Result will store in ACCU1?
SLD 5 // shift 5 for DWORD and REAL in S7
LAR1 P#DBX 0.0 //
load AR1 with pointer + "above result" ACCU1?
Can i monitor ACCU1 online? i only found ACCU2 to monitor.
Thanks in advance and please!
Last edited: