text: <s>[INST] Ultra 5000 Drive C Programs Failing? We had an issue last night with the Ultra5000 drive failing on one of our Hem presses. The hempress was stuck in the lower position (Manual and Auto). Cycled power to the drive several times but couldn't get devicenet communication. So we eventually swapped the drive. As part of the swapping procedure we reloaded the C program for the Ultra 5000. After swapping the drive, the press was raising extremely slow and stalling after hem. We had to reload the C program a second time in order to get it working properly. This is the second time we have had issues with the Ultra 5000 C program. We think it might be getting stuck in a subroutine. My question is, does anyone else have issues with the C program, and are there any patches available to address this? Thanks Eric [/INST] If you have experience programming in C, you should check to see if the program has appropriate check statements. Typically people will use a while loop to perform some of their code. Like this: while (!StopRequested()) This type of statement can help break out of a routine that is stuck. You can also use some of the available variable tables to write diagnostic info. For example, when the program tries to run a certain piece of code, write a number to the variable table that will indicate it is running that code. This might help you troubleshoot the code. I've written many programs for the 5k and it's a really good drive, but it can be difficult to troubleshoot. \\n </s>