Yes, I am using code that stared with the PMC. This is a function in the code that I assume is related, but not named PlcCyle.
function VFD_Spindle_Controller.GetCycleInterval()
return 10
end
Not sure what that function does. I don't see it called anywhere in the code.
When I enable this code as a PMC object for the screen, there is a refresh interval that can be specified. So I ma trying to figure out what controls the PLC cycle. The field in the PMC object screen, the .GetCycleInterval appended to the function above or the .PlcCycle() at the end of the main function I wrote/modified.
The good news is that I have been successful with controlling my spindle via ModBus. However, I want to fully understand what the code does.