Sysfile Konfiguration
CODESYS Forge
talk
(Thread)
Sysfile Konfiguration
Last updated: 2026-01-19
Sysfile Konfiguration
CODESYS Forge
talk
(Thread)
Sysfile Konfiguration
Last updated: 2026-01-19
Error ambigiusname
CODESYS Forge
talk
(Thread)
Error ambigiusname
Last updated: 2026-01-20
Sysfile Konfiguration
CODESYS Forge
talk
(Thread)
Sysfile Konfiguration
Last updated: 2026-01-21
SMC_Trafo 6DOF Config Error
CODESYS Forge
talk
(Thread)
SMC_Trafo 6DOF Config Error
Last updated: 2026-01-21
CPU + EtherCAT redundancy
CODESYS Forge
talk
(Thread)
CPU + EtherCAT redundancy
Last updated: 2026-02-01
Visualisation generates "Unresolved reference"
CODESYS Forge
talk
(Thread)
Visualisation generates "Unresolved reference"
Last updated: 2026-02-02
cm4 runtime problem
CODESYS Forge
talk
(Thread)
cm4 runtime problem
Last updated: 2026-02-02
Error in licence activation
CODESYS Forge
talk
(Thread)
Error in licence activation
Last updated: 2026-02-03
Error in licence activation
CODESYS Forge
talk
(Thread)
Error in licence activation
Last updated: 2026-02-06
dynamic modbus devices
CODESYS Forge
talk
(Thread)
dynamic modbus devices
Last updated: 2026-02-13
Issue with library updates
CODESYS Forge
talk
(Thread)
Issue with library updates
Last updated: 2026-02-13
Scripting: exportPLCopenXML
CODESYS Forge
talk
(Thread)
Scripting: exportPLCopenXML
Last updated: 2026-02-14
Table element issues
CODESYS Forge
talk
(Thread)
Table element issues
Last updated: 2026-02-16
TextList name error (fake)
CODESYS Forge
talk
(Thread)
TextList name error (fake)
Last updated: 2026-02-16
Current time and date
CODESYS Forge
talk
(Thread)
Current time and date
Last updated: 2026-02-23
Time and Date vizualization
CODESYS Forge
talk
(Thread)
Time and Date vizualization
Last updated: 2026-02-23
Fieldbus has lost synchronicity
CODESYS Forge
talk
(Thread)
Fieldbus has lost synchronicity
Last updated: 2026-02-24
runtime dynamic modbus devices
CODESYS Forge
talk
(Thread)
runtime dynamic modbus devices
Last updated: 2026-02-26
HMI ΓΌber Webbrowser
CODESYS Forge
talk
(Thread)
HMI ΓΌber Webbrowser
Last updated: 5 days ago
Version management
CODESYS Forge
talk
(Thread)
Version management
Last updated: 5 days ago
Editor FIND highlight color
CODESYS Forge
talk
(Thread)
Editor FIND highlight color
Last updated: 3 days ago
Ultrasonic sensor HC SR04
CODESYS Forge
talk
(Thread)
Ultrasonic sensor HC SR04
Last updated: 1 day ago
Post by trusty-squire on Codesys for raspberry pi 5 not working exactly
CODESYS Forge
talk
(Post)
Not sure if you've resolved this yet, but the Codesys runtime user/password is different than the Linux user/password. You'll need the Linux user credentials when you log in over SSH (for example, to install the Codesys runtime). When you first log in to Codesys on the RaspPi you'll set up a Codesys user and password. If you lost those credentials, you could try uninstalling and then re-installing the Codesys runtime on the RaspPi so you can setup a new user/password.
Last updated: 2025-03-16
Post by mariapaola on Port instantiation of serial interface in WAGO PLC using Modb_L05.lib in CoDeSys v2.3
CODESYS Forge
talk
(Post)
Hi, Would really appreciate your insights in this issue I have. I am currently using a WAGO 750-881 with multiple IO devices. For one of them I already occupied the MODBUS Master configuration tool so I cannot overwrite it for my other devices. I have a total of two serial interfaces WAGO 750-652. The first one is instantiated in COM2 and doesn't need any protocol since the information comes in an specific formatting that need little code to differentiate between needed info. This one is working just fine. The second one is where I have an issue. I have tried to instantiate the port using MODBUS library modb_L05.lib to properly receive the data from an ARDUINO and I am absolutely unable to open the port: Signal DEVICE2.fbModbus.MODBUS_EXT_MASTER.Interface.Com_Port_Ist_Offen is never TRUE, among with all other signals from that interface, while signal DEVICE1.COM2.Com_Port_Ist_Offen is TRUE, and the other signals also read as TRUE or FALSE. I have tried instantiating the second one as the first one, changing COM3 to COM4, I've tried a lot of things but it wont ever open the channel. I don't know if you have any recommendations for me. For both physical modules, both witness LEDs A and E are on. First one is instantiated like this: PROGRAM DEVICE1 VAR wBaudRate : WORD := BAUD_9600; bDataBits : BYTE := 8; bParity : BYTE := 0; bFlowControl : BYTE := 3; (RS422 FullDuplex with continous send) i : INT; COM2 : SERIAL_INTERFACE; xOpenPort2 : BOOL := TRUE; ( Flag to open the Port ) xInitPort2 : BOOL; ( Flag to initiallize the Port ) ReceiveBuffer2 : typRing_Buffer; END_VAR COM2( bCOM_PORT_NR := 2, cbBAUDRATE := wBaudRate, cbsBYTESIZE := bDataBits, cpPARITY := bParity, csSTOPBITS := STOPBITS_1, cfFLOW_CONTROL := bFlowControl, utRECEIVE_BUFFER := ReceiveBuffer2, ptSEND_BUFFER := ADR(SendString2), xINIT := xInitPort2, xOPEN_COM_PORT := xOpenPort2, iBYTES_TO_SEND := LEN(SendString2)+1, xSTART_SEND := xSendActive2 ); Second one like this: PROGRAM DEVICE2 VAR COM4 : SERIAL_INTERFACE; xInitPort4 : BOOL := TRUE; xOpenPort4 : BOOL := TRUE; ReceiveBuffer4 : typRing_Buffer; fbModbus : MODBUS_EXTENDED_MASTER_RTU; fbError : enumMB_ERROR; stQuery : typModbusExtendedQuery; stResponse : typModbusResponse; au16Data : ARRAY[0..14] OF WORD; i : INT; tPoll : TON; END_VAR COM4( bCOM_PORT_NR := 4, cbBAUDRATE := BAUD_9600, cbsBYTESIZE := 8, cpPARITY := 0, csSTOPBITS := STOPBITS_1, cfFLOW_CONTROL := 2, ( RS-485 half-duplex ) utRECEIVE_BUFFER := ReceiveBuffer4, xINIT := xInitPort4, xOPEN_COM_PORT := xOpenPort4, xSTART_SEND := xSendActive4, ); stQuery.SlaveAddress := 1; stQuery.FunctionCode := 3; stQuery.Read_StartAddress := 0; stQuery.Read_Quantity := 15; (Poll code) fbModbus( ENABLE := TRUE, bCOM_PORT := 4, ( COM4=> 750-652 port ) cbCOM_BAUDRATE := BAUD_9600, cpCOM_PARITY := 0, csCOM_STOPBITS := 1, cbsCOM_BYTESIZE := 8, cfCOM_FLOW_CONTROL := 2, TimeOut := T#500ms, StartFunction := xStart, ExtQuery := stQuery, Response := stResponse, MB_Error => fbError ); FOR i := 0 TO 14 DO au16Data[i] := stResponse.Data[i]; END_FOR;
Last updated: 2025-11-28
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.