Example: using arrays, Ee example: using arrays, Arrays – Delta RMC151 User Manual
Page 407
5 Programming
This example makes use of the _SysMS tag. The _SysMS tag holds the number of milliseconds
since the RMC powered up. It is a 32-bit DINT, and will wrap around to -2147483648 after it
reaches its maximum value of 2147483647.
Example
1. Define a Variable
Define a variable, called StartTime. Define it as a DINT:
2. Write a User Program
The User Program will consist of the following:
•
Turn off the discrete outputs.
•
Set the StartTime variable to the current value of the _SysMS.
•
Issue the move.
•
Wait until either the axis gets into position, or 5000 milliseconds have passed
since the move was issued. Jump to the correct step based on which of these
events occurs first. The step that is jumped to will set one of the discrete
outputs to indicate whether a time-out occurred or the axis reached position
successfully.
5.16.8. Example: Using Arrays
deltamotion.com
387