Using the dl50 alarm basic program – Rockwell Automation 2706-F11J_F11JC_F21J_F21JC DL50 INSTALLATION MANUAL User Manual

Page 77

Advertising
background image

Chapter 6

Slave Mode Operation / Examples

6–13

1025 LN=48: ADDRESS = 1: M$ = ’’ ’’: REM THIS TURNS ON THE DL50‘s RELAY

1026 RETURN

1030 LN=49: ADDRESS = 127: M$ = ’’ ’’: REM THIS TURNS OFF THE DL50‘s RELAY

1031 RETURN

1035 LN=50: ADDRESS = 127: M$ = ’’ ’’: REM THIS CLEARS THe DL50 DISPLAY

1036 RETURN

2000 RETURN

4000 REM

LINE 4000-6000 DETERMINE IF ANY ALARMS ARE CURRENT AND WHICH

4001 REM

ONE HAS PRIORITY

4002 REM

4030 INPUT “Alarm No.”; ALARM: REM ###THIS IS FOR PROGRAM TEST ONLY###

4040 IF ALARM=0 THEN END: REM ###THIS LINE IS FOR PROGRAM TEST ONLY###

4050 REM

THE USER PLACES LINES OF CODE FOR ALARM HANDLING HERE

6000 RETURN

9000 REM

DISPLAY THE MENU OF TEST MESSAGES

9001 REM

###THESE LINES FOR PROGRAM TEST ONLY###

9005 PRINT “ALARM # Sent to Line # Result at Dl50 (in Auto-Select Mode)

9006 PRINT “_______ ___________ ____________________________”

9110 PRINT “ 1 1 ’ TEST ALARM # 1 ’ ”

9115 PRINT “ 2 2 ’ TEST ALARM #2 ’ ”

9120 PRINT “ 3 3 ’ ALARM #3 ’ (Large Characters) ”

9125 PRINT “ 4 30 ’ THIS IS A TWO-LINE ’ (Lines 1 & 2) ”

9130 PRINT “ TEST ALARM #4 ’ ”

9135 PRINT “ 5 48 * THIS TURNS ON THE DL50) RELAY * ”

9140 PRINT “ 6 49 * THIS TURNS OFF THE DL50) RELAY * ”

9145 PRINT “ 7 30 * THIS CLEARS THE DL50) DISPLAY * ”

9150 PRINT “ 8 ** UNUSED ** ’ ”

9155 PRINT “ 9 ** REPEATS THIS MENU AGAIN ** ”

9160 PRINT “ 0 ** QUITS THE PROGRAM ** ”

9165 PRINT “

9200 RETURN

Using the DL50 ALARM BASIC Program

After entering the program, the program will prompt to enter an alarm
number. Press any key 0 through 7 and then the Return key. Refer to program
lines 9000 through 9160 for a description of each alarm function. Press 0 and
Return to exit the program.

Note: You can also use this program in a PLC/SLC BASIC Module with the
changes described on the following page.

Advertising