That is how you doing it, just copy the code to the sections for your motion controller using a text editor like notepad.exe. However some LEDs will be likely not right then especially on the diagnostics screen, because for the example the UC100 has different I/Os then that UC300ETH with the UB1.
Thank you, Unfortunately, no time for further developing. CNC activity is very reduced now, so other projects came first. If someone is interested to continue this work, contributors are welcome!