Unpacking an array to MODBUS addresses
CODESYS Forge
talk
(Thread)
Unpacking an array to MODBUS addresses
Last updated: 2018-06-19
Array of pointers to output
CODESYS Forge
talk
(Thread)
Array of pointers to output
Last updated: 2013-05-13
TwinCAt 3 Array in csv
CODESYS Forge
talk
(Thread)
TwinCAt 3 Array in csv
Last updated: 2020-04-10
DWORD mit Array of BOOL überlagern?
CODESYS Forge
talk
(Thread)
DWORD mit Array of BOOL überlagern?
Last updated: 2006-04-26
Return Array Upper Bound
CODESYS Forge
talk
(Thread)
Return Array Upper Bound
Last updated: 2008-06-06
Change Visualisation page from ComboBox Array
CODESYS Forge
talk
(Thread)
Change Visualisation page from ComboBox Array
Last updated: 2022-12-20
2 byte array convert to uint
CODESYS Forge
talk
(Thread)
2 byte array convert to uint
Last updated: 2019-04-30
Initialize a two-dimensional array
CODESYS Forge
talk
(Thread)
Initialize a two-dimensional array
Last updated: 2019-10-21
Pointer to Array in Funktionsbaustein verwenden
CODESYS Forge
talk
(Thread)
Pointer to Array in Funktionsbaustein verwenden
Last updated: 2009-11-12
Mehrere Array-Elemente zyklisch zuweisen
CODESYS Forge
talk
(Thread)
Mehrere Array-Elemente zyklisch zuweisen
Last updated: 2012-04-23
Bereich/Array mit AT Deklarienen
CODESYS Forge
talk
(Thread)
Bereich/Array mit AT Deklarienen
Last updated: 2008-04-02
Array auf Bool'schen Wert überprüfen
CODESYS Forge
talk
(Thread)
Array auf Bool'schen Wert überprüfen
Last updated: 2010-06-18
Sort alphabeticaly an ARRAY of STRING
CODESYS Forge
talk
(Thread)
Sort alphabeticaly an ARRAY of STRING
Last updated: 2021-07-18
Assigning array of byte
CODESYS Forge
talk
(Thread)
Assigning array of byte
Last updated: 2015-11-26
read csv into string array help
CODESYS Forge
talk
(Thread)
read csv into string array help
Last updated: 2018-02-26
Word to array of byte
CODESYS Forge
talk
(Thread)
Word to array of byte
Last updated: 2022-09-22
auf Feldbusvariablen über Array zugreifen
CODESYS Forge
talk
(Thread)
auf Feldbusvariablen über Array zugreifen
Last updated: 2024-02-23
Init Array input on a method
CODESYS Forge
talk
(Thread)
Init Array input on a method
Last updated: 2024-02-26
Array of UDT Compare
CODESYS Forge
talk
(Thread)
Array of UDT Compare
Last updated: 2024-04-08
Post by ph0010421 on How to manage variable types larger than 64 bits - Ethernet/IP
CODESYS Forge
talk
(Post)
So it's currently mapped to an array of BYTES? Can you create a UNION? TYPE sBytesString : UNION AsBytes: ARRAY[0..127] OF BYTE; AsString: STRING(128); END_UNION END_TYPE Map it to the bytes, read it in the STRING!
Last updated: 2024-09-23
Post by alexgooi on Init Array input on a method
CODESYS Forge
talk
(Post)
Dear Forum, I would like to initialize an array input on a method. When I do this, I get the following error: "The type of ARRAY [1..2] OF BOOL cannot have a default value in this context." I attached a picture for more clarity. Is this simply not possible or is there a different way of tackling this problem? Thank you in advance
Last updated: 2024-02-26
Post by bmatlove on Variable Length Array - Cannot mix variable and fixed length dimensions?
CODESYS Forge
talk
(Post)
Using Codesys 3.5.18.30 I am trying to work with an array of variable length in one dimension, but known in the other dimension. For example, using an array that represents a list of items, each with an attribute profile. I do not know how many items will be in the list, but I know that every item has 5 attributes, like size, weight, etc. Codesys does not seem to be able to accept this. I have referenced Data Type: ARRAY OF documentation page, which is not explicit if variable & fixed length array dimensions can be mixed. In the VAR_IN_OUT scope, I initially tried MY_ARRAY : ARRAY [*, *] OF REAL; which was no problem, of course. I then modified it to MY_ARRAY : ARRAY [*, 1..5] OF REAL; which throws C0006: ', or ]' expected instead of '..' among consequent downstream errors. I then used the Auto Declare -> Array Wizard, which accepted (asterisk)-(asterisk) and 1-5 for 2-dimensional lower and upper bounds. It output: MY_ARRAY: ARRAY[*..*, 1..6] OF INT; which throws the same error stream. What's the deal here? Is this possible?
Last updated: 2025-05-23
Saving UINT data collected as String data to MMC
CODESYS Forge
talk
(Thread)
Saving UINT data collected as String data to MMC
Last updated: 2007-08-17
Data Source Manager with CODESYS Symbolic data source
CODESYS Forge
talk
(Thread)
Data Source Manager with CODESYS Symbolic data source
Last updated: 2021-03-23
Post by rmaas on STRING conversions to DWORD
CODESYS Forge
talk
(Post)
Hi, The '' characters in Codesys are there only to indicate it is a STRING type. They are not actually added to the string, maybe you are adding them unintentionally in the concat function? You can send your data from Codesys to Hercules to verify... Another option is to send the data as an array of bytes instead of a string, with every byte representing 1 ASCII character. https://www.ascii-code.com/ This way you are 100% sure Codesys is not adding any unwanted characters.
Last updated: 2025-01-31
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.