CRC16
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
LD Language
The function is executed only if EN is TRUE.
ENO is equal to EN.
CRC16 |
IEC 61131-3 Automation platform > Programming - Reference guide > String operations > CRC16 |
Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with HelpNDoc's CHM Help File Creation Features