B&B Electronics 232SDD16 manual Appendix B

Page 18

APPENDIX B

Hexadecimal/Decimal Conversions

The decimal (base 10) numbering system represents each position in successive powers of 10, with each decimal symbol having a value from 0 to 9. The hexadecimal (base 16) numbering

system represents each position in successive powers of 16 with each hex symbol having a value of 0 to 15. Since each hex position must have a single symbol, the symbols "A" through "F" are assigned to values 10 through 15 respectively. Refer to Table 1. The information and examples to follow will explain how to convert from a decimal number to a hexadecimal number and vice versa.

 

Table 1.

Decimal

 

Hexadecimal

Value

 

Symbol

0

 

0

1

 

1

2

 

2

3

 

3

4

 

4

5

 

5

6

 

6

7

 

7

8

 

8

9

 

9

10

 

A

11

 

B

12

 

C

13

 

D

14

 

E

15

 

F

232SDD16-1005 Manual

Appendix B

B-1

B-2

Appendix B

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 18
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents 232SDD16 Features Introduction232SDD16-1005 Manual 232SDD16 Specifications CommunicationsSize 232SDD16 I/O Port Pinout ConnectionsDigital I/O Connections Serial Port Connections232SDD16 To DTE Connections RS-232 Connector PinoutPower Supply Connections 232SDD16 To DCE ConnectionsEquivalent Values Commands232SDD16 Commands SyntaxRead I/O Lines Command Set Output Lines CommandBit Assignments for I/O Lines Define I/O Lines Command Set Power-up States CommandRead Configuration Command Bin. Example !0RC01010101010000010101000001000000 Interfacing Digital InputsIsolated Solid State Input Software Programming TechniquesDigital I/O Mask Values MSpups = MSpups and mask LSpups = LSpups and mask Set Output States CommandMSdefs = MSdefs and mask LSdefs = LSdefs and mask MSstates = MSstates or mask LSstates = LSstates or maskMSdefs = MSdefs or mask LSdefs = LSdefs or mask Define I/O Lines CommandSet Power-up States Command 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 DBM16 Specifications Lines InputsOutputs 232SDD16-1005 Manual Appendix C 00FF01FE #0RDMsb~ I/O msbI/O lsb ~ I/O lsb Comp = not x and &HFFTable D-1 Extended Commands 232SDD16-1005 Manual Appendix D