Omega Engineering OMR-6520, OMR-6510 manual How to Calculate Checksum Value, Format of OMR Commands

Page 9

1.10.How to Calculate Checksum Value

Format of OMR Commands

(LeadingCode)(Addr)(Command)(Data)[Checksum]<CR>

When checksum is enable then [Checksum] is needed, it is 2-character.

[Checksum] = ((LeadingCode)+(Addr)+(Command)+(Data)) MOD 0x100

Example 1: checksum is disable

 

User Command :

$012<CR>

 

 

 

Response

:

!01400600

 

 

Example 2: checksum is enable

 

 

 

 

 

 

 

User Command :

$012B7<CR>

 

 

 

Response

:

!01400600AC

 

 

‘$’ = 0x24

‘0’ = 0x30

‘1’ = 0x31

‘2’ = 0x30

 

B7 = ( 0x24 + 0x30 + 0x31

+ 0x32 ) MOD 0x100

 

 

‘!’ = 0x24

‘0’ = 0x30

‘1’ = 0x31

‘4’ = 0x34

 

‘6’ = 0x36

 

 

 

 

 

AC = ( 0x24 + 0x30 + 0x31 + 0x34 + 0x30 + 0x30 + 0x36 + 0x30

+ 0x30 ) MOD 0x100

Introduction 1-7

Image 9
Contents 3581 for Contents What is OMR ? Outstanding Features of OMRIntroduction Introduction EIA RS-485 Standard OMR-6000 series products overviewRS-485 on OMR OMR RS-485 Network ConfigurationsBranch Topology Constructing a OMR NetworkShielding Termination BusFormat of OMR Commands How to Calculate Checksum ValuePage Features of OMR-6520 What is OMR-6520 ?OMR-6520 Overview² Input Specifications of OMR-6520Look at OMR-6520 & Pin Assignment Connection Between Host and OMR-6520 Pin DefinitionsFunctional Block Diagram Setup Installation Programming Application wiring of OMR-6520Features of OMR-6510 What is OMR-6510 ?Specifications of OMR-6510 OMR-6510Tx+ Rx+ RX TXIN+ GND SW1 OMR-6510 Functional Block DiagramOFF Software is not necessary +DATA DATA+ Data Data Page Initialize a Brand-New OMR Install a Brand New OMRInstall a Brand-New OMR Initialization Wiring Install a New OMR to a Existing NetworkEquipments for Install a New Module Installing ProcedurePage How to Execute the OMR Administration Software InstallationExecute the OMR Administration Utility Software UtilityDefault RS-232 Communication Port Setting OMR Administration Function OverviewChange RS-232 Communication Port Setting Search all exist OMR modulesUsing Operations Operation-Run Batch Software Utility Save and Print OMR modules’ information Version Information Software Utility Using the LED Indication Troubleshooting and Maintenance