plcopen/structures.py
changeset 1330 96b242e4c59d
parent 1320 bb04c41cbee9
child 1390 0f4d32a033e0
equal deleted inserted replaced
1328:a2f2981df9b0 1330:96b242e4c59d
    40 #                        Function Block Types definitions
    40 #                        Function Block Types definitions
    41 #-------------------------------------------------------------------------------
    41 #-------------------------------------------------------------------------------
    42 
    42 
    43 ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
    43 ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
    44 
    44 
    45 StdBlockLibrary = LoadProject(os.path.join(ScriptDirectory, "Standard_Function_Blocks.xml"))
    45 StdBlockLibrary, error = LoadProject(
    46 AddnlBlockLibrary = LoadProject(os.path.join(ScriptDirectory, "Additional_Function_Blocks.xml"))
    46     os.path.join(ScriptDirectory, "Standard_Function_Blocks.xml"))
       
    47 AddnlBlockLibrary, error = LoadProject(
       
    48     os.path.join(ScriptDirectory, "Additional_Function_Blocks.xml"))
    47 
    49 
    48 StdBlockComments = {
    50 StdBlockComments = {
    49     "SR": _("SR bistable\nThe SR bistable is a latch where the Set dominates."),
    51     "SR": _("SR bistable\nThe SR bistable is a latch where the Set dominates."),
    50     "RS": _("RS bistable\nThe RS bistable is a latch where the Reset dominates."),
    52     "RS": _("RS bistable\nThe RS bistable is a latch where the Reset dominates."),
    51     "SEMA": _("Semaphore\nThe semaphore provides a mechanism to allow software elements mutually exclusive access to certain ressources."),
    53     "SEMA": _("Semaphore\nThe semaphore provides a mechanism to allow software elements mutually exclusive access to certain ressources."),