Use of memory/marker bits in an FB on S7

AndrewM

Member
Join Date
Sep 2011
Location
west yorks.
Posts
49
Hi

Hope someone can help(Newbie Question), I vaguely recollect reading somewhere that you can't or shouldn't use memory bits within an FB when using declarations on an S7 is this correct, I had a quick flick through the Step7 manual but couldn't see anything obvious.

Regards Andrew
 
Unfortunately this does not make any sense. Can you give a concrete example of what you want to do ?

Hi L D[AR2,P#0.0]

Sorry for not explaining myself very well, I am not sure exactly how to phrase the question, what I am trying to say is, on a Siemens S7-300 when writing a program with Ladder Logic From OB1 I Call a Function Block FB1 which has ProcessRun delared as an Input, essentially what I would like to know is the following M5.0 address legal/correct?


_#ProcessRun___M5.0_________________#Pump1
------| |---------| |-----------------------( )


Regards Andrew
 
Last edited:
Yes, this is legal.

I presume M5.0 is a global indicator of e-stop or the like.

Thanks for the reply, I was actually hoping to use it as part of a sequence control, I have 4 tanks that require filling/emptying/mixing and heating sequentially, my first thought was to use say MW4 set to 1 and then shift left at the end of each stage to disable the current stage and enable the next stage, does this make sense and would it be a good way of doing such a task?

Regards Andrew
 
Thanks for the reply, I was actually hoping to use it as part of a sequence control, I have 4 tanks that require filling/emptying/mixing and heating sequentially, my first thought was to use say MW4 set to 1 and then shift left at the end of each stage to disable the current stage and enable the next stage, does this make sense and would it be a good way of doing such a task?

Regards Andrew

You are writing one FB and calling it 4 times for each tank?

If so I would use STAT variables for stage control using SET/RESET as each stage progresses.
 
You are writing one FB and calling it 4 times for each tank?

If so I would use STAT variables for stage control using SET/RESET as each stage progresses.

I have actually got 4 FB's 1 for each tank as there are subtle differences to what happens in each.
 
You are writing one FB and calling it 4 times for each tank?

If so I would use STAT variables for stage control using SET/RESET as each stage progresses.

Thanks for all the replies,

Its got me thinking, if you set/reset a STAT variable to enable stages in 1 FB, Is it OK to set/reset a global variable to enable a stage in a different FB.
 
Its got me thinking, if you set/reset a STAT variable to enable stages in 1 FB, Is it OK to set/reset a global variable to enable a stage in a different FB.

You could add these variables to the FB interfaces (IN_OUT) and pass them between each other.
 
You can roll Siemens anyway you like, so non-standard doesn't apply (unless you can point us to a written standard that you must adopt)

:)
 
... unless you mean you need to keep it within the comprehension level of the person assessing the course work!
 

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
382
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
127
Back
Top Bottom