Delta AH500 Programming Manual page 238

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0065
CHKADR
Device
X
Y
M
S
n
D
Symbol:
Explanation:
1.
The instruction CHKADR is used to check whether the value in S and (the value in S)+n-1
exceed the device range. If the check result is that the value in S and (the value in S)+n-1 do
not exceed the device range, the device D will be ON. Otherwise, it will be OFF.
2.
S supports the pointer registers PR, TR, CR, and HCR.
3.
The operand n should be within the range between 1 and 1024.
4.
The instruction CHKADR only can be used in the function block.
Example:
1.
Establish a program and a function block in ISPSoft.
Declare two variables in the program.
2.
Declare VarPR1, VarTR1, VarCR1, and VarHCR1 in the function block, and assign the data
types POINTER, T_POINTER, C_POINTER, and HC_POINTER to them respectively.
Operand
S, n, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
S : Pointer register
n : Number of devices
D : Check result
Checking the address of the contact
type of pointer register
L
SM SR
E
AH500
POINTER/T_POINTER/
C_POINTER/HC_POINTER
Word
Bit
Function
PR
K
16# "$" DF
6 - 3 3

Advertisement

Table of Contents
loading

Table of Contents