[SOLVE] Convert array of word to string
CODESYS Forge
talk
(Thread)
[SOLVE] Convert array of word to string
Last updated: 2023-06-30
How to create an array dynamically
CODESYS Forge
talk
(Thread)
How to create an array dynamically
Last updated: 2009-06-16
Limiting Memory Access of an Array to Within its Bounds
CODESYS Forge
talk
(Thread)
Limiting Memory Access of an Array to Within its Bounds
Last updated: 2024-03-06
Visualization from another PLC
CODESYS Forge
talk
(Thread)
Visualization from another PLC
Last updated: 2020-09-26
Another Library Visibility Question
CODESYS Forge
talk
(Thread)
Another Library Visibility Question
Last updated: 2016-07-16
Post by josealb2000 on Stweep license activation error
CODESYS Forge
talk
(Post)
When trying to activate a brand new Stweep license I get error 104 on one softcontainer and error 260 on another softcontainer.
Last updated: 2025-06-02
RPI How to login for a copy of the SD image
CODESYS Forge
talk
(Thread)
RPI How to login for a copy of the SD image
Last updated: 2023-10-18
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
array table and combo box array multitouch problem
CODESYS Forge
talk
(Thread)
array table and combo box array multitouch problem
Last updated: 2018-04-23
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 davidbo on RPI How to login for a copy of the SD image
CODESYS Forge
talk
(Post)
I had one RPI device where I could login. I copied the SD-flash over to another SC-flash. This new SD-flash was inserted in the new device. I can boot the new device but I cannot login why? How can I install an application on this new device? Control 4.4.0.0 cat os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Last updated: 2023-10-18
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
CODESYS Forge
talk
(Thread)
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
Last updated: 2021-04-26
Post by mxj262 on FB having single input but initialized with Array
CODESYS Forge
talk
(Post)
I am adding elements of an ARRAY using pointer to access each element inside a FOR loop and the FOR loop does not stop! What is the right way to use pointers in such case?? I have another loop that is not using pointer and it stops but the loop using pointer keep on adding. METHOD FB_Init: BOOL VAR_INPUT bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold) bInCopyCode: BOOL; // TRUE: the instance will be copied to the copy code afterward (online change) END_VAR VAR_IN_OUT // basically REFERENCE TO window_buffer: ARRAY [*] OF INT; // array of any size END_VAR THIS^.windowPtr := ADR(window_buffer[0]); THIS^.windowSize := UPPER_BOUND(window_buffer, 1) - LOWER_BOUND(window_buffer, 1) + 1; FUNCTION_BLOCK FB500 VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR windowPtr: POINTER TO INT; windowSize: DINT; currentIndex: UINT; element1:INT; element2:INT; i:INT; j:INT; sum:DINT:=0; END_VAR element1:=windowPtr[0]; // read the first element of the Array dynamic memorry element2:=windowPtr[1]; FOR i:=0 TO (TO_INT(windowSize-1)) BY 1 DO // this loop does not stop Sum:=sum + windowPtr[i]; END_FOR FOR j:=0 TO 5 BY 1 DO // this loop stops j:=j+1; END_FOR https://ibb.co/k3DhkZT
Last updated: 2024-05-06
Post by timvh on How to manage soft container licenses for (remote) multi units?
CODESYS Forge
talk
(Post)
You need to activate an individual license (ticket number) for each device. THe hardware of each device is unique, so you cannot copy a soft container from one device to another. This license can be installed in a local (wibu - codemeter) soft container, or you could optionally activate it on a hardware (USB) key. The benefit of the key is that you can easily move it to another device, nor does it get lost when you replace parts of the hardware of the device or completely overwrite the image. See: https://store.codesys.com/en/codesys-key.html
Last updated: 2025-04-08
Same program to more than one PLC
CODESYS Forge
talk
(Thread)
Same program to more than one PLC
Last updated: 2023-08-25
Update device version to the latest one.
CODESYS Forge
talk
(Thread)
Update device version to the latest one.
Last updated: 2018-01-08
How to Execute Program Only One time
CODESYS Forge
talk
(Thread)
How to Execute Program Only One time
Last updated: 2007-07-02
Pack TWO INT variable to one DINT variable
CODESYS Forge
talk
(Thread)
Pack TWO INT variable to one DINT variable
Last updated: 2024-05-07
Program from one PLC to other WAGO 750-8204
CODESYS Forge
talk
(Thread)
Program from one PLC to other WAGO 750-8204
Last updated: 2024-05-27
Post by canplum on Codesys 3.5.21 fails to copy file to USB
CODESYS Forge
talk
(Post)
No unfortunately not until now.
Last updated: 2025-05-27
ARRAY of unknow struct
CODESYS Forge
talk
(Thread)
ARRAY of unknow struct
Last updated: 2017-10-09
Array of Program
CODESYS Forge
talk
(Thread)
Array of Program
Last updated: 2024-09-03
problem OPC UA array
CODESYS Forge
talk
(Thread)
problem OPC UA array
Last updated: 2025-02-26
problem OPC UA array
CODESYS Forge
talk
(Thread)
problem OPC UA array
Last updated: 2025-02-26
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.