Use of memory/marker bits in an FB on S7

You could add these variables to the FB interfaces (IN_OUT) and pass them between each other.

In one of my versions I tried this method, for some strange reason when I moved between FB's one of the stages didn't reset so I had 2 stages enabled together(not good), so being a novice I wasn't sure whether this was a workable solution, but now you've mentioned it I might revisit it.
 
99.9% of the type of problem you mention in the previous post is down to a coding error and not some fundamental limitation of the plc.

If something happens that you don't understand, don't ignore it as it will come back to bite you later.
 
As already stated, the complete project is usually too big to post on here. To post the code, create a library instead of a project. Insert an S7 program into the library then copy the blocks from your project blocks folder to the library blocks folder. Archive the library and attach to a post.
 
As already stated, the complete project is usually too big to post on here. To post the code, create a library instead of a project. Insert an S7 program into the library then copy the blocks from your project blocks folder to the library blocks folder. Archive the library and attach to a post.

Would you beleive it, I converted it back to old IN/OUT version and its now working.

I have attached a copy for you to have a look at, though its nothing to get excited about.

Any comments welcome I think:oops:
 
Just thought I'd mention for anybody looking at the project, it isn't totally finished, I have still to put some more comments and symbols in and check over how it reacts to alarms etc, just wanted to get it to a position where it actually runs first.

Regards Andrew
 
Minor detail but, why is the Recipe capacity stated at 5 litres? Do you assume it is full and then count out 5 litres and stop repeating? As there is no feedback you will never know when it has been filled back up.
 
Minor detail but, why is the Recipe capacity stated at 5 litres? Do you assume it is full and then count out 5 litres and stop repeating? As there is no feedback you will never know when it has been filled back up.

Morning L D[AR2,P#0.0]

I'd not picked up on this, I will check with the course tutor, I have had parts in exercises before that are controlled by other areas.

Other than that, have you had a look at the program, how am I doing?

Regards Andrew
 
If this is your first S7 program, then you are doing extremely well.

Are you intending simulating the tank feedbacks so your process can be started and then keeps going?
 
If this is your first S7 program, then you are doing extremely well.

Its virtually the first, so Iam really pleased with your comment, Thanks very much.



Are you intending simulating the tank feedbacks so your process can be started and then keeps going?

I am not exactly sure what you mean here, when I test the program I set the Input bits in the simulator as though sensor are being reached. ie set I0.3 for Tank1 Hi sensor.
 

Similar Topics

I'm busy with my first CoDeSys project and as far as the programming itself is concerned, I was up to speed in a couple of days. The program is...
Replies
4
Views
5,950
I am kind of new to GE products, but we have several in my area. I made a minor logic change and it verified good, but when I tried to download I...
Replies
5
Views
47
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
94
Hi, Yesterday, I was at a customer site. I made one little change. Changed a dummy bool output to an actual output. I didn't add any tags, or...
Replies
15
Views
378
I have a c-more micro with a three digit input box on one of the screens. This is being written to a memory location in a DL05. I don't have the...
Replies
3
Views
126
Back
Top Bottom