Function - calculates a CRC16 on the characters of a string.

Inputs

Input

Data type

Description

IN

STRING

Character string.

Outputs

Output

Data type

Description

Q

INT

CRC16 calculated on all the characters of the string.

Remarks

In LD language, the input rung (EN) enables the operation, and the output rung keeps the same value as the input rung.

The function calculates a MODBUS CRC16, initialized at 16#FFFF value.

ST Language

Q := CRC16 (IN);

FBD Language

Fixed_Image

LD Language

The function is executed only if EN is TRUE.
ENO is equal to EN.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with HelpNDoc's CHM Help File Creation Features