plcopen/structures.py
changeset 649 ea237e1431ec
parent 638 2b9ed21d965c
child 754 48966b6ceedc
--- a/plcopen/structures.py	Fri Feb 17 00:13:19 2012 +0100
+++ b/plcopen/structures.py	Mon Feb 20 00:37:01 2012 +0100
@@ -219,12 +219,12 @@
                     "generate" : generate_block, "initialise" : initialise_block},
                 ]},
               {"name" : _("Additional 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" : "RTC", "type" : "functionBlock", "extensible" : False, 
+                    "inputs" : [("IN","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, 
                     "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."),