
User Manual
Chapter 10
GFK-1742F
Jan 2020
Introduction to Local Logic Programming
274
10.10
Executing Your Motion Program
Once the download operation is complete, the module is ready to execute the Motion and
Local Logic programs. To cause the DSM module to execute the local logic program, set the
Q bit offset to 1 from the host controller, while the host controller is in RUN mode. This
activates the Local Logic program within the DSM. The next thing you need to do is perform
a Set Position command. This references the module and allows it to execute the desired
motion program. To perform this function, open the RVT (RVTExample) created in the Local
Logic section and enter 0023 hex in AQ offset 1. This enters the Set Position command. Then
enter 0 in AQ offset 2. Refer to Chapter 5 for additional information concerning entering AQ
commands. The resulting display should be similar to the following figure.
Figure 138: RVTExample Screen
At this point, if there are no errors, you can execute the motion program. Enter a 1 (or
toggle) Q bit offset 2 (%Q00003). The motor should execute the motion program and
advance 1/60 of a revolution each second.
Additional details concerning the interface between the DSM and the host controller are
contained in Chapter 5.