B&B Electronics 232SDD16 manual Running Demonstration Program

Page 16

Demonstration Program

The 232SDD16 Demonstration (SDD16) Program (IBM PC or Compatible) provides the user with examples of how to receive and transmit commands to the 232SDD16. 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 232SDD16.

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 \232SDD16 and press the <Enter> key.

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

232SDD16-1005 Manual

27

28

232SDD16-1005 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

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

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

Image 16
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Introduction 232SDD16 Features232SDD16-1005 Manual Communications 232SDD16 SpecificationsSize Connections Digital I/O Connections232SDD16 I/O Port Pinout Serial Port ConnectionsRS-232 Connector Pinout Power Supply Connections232SDD16 To DTE Connections 232SDD16 To DCE ConnectionsCommands 232SDD16 CommandsEquivalent Values SyntaxSet Output Lines Command Read I/O Lines CommandBit Assignments for I/O Lines Set Power-up States Command Define I/O Lines CommandRead Configuration Command Bin. Example !0RC01010101010000010101000001000000 Interfacing Digital InputsIsolated Solid State Input Programming Techniques SoftwareDigital I/O Mask Values Set Output States Command MSdefs = MSdefs and mask LSdefs = LSdefs and maskMSpups = MSpups and mask LSpups = LSpups and mask MSstates = MSstates or mask LSstates = LSstates or maskDefine I/O Lines Command Set Power-up States CommandMSdefs = MSdefs or mask LSdefs = LSdefs or mask MSdefs = MSdefs and NOTmask LSdefs = LSdefs and NOTmaskDemonstration Program Running Demonstration ProgramAppendix a Appendix B Decimal to Hexadecimal Conversion Figure C.1 DTB25 Outline Drawing 232SDD16-1005 Manual Appendix CTable C.1 DTB25 Connections Table C.2 DBM16 I/O ConnectionsFigure C.2 DBM16 Outline Drawing DBM16 InterfacingFigure C.6 Isolated Solid State Input Inputs DBM16 Specifications LinesOutputs 232SDD16-1005 Manual Appendix C #0RD Msb~ I/O msbI/O lsb ~ I/O lsb00FF01FE Comp = not x and &HFFTable D-1 Extended Commands 232SDD16-1005 Manual Appendix D