Inverter Speed Reference & Encoder Feedback
CODESYS Forge
talk
(Thread)
Inverter Speed Reference & Encoder Feedback
Last updated: 2018-05-10
New to CODESYS - Unresolved reference
CODESYS Forge
talk
(Thread)
New to CODESYS - Unresolved reference
Last updated: 2022-08-10
Unresolved reference CodeMGetContentByFirmcode2 / missing CmpCodeMeter.dll
CODESYS Forge
talk
(Thread)
Unresolved reference CodeMGetContentByFirmcode2 / missing CmpCodeMeter.dll
Last updated: 2019-09-24
Problem bei Verwendung von REFERENCE
CODESYS Forge
talk
(Thread)
Problem bei Verwendung von REFERENCE
Last updated: 2008-05-16
Ladder Rung number reference
CODESYS Forge
talk
(Thread)
Ladder Rung number reference
Last updated: 2006-10-31
Cross reference issue in v2.3
CODESYS Forge
talk
(Thread)
Cross reference issue in v2.3
Last updated: 2021-09-25
How to reference a Visual Element?
CODESYS Forge
talk
(Thread)
How to reference a Visual Element?
Last updated: 2014-12-25
Verhalten von REFERENCE bei OnlineChange
CODESYS Forge
talk
(Thread)
Verhalten von REFERENCE bei OnlineChange
Last updated: 2012-02-06
VAR_IN_OUT, POINTER TO and REFERENCE TO
CODESYS Forge
talk
(Thread)
VAR_IN_OUT, POINTER TO and REFERENCE TO
Last updated: 2021-11-16
variable reference out of string
CODESYS Forge
talk
(Thread)
variable reference out of string
Last updated: 2016-01-15
REFERENCE TO in an array
CODESYS Forge
talk
(Thread)
REFERENCE TO in an array
Last updated: 2024-10-14
Post by janber on REFERENCE TO in an array
CODESYS Forge
talk
(Post)
Hi all, in the online help it written, that array of reference to data type is not possible. Ok... but if I create array of struct of reference to - everything works fine - please see the screenshots: and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it? Thanks a lot, Jan.
Last updated: 2024-10-14
Post by apurv on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
I have a Array of constant size defined like this Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR Now I want to pass this array to a function by reference, Function fun : INT VAR_IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT' to type 'ARRAY[0..MAX_SIZE] OF INT'
Last updated: 2024-01-07
Post by struccc on Release SP20 - Changes in behaviour?
CODESYS Forge
talk
(Post)
Dear all, I've just started to migrate some of my ancient projects to SP20. There is one strange error (?) I have noticed so far. In a method call, depending on the circumstances I would like to return reference to an object, or an invalid reference: METHOD Add_EVT_OUT : REFERENCE TO FB_MSG VAR END_VAR IF __ISVALIDREF(refMSG_Entry) THEN Add_EVT_OUT REF= MANAGER.AddMsg_EVT_OUT( refMSG_Entry, _Get_EVT_Message(MSG_EVENT.OUT), _Get_EVT_AddCode(MSG_EVENT.OUT) )^; ELSE Add_EVT_OUT := 0; END_IF So far setting a reference variable to 0, did this. But now, the expression Add_EVT_OUT := 0; gives an error: [ERROR] DB_WTP_370: Add_EVT_ACK MSG_TRIGGER_EXT: C0032: Cannot convert type 'BIT' to type 'REFERENCE TO FB_MSG' Naturally... I can write: Add_EVT_OUT := DWORD#0; But is this the correct way? Is there any constant I could use instead, like "NULL"? Or this is totally wrong and to be avoided?
Last updated: 2024-03-24
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
ANY type when integer has a subrange
CODESYS Forge
talk
(Thread)
ANY type when integer has a subrange
Last updated: 2022-02-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
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
.