Page 1 of 1

Alternating Data Byte Automatically

Posted: Thu 25. Apr 2024, 07:13
by strykdlitning
My OnAfterPublish contains:

Code: Select all

if (data[7] == 0xBC)
    {
        data[7] = 0xBD;
    }
    else {
        data[7] = 0xBC;
    }
    return true;
However, I don't want to push the Space Bar to send the data to the hardware. Is there a function call the script can make to automatically send the new data to the hardware?

End result is that data[7] alternates between 0xBD and 0xBC automatically.

Re: Alternating Data Byte Automatically

Posted: Thu 25. Apr 2024, 10:44
by M.Heidemann
Hello,

No, this is not implemented in the C# interface as
this is usally handled by the scheduler.

Maybe using a schedule-table would be the better approach in this case.

Best Regards

Marvin