Control Builder F Structure Text
Can someone explain how to add function block library to Structure Text for Freelance DCS?
Like if we want to use TON/TOFF function in Structure Text, do we need to define in global tags before? and how we call it in structure text to use it?
How to use function blocks in ST is explaind in section 8 Structured Text (ST) in the "Engineering Manual IEC 61131-3 Programming"
Function blocks have to be declared before use
Functions can be used directly without declaration
Here is an example of the use of function blocks in ST, which was taken from the mentioned manual.
After entering the declaration and usage of a function block in ST, it also needs to be instantiated in order to appear in the global Tag list. This is done by the menu Elements / Instantiate or by clicking "Instantiate" in the editor menu bar.
Hope that helps
You got the basic idea about using FB in ST from above post,
Also there is online help available in CBF or Freelance Engineering.
all the IEC61131-3 languauges described very well with examples...
Will give you broader idea using FB's in Statement text...
Under menu Item Help > Content or Press F1 button.
about function blocks in ST you can find under >Edit an ST program
Hope that helps...
All Functions and Function Block in Freelance can be called up in ST.
All standards remain the same as of IEC 61131-3. All details cannot be mentioned here like how n where to define local variables, Global variables, Function Blocks, etc as everything has particular syntax.
You can refer Section 8 ST in 3BDD012504 Engineering - IEC 61131-3 Programming.