Delta AH500 Programming Manual page 175

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
Users can declare 16 pointer registers in every function block. The range is PR0~PR15, or
PR0.0~PR15.15.
Example:
1.
Establish a program organization unit (POU) in ISPSoft first.
2.
Establish a function block which is called FB0.
3.
The program in the function block FB0
4.
Declare the varaible in the function block FB0.
Choose VAR_IN_OUT as the declaration type, Point1 as the identifier, POINTER as the data
type. The variable is the pointer register.
5.
Declare the variable in the program organization unit (POU).
6.
Call the function block FB0 in the program organization unit (POU).
7.
The program in the program organization unit (POU)
Network 1: When StartBit[0] is ON, the address of D0 is transmitted to Point 1 in FB0.
When VarBit1 in FB0 is ON, E0=1, Var1=D0, Point1@E0=D (0+1)=D1, and
Var2=D1.
4 - 8

Advertisement

Table of Contents
loading

Table of Contents