plcopen/structures.py
changeset 57 9bf197698af0
parent 47 2b2f8d88e6d3
child 58 39cd981ff242
equal deleted inserted replaced
56:7187e1c00975 57:9bf197698af0
   118                     "outputs" : [("Q","BOOL","none")],
   118                     "outputs" : [("Q","BOOL","none")],
   119                     "comment" : "Hysteresis\nThe hysteresis function block provides a hysteresis boolean output driven by the difference of two floating point (REAL) inputs XIN1 and XIN2."},
   119                     "comment" : "Hysteresis\nThe hysteresis function block provides a hysteresis boolean output driven by the difference of two floating point (REAL) inputs XIN1 and XIN2."},
   120                 {"name" : "RATIO_MONITOR", "type" : "functionBlock", "extensible" : False, 
   120                 {"name" : "RATIO_MONITOR", "type" : "functionBlock", "extensible" : False, 
   121                     "inputs" : [("PV1","REAL","none"),("PV2","REAL","none"),("RATIO","REAL","none"),("TIMON","TIME","none"),("TIMOFF","TIME","none"),("TOLERANCE","BOOL","none"),("RESET","BOOL","none"),("CYCLE","TIME","none")], 
   121                     "inputs" : [("PV1","REAL","none"),("PV2","REAL","none"),("RATIO","REAL","none"),("TIMON","TIME","none"),("TIMOFF","TIME","none"),("TOLERANCE","BOOL","none"),("RESET","BOOL","none"),("CYCLE","TIME","none")], 
   122                     "outputs" : [("ALARM","BOOL","none"),("TOTAL_ERR","BOOL","none")],
   122                     "outputs" : [("ALARM","BOOL","none"),("TOTAL_ERR","BOOL","none")],
   123                     "comment" : "Ratio monitor\nThe ratio_monitor function block checks that one process value PV1 is always a given ratio (defined by input RATIO) of a second process value PV2."},
   123                     "comment" : "Ratio monitor\nThe ratio_monitor function block checks that one process value PV1 is always a given ratio (defined by input RATIO) of a second process value PV2."}
       
   124                 ]},
       
   125             {"name" : "SVGUI function blocks", "list":
       
   126                 [{"name" : "Container", "type" : "functionBlock", "extensible" : False, 
       
   127                     "inputs" : [("X","FLOAT","none"),("SetX","BOOL","none"),("Y","FLOAT","none"),("SetY","BOOL","none"),("Angle","FLOAT","none"),("SetAngle","BOOL","none")], 
       
   128                     "outputs" : [("X","FLOAT","none"),("X Changed","BOOL","none"),("Y","FLOAT","none"),("Y Changed","BOOL","none"),("Angle","FLOAT","none"),("Angle Changed","BOOL","none")],
       
   129                     "comment" : "SVGUI Container"},
       
   130                 {"name" : "Button", "type" : "functionBlock", "extensible" : False, 
       
   131                     "inputs" : [("Show","BOOL","none"),("Toggle","BOOL","none")], 
       
   132                     "outputs" : [("Visible","BOOL","none"),("State","BOOL","none")],
       
   133                     "comment" : "SVGUI Button"},
       
   134                 {"name" : "TextCtrl", "type" : "functionBlock", "extensible" : False, 
       
   135                     "inputs" : [("Text","STRING","none"),("Set Text","BOOL","none")], 
       
   136                     "outputs" : [("Text","STRING","none"),("Text Changed","BOOL","none")],
       
   137                     "comment" : "SVGUI Text Control"},
       
   138                 {"name" : "ScrollBar", "type" : "functionBlock", "extensible" : False, 
       
   139                     "inputs" : [("Position","UINT","none"),("Set Position","BOOL","none")], 
       
   140                     "outputs" : [("Position","UINT","none"),("Position Changed","BOOL","none")],
       
   141                     "comment" : "SVGUI ScrollBar"},
       
   142                 {"name" : "NoteBook", "type" : "functionBlock", "extensible" : False, 
       
   143                     "inputs" : [("Selected","UINT","none"),("Set Selected","BOOL","none")], 
       
   144                     "outputs" : [("Selected","UINT","none"),("Selected Changed","BOOL","none")],
       
   145                     "comment" : "SVGUI Notebook"},
       
   146                 {"name" : "RotatingCtrl", "type" : "functionBlock", "extensible" : False, 
       
   147                     "inputs" : [("Angle","FLOAT","none"),("Set Angle","BOOL","none")], 
       
   148                     "outputs" : [("Angle","FLOAT","none"),("Angle changed","BOOL","none")],
       
   149                     "comment" : "SVGUI Rotating Control"},
   124                ]}
   150                ]}
   125              ]
   151              ]
   126 
   152 
   127 """
   153 """
   128 Function that returns the block definition associated to the block type given
   154 Function that returns the block definition associated to the block type given