barcode generator vb.net code PROGRAMMING THE PAGE-ALERT 269 in Software

Create Code 128 Code Set A in Software PROGRAMMING THE PAGE-ALERT 269

PROGRAMMING THE PAGE-ALERT 269
Scanning USS Code 128 In None
Using Barcode Control SDK for Software Control to generate, create, read, scan barcode image in Software applications.
Code128 Encoder In None
Using Barcode creation for Software Control to generate, create Code 128C image in Software applications.
CH1817 VCC GND Tip Ring
Decoding Code 128 Code Set B In None
Using Barcode scanner for Software Control to read, scan read, scan image in Software applications.
Print Code 128A In C#
Using Barcode generator for VS .NET Control to generate, create Code 128 Code Set C image in VS .NET applications.
Isolation
Code 128C Generator In VS .NET
Using Barcode printer for ASP.NET Control to generate, create Code128 image in ASP.NET applications.
Code 128 Creation In .NET Framework
Using Barcode generation for .NET Control to generate, create Code128 image in VS .NET applications.
Surge and protection circuit
Make Code 128 Code Set C In VB.NET
Using Barcode creator for Visual Studio .NET Control to generate, create Code-128 image in VS .NET applications.
Barcode Creator In None
Using Barcode generation for Software Control to generate, create bar code image in Software applications.
Xmit RCV R1 OH Hybrid 2W/4W converter
Draw Code-39 In None
Using Barcode generation for Software Control to generate, create Code 39 Extended image in Software applications.
GTIN - 12 Drawer In None
Using Barcode printer for Software Control to generate, create UPC Symbol image in Software applications.
Off-hook switch Ring det. Figure 20-4 Page-Alert circuit diagram.
Code 128 Printer In None
Using Barcode generation for Software Control to generate, create Code 128 Code Set B image in Software applications.
Drawing European Article Number 13 In None
Using Barcode generation for Software Control to generate, create EAN-13 Supplement 5 image in Software applications.
TABLE 20-3
MSI Plessey Maker In None
Using Barcode drawer for Software Control to generate, create MSI Plessey image in Software applications.
EAN128 Generator In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create EAN 128 image in ASP.NET applications.
ACCESSORY DAUGHTER BOARD I/O CONNECTIONS J3 10-PIN HEADER POWER AND I/O J4 10-PIN HEADER SENSOR DAUGHTER BOARDS
DataMatrix Decoder In .NET
Using Barcode scanner for .NET Control to read, scan read, scan image in .NET framework applications.
Data Matrix Encoder In None
Using Barcode encoder for Online Control to generate, create Data Matrix image in Online applications.
PINOUT DESCRIPTION
Create UPC-A In None
Using Barcode maker for Online Control to generate, create UPC-A Supplement 5 image in Online applications.
Barcode Encoder In Java
Using Barcode generation for Java Control to generate, create barcode image in Java applications.
1 2 3 4 5 6 7 8 9 10
2D Barcode Generator In Java
Using Barcode maker for Java Control to generate, create 2D Barcode image in Java applications.
Print GTIN - 13 In Java
Using Barcode generator for BIRT Control to generate, create UPC - 13 image in Eclipse BIRT applications.
5-V power pin System ground IN1 input pin IN2 input pin IN3 input pin IN4 input pin No connection No connection 5-V power No connection
To program your Page-Alert, you simply apply power to the screw terminals and connect the Page-Alert via the serial cable to your personal computer and run the STAMP 2 editor program called STAMPW.EXE, provided on the CD-ROM supplied. The CD-ROM contains the editor program and the Page-Alert program. Once the STAMPW.EXE program is running, you simply load the PALERT.BS2 program (Listing 20-1) by pressing Alt-L. Once the PALERT.BS2 program appears on your computer screen, you will have to
270 PAGE-ALERT
'PALERT.BS2 ' PAGE-ALERT 'identify variables flash VAR new_io_state VAR old_io_state VAR call_state VAR io VAR timer VAR 'identify constants OHPin CON TxPin CON Siren CON Lamp CON LEDPin CON recall_delay CON
byte byte byte byte byte byte
9 10 12 13 15 120
'initialize variables and program init: DIRL = %00000000 DIRH = %11111111 new_io_state = %00000000 old_io_state = %00000000 for flash = 1 to 3 high LEDPin pause 1500 low LEDpin pause 1500 next 'status indicator
main: 'main Page-alert routine high LEDPin new_io_state = INL pause 100 low LEDPin pause 100 if new_io_state <> %00000000 then dial_pager after_io1: old_io_state = new_io_state goto main delay_and_scan: 'check old/new input status -compare old_io_state = new_io_state for timer = 1 to recall_delay high LEDPin new_io_state = INL pause 500 low LEDPin pause 500 if new_io_state <> old_io_state then dial_pager old_io_state = new_io_state next goto after_io1
Listing 20-1 Page-Alert program.
USING THE PAGE-ALERT 271
dial_pager: if new_io_state = %00000000 then main high LEDPin high OHPin high Siren high Lamp pause 500 dtmfout TxPin,500, 500, [8] pause 200 dtmfout TxPin,400, 200, [7,9,9,6,6,5,8] sleep 6 gosub send_msg
'dial pager routine
goto delay_and_scan 'turn alarm off and recycle send_msg: io = new_io_state 'debug ibin8 io, cr dtmfout TxPin, 300, 200, [5,5,io.bit0,io.bit1,io.bit2,io.bit3,11] pause 1000 low OHPin low LEDPin pause 30000 low Siren low Lamp pause 100 return end
Listing 20-1 Page-Alert program (Continued ).
enter your pager s number in the first phone number position and then you must enter the second number, or identifier, into the program. Next, press Alt-R to load/run the program in the BS2 microcomputer, and the Page-Alert is now ready to serve you. Once the program is loaded into the BS2 it remains there even if power is removed.
Using the Page-Alert
Now you are ready to utilize the Page-Alert. Connect a normally open alarm sensor to any one of the four input terminals and the 5-V terminal on the screw terminal. You can use any type of normally open type of alarm switch or sensor. Door or window switches could be used as well as any other sensor with a normally open set of contacts. Photoelectric, pyroelectric, or pressure sensors could also be utilized to trigger the Page-Alert, as well as the optional TVL and motion module daughter boards; see Chap. 22, Input Sensor Modules. In order to test-activate the Page-Alert, you could substitute a normally open pushbutton to start the Page-Alert unit. Once activated, the Page-Alert should come to life! First the status lamp will begin to flicker to indicate the program has started. Next, the OH line on the DAA is activated and the phone line goes off hook. Next the microprocessor begins touch-tone dialing your pager s phone number. The microprocessor
272 PAGE-ALERT
then waits for a short interval, and the triggered alarm channel s ID, or identifier, is sent to your numerical pager. Once alerted via your pager, you can respond yourself or you can elect to call a friend, neighbor, coworker, or even the police, depending on the severity of the problem. The Page-Alert uses your existing phone line, so there are no additional phone cost to use it. The Page-Alert can be used as a self-contained silent alarm using the motion module or TVL board or up to four alarm loops, consisting of normally open switch sensors. The Page-Alert also be used with an alarm controller box; in this way the Page-Alert becomes the phone dialer for up to four channels. A multizoned alarm system can be used to identify a particular channel or you can use the Page-Alert for both fire and burglar alarm applications at once. The Page-Alert is a low-cost means to free you and alert you to intruders, equipment failures, or impending doom. Build one and have some fun!
Copyright © OnBarcode.com . All rights reserved.