Add(MainForm,15309643,224,105) { Width=405 Height=301 Position=1 } Add(Hub,2402691,483,329) { link(onEvent1,6780623:doClear,[]) link(onEvent2,5905370:doTimer,[(507,342)(507,384)]) } Add(Timer,5905370,518,378) { Enable=1 AutoStop=1 Point(doAutoStop) link(onTimer,9269171:doClear,[]) } Add(Button,1520554,119,329) { Left=20 Top=15 link(onClick,6010607:doEvent1,[]) } Add(Memo,9175896,721,322) { Left=5 Top=40 Width=385 Height=225 } Add(Hub,14152139,679,322) { InCount=2 OutCount=1 link(onEvent1,9175896:doAdd,[]) } Add(Memory,6780623,567,322) { Default=Integer(1) link(onData,14152139:doEvent1,[]) } Add(Memory,9269171,567,371) { Default=Integer(2) link(onData,4395698:doEvent1,[]) } Add(Timer,7321715,441,329) { Enable=1 AutoStop=1 Point(doAutoStop) link(onTimer,2402691:doEvent1,[]) } Add(Hub,4395698,616,371) { link(onEvent1,14152139:doEvent2,[(646,377)(646,335)]) link(onEvent2,6787118:doNext,[(647,384)(647,423)(202,423)(202,363)]) } Add(Counter,6787118,231,357) { @Color=16755200 Point(doMax) link(onNext,5834758:doCompare,[]) } Add(Hub,6010607,336,329) { InCount=2 link(onEvent1,7321715:doTimer,[]) } Add(Memory,15648922,280,231) { Default=Integer(5) AddHint(22,-23,21,13,Default) } Add(If_else,5834758,273,357) { @Color=16755200 link(onTrue,6787118:doReset,[(316,363)(316,397)(222,397)(222,377)]) link(onFalse,6010607:doEvent2,[(321,370)(321,342)]) link(Op2,15648922:Value,[]) }