Visualization 🇬🇧
CODESYS Forge
talk
(Discussion)
Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu
Last updated: 2026-05-15
MC_ReadActualPosition with ST code
CODESYS Forge
talk
(Thread)
MC_ReadActualPosition with ST code
Last updated: 2026-05-15
Post by chaylak on MC_ReadActualPosition with ST code
CODESYS Forge
talk
(Post)
hi everyone, i am trying use MC_ReadActualPosition module in ST but i cant do it,( if i use CFC yes i read it) my axis is SoftMotion General Axis Pool->VirtAxisZ [Device: SoftMotion General Axis Pool] codesys V3.5 SP20 program: PROGRAM PLC_PRG VAR VirtAxisZ : AXIS_REF_VIRTUAL_SM3; fbPowerZ : MC_Power; fbReadPos : MC_ReadActualPosition; bEnable : BOOL := TRUE; lrActPos : LREAL; bValid : BOOL; bError : BOOL; fbResetZ : MC_Reset; xZ_Valid : BOOL; xZ_Busy : BOOL; xGlobalPower : BOOL; xGlobalReset : BOOL; xBtnTeachingMode : BOOL; lrGrvZ_OffsetTorque : LREAL := 0.5; lrPulseMmZ : LREAL; rPosFromBlock : LREAL; xZ_IsPowered : BOOL; xZ_PowerError : BOOL; iZ_PowerErrorID : LREAL; rZ_ActualPos : LREAL; lrTargetTorque : LREAL; sZ_ErrorString : STRING; //********** jog fbJogZ : MC_Jog; xJogForward : BOOL; xJogBackward : BOOL; rZ_ActVelocity : REAL; END_VAR fbResetZ( Axis:= VirtAxisZ, Execute:= xGlobalReset); fbPowerZ( Axis:= VirtAxisZ, Enable:= xGlobalPower, bRegulatorOn:= xGlobalPower, bDriveStart:=xGlobalPower , Status=> xZ_IsPowered, Busy=> xZ_Busy, Error=> xZ_PowerError, ErrorID=> iZ_PowerErrorID ); IF xGlobalPower THEN fbJogZ( Axis:= VirtAxisZ, JogForward:= xJogForward, JogBackward:= xJogBackward, Velocity:= 100, Acceleration:= 100, Deceleration:= 100, Jerk:= 1000); END_IF fbReadPos( Axis := VirtAxisZ, Enable := TRUE, Valid => bValid, Position => lrActPos, Error => bError ); IF VirtAxisZ.bError THEN sZ_ErrorString := 'Z Ex err'; ELSIF NOT xZ_IsPowered THEN sZ_ErrorString := 'Z Ex (Power Off)'; ELSE sZ_ErrorString := 'Z Ex Ready'; END_IF IF xBtnTeachingMode THEN lrTargetTorque := lrGrvZ_OffsetTorque; ELSE lrTargetTorque := 0; END_IF VAR_INPUT CFC_Motion: INT; END_VAR
Last updated: 2026-05-15
Post by ph0010421 on ModbusTCP_FunctionCode06
CODESYS Forge
talk
(Post)
Hi You can add a channel to the standard Modbus TCP library with FC06. From the device tree, add Ethernet device, ModbusTCP master then finally a ModbusTCP slave (your power meter). You can add read/write channels (for any FC) in here. As you add these devices, the necessary libraries will be inserted for you. Alternatively, I have a ModbusTCP client/server library if your RT doesn't have Modbus (I think they all do these days?)
Last updated: 2026-05-18
ModbusTCP_FunctionCode06
CODESYS Forge
talk
(Thread)
ModbusTCP_FunctionCode06
Last updated: 2026-05-18
Post by jroddball79 on PM556-TP-ETH — How to change IP address without overwriting the PLC program?
CODESYS Forge
talk
(Post)
Hi, I need to change the IP address of an ABB PM556-TP-ETH using ABB Automation Builder. The situation is: I have connectivity to the PLC using the current IP (configured in Communication Settings) Online Login works fine The Network Scan does not detect the PLC IP-Configuration tool shows all fields disabled I don't have the original project source, only an empty project The PLC has no SD card inserted The Online menu does not show an Upload option When I modify the IP in the project and connect, Automation Builder shows: "The PLC configuration needs to be updated. A full PLC download is required" I'm afraid a full download will overwrite the running program. Is there any way to change only the IP address without overwriting the application? I'm also open to solutions using third-party tools, Python scripts, or any other method (DCP protocol, direct TCP communication, etc.) as long as it doesn't overwrite the running application. Thank you
Last updated: 2026-05-19
Post by phuvutran on CODESYS Date/Time Picker in Dialog does not update value on close (focus issue) – any workaround?
CODESYS Forge
talk
(Post)
Hi everyone, I am working with CODESYS 3.5.21 and using the Date/Time Picker inside a dialog (popup visualization). I noticed a behavior that seems problematic: The Date/Time Picker does NOT update the bound variable immediately. It only updates when the control loses focus/select. This causes an issue in my dialog: User selects a new date/time Immediately presses OK (which closes the dialog) The new value is NOT saved The variable still contains the old value So it seems the Date/Time Picker still holds the value internally and does not commit it before the dialog is closed.
Last updated: 7 days ago
Post by totorovic on Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Post)
Can a Codesys member explain this ?
Last updated: 7 days ago
Post by eschwellinger on Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Post)
which ladder plugin version? CODESYS version is not enough information since modularisation.
Last updated: 5 days ago
Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Thread)
Ladder editor bug with 3.5.21.20
Last updated: 5 days ago
RaspberryPi 5 gateway problem
CODESYS Forge
talk
(Thread)
RaspberryPi 5 gateway problem
Last updated: 5 days ago
Codesys Trend - setting Y axis minimum and maximum as variables - error
CODESYS Forge
talk
(Thread)
Codesys Trend - setting Y axis minimum and maximum as variables - error
Last updated: 5 days ago
Runtime 🇬🇧
CODESYS Forge
talk
(Discussion)
Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms
Last updated: 5 days ago
Post by jroddball79 on PM556-TP-ETH — How to change IP address without overwriting the PLC program?
CODESYS Forge
talk
(Post)
Still looking for a solution. I have gathered more information that might help: Device: ABB AC500 PM556-TP-ETH Firmware version: 2.4.2.14993 (dated 2014) Open ports confirmed: 502 (Modbus TCP), 1200 and 1201 (CODESYS runtime). SSH (22) and HTTP (80) are not reachable. No SD card in the PLC. I can connect via Automation Builder using the current IP and Online Login works, but I have no original source project available. Automation Builder requires a full PLC download to apply IP changes, which we want to avoid as it would overwrite the running program. Any guidance on how to change the IP without a full download would be greatly appreciated. I am also open to solutions using third party tools, DCP protocol, or scripts. Thank you
Last updated: 5 days ago
Limit Axis CNC Jerk using SMC_Polynomial_AbsMaxLocs
CODESYS Forge
talk
(Thread)
Limit Axis CNC Jerk using SMC_Polynomial_AbsMaxLocs
Last updated: 5 days ago
Post by josepmariarams on Limit Axis CNC Jerk using SMC_Polynomial_AbsMaxLocs
CODESYS Forge
talk
(Post)
Dears. Until now, I have been using CNC libraries with Codesys 3.5SP11. I was using SMC_Polynomial_AbsMaxLocs function, from CNC library, to calculate the axis jerks, interpolating splines, to limit it. Now I have passed to SP20, and the functions which calculates the zeros and the maximum-minimum and zeros of polynomials has been disapeared. Questions: -Exist any FB wich can limit the jerk of individual axis in CNC? -Exist any other functions which can calculate max-min and zeros of polynomials? Thanks
Last updated: 5 days ago
OPC UA Codesys 3.5 Symbolkonfiguration VS Kommunikationsverwalter und Python/UA-Expert
CODESYS Forge
talk
(Thread)
OPC UA Codesys 3.5 Symbolkonfiguration VS Kommunikationsverwalter und Python/UA-Expert
Last updated: 5 days ago
Post by saml on Eaton HFX Controllers
CODESYS Forge
talk
(Post)
Hellow every one. DPguy could do you share how you resolved the issues? what Codesys version did you used to fix it? thank a lot!!!
Last updated: 1 day ago
Eaton HFX Controllers
CODESYS Forge
talk
(Thread)
Eaton HFX Controllers
Last updated: 1 day ago
Post by saml on Eaton HFX Controllers
CODESYS Forge
talk
(Post)
Hellow every one. DPguy could do you share how you resolved the issues? what Codesys version did you used to fix it? thank a lot!!!
Last updated: 1 day ago
Motion 🇬🇧
CODESYS Forge
talk
(Discussion)
Realizing single or multi axis motion control, CAM, CNC and Robotic applications
Last updated: 1 day ago
Mismatch between coordinate monitor and actual motion using SMC_GroupJog2, MC_MoveLinearAbsolute (6DOF)
CODESYS Forge
talk
(Thread)
Mismatch between coordinate monitor and actual motion using SMC_GroupJog2, MC_MoveLinearAbsolute (6DOF)
Last updated: 18 hours ago
Fail communication between CODESYS and Fuxa SCADA via OPC UA
CODESYS Forge
talk
(Thread)
Fail communication between CODESYS and Fuxa SCADA via OPC UA
Last updated: 18 hours ago
Codesys 3.5.21.3 add Library search not work
CODESYS Forge
talk
(Thread)
Codesys 3.5.21.3 add Library search not work
Last updated: 18 hours ago
Date Picker
CODESYS Forge
talk
(Thread)
Date Picker
Last updated: 2026-01-14
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.