--- 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.",