s7200 Microwin Indirect addressing

jetuaime81

Member
Join Date
Dec 2008
Location
AA
Posts
10
Hi,

I would like to know something about indirect addressing.

In the attached picture the value in VW104 is 1100. So, I need to access VB1100 and move its value to say VB110.

Is this possible and can someone show how it can be done.

Thanks and regards,
Irah

123.jpg
 
Sorry but this is not indirect addressing it is a maths formula
-in order
VW104 = vw102 - 1
then
VW104 = vw104 x 5
then
VW104 = vw104 + 1100

SO if vw102 was 6
the result of your eqation would be VW104 = 1125


1100 is an integer
so in another rung create a move statement MOV 1100 to vw110

then replace the 1100 in your existing program with vw110
 
Last edited:
No no...you are not getting the question.the thing i showed is simple maths i know.but suppose the integer value is say 'X', then in the next rung I need to access VB'X'


suppose VW104 is 1100.I need to access the data in VB or VW1100 memory area.How can this be done.

I read something about & , * and accumulator (AC0, AC1 etc) operations in microwin. Can someone explain if I can achieve what im looking for with these..


Thanks
 
S7 200 pointer

Hi,
Check this
Code:
LD     SM0.0             //always ON
MOVD   &VB0, AC2        //point AC2 to starting address of VW10
FOR    VW100, 0, VW104   //number of loops are equal to value in VW104, starting from 0
+D     1, AC2            /increment pointer AC2 so that it now points to next address
NEXT                     // GOback
//at the end of loop AC2 points to address which equal to value in VW104, if VW104 is 1100 then AC2 now points to VB1100
MOVW *AC1, VW112   //move the value in VB1100 to VW112

Note this is untested but must get you started on this.
 

Similar Topics

Dear friend, hi, i am using s7200 plc and i don't know how to communicate with s7200 simulator. can you please help me for this...
Replies
0
Views
1,939
hello pretty new to these but i am simply trying to add an alarm message to an existing oem program i have run the td 200 wizard, added my...
Replies
4
Views
3,940
Hi there! I know this is playing in archeologist, but I need to tune a bit some older Kollmorgen/AKD Digifas 7100 servo drive. Any chance of...
Replies
3
Views
1,133
hey guys here first time for me in this awesome forum actually i have S7-200 connected to Winview HMI and HMI project file has lost and broken...
Replies
0
Views
597
If a TD200 program was created with the wizard in Microwin does anyone know if the code for the TD200 would be uploaded to micowin when doing a...
Replies
0
Views
1,175
Back
Top Bottom