Personal Data

Username:
zer0g
Joined:
2018-09-24 20:14:24+00:00

Skills

  • No skills entered.

User Activity

  • Posted a comment on ticket #1 on CfUnit

    Why not use a list to save all the Task_Info. https://help.codesys.com/webapp/PLNKp05jt2j8jYyFvPtWuGse7Qc%2FList;product=ElementCollections;version=3.5.14.0

  • Posted a comment on ticket #5 on CfUnit

    It works okay.

  • Posted a comment on ticket #5 on CfUnit

    I tested another functionality from CAA Memory library, it has a function which returns if the systems is small, medium or large (16 bit, 32 bit, 64 bit) but at this moment my RPi3B+ returned medium size (32 bits). Maybe this has got something to do with the Codesys IDE itself as I installed 3.5.14.20 x86 (32bit) IDE version because RPi3B/3B+ is a 64 bits architecture. Maybe I did something wrong? I don't think so. As for the runtime version I found out that __SYSTEM.Constants.nRegisterSize can be...

  • Posted a comment on ticket #1 on CfUnit

    You can use than IecTaskGetDesc() to get information about the task and to get the pointer to application where the task is running.

  • Posted a comment on ticket #5 on CfUnit

    I tested your function with the following example but it didn't work: PROGRAM PRG2 VAR arr1: ARRAY [0..23] OF REAL := [12.0, 25.0, 2.325, 87.0, 7.456, 128.0, 18(0.0)]; arr2 : ARRAY [0..23] OF REAL; n : UDINT; END_VAR n := MEMCPY(srcAddr := ADR(arr1),destAddr := ADR(arr2),n := SIZEOF(arr2)); The runtime crashed a couple of times. After some thinking I realized that we dont need the PVOID_TO_LWORD() conversion. The compiler will convert automatically to DWORD or LWORD depending on the runtime. I hope...

  • Posted a comment on ticket #4 on CfUnit

    I don't have an RPi on my hands and all my tests were made on a Control Win V3. But I'm glad you made it run. Plus, I don't know why you have declared a function block into a struct. That is a programming technique which unknown to me. To be honest, I just wanted to keep things toghether knowing that this structure will not be seen by the users.

  • Posted a comment on ticket #4 on CfUnit

    Actually for this I think I may found a solution. I'm creating a new logger in Codesys Log and save all the messages there. You just have to use the function LOGSTR. The rest of the objects will be hidden for the users when they will be saved in a library. Have a look and test it and if you have any issues or questions tell me.

  • Modified a comment on ticket #7 on CfUnit

    See comment from BYTE_TO_HEXSTR.

View All

Personal Tools

Projects

  • Project Logo CfUnit An open source unit testing framework for CODESYS Last Updated: