456
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
■8-bit conversion mode (when SM772 is ON)
CRC operation is performed for the lower 8 bits (lower byte) of the data in the device specified by (S). The operation result is
stored using the two points from the device specified by (D): lower 8 bits (byte units) are stored in the device specified by (D)
and upper 8 bits (byte units) are stored in the device specified by (D)+1. In 8-bit conversion mode, the 6 bytes at the shaded
positions in the following figure are the operation target. Here, the CRC value is "BDA1H" and accordingly "A1H" is stored in
the device specified by (D) and "BDH" is stored in the device specified by (D)+1.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• The sample program calculates the CRC value of six points of data in the devices starting from D0 and stores the result in
the devices specified by D100.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 A digit other than 4 is specified in the digit-specified bit device in (S), (D).
4101 The value in the device specified by the instruction exceeds the setting
range.
(S)+n-1, (D)+1 is out of the device range.
[Ladder Mode]
Device Decimal
Hexadecimal
Upper bits Lower bits
61
H 64H
10H 7BH
FAH CBH
FFH FFH
7FH F9H
27H 10H
D0 24932
D1 4219
D2 -1333
D3 -1
D4 32761
D5 10000