what is the difference if I will write the default routine in the process_Data_From_Local_IO() fuction .
Is there an advantage in using this function and how can I use it?
do I have to delete the default routine in user routines .c. ?
OH GOD NO!
Actually, now that i think about it, i don’t really know why this is bad, but i have a few guesses.
One: your robot’s motors are designed to get updated at the rate they’re at.
Two: If you run Default_Routine every time, you may slow down your code enough that a code error gets activated
Three: there’s no great gain to this. 27.2 milliseconds is plenty fast, and likely you won’t notice much of a difference (if it works at all)
Frankly, i don’t know that this will hurt you. But i don’t think the risks outwheigh the benefit. If you try, don’t be surprised if something explodes (figuratively).
Leave almost all code in Process_Data_from_Master_uP() (or Default_Routine()).
** Process_Data_From_Local_IO()** doesn’t have updated values from the operator interface, so there is not much that can be done in it unless you know what you are doing.