Panasonic FP7 Series Command Reference Manual page 659

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

Example 3) Operation unit: 16 bits (SS) / Calculation method: CRC-16; Initial value =
0000H; Right shift; XOR = 0000H
[S1] CRC16
[S2] Header of target data
[S3] Length of target data (12 bytes)
[D]
DT0
DT1
DT2
DT3
DT4
DT5
DT6
Example 4) Operation unit: 16 bits (US) / Calculation method: CRCITT; Initial value =
FFFFH; Left shift; XOR = 0000H
[S1] CRCITT
[S2] Header of target data
[S3] Length of target data (12 bytes)
[D]
DT0
DT1
DT2
DT3
DT4
DT5
DT6
Flag operations
Name
SR7
SR8
(ER)
WUME-FP7CPUPGR-12
[CRC.SS
Calculation result
(Characters)
H 3025
0%
H 2331
#1
H 4352
CR
H 5853
XS
H 3030
00
H 3030
00
H 0000
CRC
[CRC.US
Calculation result
(Characters)
H 3025
0%
H 2331
#1
H 4352
CR
H 5853
XS
H 3030
00
H 3030
00
H 0000
CRCITT
Description
To be set in case of out-of-range values in indirect access (index modification).
To be set in the case that the length of the target data for [S3] is 0.
To be set in the case that the control data specified by [S1] is out of the specified range.
To be set when [S2 + calculation starting position + S3] exceeds the [S2] area.
To be set when the address specified by [D + storage starting position] exceeds the [D] area.
14.2 CRC (CRC Code Calculation)
H 2 , DT0 ,
U12 , DT6 ]
(Characters)
H 3025
DT0
0%
H 2331
DT1
#1
H 4352
DT2
CR
H 5853
DT3
XS
H 3030
DT4
00
H 3030
DT5
00
H 2C6E
DT6
H 5 , DT0 ,
U12 , DT6 ]
(Characters)
H 3025
DT0
0%
H 2331
DT1
#1
H 4352
DT2
CR
H 5853
DT3
XS
H 3030
DT4
00
H 3030
DT5
00
H 6194
DT6
14-9

Advertisement

Table of Contents
loading

Table of Contents