Pointer Registers - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l

4.5 Pointer Registers

ISPSoft supports function blocks. When the variable declaration type is VAR_IN_OUT, and the data type is
POINTER, the variable is a pointer register. The value in the pointer register can refer directly to the value stored in
a device X, Y, or D; and the pointer register can point to the address associated with the variable set automatically
in ISPSoft.
You can declare 16 pointer registers in every function block. The range is PR0–PR15, or PR0.0–PR15.15.
Example:
1.
Create a program organization unit (POU) in ISPSoft.
2.
Create a function block called FB0.
3.
Create the program in the function block FB0.
_4
4.
Declare the variable 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) operates as shown below.
4 - 1 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents