simple example of how to use pionters format and indirect addressing?

Join Date
Dec 2009
Location
16 EL-masah ST
Posts
74
i need simple way to understand the indirect addressing and pointer format with complex programing in step 7

what is the meaning of this instructions



LAR1 P#10.0
L 8
nx00: T MW 15
A I [AR1,P#0.0]
= Q [AR1,P#0.0]
L P#0.1
+AR1
L MW 15
LOOP nx00
abc1: NOP 0




and this instructions
L 9
SLD 3
T MD 32

L IB [MD 32]
T QB [MD 32]



thanks in advance
 
the part above is a loop counter 8 times iám not shore wat the part in the loop is doing

is doing almost the same as the MD32 , it loops 8 bits for Input byte 10 and copy's al the bits to output byte 10
MW 15 is the loop counter
Code:
LAR1 P#10.0      
L 8
nx00: T MW 15
A I [AR1,P#0.0]
= Q [AR1,P#0.0]
L P#0.1   //increae pointer 10.0 by 0.1  ( 1 bit)
+AR1 
L MW 15
LOOP nx00
abc1: NOP 0

and this instructions
Code:
L 9                     // load value 9
SLD 3                   // shift left 3 places
T MD 32                 // transfer to MD 32
 
// This value 72 (8 * 8) is equal to input bits 9.0--9.7
 
L IB [MD 32]            // read input 9
T QB [MD 32]            // transfer input byte 9 to output byte 9
 
Last edited:
what is the meaning of this instructions



LAR1 P#10.0
L 8
nx00: T MW 15
A I [AR1,P#0.0]
= Q [AR1,P#0.0]
L P#0.1
+AR1
L MW 15
LOOP nx00
abc1: NOP 0




and this instructions
L 9
SLD 3
T MD 32

L IB [MD 32]
T QB [MD 32]



thanks in advance

Code:
L IW 10
T QW 10

and

Code:
L IB 9
T QB 9

You need to explain the context in which this code is being used.
 

Similar Topics

Hi guys, after some time (I was busy passing exams) I'm back to PLC programming. I'm trying to write a simple ladder program to control a garage...
Replies
2
Views
4,720
Anyone want to take a crack at this? Why will this ladder logic not work as presented in Modicon Ladder Logic Block Library User Guide ver2.1...
Replies
8
Views
5,248
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
167
Hi all, Writng a FB in ST on Beckhoff TC for a pulser which turns on and off on a cycle, is paused by turning bControlInput to FALSE, but resumes...
Replies
6
Views
248
Back
Top Bottom