EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #564 background imageLoading...
Page #564 background image
2 Instruction Descriptions
2-516
NJ-series Instructions Reference Manual (W502)
AryCRC16
The AryCRC16 instruction calculates the CRC-16 value using the MODBUS method.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The AryCRC16 instruction calculates the CRC-16 value of Size array elements of array to process In[]
starting from In[0]. The MODBUS method is used.
Set Initial to the initial value for CRC-16 value calculation. OutOrder specifies the byte order.
Instruction Name FB/FUN Graphic expression ST expression
AryCRC16 Calculate Array
CRC-16
FUN Out:=AryCRC16(In, Size,
Initial, OutOrder);
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Array to
process
Input
Array to process
Depends on data type.
---
*
Size Number of
elements to
process
Number of In[] elements 1
Initial Initial value Initial value of CRC-16 value 16#FFF
F
OutOrder Byte order Order to process bytes in In _LOW_HIGH,
_HIGH_LOW
_LOW
_HIGH
Out CRC-16
value
Output CRC-16 value Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In[] (array) OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK
Size OK
Initial OK
OutOrder Refer to Function for the enumerators for the enumerated type _eBYTE_ORDER.
Out OK
Function
(@)AryCRC16
EN ENO
In Out
Size
Initial
OutOrder

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals