6 calculating checksums, Calculating checksums – KEYENCE N-410 User Manual
Page 150
A-14
A
6
Calculating Checksums
A checksum can be appended to read data as it is being transmitted (The checksum will not be
appended to commands or replies).
The checksum allows you to check if RS-232C communications have become corrupted. By
using the PASS/RTRY or ACK/NAK protocols, an automatic RTRY or
can be sent if the
checksum does not match. Settings should be handled through "Protocol settings" on the setting
software (This cannot be done when using a PLC link).
Checksum calculation range and location
The checksum is calculated using all characters that are not a part of the header or the delimiter
and is then appended immediately after the delimiter.
CC= checksum (2 ASCII characters)
• When an ID number is appended
• When an ID number is not appended
NAK
P mm -
Header
Read data
%
Delimiter
cc
P
01
-
Header
ERROR
%
Delimiter
cc
nnnn
0009
Header
Read data
Delimiter
cc
nnnn
Header
AB12
Delimiter
cc
0004
Header
AB12
Delimiter
cc
0004
- LR-TB2000 Series (12 pages)
- LR-TB5000 Series (12 pages)
- LR-ZB250AN/AP (4 pages)
- LR-ZB250AN/P (3 pages)
- LR-ZBxN/P Series (3 pages)
- LR-ZBxxB (3 pages)
- OP-85135 (1 page)
- PZ-G Series (2 pages)
- PZ-V/M (2 pages)
- PS-N10 Series (12 pages)
- PX-10 (10 pages)
- CZ-V21A(P) (10 pages)
- CZ-K1(P) (8 pages)
- CZ-V1 (8 pages)
- FS-N10 Series (6 pages)
- FS-N10 Series (116 pages)
- FS-N15CN (1 page)
- FU-93(Z) (2 pages)
- FU-V Series (2 pages)
- FS-V30 (6 pages)
- FU-A40 (1 page)
- NU/FS-N Series (16 pages)
- FS-V33(P) (8 pages)
- FS-V21 (4 pages)
- FS-V22 (4 pages)
- FS-V11(P) (4 pages)
- FS-V1(P) (4 pages)
- LV-N10 Series (12 pages)
- LV-N10 Series (112 pages)
- LV-S62 (1 page)
- OP-84350 (1 page)
- LV-SA (10 pages)
- LV-SB (12 pages)
- OP-87305 (1 page)
- LV Series (10 pages)
- LV-B102 (1 page)
- EV-108M(U) (1 page)
- EZ Series (1 page)
- EM Series (1 page)
- ES-M1(P) (3 pages)
- EX-V Series (120 pages)
- EX-500(W) Series (16 pages)
- GV Series (10 pages)
- IA Series (8 pages)
- LB-1000(W) (24 pages)