CM4S GPIO's in Codesys
CODESYS Forge
talk
(Thread)
CM4S GPIO's in Codesys
Last updated: 2024-05-28
Codesys HMI Redundancy
CODESYS Forge
talk
(Thread)
Codesys HMI Redundancy
Last updated: 2024-05-30
CodeSys SVN funktionert nicht
CODESYS Forge
talk
(Thread)
CodeSys SVN funktionert nicht
Last updated: 2024-06-04
codesys mqtt publish serialization
CODESYS Forge
talk
(Thread)
codesys mqtt publish serialization
Last updated: 2024-06-05
CODESYS 3.5.17.30 Setup Error
CODESYS Forge
talk
(Thread)
CODESYS 3.5.17.30 Setup Error
Last updated: 2025-10-30
*EXCEPTION* [ProsessorLoadWatchdog] codesys 3.5.11.40
CODESYS Forge
talk
(Thread)
EXCEPTION [ProsessorLoadWatchdog] codesys 3.5.11.40
Last updated: 2025-11-16
*EXCEPTION* [ProsessorLoadWatchdog] codesys 3.5.11.40
CODESYS Forge
talk
(Thread)
EXCEPTION [ProsessorLoadWatchdog] codesys 3.5.11.40
Last updated: 2025-11-17
STEPPER CODESYS SOFTMOTION_DRIVE
CODESYS Forge
talk
(Thread)
STEPPER CODESYS SOFTMOTION_DRIVE
Last updated: 2025-11-28
CODESYS Download Issue
CODESYS Forge
talk
(Thread)
CODESYS Download Issue
Last updated: 2026-08-10
Codesys monitor 4k
CODESYS Forge
talk
(Thread)
Codesys monitor 4k
Last updated: 2026-08-21
Scan devices hangs CODESYS
CODESYS Forge
talk
(Thread)
Scan devices hangs CODESYS
Last updated: 2025-12-13
Monitor active Codesys connection
CODESYS Forge
talk
(Thread)
Monitor active Codesys connection
Last updated: 2026-03-29
Codesys MODBUS RTU devices
CODESYS Forge
talk
(Thread)
Codesys MODBUS RTU devices
Last updated: 2026-07-14
Codesys Installation problem
CODESYS Forge
talk
(Thread)
Codesys Installation problem
Last updated: 2026-08-10
Redundancy Codesys Runtime, Synchronization
CODESYS Forge
talk
(Thread)
Redundancy Codesys Runtime, Synchronization
Last updated: 2026-01-30
CODESYS and Github Copilot
CODESYS Forge
talk
(Thread)
CODESYS and Github Copilot
Last updated: 2026-02-13
Codesys KNX implementation
CODESYS Forge
talk
(Thread)
Codesys KNX implementation
Last updated: 2026-03-04
Codesys V2.3 π¬π§
CODESYS Forge
talk
(Discussion)
Forum about V2.3
Last updated: 2026-08-26
Post by paulg on Converting hex bytes to float
CODESYS Forge
talk
(Post)
I'll be capturing a hex stream over serial into a RasPi and I'd like to convert a group of bytes into a float. I see this is available (https://content.helpme-codesys.com/en/CODESYS%20Development%20System/cdsoperatorrealto.html) but not its inverse (i.e. BYTE_TO_REAL). The packets will be 18 bytes but I'll be selecting 4 byte segments from the middle, swapping byte endianness (i.e. changing 0x51847641 to 0x41768451), and converting to float; I believe they adhere to IEEE 754. Is there a pre-built function for some or all of this, or do I need to follow (https://forge.codesys.com/forge/talk/Engineering/thread/dc5829c7ea/)? Thanks!
Last updated: 2024-08-02
Post by micik on Reverse bytes in an array
CODESYS Forge
talk
(Post)
Hello, I'm getting the data in Codesys that is an array of 8 bytes. From this array, I need to foram LREAL number, however, because of different endiannes I need to reverse bytes in this array and then copy to a LREAL variable. For this I'm using a loop and it works OK. I wonder if there is a built in function to do this. I have found CAA Memory library but it has functions like reverse bytes in DWORD. But it seems it doesn't have what I need. https://content.helpme-codesys.com/en/libs/CAA%20Memory/Current/CAA_Memory/Reverse-Bit-Swap-ByteWord-order/ReverseBYTEsInDWORD.html What I need is a function to reverse bytes in an 8 byte array, or something similar.
Last updated: 2024-08-22
Post by micik on Reverse bytes in an array
CODESYS Forge
talk
(Post)
Hello, I'm getting the data in Codesys that is an array of 8 bytes. From this array, I need to foram LREAL number, however, because of different endiannes I need to reverse bytes in this array and then copy to a LREAL variable. For this I'm using a loop and it works OK. I wonder if there is a built in function to do this. I have found CAA Memory library but it has functions like reverse bytes in DWORD. But it seems it doesn't have what I need. https://content.helpme-codesys.com/en/libs/CAA%20Memory/Current/CAA_Memory/Reverse-Bit-Swap-ByteWord-order/ReverseBYTEsInDWORD.html What I need is a function to reverse bytes in an 8 byte array, or something similar.
Last updated: 2024-08-22
Post by timvh on FB string and naming
CODESYS Forge
talk
(Post)
I see, you want to initialize the FB. To be able to initialise it like you described, you need to add the FB_Init method to your FB. (right click on the FB, select add object --> method). Then press the arrow down, to select the FB_Init (overwrite default implementation). In the VAR_INPUT section of this method, add the variable --> Tag : STRING; Then in the code section of this method add: THIS^.Tag := Tag; // copy initial value to local variable in FB Search Google if you want to know more about FB_Init. PS, reflection + instance path, is also an option if you want to get the full name of the instance (path) of the Function Block. See: https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_instance_path.html
Last updated: 2024-09-30
Post by imdatatas on Programmatically change Tappet on a cam
CODESYS Forge
talk
(Post)
Yes, There is. As explained "Manual creation of CAM structure" on below section. Likewise tappet structure also can be create manual and value of the switching point can be change during IEC program running. https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_basic_cam_programmatic_creation.html Just create a cam table and define some tapped points as sample for your project. Then on project compile, the created cam tapped data is converted internally into a global variable list. By clicking "Display generated code" in the "cam editor", you can display the automatically created global variables for both cam & tappets. Regards, Imdat
Last updated: 2025-04-02
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
Post by shafiq-dsc on Beckhoff EK series cannot detect but BK1120 detect
CODESYS Forge
talk
(Post)
Dear Support, I have i950 wants to connect with Beckhoff EtherCAT coupler BK1120. There are 2 GSD files for BK1120. 1. BK1120 without MDP.(EtherCAT ESI Device Description (XML)) 2. BK1120 with MDP. (EtherCAT BKxxx (MDP) configuration files) When connecting the BK1120 with i950, scanned devices detects BK1120 without MDP from ESI No1 above. But the KL1408 & KL2408 not detect because they have ELxxxx IO type. When manually insert BK1120 with MDP, the KL1xx8 is able to add manually also but the error shows and Install Missing Descriptions appears. The questions; 1. Why the error occurs? 2. Can the i950 connect with KLxxxx IO type or not? Regards, Shafiq
Last updated: 2024-10-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.