Delta AH500 Programming Manual page 447

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1209
CCD
Device X
Y
M
S
D
n
Symbol:
Explanation:
1.
In communication, the sum check is used to compare checksums on the same data on
different occasions or on different representations of the data in order to verify the data
integrity.
2.
The 16-bit conversion mode: When SM606 is OFF, the working mode of the instruction is the
16-bit conversion mode. The n pieces of data in the registers starting from the register
specified by S (eight bits as a group) are added up. The sum is stored in the register specified
by D, and the values of the parity bits are stored in D+1.
3.
The 8-bit conversion mode: When SM606 is ON, the working mode of the instruction is the
8-bit conversion mode. The n pieces of data in the registers starting from the register specified
by S (Eight bits forms a group, and only low eight bits are valid.) are added up. The sum is
stored in the register specified by D, and the values of the parity bits are stored in D+1.
4.
The operand n should be within the range between 1 and 256.
Example 1:
1.
When SM606 is OFF, the working mode of the instruction is the 16-bit conversion mode.
2.
When X0.0 is ON, the six pieces of data in D0~D2 (eight bits as a group) are added up. The
sum is stored in D100, and the values of the parity bits are stored in D101.
Operand
S, D, n
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
AH500
S : Initial device
Device in which the sum is
D :
stored
n : Number of pieces of data
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Sum check
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
-
Word
Word
Word
6 - 2 7 9

Advertisement

Table of Contents
loading

Table of Contents