B&B Electronics 232DRIO manual Appendix a

Page 25

APPENDIX A

ASCII Character Codes

232DRIO-0308 Manual

Appendix A

A-1

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

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

Image 25
Contents Electronics Mfg. Co. Inc Model 232DRIODesigned and Manufactured Ottawa, Illinois InternetPage Table of Contents Appendix B Table of Contents 232DRIO-0308 ManualIntroduction 232DRIO FeaturesNon-polarized, Optically Isolated Input 232DRIO-0308 Manual 232DRIO SpecificationsRelay Outputs Power SupplyCommunications EnvironmentOpto-isolated Input black terminal blocks ConnectionsRelay Outputs blue terminal blocks Ground232DRIO Terminal Blocks RS232 Connector PinoutSerial Port Connections 232DRIO To DTE Connections Power Supply Connections232DRIO To DCE Connections 01FE #0RComp = not x and &HFF Function Command Response 232DRIO CommandsEquivalent Values SyntaxData Bytes Bit Assignments for I/O LinesRelay #2 Relay #1 Example Set Output Lines Data Byte Relays Binary DecimalInput #1 Relay #2 Relay #1 Set Output Lines Command Read I/O Lines Command0R00000000 Shown in bold face0S03 Argument … shown in bold face0S00000011 …~… shown in bold faceBoard Layout Opto-isolated Input Switch Input Isolated Mechanical Input Relay Outputs 232DRIO External Circuit Digital I/O Mask Values SymbolOpening a COM Port Closing a COM PortRead I/O States Command Using the 232DRIO.LIB with QuickBasicSet Output States Command QuickBasic DEMO232.EXE and DEMO232.BAS#include232DRIO.H void main ++ DEMO232.EXE and DEMO232.CPPQuickBasic Running Demonstration ProgramAppendix a Decimal to HEX to Ascii Conversion Table Appendix a 232DRIO-0308 ManualAppendix B Appendix B 232DRIO-0308 Manual Decimal to Hexadecimal Conversion