System program 20 - monitor adc1, Program listing, System programs 21-24 – 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 365: Appendixes

Advertising
background image

System Programs • System Program 20 - Monitor ADC1

343

Publication 1398-PM601A-EN-P — October 2000

APPENDIXES

System Program 20 - Monitor ADC1

This program sets the system variable OTMON to the proper value which displays the system variable
ADC1 (analog input 1 voltage) on the top line of the Operator Terminal screen. This display is continu-
ously updated. If this program is run again, the display will be cleared. If other Fkey programs using
OTMON are run, the display will switch to monitor the proper variable.

Program Listing

;Source File Name: MONADC1.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 the

;analog input ADC1.

;This program is saved as System Program #20 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 the ADC1 voltage 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 the ADC1 voltage.

;

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

;none

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

;none

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

;none

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

;Operator Terminal - REQUIRED

;The ADC1 voltage will be displayed on the operator terminal screen.

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

TITLE "Mon ADC1"

PGMTYPE = FKEYPGM;Set compiler options

DEBUG = OFF

IF (OTMON = 17) ;If already on,

OTMON = 0 ; turn it off,

ELSE OTMON = 17 ; otherwise activate monitor.

END

System Programs 21-24

These program locations may be used for other Operator Terminal function key programs as needed.
Future standard Personality Modules may contain default programs in these locations.

Advertising