GE GFK-0825F Carbon Monoxide Alarm User Manual


 
4-20 Field Control Genius® Bus Interface Unit User’s Manual
October 1999 GFK-0825F
4
Example Ladder Logic
[ BLOCK DECLARATIONS ]
[ START OF PROGRAM LOGIC ]
(**********************************************************************
*
(*Input 17 comes from the network and is always ON while the network is
(*sending outputs to the Field Control Station. The MFP is set to defau
l
(*its received data if the network disappears. Therefore when the netwo
r
(*disappears Input 17 will be OFF. Input 17 is a heartbeat detecting th
e
(*presence of network outputs. *)
(**********************************************************************
*
(**********************************************************************
*
(*When %I17 is ON send all data received from the netrork to the output
(*table to allow the network to control outputs on the station. *)
<<RUNG 6 STEP #0003>>
NETPRES
%I0017
NETOUTS
%I0001
(*When %I17 is OFF the network is not present, allow the MFP to control
(*what data goes to the output table to control outputs on the station.
<<RUNG 8 STEP #0006>>
ADD_
CONST
I1
I2+00001
Q
%R0001
MOVE_
INT
STOUTS
Q %Q0001
IN
LEN
00001
NETPRES
%I0017
INT
%R0001
MOVE_
INT
STOUTS
Q %Q0001
IN
LEN
00001
%R0001
<<RUNG 9 STEP #0009>>
EQ_
CONST
I1
I2+32767
Q
%R0001
ALW_ON
%S0007
INT
MOVE_
INT
Q
IN
LEN
00001
CONST
+00000
%R0001
[ END OF PROGRAM LOGIC ]