Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
PLUS+1 and C / OS API in C/C++ Files
« Last post by jraber on April 29, 2026, 06:54:22 PM »
Hello,

I am working on an internal tool that converts .dbc files into POUs that can imported into GUIDE as a single source of truth for CAN communication. I have the actual CAN communication functionality implemented using the functions provided Middleware_CAN_Base_Public (from the middleware library), but along with this I would like to implement a sort of "watchdog" that monitors for connectivity issues. I was initially trying to use time.h (the standard C99 header), and it did not work. I currently have this set up by passing OS.ETime into my POU and saving that to a static variable when the corresponding CAN message is received. From there I compare the passed in value to the static variable, and if a certain amount of time has passed since the last message was received an output variable is set to true indicating a timeout or communication error.

Now, it would be really nice if I could get the OS.ETime value directly from within the POU instead of requiring it to be passed in (there will be many POU calls so the fewer manual routes I have to do the better). The "OS C APIs in PLUS+1 GUIDE" section in the GUIDE user manual gives me hope that it is possible because it states "The presence of an APIs sub-node under the HWD node within the Project Manager tree indicates that the used HWD offers OS C API support for your project."

But I am also doubtful for my situation because I am using an MC050-110 (MC050-110/112-0_nl ver:70089372v230), and I do not see the aforementioned "APIs" sub-node under the HWD node. Is the API functionality missing from this controller or am I just missing something?

Any help would be greatly appreciated.

Thanks,
JT
72
PLUS+1 CS Hardware / Re: CS10 M2M Connection
« Last post by ToPe on April 23, 2026, 02:25:44 PM »
Hi
It is recommended to configure the CS10v125, especially the password settings, via a Bluetooth or Wi-Fi connection.

A new feature of the v125 update is that some parameters can only be written via an Interlink connection. This means that configuration is only possible via Bluetooth or Wi-Fi. This is to prevent unauthorized access to your CAN bus and lock you out (European RED-DA regulation).

Please try changing the parameters via Bluetooth instead of using the CG150.
73
Controllers / Re: MC050-010 OBSOLETE
« Last post by pinias on April 20, 2026, 07:09:58 PM »
Hey There,

I guess it is what it is but just in case.

I believe until early this year it was possible to open a file for the MC050-010 controller and get it modified if needed and compiled again for download.

now it seems it is not longer supported by GUIDE,

The question is, do you know if there is a way around to get a MC050-010 project file updated and compiled?

Otherwise I guess it will go to the recycling bin -the controller-

Thank you
74
General controls / Re: Study files
« Last post by Rem on April 16, 2026, 07:52:18 AM »
Hello TOR,
Thank you for your response and for taking the time to look into this.
That works for me, and I’m open to implementing this solution, which seems like a good idea.

Have a nice day
75
General controls / Re: Study files
« Last post by Tor on April 16, 2026, 07:23:36 AM »
Hi Rem,

Good that you found a solution to your question.

Regarding HWDs that support UDS?
When the Cyber Resilience Act (CRA) is kicking in at the end of 2027 all Danfoss products will have UDS support.   As far as I know no released product support UDS yet.
I was hoping to find some kind of plan/timeline to when different hardware will be updated, but no luck.  I believe this is hidden deep down within the developer groups.

This is unfortunately the best answer I have for you at this time.

Have a nice day.

76
General controls / Re: Study files
« Last post by Rem on April 15, 2026, 01:55:47 PM »
Hello,
While browsing the help section and the latest updates, I saw that the new Toolkey features with Plus1 UDS can be used to do this kind of thing.
However, this is only available for projects with compatible hardware.
Do you know when this hardware will be available?
Thank you
77
General controls / Study files
« Last post by Rem on April 14, 2026, 01:49:19 PM »
Hello,
I'm looking to disable the functions of a p1d file so I can send it to a student without them being able to download the lhx file or copy the program.
I thought about sending them an scs file, but since it's a screen, they won't be able to view the user views.

Is there a solution?

Thank you.
Have a nice day
78
License / Re: The whole lisencing structure of Danfoss is plain out stupid.
« Last post by samuelhj on April 01, 2026, 10:59:06 PM »
Yeah can do that but I do use function blocks, and this renewal process is stupid. Thankfully it seems to be changing for the better and I have contacted a company in Denmark that might help me get this resolved, thanks to Tor's suggestions that he emailed me. Just very infuriating having to wait months for something like this, putting projects on hold.
79
Code sharing / Re: Danfoss Plus+1 Structured Text Coding Engineer ChatGPT
« Last post by Lukey on April 01, 2026, 02:11:23 AM »
I use it heavily when dealing with math/equations and real numbers (two reasons because my math isn't great and guide doesn't handle real numbers)
I've also use it extensively for creating CAN message buffers/FIFOs.

Modify existing or optimizing code it is very useful.

It's also been able to convert existing guide screen shots or .scs files into ST code.

I update the LLM as I go when i find limitations of GUIDE.
For example, using words like DATA and OVERFLOW in ST will cause an error on compilation as those works clash with the C code complier.
80
Code sharing / Re: Danfoss Plus+1 Structured Text Coding Engineer ChatGPT
« Last post by Matt on March 31, 2026, 02:59:17 PM »
Thanks for sharing! I've been doing some similar LLM experimentation by writing some skills to read/write the PLUS+1 GUIDE PLCopenXML files directly in order to avoid having to copy/paste between the LLM. In the absence of official MCP support, this is the closest I've gotten to something that truly ends up saving time because it enables refactoring in a way that the PLUS+1 IDE does not. I don't have enough confidence in it yet to share it, but thought I'd mention that it's possible and am curious if you tried going this route.

One thing I found is that LLMs seem to have a rough time understanding the cyclical nature of PLC programming, especially related to timers.

There is a similar thread over on PLC Talk that I've been following. It is an interesting read related to this topic: https://www.plctalk.net/forums/threads/does-anyone-here-use-ai-to-help-write-structured-text-codesys-beckhoff.148970/
Pages: 1 ... 6 7 [8] 9 10