How to use codesys standard functions in PLC coder (e.g. TON/TOF/SR)
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Is it possible to generate structured text in Simulink PLC coder using the native codesys standard functions?
We have implemented some of the standard functions in the library, for example TON/TOF/SR, and would like to use the native functions when the PLC code is generated. Is this possible, or do we have to "make do" with our own implementations of these functions in Simulink.
CODESYS Online Help - link to example timer functions in Codesys.
0 Kommentare
Antworten (1)
SANKALP DEV
am 17 Nov. 2023
Dear David,
I understand that you are seeking information on the feasibility of generating structured text within Simulink PLC Coder while utilizing the native CODESYS standard functions.
Certainly, it is indeed possible to generate structured text code in Simulink PLC Coder while harnessing the native CODESYS standard functions. Simulink PLC Coder provides support for generating structured text code that adheres to the IEC 61131-3 standard, which includes the programming environment of CODESYS.
With the right configuration in Simulink PLC Coder, you can seamlessly incorporate native CODESYS standard functions like ‘TON’, ‘TOF’, and ‘SR’ directly into your Simulink models. This negates the need to develop your custom implementations of these functions and empowers you to leverage the established and widely used CODESYS versions.
For further insights on designing and testing control systems using CODESYS and Simulink, please refer to this resource:
Additionally, to get started with Simulink PLC Coder in MATLAB, you can consult this link:
I hope that this information will be beneficial for you.
Regards,
Sankalp
Siehe auch
Kategorien
Mehr zu Simulink PLC Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!