User`s manual
Introduction to Local Logic Programming
GFK-1742A Chapter 10 Introduction to Local Logic Programming 10-53
10
Figure 10-54. Hardware Configuration Tuning#1 Tab
At this point, we can close the module configuration dialog box. This is a good point to save our
work. To save your work, select the File from the main menu and then select Save Al
l from the file
menu.
The link between our example Motion program, Local Logic program, and the DSM314 module is
now complete. Create any required PLC rung ladder logic and then perform a Check All on the
programs and download them to the PLC. Additional information concerning the download
operation is shown in VersaPro documentation GFK-1670 or the VersaPro 1.1 on-line help.
Executing Your First 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 the user must set
the Q bit offset 1 from the PLC, while the PLC is in RUN mode. This activates the Local Logic
program within the DSM.
The next thing we need to do is perform a set position command. This
references the module and will allow 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. Reference
Chapter 5 for additional information concerning entering AQ commands. The resulting display
should be similar to Figure 10-55.