Siemens S7 Transfer to Lb1 question?

russg

Member
Join Date
Aug 2012
Location
UK
Posts
275
Hi,

I'm reasonably experienced in siemens S7, but I don't remember coming across this kind of interger / variable.

I'm assuming it means load the word data into byte 1 of the accumulator?

Anyone have any ideas on this?

Thanks.

Russ

 
That is very bad programming. It loads DB140.DBW82 contents to fc's or fb's local data area with absolute address (temp in declaration). If programming of said block is changed it might result in unpredicted function of the block.
 
Hi, thanks I managed to work it out and prove it with the simulator.

Thanks for the quick feedback.
 
That is very bad programming. It loads DB140.DBW82 contents to fc's or fb's local data area with absolute address (temp in declaration). If programming of said block is changed it might result in unpredicted function of the block.
It might not necessarily be because of bad programming style.
It could be that the original program had a TEMP defined, and therefore LB1 has a symbolic name. What you see from the screenshot could be something that you see when you upload and view a program for which you do not have the source code.
The way Russg writes I think that this is not his program and maybe he has uploaded it.

But for sure, when writing code one should NEVER address the Local Data directly.
One can say the same for the absolute addressing of a datablock address such as DB140.DBW82.
 

Similar Topics

Hi, If we have PLCs on different subnets is it possible to do TCP comms data transfer between them? I'm assuming if we use a routing switch and...
Replies
3
Views
813
I have a Siemens S7-200 with a bad output. Bought a new processor, PN 6ES7 214-1AD23-0Xb0, to replace it. I have an EPROM Memory Module, PN 6ES7...
Replies
2
Views
799
Hi there, I have three pumps, I have to start first pump for 8 minute and after that it should be turned off and other one start simultaneously...
Replies
11
Views
1,837
Hi all I am trying to make some changes to a siemens touch panel (MP277 10") numeric display item which is displaying incorrectly but I need to...
Replies
1
Views
1,304
Hi guys hoping you Siemens buffs can help me out here. Currently running a win 7 vm (upgrading to a clean install of win 10) with Step 7 5.6, TIA...
Replies
4
Views
2,196
Back
Top Bottom