EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-515
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
FCS Instructions
2
AryCRCCCITT
The data type of OutOrder is enumerated type _eBYTE_ORDER. The meaning of the enumerators are
as follows:
Always attach the element number to in-out parameter that is passed to In[], e.g., array[3].
The following example is for when Size is UINT#2, Initial is WORD#16#0000, and OutOrder is
_LOW_HIGH.
If the value of Size is 0, the value of Out is WORD#16#00.
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 value of Size exceeds the array area of In[].
An array without a subscript is passed to In[].
The elements in In[] are not bit string, integer, real number, time, duration, date, or date and time
data.
Enumerators Meaning
_LOW_HIGH Lower byte first, upper byte last
_HIGH_LOW Upper byte first, lower byte last
Precautions for Correct Use
def:=AryCRCCCITT(abc[4], UINT#2,
WORD#16#0000,
_LOW_HIGH);
LD
ST
abc[4]
def
UINT#2
_LOW_HIGH
WORD#16#0000
AryCRCCCITT
EN ENO
In
Size
Initial
OutOrder
16#9D60
16#5244
Out = def
16#52
16#44
In[0]=abc[4]
In[1]=abc[5]
Size = UINT#2
CRC-CCITT value

Table of Contents

Related product manuals