Post by gseidel on Absolute movement controlled by an external encoder.
CODESYS Forge
talk
(Post)
Hi polyautomacao, basically, there are two ways to approach this. My first choice would be to check whether your servo drives supports an external encoder, connect the encoder to the servo and configure the servo accordingly. In this case, you would not need to change anything in the CODESYS application. If that is not an option, you could use SM_DrivePosControl, a drive that closes the position loop in the PLC, and feed it with the external encoder positions. See (0). You can switch your servo drive to velocity control mode (SMC_SetControllerMode) and use SMC_FollowVelocity to apply the fSetVelocity of the SM_DrivePosControl to your servo. The MC_MoveAbsolute can then be performed on the SC_DrivePosControl Hope that helps. (0) https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_example_poscontrol.html Best regards, Georg
Last updated: 2026-03-04
Post by gseidel on Limit Axis CNC Jerk using SMC_Polynomial_AbsMaxLocs
CODESYS Forge
talk
(Post)
Dear josepmariarams, this (internal) function has been removed with SoftMotion 4.17.0.0. We do not have public functions to compute the extrema of a polynomial. On which polynomials exactly did you call SMC_Polynomial_AbsMaxLocs? (Maybe if I understand better how you limit the jerk I can come up with an alternative.) There is no functionality to limit the jerk of individual axes in the CNC. With SMC_LimitDynamics, you can limit the velocity and acceleration of cartesian (X/Y/Z) and additional (P/Q/U/V/W/A/B/C) axes, but not the jerk. And with a quadratic ramp type you can limit the jerk on the path. Best regards, Georg
Last updated: 2026-06-10
Comments in arrays and assigning RST coil's to 600 outputs
CODESYS Forge
talk
(Thread)
Comments in arrays and assigning RST coil's to 600 outputs
Last updated: 2023-08-31
How to use MC_Home and Configure Task
CODESYS Forge
talk
(Thread)
How to use MC_Home and Configure Task
Last updated: 2018-04-20
PFC 200 memory gets full and hangs
CODESYS Forge
talk
(Thread)
PFC 200 memory gets full and hangs
Last updated: 2020-04-05
General question about Codesys and control RTE
CODESYS Forge
talk
(Thread)
General question about Codesys and control RTE
Last updated: 2020-01-27
A few quick Ethernet/IP and ModBus questions
CODESYS Forge
talk
(Thread)
A few quick Ethernet/IP and ModBus questions
Last updated: 2021-02-22
raspberry pi B+ GPIO 5 and 6 always TRUE
CODESYS Forge
talk
(Thread)
raspberry pi B+ GPIO 5 and 6 always TRUE
Last updated: 2016-10-07
Scaling Problems mit Visualization and iPAD Pro Safari
CODESYS Forge
talk
(Thread)
Scaling Problems mit Visualization and iPAD Pro Safari
Last updated: 2022-06-01
Running and A-axis smoothly at constant velocity
CODESYS Forge
talk
(Thread)
Running and A-axis smoothly at constant velocity
Last updated: 2016-01-22
Using it with beckhoff CX9020 and getting PLC disconnections
CODESYS Forge
talk
(Thread)
Using it with beckhoff CX9020 and getting PLC disconnections
Last updated: 2013-09-09
Low latency communication between raspberry pi and arduino
CODESYS Forge
talk
(Thread)
Low latency communication between raspberry pi and arduino
Last updated: 2019-06-09
Did a library update and now can't open project
CODESYS Forge
talk
(Thread)
Did a library update and now can't open project
Last updated: 2023-09-25
Initialization of visualization variables and cyclic code execution
CODESYS Forge
talk
(Thread)
Initialization of visualization variables and cyclic code execution
Last updated: 2023-10-01
Threads and TID created by CODESYSControl Win V3
CODESYS Forge
talk
(Thread)
Threads and TID created by CODESYSControl Win V3
Last updated: 2023-10-02
How to switch between dynamic IP address and dynamic?
CODESYS Forge
talk
(Thread)
How to switch between dynamic IP address and dynamic?
Last updated: 2023-11-08
Codesys Raspberry Runtime 4.10.0.0 and RSM Utility 3.5.19.0
CODESYS Forge
talk
(Thread)
Codesys Raspberry Runtime 4.10.0.0 and RSM Utility 3.5.19.0
Last updated: 2023-11-21
About byte swap and convert into 16 bits
CODESYS Forge
talk
(Thread)
About byte swap and convert into 16 bits
Last updated: 2023-12-04
Alarm Management - Import and Export of AlarmGroup
CODESYS Forge
talk
(Thread)
Alarm Management - Import and Export of AlarmGroup
Last updated: 2023-12-06
ScriptEngine - execute "Export -> Bootproject and firmware (SD Card)" from python
CODESYS Forge
talk
(Thread)
ScriptEngine - execute "Export -> Bootproject and firmware (SD Card)" from python
Last updated: 2024-07-05
Codesys and CANopen manager sensors with same NodeID
CODESYS Forge
talk
(Thread)
Codesys and CANopen manager sensors with same NodeID
Last updated: 2024-07-22
Ruspberry PI and working with profinet slave.
CODESYS Forge
talk
(Thread)
Ruspberry PI and working with profinet slave.
Last updated: 2024-07-30
CNC Jumps G20 - SMC_NCInterpreter and long time to process
CODESYS Forge
talk
(Thread)
CNC Jumps G20 - SMC_NCInterpreter and long time to process
Last updated: 2024-08-03
Communication between PLC and HMI- sending DUT data
CODESYS Forge
talk
(Thread)
Communication between PLC and HMI- sending DUT data
Last updated: 2024-08-23
Communication between PLC and HMI- sending DUT data
CODESYS Forge
talk
(Thread)
Communication between PLC and HMI- sending DUT data
Last updated: 2024-08-23
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.