Post by ben1 on How to stay in a method until something is finished.
CODESYS Forge
talk
(Post)
Why must you use a method? Top of my head can't you just use the button to turn on a bit and use it in a normal task? Just turn a bit on with the button, and run a TON from it in code, and turn it back off with the ton. And then just log the pressure on both the rising & falling edge?
Last updated: 2025-11-03
Post by toffeebonbon on EL7041-0052 - does it run with EL7041 SoftMotion?
CODESYS Forge
talk
(Post)
Good morning everyone. In my setup I am trying to use a couple of EL7041-0052 (the EL7041 variant without terminals for an encoder) to run stepper motors without feedback. When using the softmotion drivers for the EL7041 (Rev22 and Rev24, even selecting external feedback type doesn't work) the device log shows warnings for the corresponding hardware: "SDO write error 0x1 -> 0x8012:0x08 eError 0x1 AbortCode 0x6090011". 0x8012:0x08 is the register for the Feedback Type. My best guess was setting the the register value in the start parameters to zero, but the result is the same. What else can I try to get the hardware to work? I have screenshots attatched showing the running fieldbus and the log messages. EDIT: One clarification: the "device log" that shows the error is the PLC, not the ethercat terminal. The log of the terminal itself shows neither errors nor warnings. BR Robert
Last updated: 2023-11-29
Post by trusty-squire on AXIS Rollover
CODESYS Forge
talk
(Post)
In that case, the best thing to do might be to track the offset in a separate variable of your logic, then when you provide target positions, make your target position use the tracked offset as below: ActualTargetPosition := (TargetPosition + MyOffset) MOD 360; Although, upon further reflection, you'll still have the same cycle time issues. You might be able to break your code into multiple tasks to reduce the cycle time, or use an Event task to capture the offset position?
Last updated: 2025-03-12
Post by gatewail0 on Digital Clock
CODESYS Forge
talk
(Post)
You can definitely pull the actual system time into CODESYS without too much trouble. Take a look at the SysTimeRtc or SysTime library—both let you read the current date and time from the Raspberry Pi. You can call SysTimeRtcGet() or SysTimeGetTime() in your PLC code and then format the hours, minutes, and seconds into variables that feed your 7-segment visualization. Once you’ve mapped those values, your Visu display will update automatically each cycle. It’s a pretty common approach for clocks in CODESYS, so you should be able to get it working quickly. golf hit
Last updated: 2025-12-04
Variables $placeholders$ in visualisations, like in v.2.x ?
CODESYS Forge
talk
(Thread)
Variables $placeholders$ in visualisations, like in v.2.x ?
Last updated: 2021-05-06
Opening PDF in Web Browser in Target Visu HMI
CODESYS Forge
talk
(Thread)
Opening PDF in Web Browser in Target Visu HMI
Last updated: 2024-07-11
Defining two variable in one rectangle box in Visualization
CODESYS Forge
talk
(Thread)
Defining two variable in one rectangle box in Visualization
Last updated: 2017-04-22
Compilerdefines works in application properties but not in POU properties
CODESYS Forge
talk
(Thread)
Compilerdefines works in application properties but not in POU properties
Last updated: 2021-12-30
Eingabe in die Visualisierung in ein Array
CODESYS Forge
talk
(Thread)
Eingabe in die Visualisierung in ein Array
Last updated: 2014-06-27
Device related functions - in library or in Main Program ?
CODESYS Forge
talk
(Thread)
Device related functions - in library or in Main Program ?
Last updated: 2012-08-20
use globals in multiple actions in SFC
CODESYS Forge
talk
(Thread)
use globals in multiple actions in SFC
Last updated: 2013-08-26
How to use retentive option in timer in codesys v3.5?
CODESYS Forge
talk
(Thread)
How to use retentive option in timer in codesys v3.5?
Last updated: 2018-08-06
I need help in SCF - Beginner in Codesys
CODESYS Forge
talk
(Thread)
I need help in SCF - Beginner in Codesys
Last updated: 2021-01-14
where is my IN working in CFC macro
CODESYS Forge
talk
(Thread)
where is my IN working in CFC macro
Last updated: 2012-05-25
Tabelle in einer Visu in einem Lib-Projekt
CODESYS Forge
talk
(Thread)
Tabelle in einer Visu in einem Lib-Projekt
Last updated: 2015-04-02
Unbekanntes Symbol in der Netzwerk Darstellung in Codesys
CODESYS Forge
talk
(Thread)
Unbekanntes Symbol in der Netzwerk Darstellung in Codesys
Last updated: 2011-06-28
error in device modbus in update sp19
CODESYS Forge
talk
(Thread)
error in device modbus in update sp19
Last updated: 2023-05-25
visualisation styles in visu templates in a library
CODESYS Forge
talk
(Thread)
visualisation styles in visu templates in a library
Last updated: 2019-12-12
??? in Simulation, FUP mit Funktionsblock in AS(mit ???)
CODESYS Forge
talk
(Thread)
??? in Simulation, FUP mit Funktionsblock in AS(mit ???)
Last updated: 2010-07-11
Communicate in Ethernet/ip in simulation mode
CODESYS Forge
talk
(Thread)
Communicate in Ethernet/ip in simulation mode
Last updated: 2020-03-27
Programm in V3 geschrieben in V2.3 öffnen?
CODESYS Forge
talk
(Thread)
Programm in V3 geschrieben in V2.3 öffnen?
Last updated: 2010-09-20
Userlevel Fehlerhaft in Webvisu aber in HMI OK ?
CODESYS Forge
talk
(Thread)
Userlevel Fehlerhaft in Webvisu aber in HMI OK ?
Last updated: 2009-02-09
Device in Repository but not in add Device
CODESYS Forge
talk
(Thread)
Device in Repository but not in add Device
Last updated: 2021-09-29
Only Option in "PLC_PRG in" is Structured Text
CODESYS Forge
talk
(Thread)
Only Option in "PLC_PRG in" is Structured Text
Last updated: 2023-03-22
Bool turning on in case stament in wrong state?
CODESYS Forge
talk
(Thread)
Bool turning on in case stament in wrong state?
Last updated: 2023-12-16
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.