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.