1771–db basic module simplex example, Valve number 1 open – Rockwell Automation 2706-F11J_F11JC_F21J_F21JC DL50 INSTALLATION MANUAL User Manual
Page 78

Chapter 6
Slave Mode Operation / Examples
6–14
1771–DB BASIC Module Simplex Example
The following is an example of print statement using a BASIC Module
(Catalog No. 1771-DB) as a host. The example assumes that the DL50 slave
has an address of 1.
100: PRINT #“VALVE NUMBER 1 OPEN”,CHR(1),CHR(2),CHR(13)
Where:
(1) specifies slave address 1
(2) specifies line 2 of the display
(13) is equivalent to a Carriage Return (CR
)
After receiving this message, the DL50 will display:
VALVE NUMBER 1 OPEN
on the second line of the display. When using the BASIC module, you must
use the print CHR (decimal equivalent character) function.
Note: The alarm program for BASIC on page 6-12 may also be used on the
BASIC modules (Catalog No. 1771-DB or 1746-BAS) with the following
changes and additions:
1 STRING 200,40
10 CALL 119 : REM SETS PERIPHERAL PORT TO DEFAULTS
99 REM N= 0 1 2 3 4 5 6 7 8
100 ON N GOSUB 2000, 1005, 1010, 1015, 1020, 1025, 1030, 1035, 2000
110 IF N=9 GOTO 35
120 PRINT # $(1), CHR(A), CHR (LN ), CHR (13)
4030 INPUT “Alarm No.” N: REM ###THIS IS FOR PROGRAM TEST ONLY###
4040 IF N=0 THEN END: REM ###THIS LINE IS FOR PROGRAM TEST ONLY###
On Lines 1005 t0 1035 change:
ADDRESS to A
M$ to $(1)
- 20P PowerFlex DC Drive - Frame D Bimetal Thermostat (10 pages)
- 1336S_F_T_E_R F Frame Snubber Resistor Repl. (6 pages)
- 22-COMM PowerFlex 4-Class DSI (Drive Serial Interface) Network Communication Adapter (4 pages)
- 8-545 Plug In Solid State Relay (2 pages)
- 20-HIM-B1 PowerFlex 7-Class HIM Bezel (DPI) (4 pages)
- 100 Contactors with DC Coil (1 page)
- 100 Contactors with DC Coil (2 pages)
- 20P PowerFlex DC Drive - Frame D Switching Power Supply Circuit Board (6 pages)
- 140G-MTFx_MTHx_MTIx_MTKx Trip Unit Installation-140G-M (6 pages)
- 45BRD Analog Laser Sensor (4 pages)
- 20D Multi-Device Interface Option Board for PowerFlex 700S Drives (20 pages)
- 56RF RFID 18 mm Cylindrical Transceiver (2 pages)
- 42KC Miniature Rectangular: 5V DC Version (2 pages)
- 20P PowerFlex DC Drive - Frame A Switching Power Supply Circuit Board (16 pages)
- 21P-MISC-A-TP-2 Transition Tube Kit #C19-6/7 For PowerFlex 755 w/OEM Liquid Cooling Fr 6/7 Drive (2 pages)
- 42BT Background Suppression Sensor (3 pages)
- 42CB High Speed 18mm Cylindrical (4 pages)
- 140EX-JE2_JE3 Molded Case Circuit Breaker (4 pages)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (1 page)
- 140G-K-EAM1A Early Make Aux Contact for Rotary Handle Oper Mech-140G-K (3 pages)
- 20-HIM-A6 PowerFlex (Human Interface Module) (74 pages)
- 42CF General Purpose 12mm Cylindrical (4 pages)
- 20D PowerFlex 700S Phase II Drive Frames 1...6 (80 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (6 pages)
- 140EX-HE1_HE2 Molded Case Circuit Breaker (4 pages)
- 20B PowerFlex 700 Custom Firmware - Pump Off (12 pages)
- 20-WIM-N4S DPI Wireless Interface Module (92 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (7 pages)
- 140U H-Frame Circuit Breaker Fixed and Adjustable Thermal Trip (2 pages)
- 60-2619, 42JS Swivel/Tilt Mounting Bracket (1 page)
- 22A PowerFlex 4/40/400 Flange Mount (4 pages)
- 45MLA Controller Installation Instructions (16 pages)
- 20P PowerFlex DC Drive - Cooling Fan for Frame A Drives Above 73A at 230V 460V AC (6 pages)
- 42JS Series 7000 to 42JS VisiSight Replacement Kit (2 pages)
- 22A PowerFlex 4-Class HIM Bezel (DSI) (4 pages)
- 42CS Stainless Steel Photoelectric Sensors (4 pages)
- 20L-LL PowerFlex 700L Liquid-to-Liquid Heat Exchanger (40 pages)
- 20P PowerFlex DC Drive - Frame B SCR Modules (20 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (161 pages)
- 22B PowerFlex 40 Quick Start FRN 5.xx - 6.xx (22 pages)
- 22F PowerFlex 4M Input RFI Filters (2 pages)
- 45LFM Capacitive Label Sensor (4 pages)
- 140G-Rx Installation Instruction-140G-R (2 pages)
- 140G-Rx Installation Instruction-140G-R (29 pages)
- 22C PowerFlex 400 AC Drive Quick Start - FRN 1-4.xx (28 pages)