Post by pernockham on Inheritence of struct,
CODESYS Forge
talk
(Post)
Easier that I thought, by ALIAS TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE TYPE LOG_DATA_BOOL : LOG_DATA_BASE := (val_type := log_item_val_type.BOOL_); END_TYPE TYPE LOG_DATA_INT : LOG_DATA_BASE := (val_type := log_item_val_type.INT_); END_TYPE TYPE LOG_DATA_REAL : LOG_DATA_BASE := (val_type := log_item_val_type.REAL_); END_TYPE TYPE LOG_DATA_STRING : LOG_DATA_BASE := (val_type := log_item_val_type.STRING_); END_TYPE
Last updated: 2025-03-05
Post by timvh on Inheritence of struct,
CODESYS Forge
talk
(Post)
Maybe the ANY type can help? https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_any.html
Last updated: 2025-03-08
Post by ihatemaryfisher on Sorting array of any-sized structure
CODESYS Forge
talk
(Post)
With that I could make an array of varying size, but would still have to define the array type in the function's declaration VAR_IN_OUT stArray: array [*..*] of <pre-defined data type> END_VAR I wanted a function that could take an array of any type (e.g., a structured VAR) as an input. That way I could call it in multiple POUs to handle different arrays structures.
Last updated: 2023-08-18
Exception when controlling a Task with type Status
CODESYS Forge
talk
(Thread)
Exception when controlling a Task with type Status
Last updated: 2015-10-15
String type object length in CANopen OD?
CODESYS Forge
talk
(Thread)
String type object length in CANopen OD?
Last updated: 2010-01-09
Using ENUM type variables in a recipe
CODESYS Forge
talk
(Thread)
Using ENUM type variables in a recipe
Last updated: 2015-09-16
V3.5 SP19: Enumeration data type broken on OPCUA
CODESYS Forge
talk
(Thread)
V3.5 SP19: Enumeration data type broken on OPCUA
Last updated: 2023-03-14
Exception when controlling a Task with type Status
CODESYS Forge
talk
(Thread)
Exception when controlling a Task with type Status
Last updated: 2015-10-15
Declare and dereference pointer of unknown type
CODESYS Forge
talk
(Thread)
Declare and dereference pointer of unknown type
Last updated: 2016-10-12
How to determine the type of a pointer indexed member
CODESYS Forge
talk
(Thread)
How to determine the type of a pointer indexed member
Last updated: 2022-06-02
Formatting real data type into strings (not visualization)
CODESYS Forge
talk
(Thread)
Formatting real data type into strings (not visualization)
Last updated: 2011-06-21
Setting a struct data type in ModbusTCP mapping IO
CODESYS Forge
talk
(Thread)
Setting a struct data type in ModbusTCP mapping IO
Last updated: 2017-12-24
Problem with Real type in CoDeSys 2.3
CODESYS Forge
talk
(Thread)
Problem with Real type in CoDeSys 2.3
Last updated: 2010-06-25
What about Vendor ID and device type when developing drivers
CODESYS Forge
talk
(Thread)
What about Vendor ID and device type when developing drivers
Last updated: 2013-12-17
PERSISTENT RETAIN variable type & Declaration in table f
CODESYS Forge
talk
(Thread)
PERSISTENT RETAIN variable type & Declaration in table f
Last updated: 2009-05-05
tDate data type - What is it?
CODESYS Forge
talk
(Thread)
tDate data type - What is it?
Last updated: 2009-06-16
R/W retain variables in external i2c EEPROM type 24xxx
CODESYS Forge
talk
(Thread)
R/W retain variables in external i2c EEPROM type 24xxx
Last updated: 2016-04-01
type conversion from ANY_NUM to REAL don't work
CODESYS Forge
talk
(Thread)
type conversion from ANY_NUM to REAL don't work
Last updated: 2020-04-14
Is there a 'deepcopy' type function in Codesys STL?
CODESYS Forge
talk
(Thread)
Is there a 'deepcopy' type function in Codesys STL?
Last updated: 2022-10-06
HMI access to REFERENCE type variables
CODESYS Forge
talk
(Thread)
HMI access to REFERENCE type variables
Last updated: 2020-12-19
Modbus RTU using the Trigger type Application
CODESYS Forge
talk
(Thread)
Modbus RTU using the Trigger type Application
Last updated: 2023-03-02
How to use CharBufferString type from StringUtils.lib?
CODESYS Forge
talk
(Thread)
How to use CharBufferString type from StringUtils.lib?
Last updated: 2017-07-17
Symbol Configuration / Datasource enum type on HMI
CODESYS Forge
talk
(Thread)
Symbol Configuration / Datasource enum type on HMI
Last updated: 2019-09-18
Property that returns REFERENCE TO Interface type?
CODESYS Forge
talk
(Thread)
Property that returns REFERENCE TO Interface type?
Last updated: 2021-11-23
C0032 Error to type Pointer to IoConfigParameter
CODESYS Forge
talk
(Thread)
C0032 Error to type Pointer to IoConfigParameter
Last updated: 2024-03-25
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
.