Delta AS Series Programming Manual page 317

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example
1.
Create a program (Prog0) and a function block (FB0) 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.
_6
3.
Call the function block FB0 in the program, and assign D29999, T0, C511, and HC50 to VarPR1, VarTR1, VarCR1,
and VarHCR1 in FB0 respectively.
4.
Use the CHKADR instruction to check whether VarPR1, VarTR1, VarCR1, and VarHCR1 exceed the range.
5.
When chkPR is ON, the actual device represented by VarPR1 is D29999. Since the legal range of devices is from
D0 to D29999, and D29999+10-1=D30008 which exceeds the range, PR_ChkBit is OFF.
6 - 3 8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents