Can you show the definitions of the various arrays in your code (MoveLinearAbsolute, MoveDirectAbsolute, point, point1, Run_sequence, etc.)? In particular, what are the upper bounds?
Also, the FOR loop is running 1 through 27 each scan of the PLC, meaning that you are issuing (potentially) 27 move commands per scan. Is this really what you are trying to do?
... View more