Delta DVP-ES3 — 4.6 Pointer Registers of Timers

DVP-ES3 Series Programming Manual Network 2: When StartBit[1] is ON, the address of CVar1[0] is transmitted to Point1 in FB0. Var2=CVar1[1] 。 When VarBit1 in FB0 is ON, E0=1, Var1=CVar1[0], Point1@E0=CVar1 (0+1)=Cvar1[1], and Var2=CVar1[1]. 4.6 Pointer Registers of Timers  ISPSoft supports function blocks. If you want to use a timer in a function block, you must declare a timer pointer register in the function block. The address of the timer is transmitted to the timer pointer register when the function block is called. _4  When the variable declaration type is VAR_IN_OUT, and the data type is T_POINTER, the variable is the timer pointer register.

The value in the timer pointer register can refer directly to the value stored in the device T, or in the variable which is the timer in ISPSoft.  You can declare up to 8 timer pointer registers in every function block. The range is TR0–TR7.  If you want to use an instruction in the function block, and the timer is supported by the operands, you must use a Example: using a timer in a function block. timer pointer register. 1. Create a program organization unit (POU) in ISPSoft. 2. Create a function block which is called FB0. 3. Declare the variable in the function block FB0. Choose VAR_IN_OUT as the declaration type, TPoint1 as the identifier, and T_POINTER as the data type.

The variable is the timer pointer register. 4-12