System program 8 - set feedrate, 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 357
System Programs • System Program 8 - Set Feedrate
335
Publication 1398-PM601A-EN-P — October 2000
APPENDIXES
System Program 8 - Set Feedrate
This prompts an operator to enter a new Feedrate percentage. The Operator Terminal screen and keypad
is used to READ the new value. The present value of Feedrate is displayed.
Program Listing
;Source File Name: SETFDR.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
;set feedrate FDR.
;This program is saved as System Program #8 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 prompts an operator to enter feedrate with the operator
;terminal keypad. The present value is displayed to allow pressing
;Enter to keep the present value.
;
;---------------------------- Variables used -----------------------------
;FNVAR1 special variable reserved for Function Key programs
;-------------------------------- Inputs ---------------------------------
;none
;-------------------------------- Outputs --------------------------------
;none
;---------------- Optional Accessories Required/Supported ----------------
;Operator Terminal - REQUIRED
;An operator enters the feedrate using the operator terminal keypad.
;----------------------------- Begin Program -----------------------------
TITLE "Set FDR"
PGMTYPE = FKEYPGM ;Set compiler options
DEBUG = OFF
CLR ;Clear screen
PRINT "Feedrate: %" ;Print header
FNVAR1 = FDR ;Get present value
READ 1,10 ,SHOW FNVAR1 ,6,2 (0,200) ;Read in new value. Note that the
; present value is displayed. Values
; from 0 to 200 with 2 decimal places
; of accuracy are allowed.
CLR ;Clear screen
FDR = FNVAR1 ;Set new feedrate
END