CODESYS is an IDE for application development on programmable logic controllers (PLCs) distributed by the CODESYS Group in Germany. Use this tag only for questions about CODESYS installation and usage as well as related CODESYS software like CODESYS Control Runtime System and CODESYS Automation Server. Use the tags [structured-text], [ladder-logic], and [sfc], for (ide-agnostic) questions about [plc] or [servo] programming.
Questions tagged [codesys]
240 questions
0
votes
2 answers
How to perform file I/O in CODESYS (IEC 61131-3 )?
I am using an automation device (equipped with CODESYS) to calculate the output value of a function block. In order to make sure the function work as it should do we would like to compare this output value with the output result of another function…

aghd
- 685
- 2
- 9
- 20
0
votes
1 answer
How to establish communication between CoDeSys and non-CoDeSys platform using shared memory?
I am a newbie to CoDeSys and I need to establish communication between CoDeSys and non-CoDeSys platform.
I came to know that to establish a communication between CoDeSys and non-CoDeSys platform, one can use OPC or shared memory.
Now, considering…

A. Gajjar
- 9
- 3
0
votes
1 answer
Wago codesys PLC word to bool conversion
I am programing a solarcell tracker with the use of Wago PFC100 and Ecockpit software.
I have a principle problem regarding converting some counter values in a 16-bit WORD to a pulsetrain in form of BOOL.
The 16-bit word register counts up/down from…
user7715540
0
votes
1 answer
Beckhoff CX9020 - Can't establish a connection with TwinCAT 3
I've got a Beckhoff CX9020 module with the following informations (as seen in General Tab in the CX Configuration Tool):
System Information:
Device Name: CX-xxxxxx
Image Version: CX9020 HPS 5.02d
CXConfig Version: 1.0 (Build 73)
CPU Frequency: 1000…

FlKo
- 805
- 1
- 10
- 27
0
votes
1 answer
Schneider setting position of servo with Codesys
I am trying to set to position of a Schneider LXM52 servo with a PacDrive using Codesys. I have tried using the SetPosition function block but that is not setting the position in the drive through a power cycle of the drive. Any thoughts?

mrsargent
- 2,267
- 3
- 19
- 36
0
votes
2 answers
Access to VISU elements on Codesys 3.5.8
I need to access to a "combo box array" object's properties from my Main (PRG) on Codesys 3.5.8.
How can I do this?

Max Markson
- 800
- 1
- 19
- 34
0
votes
4 answers
Codesys fatek programming
How can I write a program in codesys (ST or IL) and put it on fatek FBs series PLC? It is posible? I was not using codesys before. I was using Ladder and other PLCs (Omron, Unitronics, Simens, Schnider Electric).

nekicneko99
- 3
- 1
- 6
0
votes
1 answer
MeteorJS and IoT Space
I want deploy a Meteor application on a wago industrial PLC 750-8202.
Wago supports Boards Support Package with the PTXdist tooling support (Communicate with CoDeSys program on a Linux-based WAGO PFC200 PLC).
I have no idea how i can utilize meteor…

Sadik Hasan
- 173
- 3
- 18
0
votes
0 answers
How to correctly override a persistent input variable on instanciation and call in a derived FUNCTION_BLOCK?
I have a input variable c_timTransmissionRate which is usually initalized using the persistent variable list. The default value for the persistent variable list in the function block TxRaw is then overriden by the instanciating function block…

Torsten Knodt
- 477
- 1
- 5
- 20
0
votes
1 answer
IEEE 754 Single precision to REAL Codesys
I am using a Wago 750 PLC, actually I am reading thru ModBus a 32bit register from other device and I saving the value into a var POINT TO REAL, in this specific case the value is 0000 40A0. I am inverting MSW and LSW to have 40A0 0000 (IEEE 754)…
0
votes
1 answer
Codesys Wago CAN communication
I have connected a Wago PFC200 750-8204 between two Components which communicates via CAN bus in order to receive the messages and for further processing. My approach was to implement it in codesys 2.3 with the WagoCanLayer2_02.lib library but i…

Sadik Hasan
- 173
- 3
- 18
0
votes
1 answer
IEC61131-3 directly represented variables: data width and datatype
Directly represented variables (DRV) in IEC61131-3 languages include in their "addresses" a data-width specifier: X for 1 bit, B for byte, W for word, D for dword, etc.
Furthermore, when a DRV is declared, a IEC data type is specified, as any…

leonbloy
- 73,180
- 20
- 142
- 190
0
votes
1 answer
Determine Remaining Bytes
I'm working on a project where I need to send a value between two pieces of hardware using CoDeSys. The comms system in use is CAN and is only capable of transmitting in Bytes, making the maximum value 255.
I need to send a value higher than 255,…

LBPLC
- 1,570
- 3
- 27
- 51
0
votes
2 answers
How to work with real time in custom function block on ST in Codesys 3.5
I am trying to accomplish very simple task, but it looks like I cannot figure our how.
My task is daily schedule. output Q1 have to be HIGH every day from 1:00 to 2:00. I could not find function block that would help me. I decided to create my…

Sergey Romanov
- 2,949
- 4
- 23
- 38
0
votes
2 answers
Converting 32-Bit Real to 2x 16-Bit Bytes
I'm trying to send a 32-Bit Real across a CAN communications (IFM) but the CAN comms only accepts a 16-Bit value.
If the value I'm trying to send goes above 255, it resets back to 0 and continues in that pattern. I therefore need to split the 32-Bit…

LBPLC
- 1,570
- 3
- 27
- 51