Internal error:System.NullReferenceException: The object reference was not set to an object instance.
CODESYS Forge
talk
(Thread)
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
Last updated: 2024-05-24
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
CODESYS Forge
talk
(Thread)
Internal error:System.NullReferenceException: The object reference was not set to an object instance.
Last updated: 2024-05-24
how to transfer raspberrypi runtime license from sdcard to dongle without the original raspi?
CODESYS Forge
talk
(Thread)
how to transfer raspberrypi runtime license from sdcard to dongle without the original raspi?
Last updated: 2021-04-13
How to intercept a variation in the RetainPerstist variables (for saving to file)
CODESYS Forge
talk
(Thread)
How to intercept a variation in the RetainPerstist variables (for saving to file)
Last updated: 2018-08-03
how to extract the name of an FB to a variable
CODESYS Forge
talk
(Thread)
how to extract the name of an FB to a variable
Last updated: 2024-10-01
How to connect Codesys Control win v3 to an ethercat device
CODESYS Forge
talk
(Thread)
How to connect Codesys Control win v3 to an ethercat device
Last updated: 2021-04-26
How to generate PDO explicit request with RTR flag to TRUE
CODESYS Forge
talk
(Thread)
How to generate PDO explicit request with RTR flag to TRUE
Last updated: 2018-06-13
Beaglebone Black - only one Ethernet port - how to connect to LAN, and EtherCAT?
CODESYS Forge
talk
(Thread)
Beaglebone Black - only one Ethernet port - how to connect to LAN, and EtherCAT?
Last updated: 2022-01-16
How to change data format of 'Trend' time data to DT or something else
CODESYS Forge
talk
(Thread)
How to change data format of 'Trend' time data to DT or something else
Last updated: 2021-05-10
How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server
CODESYS Forge
talk
(Thread)
How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server
Last updated: 2018-11-09
How to measure the time it takes to compile a program in codesys?
CODESYS Forge
talk
(Thread)
How to measure the time it takes to compile a program in codesys?
Last updated: 2020-12-04
How to connect Codesys Control win v3 to an ethercat board-card(hilscher)
CODESYS Forge
talk
(Thread)
How to connect Codesys Control win v3 to an ethercat board-card(hilscher)
Last updated: 2018-11-26
How to get the clock on the computer to be variable in my pr
CODESYS Forge
talk
(Thread)
How to get the clock on the computer to be variable in my pr
Last updated: 2010-12-08
How to mapping TTTech hy-94 PLC IO to global variables in codesys 2.3
CODESYS Forge
talk
(Thread)
How to mapping TTTech hy-94 PLC IO to global variables in codesys 2.3
Last updated: 2022-09-15
how to run a light bulb "usr" to wago 750-819
CODESYS Forge
talk
(Thread)
how to run a light bulb "usr" to wago 750-819
Last updated: 2010-12-16
How to connect more than one DS18B20 temp sensor to unipi board
CODESYS Forge
talk
(Thread)
How to connect more than one DS18B20 temp sensor to unipi board
Last updated: 2017-09-09
how to convert library from CodeSys 2.3 to CodeSys 3.x ?
CODESYS Forge
talk
(Thread)
how to convert library from CodeSys 2.3 to CodeSys 3.x ?
Last updated: 2020-01-21
Licence lost due to broken SD Card. How to reactivate it on same Rapsperry device
CODESYS Forge
talk
(Thread)
Licence lost due to broken SD Card. How to reactivate it on same Rapsperry device
Last updated: 2019-10-07
how to execute a pointer to a function or a function block?
CODESYS Forge
talk
(Thread)
how to execute a pointer to a function or a function block?
Last updated: 2017-04-04
3.5: How to get online to CPU with USB/CAN Kvaser
CODESYS Forge
talk
(Thread)
3.5: How to get online to CPU with USB/CAN Kvaser
Last updated: 2020-12-22
How to functionally copy a BUTTON from one page to another
CODESYS Forge
talk
(Thread)
How to functionally copy a BUTTON from one page to another
Last updated: 2023-07-10
How to initialize arrays of function blocks that need FB_Init to work
CODESYS Forge
talk
(Thread)
How to initialize arrays of function blocks that need FB_Init to work
Last updated: 2020-08-21
How to create an alias or other parallel definition to a structure
CODESYS Forge
talk
(Thread)
How to create an alias or other parallel definition to a structure
Last updated: 2022-10-27
How to Map Arrary of Bool to fixed IEC Address?
CODESYS Forge
talk
(Thread)
How to Map Arrary of Bool to fixed IEC Address?
Last updated: 2023-06-30
Post by vsgn on Passing properties as VAR_IN_OUT variables.
CODESYS Forge
talk
(Post)
Hi, in my experience, the best options for such a case could be: 1. Pass a FunctionBlock via VAR_IN_OUT, containing all variables, mehods and properties needed for the logic of this graphic element (be aware of implementing correcly both get and set accessor for properties) 2. Pass an Interface via VAR_INPUT, of which you can use obviously only Properties and Methods. This is much more elegant for me. Here, you can just pass directly the instance of a FunctionBlock implementing such Interface as input. Hope you'll find this suggestions useful.
Last updated: 2025-05-13
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.