plcopen/structures.py
changeset 649 ea237e1431ec
parent 638 2b9ed21d965c
child 754 48966b6ceedc
equal deleted inserted replaced
648:95d165193770 649:ea237e1431ec
   217                     "outputs" : [("Q","BOOL","none"),("ET","TIME","none")],
   217                     "outputs" : [("Q","BOOL","none"),("ET","TIME","none")],
   218                     "comment" : _("Off-delay timer\nThe off-delay timer can be used to delay setting an output false, for fixed period after input goes false."),
   218                     "comment" : _("Off-delay timer\nThe off-delay timer can be used to delay setting an output false, for fixed period after input goes false."),
   219                     "generate" : generate_block, "initialise" : initialise_block},
   219                     "generate" : generate_block, "initialise" : initialise_block},
   220                 ]},
   220                 ]},
   221               {"name" : _("Additional function blocks"), "list":
   221               {"name" : _("Additional function blocks"), "list":
   222 ##                {"name" : "RTC", "type" : "functionBlock", "extensible" : False, 
   222                [{"name" : "RTC", "type" : "functionBlock", "extensible" : False, 
   223 ##                    "inputs" : [("EN","BOOL","none"),("PDT","DATE_AND_TIME","none")], 
   223                     "inputs" : [("IN","BOOL","none"),("PDT","DATE_AND_TIME","none")], 
   224 ##                    "outputs" : [("Q","BOOL","none"),("CDT","DATE_AND_TIME","none")],
   224                     "outputs" : [("Q","BOOL","none"),("CDT","DATE_AND_TIME","none")],
   225 ##                    "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."),
   225                     "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."),
   226 ##                    "generate" : generate_block, "initialise" : initialise_block},
   226                     "generate" : generate_block, "initialise" : initialise_block},
   227                [{"name" : "INTEGRAL", "type" : "functionBlock", "extensible" : False, 
   227                 {"name" : "INTEGRAL", "type" : "functionBlock", "extensible" : False, 
   228                     "inputs" : [("RUN","BOOL","none"),("R1","BOOL","none"),("XIN","REAL","none"),("X0","REAL","none"),("CYCLE","TIME","none")], 
   228                     "inputs" : [("RUN","BOOL","none"),("R1","BOOL","none"),("XIN","REAL","none"),("X0","REAL","none"),("CYCLE","TIME","none")], 
   229                     "outputs" : [("Q","BOOL","none"),("XOUT","REAL","none")],
   229                     "outputs" : [("Q","BOOL","none"),("XOUT","REAL","none")],
   230                     "comment" : _("Integral\nThe integral function block integrates the value of input XIN over time."),
   230                     "comment" : _("Integral\nThe integral function block integrates the value of input XIN over time."),
   231                     "generate" : generate_block, "initialise" : initialise_block},
   231                     "generate" : generate_block, "initialise" : initialise_block},
   232                 {"name" : "DERIVATIVE", "type" : "functionBlock", "extensible" : False, 
   232                 {"name" : "DERIVATIVE", "type" : "functionBlock", "extensible" : False,