Retrieve number of elements in an array of function blocks
CODESYS Forge
talk
(Thread)
Retrieve number of elements in an array of function blocks
Last updated: 2020-04-19
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
Cannot convert 'STRING' to type 'STRING'
CODESYS Forge
talk
(Thread)
Cannot convert 'STRING' to type 'STRING'
Last updated: 2014-03-31
Post by mmpl on Array to String
CODESYS Forge
talk
(Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18
Post by mmpl on Array to String
CODESYS Forge
talk
(Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18
Post by paro on OPCUA array max length?
CODESYS Forge
talk
(Post)
I think the amount of data is already relatively high and maybe it has something to do with that? Maybe also the CPU load of your device? an array with string(5000)? and have you tested with how many array elements it still works?
Last updated: 2024-02-17
Grosses Array in kleines Array schreiben
CODESYS Forge
talk
(Thread)
Grosses Array in kleines Array schreiben
Last updated: 2009-06-15
Post by timvh on Array to String
CODESYS Forge
talk
(Post)
The new (UTF8) string library is faster and can handle large strings. https://content.helpme-codesys.com/en/CODESYS%20String%20Libraries/_strlib_start_page.html PS, in CODESYS, the maximum string length is not 255 characters. The String functions of the standard library are limited to strings of 255 characters. But you can use other (memory) functions to handle strings larger than 255 characters.
Last updated: 2024-07-22
Get symbol address and length from string of symbol name
CODESYS Forge
talk
(Thread)
Get symbol address and length from string of symbol name
Last updated: 2022-06-21
List of string pointed by value in visualization
CODESYS Forge
talk
(Thread)
List of string pointed by value in visualization
Last updated: 2018-01-31
Array finding the total of index
CODESYS Forge
talk
(Thread)
Array finding the total of index
Last updated: 2023-03-03
Transfer array of byte to i2c-device
CODESYS Forge
talk
(Thread)
Transfer array of byte to i2c-device
Last updated: 2022-08-12
Index was outside the bounds of the array
CODESYS Forge
talk
(Thread)
Index was outside the bounds of the array
Last updated: 2016-10-12
How to convert UDINT to array of bytes ?
CODESYS Forge
talk
(Thread)
How to convert UDINT to array of bytes ?
Last updated: 2023-03-10
y no array of bool to bool
CODESYS Forge
talk
(Thread)
y no array of bool to bool
Last updated: 2013-02-22
FB_Init to define length of array in FB
CODESYS Forge
talk
(Thread)
FB_Init to define length of array in FB
Last updated: 2021-02-02
Writing a CSV file from an array of values?
CODESYS Forge
talk
(Thread)
Writing a CSV file from an array of values?
Last updated: 2020-05-27
Index is outside the bounds of the array
CODESYS Forge
talk
(Thread)
Index is outside the bounds of the array
Last updated: 2022-03-04
Is Array of Types possible in Retained memory
CODESYS Forge
talk
(Thread)
Is Array of Types possible in Retained memory
Last updated: 2021-05-19
Array of STRUCT in einem STRUCT initialisieren
CODESYS Forge
talk
(Thread)
Array of STRUCT in einem STRUCT initialisieren
Last updated: 2016-01-25
Mapping of Array Element to a EtherCAt Slave variable
CODESYS Forge
talk
(Thread)
Mapping of Array Element to a EtherCAt Slave variable
Last updated: 2018-07-25
Array finding the total of index
CODESYS Forge
talk
(Thread)
Array finding the total of index
Last updated: 2023-02-13
Multiple Modbus Read Registers Access by an Array of Elements
CODESYS Forge
talk
(Thread)
Multiple Modbus Read Registers Access by an Array of Elements
Last updated: 2018-04-16
Different types of values in the same array
CODESYS Forge
talk
(Thread)
Different types of values in the same array
Last updated: 2015-11-24
FB Charcurve (Array of points) manipulation?
CODESYS Forge
talk
(Thread)
FB Charcurve (Array of points) manipulation?
Last updated: 2011-05-16
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
.