Fnpgm – 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 231

Language Reference • Reference
209
Publication 1398-PM601A-EN-P — October 2000
WORDS
FNPGM
Function Program, Running
Program Structure
Purpose
Starts an Fkey program. Fkey programs are system programs 1 through 24.
Syntax
FNPGM = number
number
Number specifies which function key program will be run. num-
ber = 1, 2, 3, ..., 24.
No.
Name
Function
1
Jog Rev
;Simulates Jog Reverse input
2
Jog Fwd
;Simulates Jog Forward input
3
Start
;Simulates Start input
4
Stop
;Stops program execution and motion
5
Run
;Asks for program # to run
6
Home Command ;Starts Home program
7
Def Home;
;Defines present position as Home
8
Set FDR
;Set the Feedrate value
9
Blank
10
Blank
11
Blank
12
Blank
13
Mon VEL1;
;Display VEL1 on Operator Terminal
14
Mon POSN;
;Display POSN on Operator Terminal
15
Mon PCMD
;Display PCMD on Operator Terminal
16
Mon FE
;Display FE on Operator Terminal
17
Mon ICMD
;Display ICMD on Operator Terminal
18
Mon IAVE
;Display IAVE on Operator Terminal
19
Mon FDR
;Display FDR on Operator Terminal
20
Mon ADC1
;Display ADC1 on Operator Terminal
21
Blank
22
Blank
23
Blank
24
Blank
Remarks
A complete description of each system program is provided in Appendix A. Fkey pro-
grams, like other system programs may be changed by the user. The factory default
programs are shown above.
Only one Fkey program can be running at a time. If an Fkey program is running when
the FNPGM statement is executed, the current Fkey program ends and the new Fkey
program is started.
The program statements in an Fkey routine can be any legal program statement except
motion statements and subroutine calls. Motion statements include MOVD, MOVP,
DV, DIF, DELAY, and DWELL.
See Also
Operator Terminal; Appendix A, System Programs
Example
FNPGM = 1
FNPGM = 14