Delta AS Series Programming Manual page 316

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0065
CHKADR
Device
X
Y
M
S
n
D
Data
type
S
n
D
Symbol
Explanation
1.
This instruction checks whether the value in S and (the value in S)+n-1 exceed the device range. If the result is
that the value in S and (the value in S)+n-1 do not exceed the device range, the device D is ON. Otherwise, it is
OFF.
2.
S supports the pointer registers D, T, C, HC (POINTER/T_POINTER/C_POINTER/HC_POINTER).
3.
The operand n must be between 1–1024.
4.
You can use the CHKADR instruction only in a function block. Use CHKADR during the initial program
development phase or when you are not sure if the device range will be exceeded. After the program is written and
debugged, you can delete this instruction.
Operand
S,n,D
S
T
C
HC
D
Pulse Instruction
: Pointer register
S
: Number of devices
n
: Check result
D
C h a p t e r 6 Ap p l i e d I n s t r u c t i o n s
Checking the addresses in a pointer
FR
SM
SR
E
16-bit instruction
AS
Function
register
K
16#
"$"
F
32-bit instruction
6 - 3 7
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents