TOHO ELECTRONICS TRM-006A User Manual

Page 33

Advertising
background image

33

Then enter calculable data into the 1rc_arry(), and enter the number of data items into the
arry_count. After that, run the following program to cause the calculation results to enter the LRC.

For i = 0 To arry_count
LRC = (LRC + lrc_arry(i)) And &HFF
Next

LRC = ((Not LRC) + 1) And &HFF


If the error code is calculated as 12H as an example, affix a "1" or "2" at the end of the message.

Advertising