B&B Electronics 485SDD16 manual Running Demonstration Program

Page 17

Demonstration Program

The 485SDD16 Demonstration (SDD16) Program (IBM PC or Compatible) provides the user with examples of how to receive and transmit commands to the 485SDD16. The SDD16.EXE is the executable program, the SDD16.BAS file is the source code in QuickBASIC. The source code provides an illustration of how to send and receive commands from the 485SDD16.

NOTE: This is a demonstration program only and not intended for system applications.

Running Demonstration Program

Before you can run the demonstration program you must run the install program in the Hard Drive Installation section. If you are running Windows, exit Windows to DOS.

To run the program follow these steps from the DOS prompt:

1.Type CD \485SDD16 and press the <Enter> key.

2.Type SDD16 and press the <Enter> key.

485SDD16-1005 Manual

29

30

485SDD16-1005 Manual

B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350

 

B&B Electronics -- 707 Dayton Road

-- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5104

 

PH (815) 433-5100 -- FAX (815) 433-5104

Image 17
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Sales@bb-elec.com Support@bb-elec.comTable of Contents Introduction 485SDD16 Features485SDD16 Specifications Size Power SupplyCommunications Digital I/O Connections Connections485SDD16 I/O Port Pinout Serial Port ConnectionsExample of Multi-Node Network 485SDD16 Commands CommandsEquivalent Values SyntaxBit Assignments for I/O Lines Read I/O Lines CommandSet Output Lines Command Set Turn-around Delay Command Set Module Address CommandDefine I/O Lines Command Command AddrSC ArgumentRead Configuration Command Set Power-up States CommandRead Configuration command returns the modules I/O Command AddrRC Argument None ResponseDigital Inputs InterfacingDigital Outputs Isolated Solid State InputDigital I/O Mask Values SoftwareProgramming Techniques MSdefs = MSdefs and mask LSdefs = LSdefs and mask Set Output States CommandMSpups = MSpups and mask LSpups = LSpups and mask MSstates = MSstates or mask LSstates = LSstates or maskSet Power-up States Command Define I/O Lines CommandCmnd$ = ! + CHR$Maddr + SO + CHR$MSstates + CHR$LSstates Maddr =MSpups = MSpups and NOTmask LSpups = LSpups and NOTmask Set Module Address CommandCmnd$ = ! + CHR$Maddr + SS + CHR$MSpups + CHR$LSpups LSpups = LSpups or &H20Running Demonstration Program Demonstration Program485SDD16-1005 Manual Appendix a Decimal485SDD16-1005 Manual Appendix a 119 120 121 122 123 124 125 126 127485SDD16-1005 Manual Appendix B Appendix B252 Decimal to Hexadecimal Conversion3rd Hex digit 240 4th Hex digit Decimal equals 10FC hexadecimalAppendix C DBM16 Interfacing Table C.1 DTB25 ConnectionsTable C.2 DBM16 I/O Connections 485SDD16-1005 Manual Appendix C Figure C.4 Solid State InputPower Supply Input Voltage DBM16 Specifications LinesTotal Connections SizeFigure C.10 DBM16 Schematic Msb~ I/O msbI/O lsb ~ I/O lsb #addrRD00FF01FE Comp = not x and &HFF485SDD16-1005 Manual Appendix D Table D-1 Extended Commands