B&B Electronics 485SDD16 manual Decimal to Hexadecimal Conversion, 252, 3rd Hex digit

Page 21

Hexadecimal to Decimal Conversion: Decimal = (1st Hex digit x 4096) + (2nd Hex digit x 256) +

(3rd Hex digit x 16) + (4th Hex digit)

Each "Hex digit" is the decimal equivalent value of the hexadecimal symbol.

Example: Convert 10FC hexadecimal to decimal.

1

x

4096

=

4096

0

x

256

=

0

15

x

16

=

240

12

x

1

=

12

 

 

 

 

4348

10FC hex equals 4348 decimal.

Decimal to Hexadecimal Conversion:

Example: Convert 4348 decimal to hexadecimal.

4096

4348

=

1

=

1

(1st Hex digit)

256

4096

=

0

=

0

(2nd Hex digit)

252

16

0

=

15

=

F

(3rd Hex digit)

252

1

240

=

12

=

C

(4th Hex digit)

12

 

12

 

 

 

 

 

0

4348 decimal equals 10FC hexadecimal.

485SDD16-1005 Manual

Appendix B

B-3

B-4

Appendix B

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 21
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Sales@bb-elec.com Support@bb-elec.comTable of Contents 485SDD16 Features 485SDD16 SpecificationsIntroduction Power Supply CommunicationsSize Digital I/O Connections Connections485SDD16 I/O Port Pinout Serial Port ConnectionsExample of Multi-Node Network 485SDD16 Commands CommandsEquivalent Values SyntaxRead I/O Lines Command Set Output Lines CommandBit Assignments for I/O Lines 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 InputSoftware Programming TechniquesDigital I/O Mask Values 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 Table C.1 DTB25 Connections Table C.2 DBM16 I/O ConnectionsDBM16 Interfacing 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