Delta AS Series Programming Manual page 914

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1807
CRC
Device
X
Y
M
S
n
D
Data
type
S
n
D
Symbol
Explanation
1.
This instruction performs a cyclic redundancy check on n bytes starting with the device specified by S. Please refer
to the Additional remark for this instruction (below) for more information about the CRC check code.
2.
The operand n must be between 1–1000. If n is not in the range, an operation error occurs, the instruction is not
executed, SM0 and SM1 are ON, and the error code in SR0 is 16#200B.
3.
The 16-bit conversion mode: When SM606 is OFF, the instruction divides the hexadecimal data in the device
specified by S into the high 8-bit data and the low 8-bit data. The instruction applies the CRC to every byte, and the
stores the operation result in the high 8-bit and the low 8-bit in the device specified by D. The number of bytes
depends on n.
4.
The 8-bit conversion mode: When SM606 is ON, the instruction divides the hexadecimal data in the device
specified by S into the high 8-bit data (invalid data) and the low 8-bit data. The instruction applies the CRC to every
byte, and stores the operation result in the low 8-bit in the two registers. The number of bytes depends on n.
Operand
S, n, D
S
T
C
HC
Pulse instruction
-
S : First device to which the CRC is applied
n : Number of bytes
First device in which the operation result is
D :
stored
Cha p ter 6 App l ied Ins truc tio ns
Cyclic Redundancy Check
D
FR
SM
SR
E
16-bit instruction
AS
Function
K
16#
"$"
F
32-bit instruction
-
6 - 6 3 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents