Hardware manual

Chapter 2 Programming
Type “FB_SPP_Sys” in the
POU Nam
e box, and then type “Supply Water Pump Control Function” in
the
POU Comment
box. Finally, click
OK
.
Users can see the
FB_SPP_Sys
window on the main screen.
Users need to create the local symbols. In order to make the use of the function block more
convenient, the system automatically distributes the addresses to the module, and users are not
allowed to type the addresses by themselves. Users surely can use the addresses and the global
symbols in the internal program. However, the use of the addresses or the uses of the global
symbols will decrease the convenience of using the function block. (If a local symbol is the same as
a global symbol, the local symbol used in the function block has high priority.)
The local symbols created are as follows.
Declaration type Identifier Data type
VAR_INPUT Tank_B_LSW BOOL
VAR_INPUT Tank_R_LSW BOOL
VAR_INPUT Tank_R_HSW BOOL
VAR_INPUT Pump_Remote BOOL
VAR_INPUT Pump_Run BOOL
VAR_INPUT Pump_Trip BOOL
VAR_IN_OUT Pump_Auto BOOL
VAR_IN_OUT Pump_Man_SW BOOL
VAR_OUTPUT Pump_Start BOOL
VAR Pump_Out BOOL
2-21