# HG changeset patch # User lbessard # Date 1244638961 -7200 # Node ID db5f282946b04a6b2d008c041f358e18962d7e42 # Parent 8cab11dd2325122979d5239d9a6b99adf9172081 Removing undefined standard function blocks diff -r 8cab11dd2325 -r db5f282946b0 plcopen/structures.py --- a/plcopen/structures.py Wed Jun 10 13:58:52 2009 +0200 +++ b/plcopen/structures.py Wed Jun 10 15:02:41 2009 +0200 @@ -216,12 +216,14 @@ "outputs" : [("Q","BOOL","none"),("ET","TIME","none")], "comment" : "Off-delay timer\nThe off-delay timer can be used to delay setting an output false, for fixed period after input goes false.", "generate" : generate_block, "initialise" : initialise_block}, + ]}, + {"name" : "Additionnal function blocks", "list": ## {"name" : "RTC", "type" : "functionBlock", "extensible" : False, ## "inputs" : [("EN","BOOL","none"),("PDT","DATE_AND_TIME","none")], ## "outputs" : [("Q","BOOL","none"),("CDT","DATE_AND_TIME","none")], ## "comment" : "Real time clock\nThe real time clock has many uses including time stamping, setting dates and times of day in batch reports, in alarm messages and so on.", ## "generate" : generate_block, "initialise" : initialise_block}, - {"name" : "INTEGRAL", "type" : "functionBlock", "extensible" : False, + [{"name" : "INTEGRAL", "type" : "functionBlock", "extensible" : False, "inputs" : [("RUN","BOOL","none"),("R1","BOOL","none"),("XIN","REAL","none"),("X0","REAL","none"),("CYCLE","TIME","none")], "outputs" : [("Q","BOOL","none"),("XOUT","REAL","none")], "comment" : "Integral\nThe integral function block integrates the value of input XIN over time.",