The following example is for when In is '01', Initial is WORD#16#FFFF and OutOrder is _LOW_HIGH.
LD
'01'
WORD#16#FFFF
_LOW_HIGH
In
'01'
Character codes
30
Precautions for Correct Use
An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• The value of OutOrder is outside of the valid range.
• The number of bytes in In is 0 (i.e., the NULL character only).
NY-series Instructions Reference Manual (W560)
StringCRC16
EN
ENO
abc
In
Initial
OutOrder
CRC-16 value
Out = abc
31
2 Instruction Descriptions
ST
abc:=StringCRC16('01', WORD#16#FFF
_LOW_HIGH);
'D464'
2
2-539