Block move for fix address ...
CODESYS Forge
talk
(Thread)
Block move for fix address ...
Last updated: 2011-07-26
Block to observe major differences
CODESYS Forge
talk
(Thread)
Block to observe major differences
Last updated: 2022-09-22
Function block method default arguments
CODESYS Forge
talk
(Thread)
Function block method default arguments
Last updated: 2024-01-04
Post by alexgooi on Function Blocks and arrays of function blocks
CODESYS Forge
talk
(Post)
Hi Jack, I think you have to look at a FB in a different way. A Function block (Class) can contain its own data. In other words don't define loose data in your GVL, but define a instance of a FB (Object) in your GVL: Example: Function_Block Basic_Class VAR_INPUT Open_Command: BOOL; END_VAR VAR_OUTPUT Opened: BOOL; END_VAR if Open_Command then Opened := TRUE; ELSE Opened := FALSE; END_IF Global Variables Objects: ARRAY[1..100] OF Basic_Class; //Here you ar defining you objects END_VAR In your code you can directly acces the data and couple it to the IO: GVL.Objects[1].Open_Command := %IX0.0; %QX0.0 := GVL.Objects[1].Opened; //To call the code itself use: GVL.Objects[1](); If you want to take this a step further you are also able to add methods and properties to the FB/Class end thereby creating a OOIP program
Last updated: 2024-02-15
memory violation exception when Calling FB method from another FB method
CODESYS Forge
talk
(Thread)
memory violation exception when Calling FB method from another FB method
Last updated: 2018-10-19
RAMP_REAL FB is retaining my output value when i try to re use the FB
CODESYS Forge
talk
(Thread)
RAMP_REAL FB is retaining my output value when i try to re use the FB
Last updated: 2024-07-29
Eingabe Werte in einem Fb intern
CODESYS Forge
talk
(Thread)
Eingabe Werte in einem Fb intern
Last updated: 2013-03-17
Interface member in a FB
CODESYS Forge
talk
(Thread)
Interface member in a FB
Last updated: 2018-05-15
Driver access (ETCSLAVE) from AXIS_REF_SM3 FB
CODESYS Forge
talk
(Thread)
Driver access (ETCSLAVE) from AXIS_REF_SM3 FB
Last updated: 2020-11-26
FB in einem AS-Schritt ausführen
CODESYS Forge
talk
(Thread)
FB in einem AS-Schritt ausführen
Last updated: 2006-06-02
Init for visualization owned fb
CODESYS Forge
talk
(Thread)
Init for visualization owned fb
Last updated: 2023-06-24
FB referencing I/Os (resolved)
CODESYS Forge
talk
(Thread)
FB referencing I/Os (resolved)
Last updated: 2017-06-11
I can't find RTC FB
CODESYS Forge
talk
(Thread)
I can't find RTC FB
Last updated: 2016-08-16
Automatically call FB declared with FBInstance
CODESYS Forge
talk
(Thread)
Automatically call FB declared with FBInstance
Last updated: 2018-08-10
FIFO FB aus library öfters aufrufen
CODESYS Forge
talk
(Thread)
FIFO FB aus library öfters aufrufen
Last updated: 2010-02-26
globale Variable in FB hochzählen
CODESYS Forge
talk
(Thread)
globale Variable in FB hochzählen
Last updated: 2008-05-30
FB property as VAR_INPUT or VAR_OUTPUT
CODESYS Forge
talk
(Thread)
FB property as VAR_INPUT or VAR_OUTPUT
Last updated: 2016-08-05
Codesys 3.5 und RDREC(FB)
CODESYS Forge
talk
(Thread)
Codesys 3.5 und RDREC(FB)
Last updated: 2020-09-14
Rücksetzen eines FB in AS
CODESYS Forge
talk
(Thread)
Rücksetzen eines FB in AS
Last updated: 2008-06-11
Initializing a Constant inside a FB
CODESYS Forge
talk
(Thread)
Initializing a Constant inside a FB
Last updated: 2016-06-13
Struct FB Input, type coercion
CODESYS Forge
talk
(Thread)
Struct FB Input, type coercion
Last updated: 2021-10-23
Input of a FB
CODESYS Forge
talk
(Thread)
Input of a FB
Last updated: 2016-06-28
Dinamic array as FB input
CODESYS Forge
talk
(Thread)
Dinamic array as FB input
Last updated: 2013-07-09
delete FB using C#
CODESYS Forge
talk
(Thread)
delete FB using C#
Last updated: 2011-12-13
Nicht verwendete FB-Aufruf-Parameter entfernen
CODESYS Forge
talk
(Thread)
Nicht verwendete FB-Aufruf-Parameter entfernen
Last updated: 2023-07-07
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.