
358
16.4 Calculating a CRC (CRC.FN3)
16.4.1 Function Number List of CRC.FN3
The CRC.FN3 may calculate a CRC depending upon the function number specified, as listed
below.
Function number Used to:
.fcCcitt
2
Calculate a CRC-CCITT.
.fcCrc16
3
Calculate a CRC-16.
16.4.2 Detailed Function Specifications
.fcCcitt(=2) Calculate a CRC-CCITT
Syntax:
CALL "CRC.FN3" .fcCcitt STRING1$, [ STRING2$, [...,]] CRC$
Description:
This function calculates a CRC of character strings specified by
STRING1$, STRING2$, ...STRING8$ and returns the calculation result
in CRC$.
Up to eight character strings may be specified by assigning them to
non-array string variables.
Parameter:
STRING1$, STRING2$, ...STRING8$
Non-array string variables that are operands of CRC gen-eration
Returned value:
CRC$ Non-array string variable that stores the calculation result
(2 characters, fixed length. In the 1st character position is
the upper byte of the calculation result.)
.fcCrc16(=3) Calculate a CRC-16
Syntax:
CALL "CRC.FN3" .fcCrc16 STRING1$, [ STRING2$, [...,]] CRC$
Description:
This function calculates a CRC of character strings specified by
STRING1$, STRING2$, ...STRING8$ and returns the calculation result
in CRC$.
Up to eight character strings may be specified by assigning them to
non-array string variables.
Parameter:
STRING1$, STRING2$, ...STRING8$
Non-array string variables that are operands of CRC gen-eration
Returned value:
CRC$ Non-array string variable that stores the calculation result
(2 characters, fixed length. In the 1st character position is
the upper byte of the calculation result.)
Comentários a estes Manuais