Arcglide thc responses, Calculating the checksum – Hypertherm THC ArcGlide User Manual

Page 250

Advertising
background image

250

ArcGlide THC Instruction Manual 806450

A – ArcGlide THC Serial Communication Protocol

The protocol uses ASCII characters. Each message is formatted as shown below.

In the table below, and in other examples in this section, 0x is the designation for
hexadecimal. Any value preceded by 0x designates the next values as hexadecimal values.

The CNC sends this command to put the ArcGlide into Remote mode which enables serial communications:

>RM1D0<

The components of this command are defined below:

ArcGlide THC Responses

The ArcGlide THC response to an accepted command is ^ (0x5E). The response to an invalid command is # (0x23). For
all accepted commands, the ArcGlide THC response echoes the command ID.

The CNC can also query the ArcGlide by sending a question mark (?). For example, to query the actual arc voltage, the
CNC sends the message >AV?D6<. The ArcGlide would send the response >AV100058< which represents an actual
arc voltage of 100.0 V with a checksum of 0x58.

Calculating the Checksum

The checksum for the example message >AV100058< is calculated as follows:

Start

Command ID

Data

Checksum

End

1 character

2 characters,
capitalized

variable length

2 characters

1 character

> (0x3E)

< (0x3C)

> = Start character

RM = Command ID (Remote mode)

1 = Data (1 = ON)

D0 = Checksum (The checksum equals the 8-bit unsigned sum of the 8 bit ASCII character equivalents of the

message contents, excluding the two framing characters “>” and “<”.)

< = End character

Character

Hex value

A

41

V

56

1

31

Advertising