4-3
168542-1CD
168542-1CD
MLX200 Software and
Operations
4 MLX200 Programming Guide
4.1 Developing a Simple Application
A recommended method of structuring a program is shown in Fig.4-3
"Example Program Structure". In this structure, each rung of the program
is given a step number. When this step is active, the motion instruction will
be sent. Then, the step value is incremented when the instruction has
completed (done by checking the Sts_PC bit). In the example shown, the
program will loop between steps 10 and 20. The step numbers are defined
to increment in 10s to allow for the insertion of additional rungs/points if
the program is expanded.
Fig. 4-3: Example Program Structure