Chapter 8 Logic Instructions
8-341
FCS Instructions
FB/FC
Explanation Applicable model
FC
CRC16 instruction is used to calculate the CRC value of the
specified data.
CRC16
EN ENO
Data CRC16
Length
OutOrder
Input Parameters
Meaning
Description Valid range
Data
address of the
data for CRC
value
Input
The starting address of the data for CRC
value calculation. The starting address can
be got by ADR instruction
——
Length
the data for
CRC value
Input
How many bytes of data are for the CRC
value calculation by counting from the
starting address of the data with the unit:
1~255
OutOrder
the bytes of the
output CRC
Input
FALSE means that for the output CRC value,
its low byte is on the left of its high byte.
TRUE means that for the output CRC value
its low byte is on the right of its high byte.
TRUE or FALSE
CRC16 The CRC value
Output
The CRC value got through calculation
based on the parameter Data
data type of the
variable that the
output parameter