System program 7 - define home, 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 356

334
System Programs • System Program 7 - Define Home
Publication 1398-PM601A-EN-P — October 2000
APPENDIXES
System Program 7 - Define Home
This program defines the present position as home (position zero). No motion programs may be running
in order to define home.
Program Listing
;Source File Name: DEFHOME.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
;define home position (position zero).
;This program is saved as System Program #7 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 define the present motor position as home position
;(position zero). This program simulates activating the Define Home input,
;using the DH statement within a main program, or using the DH host command.
;
;---------------------------- Variables used -----------------------------
;none
;-------------------------------- Inputs ---------------------------------
;none
;-------------------------------- Outputs --------------------------------
;none
;---------------- Optional Accessories Required/Supported ----------------
;Operator Terminal - SUPPORTED
;An operator terminal function key may be used to run this program.
;----------------------------- Begin Program -----------------------------
TITLE "Def Home"
PGMTYPE = FKEYPGM;Set compiler options
DEBUG = OFF
DHCMD = ON ;Set system flag DHCMD to define home position.
END