System program 1 - jog forward, Program listing, Appendixes – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 350

Advertising
background image

328

System Programs • System Program 1 - Jog Forward

Publication 1398-PM601A-EN-P — October 2000

APPENDIXES

Operator Terminal function key programs (System Programs 1-24) are run using a Function Key (F1-
F4) on the Operator Terminal. Functions are assigned to the Fkeys in the IQ Master Parameter menu.
See Part 2 • IQ Master Environment, for a complete description.

These programs may also be run from within a program using the FNPGM command. See Part 5 • Lan-
guage Reference, for a complete description.

They may also be run using the SRUN and FNPGM host commands. See Part 6 • IQ Host Command
Language, for a complete description.

Function key programs are unique because they run in parallel with a motion program. Flags and vari-
ables may be shared with the motion program to affect the flow of the motion program.

Motion statements (MOVD, MOVP, MOVV, D V, DIF, and DWL) and DELAY statements are NOT
allowed in function key programs.

When a program is compiled to save to the ULTRA Plus or IQ as a function key program, the Compiler
Options must be set for Program type - “Fkey Routine” and the Add Debug Information check box
cleared (off). See Part 2 • IQ Master Environment, for a complete description of compiler options.

Standard Personality Modules contain default function key programs which are described below. These
programs may be modified or replaced. System programs 9-12 and 21-24 are intentionally left blank
and are available for any additional functions required by an application.

System Program 1 - Jog Forward

This program activates jog motion in the forward direction. Motion will continue as long as the Fkey is
pressed. When the Fkey is released, motion will stop. The Jog Velocity, Jog Acceleration, and Jog
Deceleration parameters are used for jog motion. NOTE: Run this program only by pressing an Fkey.
This program will not cause any motion if run using the FNPGM or SRUN commands.

Program Listing

;Source File Name: JOGFWD.QPS

;Version: 3.00

;Tested with IQMaster Version: 3.00

;Tested with IQ firmware Version: 3.00

;------------------------------ Description ------------------------------

;This is the default operator terminal function key program to

;jog in the forward direction.

;This program is saved as System Program #1 in standard personality modules.

;It may also be saved as any Function Key System Program (range is 1-24).

;The source is NOT saved in standard personality modules.

;

;This program will initiate jog motion in the forward direction using the

;Jog Velocity, Jog Accel,and Jog Decel parameters.

;This program simulates activating the Jog Forward input.

;

;---------------------------- Variables used -----------------------------

;none

;-------------------------------- Inputs ---------------------------------

;none

;-------------------------------- Outputs --------------------------------

;none

;---------------- Optional Accessories Required/Supported ----------------

;Operator Terminal - REQUIRED

;An operator terminal function key is used to run this program and initiate

;jog motion. Motion will stop when the key is released.

;----------------------------- Begin Program -----------------------------

Advertising