System program 15 - monitor pcmd, 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 360

Advertising
background image

338

System Programs • System Program 15 - Monitor PCMD

Publication 1398-PM601A-EN-P — October 2000

APPENDIXES

System Program 15 - Monitor PCMD

This program sets the system variable OTMON to the proper value which displays the system variable
PCMD on the top line of the Operator Terminal screen. This display is continuously updated. If this pro-
gram is run again, the display will be cleared. If other Fkey programs using OTMON are run, the dis-
play will switch to monitor the proper variable.

Program Listing

;Source File Name: MONPCMD.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 monitor

;position command PCMD.

;This program is saved as System Program #15 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 cause PCMD to be displayed on the top line of the

;operator terminal screen. This monitor display is continuously updated.

;Running this program will act as a toggle. If the monitor display is on,

;it will be turned off. If it is off or monitoring another variable, it

;will turn on and display PCMD.

;

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

;none

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

;none

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

;none

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

;Operator Terminal - REQUIRED

;PCMD will be displayed on the operator terminal screen.

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

TITLE "Mon PCMD"

PGMTYPE = FKEYPGM;Set compiler options

DEBUG = OFF

IF (OTMON = 1) ;If already on,

OTMON = 0 ; turn it off,

ELSE OTMON = 1 ; otherwise activate monitor.

END

Advertising