Removing undefined standard function blocks
authorlbessard
Wed, 10 Jun 2009 15:02:41 +0200
changeset 373 db5f282946b0
parent 372 8cab11dd2325
child 374 16a0a6cb1644
Removing undefined standard function blocks
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.",