$BEGIN_KM_HEADER
<LINES=00004-SIZE=00000078-NEXTPOS=00000000>
KM_TEXT = (c) Moeller GmbH, Bonn 2001
S40_VERSION = SucoSoft V5.00
CRC = 48718
TIMESTAMP = Mon Feb 23 21:37:24 2009
<LINES=00010-SIZE=00000129-NEXTPOS=00000000>
tKisDeclEdi = kTxt
tKisInstrEdi = kAWL
tKisWinArea = kDecl
m_WndRect = 0#0#584#325#
tKisSplitMode = kVer
tKisKindOfDeclBlock = kDeclVar
m_ulSplitSize = 252
m_InstrPos = 1/1#0/0#0/0#
m_DeclPos = 1/1#0/0#
m_ulGridColWidth = 0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
<LINES=00008-SIZE=000000C5-NEXTPOS=00000000>
PROJECT = DEMO
OEMNAME = Martin Rehfeldt
OEMDATE = 30.05.2005
COMPANY = Martin Rehfeldt
VERSION = 0.0.1
SPS_TYPE = PS4-341 MM1
POETXTSIZE = 1
POETXT = This is the comment in the KM Header.
$END_KM_HEADER
FUNCTION_BLOCK DEMO_FB 
(*FB inputs*)
VAR_INPUT
x0   : INT;
x1   : BOOL;
END_VAR

(*FB outputs*)
VAR_OUTPUT
y0   : BOOL;
END_VAR
(*function block: DEMO_FB
  for PLCEdit demonstration
  version: 0.0.1, 30.05.2005, MR*)


LD    x0
EQ    123
JMPCN NOVAL
LD    x1
ST    y0
JMP   END

NOVAL:
LD    0
ST    y0

END:
ret (*teturn to main program*)
END_FUNCTION_BLOCK
