LOG IN
Help
Search
Browse
Talk

gised-link

no license defined!!!

Personal Data

Username:
gised-link
Joined:
2021-09-08 10:27:21

Projects

  • No projects to display.

Personal Tools

  • Profile
  • Statistics
  • Activity
  • Blog
  • Home

User Activity

  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    (for the future me: DO NOT SPAM THE POST BUTTON)

    3 years ago
  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    About the MEMCMP/cast in the Compare function: Yes of course a byte per byte comparison is stupid for REAL and also on other types. I was so excited that I forget to remove this commented line of code of my example... shame on me. We aren't far enough πŸ˜…... insertion sort is not that bad but merge sort or quick sort will be really more effective. I am looking to adapt the sort provided in the OSCAT lib to run using a pointer (PVOID) instead of a POINTER TO ARRAY[1..32000] OF REAL. I have some issue...

    3 years ago
  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    (for the next me: DO NOT SPAM THE POST BUTTON)

    3 years ago
  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    About the MEMCPY/cast in the Compare function: Yes of course a byte per byte comparison is stupid for REAL and also on other types. I was so excited that I forget to remove this commented line of code of my example... shame on me. We aren't far enough πŸ˜…... insertion sort is not that bad but merge sort or quick sort will be really more effective. I am looking to adapt the sort provided in the OSCAT lib to run using a pointer (PVOID) instead of a POINTER TO ARRAY[1..32000] OF REAL. I have some issue...

    3 years ago
  • Posted a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    About the MEMCPY/cast in the Compare function: Yes of course a byte per byte comparison is stupid for REAL and also on other types. I was so excited that I forget to remove this commented line of code of my example... shame on me. We aren't far enough πŸ˜…... insertion sort is not that bad but merge sort or quick sort will be really more effective. I am looking to adapt the sort provided in the OSCAT lib to run using a pointer (PVOID) instead of a POINTER TO ARRAY[1..32000] OF REAL. I have some issue...

    3 years ago
  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi everyone, I have taken a look of your examples. In other languages we pass a comparison function as a parameter of the sorting function. This is not (or it is?) possible using ST language. A way to do it may be to create an ABSTRACT FUNCTION_BLOCK FB_Sort with a private Compare and final Sort method. Then in your code you have to create your own FB_Sort_blablabla (example: FB_Sort_REAL) which derivate (EXTENDS) from the abstract FB_Sort. Then you override the Compare method to fit your needs (like...

    3 years ago
  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi everyone, I have taken a look of your examples. In other languages we pass a comparison function as a parameter of the sorting function. This is not (or it is?) possible using ST language. A way to do it may be to create an ABSTRACT FUNCTION_BLOCK FB_Sort with a private Compare and final Sort method. Then in your code you have to create your own FB_Sort_blablabla (example: FB_Sort_REAL) which derivate (EXTENDS) from the abstract FB_Sort. Then you override the Compare method to fit your needs (like...

    3 years ago
  • Modified a comment on discussion Runtime πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi everyone, I have taken a look of your examples. In other languages we pass a comparison function as a parameter of the sorting function. This is not (or it is?) possible using ST language. A way to do it may be to create an ABSTRACT FUNCTION_BLOCK FB_Sort with a private Compare and final Sort method. Then in your code you have to create your own FB_Sort_blablabla (example: FB_Sort_REAL) which derivate (EXTENDS) from the abstract FB_Sort. Then you override the Compare method to fit your needs (like...

    3 years ago
View All
CODESYS Group | We software Automation.
The CODESYS Group is the manufacturer of CODESYS, the leading hardware-independent IEC 61131-3 automation software for developing and engineering controller applications. CODESYS GmbH
A member of the CODESYS Group
Memminger Straße 151, 87439 Kempten
Germany
Tel.: +49-831-54031-0
info@codesys.com
  • Imprint
  • Terms of Service
  • Privacy Policy
© 2025 CODESYS GmbH | A member of the CODESYS Group