Memory or Data Block? Function or Function Block?

koaladua

Member
Join Date
Feb 2013
Location
Gloucester
Posts
3
Hi,

I am still confused when to use just simple memory tags or put it in a data block. The same, when to put your ladder logic in a function or a function block.

Can anyone shed some light on this please? Thanks.
 
siemens uses datablocks but codesys just uses markers.

ladder logic can only be put in a function when the result is only one bit
otherwise you have to use blocks
with me all safeties are in ladderlogic and in separate program. (this way i can easier simulate and as a ladder is always from begin to end (when no jumps are used) it is safe.
 
If you can fit all of the variables you wish to use in the M bits available for your CPU (noting the rententive capabilities for M bts for your CPU), then you don't need to use global DBs.

Functions should be used to process a set of inputs and provide a return value.

Function blocks should be used for everything else.
 
Thanks

If you can fit all of the variables you wish to use in the M bits available for your CPU (noting the rententive capabilities for M bts for your CPU), then you don't need to use global DBs.

Functions should be used to process a set of inputs and provide a return value.

Function blocks should be used for everything else.

siemens uses datablocks but codesys just uses markers.

ladder logic can only be put in a function when the result is only one bit
otherwise you have to use blocks
with me all safeties are in ladderlogic and in separate program. (this way i can easier simulate and as a ladder is always from begin to end (when no jumps are used) it is safe.

Thank you very much for the replies. Now I begin to understand it. :)

Cheers.
 

Similar Topics

Hi... I'm new here and also new in plc world.... And I'm also not very good in english... I just want to ask about how to tranfer several data in...
Replies
2
Views
3,859
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
65
Hello everyone! We have a project running on a 1756-L72. The controller’s data and logic memory is about to end. We have about 8% free. I have a...
Replies
3
Views
1,061
Hi Everyone, We are getting an error window whenever I opened the Factory talk asset center Application as "The Database size is critical level...
Replies
0
Views
336
Dear colleagues, I am reaching out for assistance with an issue I am having. I have a code that can successfully insert data from FactoryTalk...
Replies
6
Views
1,049
Back
Top Bottom