Siemens S7

glpdrumerx

Member
Join Date
Oct 2006
Location
Tennessee
Posts
48
Hello Everyone, Still learning the ropes to S7. I had trouble with a machine and couldn't find the fault in the program. I spoke with the maker of the machine and he told me which input to look at and which wire to jump. I still couldn't find the input on my PC. What must I do to See the entire program. I did a compare and it didn't show any difference in the program other than registers or numbers. any help would be greatly appreciated.
 
Last edited:
What S7?? Can you post the program, then tell us what they said we can help you look for it...

I can help if its an S7-200 and others will help if its a 300 or 400
 
I am not sure what level you are at, so at a basic level:

1, Siemens uses a system of individual blocks of code called from OB1. Generally, you cannot see the entire program, only 1 block at a time. The exception is if you generate source code. In that case you get the entire program in one text file in STL (assembly) format.

2, to do a basic search, you need to have opened a block and you can either go to Edit->Find/Replace for addresses or text within the block, Edit->Goto->Location for addresses anywhere (although you have to have highlighted an address to use this option) or, Options->Reference Data->Display. With this final option, you select cross reference, and filter for inputs. You will be able to find the location of all the inputs in the code by this method.

3, Tricks. I have found that for some reason a lot of German companies like to use indirect addressing, and move all their inputs into the DB range. Unfortunately, this makes finding the input impossible through the search functions. By this method, a pointer to an address is assembled and this is used to move the contents of the input registers over. It is generally done in STL, and can usually be found by looking for the shift left function. The easiest way I found to look for this is to generate the entire program in source code, open it with the text editor, and search for the shift left function, or variables of the type pointer.

Hopefully they did not use this method.

Doug
 
You mention finding a certain input to "jump a certain wire" you can find which input is which through the Hardware Config. If you open your project in Simatic Manager and click on the PLC on the left. Then open "hardware". Then you can see the order of the modules on the rack and what inputs/outputs are assigned to each one. This will allow you to track an input or output in the real world.

Not sure if this is also what you were asking...?

Hope that helps
 
uptown47 said:
You mention finding a certain input to "jump a certain wire" you can find which input is which through the Hardware Config.

You can also usually find it in a panel.

Don't you have the schematics?
 

Similar Topics

HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
7
Views
142
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
78
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
149
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
180
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
182
Back
Top Bottom