Delta AH500 Programming Manual page 179

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
2.
Establish a function block which is called FB0.
3.
Declare the varaible in the function block FB0.
Choose VAR_IN_OUT as the declaration type, HCPoint1 as the identifier, HC_POINTER as
the data type. The variable is the pointer register of the 32-bit counter.
4.
The program in the function block FB0
5.
Declare the variable in the program organization unit (POU).
The data type of CVar1 should be COUNTER, and users have to fill in the address column with
the practical address of the 32-bit counter.
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 HC0 is transmitted to HCPoint1 in FB0.
When VarBit1 in FB0 is ON, HCPoint1 (HC0) is ON.
Network: When StartBit[1] is ON, the address of CVar1 is transmitted to HCPoint1 in FB0.
When VarBit1 in FB0 is ON, HCPoint1 (CVar1) is ON.
4 - 1 2

Advertisement

Table of Contents
loading

Table of Contents