Delta AH500 Programming Manual page 239

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

3.
Call the function block FB0 in the program, and assign D65535, T0, C2047, and HC50 to
VarPR1, VarTR1, VarCR1, and VarHCR1 in FB0 respectively.
4.
Use the instruction CHKADR to check whether VarPR1, VarTR1, VarCR1, and VarHCR1
exceed the range.
5.
When chkPR is ON, the practical device represented by VarPR1 is D65535. Since the legal
range of devices is from D0 to D65535, and D65535+10-1=D65544, which exceeds the
range, PR_ChkBit is OFF.
6.
When chkTR is ON, the practical device represented by VarTR1 is T0. Since the legal range
of devices is from T0 to T2047, and T0+10-1=T9, which does not exceed the range,
TR_ChkBit is ON.
7.
When chkCR is ON, the practical device represented by C2047. Since the legal range of
devices is from C0 to C2047, and C2047+10-1=C2056, which exceeds the range,
CR_ChkBit is OFF.
6 - 3 4
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons

Advertisement

Table of Contents
loading

Table of Contents