function block common parametres in ControlLogix

buhnen

Member
Join Date
May 2008
Location
Somewhereland
Posts
131
Hi all,

Here a pretty newbie question: I'm taking a look to some "interesting" instructions only available under the function block language in ControlLogix (at least not under ladder format), like PID or TOT. As I say, I'm only taking a look at it, haven't yet used the FB language in my projects, though even so,I`ve noticed there are always a set of common parametres like ProgProgReq,ProgOperReq,ProgStartReq,OperOperReq...and so on and I've got a bit of mess about this...could please someone give me a general approach or main idea about what these parameters are for in the FB language?

Thanks in advance to everybody.
 
if your RSLogix5000 software was installed using the "default" procedures, then look under Help/Online Books/General Instructions ... the publication number on my system is

1756-RM003G-EN-P ...

go to page B-14 in the appendix for "Function Block Attributes" for a pretty good description of what these settings do ... see if that helps ...
 
You might also want to look at Rockwell Knowledgebase article 26407 which is more of a beginners/conceptual guide to modes of control.
 
more on function block language

Hi again guys,

I don't know if this topic should be matter of starting a new thread with it but I think it's a pretty newbie question for. So there it goes anyway:

Under the ladder language I can easily perform the operation of adding a value constant (an integer number) to a variable (a DINT) and store the result in that same variable. This operation I've just described is basiclly a counter. But when trying to do the same under the block function language it seems like it's not possible because my variable (see the attached screen capture) is set automaticly to zero.
Any clue about how to solve this?
Thanks in advance.
 
(In the picture above I forgot to mention that when I download the prog to the controller the "A" tag turn its current value from 20 to 0 automaticlly. This is what disconcerts me)
 
buhnen said:
(In the picture above I forgot to mention that when I download the prog to the controller the "A" tag turn its current value from 20 to 0 automaticlly. This is what disconcerts me)
Hello buhnen,
Not sure about AB (prepares himself for a good kicking from the Rockwell experts ;) ), but many PLCs, (and this is really only for a general overview) when downloading a program are actually not running (i.e. they are in 'Program' mode.)
On restarting - switching to RUN mode - most memory areas are reset unless they have been specified as RETAINED, wherein these addresses / variables should keep their values.

I may be completely wrong, but just my 2c!
 
buhnen said:
Hi again guys,

I don't know if this topic should be matter of starting a new thread with it but I think it's a pretty newbie question for. So there it goes anyway:

Under the ladder language I can easily perform the operation of adding a value constant (an integer number) to a variable (a DINT) and store the result in that same variable. This operation I've just described is basiclly a counter. But when trying to do the same under the block function language it seems like it's not possible because my variable (see the attached screen capture) is set automaticly to zero.
Any clue about how to solve this?
Thanks in advance.

In the ADD properties, did you enable the output?


add_fbd.jpg
 

Similar Topics

Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
140
Please see attached file. I need this program in Function Block form but I am totally lost on this. Any help would be appreciated. Thanks!
Replies
8
Views
311
Hi! I am using a TM200CE40T PLC from Schneider to write data over Modbus. I have used Memory words (%MW) before using the Write variable...
Replies
1
Views
550
Hi folks. New to the forum, but been working with PLCs for several years now. Would like some advice on whether you would keep this logic, or...
Replies
9
Views
1,083
Hi Yes, I'm stuck again. Trying to define a Function Block. What I've put in there so far has been a straight copy/paste from the code (and that...
Replies
22
Views
2,978
Back
Top Bottom