KevinLi
Dear Administrator! When I was compiling the program, an error message appeared. The reason for this error was that I had added an extra line in the ladder diagram, shown in the red box in the figure. When I deleted this line, the compilation was successful. I uploaded the bug record, this problem bothered me for a long time, please help me! Thanks a lot!QQ20241018-173603.png
app-title:
beremiz

app-version:
3.0
Release: 2024-02-05

cwd:
C:\Users\X\OpenPLC_Editor

date:
Fri Oct 18 17:35:11 2024

e-type:
<class 'TypeError'>

e-value:
'<' not supported between instances of 'tuple' and 'str'

locals:
    self: <PLCGenerator.PouProgramGenerator object at 0x000002745BF32D00>
    paths: [["[('DI11', ('P::SLB', 'contact', 48, 'reference'))]", ([None], [None])], ["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]", ([None], [None])], "[('NOT(', ('P::SLB', 'contact', 110, 'negated')), ('Control01', ('P::SLB', 'contact', 110, 'reference')), (')', ())]"]
    same_paths: {'[([None], [None])]': [(["[('DI11', ('P::SLB', 'contact', 48, 'reference'))]"], 0), (["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]"], 1)]}
    uncomputed_index: []
    factorized_paths: [["[('NOT(', ('P::SLB', 'contact', 110, 'negated')), ('Control01', ('P::SLB', 'contact', 110, 'reference')), (')', ())]"], [(["[('DI11', ('P::SLB', 'contact', 48, 'reference'))]"], ["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]"]), ([None], [None])]]
    num: 1
    path: ["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]"]
    str_path: '[([None], [None])]'
    item: ["[('NOT(', ('P::SLB', 'contact', 110, 'negated')), ('Control01', ('P::SLB', 'contact', 110, 'reference')), (')', ())]"]
    same_path: '[([None], [None])]'
    elements: [(["[('DI11', ('P::SLB', 'contact', 48, 'reference'))]"], 0), (["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]"], 1)]
    elements_paths: [["[('DI11', ('P::SLB', 'contact', 48, 'reference'))]"], ["[('DI12', ('P::SLB', 'contact', 50, 'reference'))]"]]

platform:
Windows-10-10.0.19045-SP0

python-version:
3.9.10

self:
    ParentGenerator: <PLCGenerator.ProgramGenerator object at 0x000002745BF32340>
    Name: 'SLB'
    Type: 'PROGRAM'
    TagName: 'P::SLB'
    CurrentIndent: '  '
    ReturnType: None
    Interface: [('VAR_EXTERNAL', None, False, [('BOOL', 'Control01', None, None), ('BOOL', 'Control02', None, None), ('BOOL', 'Control03', None, None), ('BOOL', 'Control04', None, None), ('BOOL', 'DI01', None, None), ('BOOL', 'DI02', None, None), ('BOOL', 'DI03', None, None), ('BOOL', 'DI04', None, None), ('BOOL', 'DI05', None, None), ('BOOL', 'DI06', None, None), ('BOOL', 'DI07', None, None), ('BOOL', 'DI08', None, None), ('BOOL', 'DI09', None, None), ('BOOL', 'DI10', None, None), ('BOOL', 'DI11', None, None), ('BOOL', 'DI12', None, None), ('BOOL', 'OUT01', None, None), ('BOOL', 'OUT02', None, None), ('BOOL', 'OUT03', None, None), ('BOOL', 'OUT04', None, None)]), ('VAR', None, False, [('CTU', 'CTU0', None, None), ('BOOL', 'C1', None, None), ('BOOL', 'C2', None, None), ('BOOL', 'B1_SB', None, None), ('BOOL', 'B1_CS', None, None), ('BOOL', 'B2_SB', None, None), ('BOOL', 'B2_CS', None, None), ('TON', 'TON0', None, None), ('TON', 'TON1', None, None), ('CTU', 'CTU1', None, None), ('TON', 'TON2', None, None), ('TON', 'TON3', None, None), ('R_TRIG', 'R_TRIG1', None, None), ('R_TRIG', 'R_TRIG2', None, None), ('R_TRIG', 'R_TRIG3', None, None), ('R_TRIG', 'R_TRIG4', None, None), ('R_TRIG', 'R_TRIG5', None, None), ('R_TRIG', 'R_TRIG6', None, None)])]
    InitialSteps: []
    ComputedBlocks: {<Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745a5a1400>: True, <Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745a58d9a0>: True, <Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745a58e9f0>: True, <Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745bb0fb30>: True, <Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745a58dbd0>: True, <Element {http://www.plcopen.org/xml/tc6_0201}block at 0x2745a582310>: True}
    ComputedConnectors: {}
    ConnectionTypes: {<Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfeff90>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfefdb0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfeff40>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8090>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe8ea0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8f90>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe85e0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe89f0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe8ae0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8e50>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe8950>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3810>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3ea0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3bd0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3860>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe34a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe32c0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8630>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe89a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3d60>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe3590>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3220>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3130>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe3540>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3400>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe3040>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe6950>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6810>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6ea0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe69f0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6c70>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe61d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe6590>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe68b0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe66d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe6180>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6770>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7bd0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7e50>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7040>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7f90>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7d60>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe79a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7770>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7540>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7270>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7180>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe73b0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdeae0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfded60>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdebd0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfde900>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfde5e0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfde4a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfde6d0>: 'INT', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5360>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5900>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfd5090>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5ae0>: 'INT', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfd5a90>: 'INT', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfd5180>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5d60>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfd5cc0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5ea0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfd5450>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe76d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe71d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7810>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe7a90>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe7cc0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6900>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe6090>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe6630>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe36d0>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3180>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3630>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe31d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe3900>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3360>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe3b80>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe39a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8900>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe8860>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfefd60>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfefcc0>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfef720>: 'TIME', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfef9a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfef8b0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfef810>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfef270>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfef1d0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfef130>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdf5e0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfdf3b0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdff90>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfdf7c0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdf450>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfdfb30>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfdfc20>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe2680>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe2040>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe2400>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe19a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe1040>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe17c0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe1770>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe2130>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointOut at 0x2745bfe29a0>: 'BOOL', <Element {http://www.plcopen.org/xml/tc6_0201}connectionPointIn at 0x2745bfe1f40>: 'BOOL', <Element {http://www.
    RelatedConnections: []
    SFCNetworks: {'Steps': {}, 'Transitions': {}, 'Actions': {}}
    SFCComputedBlocks: []
    ActionNumber: 0
    Program: [('  ', ()), ('OUT01', ('P::SLB', 'coil', 8, 'reference')), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 7, 'negated')), ('OUT02', ('P::SLB', 'contact', 7, 'reference')), (')', ()), (' AND ', ()), ('DI01', ('P::SLB', 'contact', 6, 'reference')), (' AND ', ()), ('(', ()), ('DI06', ('P::SLB', 'contact', 17, 'reference')), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 16, 'negated')), ('DI03', ('P::SLB', 'contact', 16, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 15, 'reference')), (' OR ', ()), ('DI08', ('P::SLB', 'contact', 21, 'reference')), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 20, 'negated')), ('DI03', ('P::SLB', 'contact', 20, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 19, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 13, 'negated')), ('DI02', ('P::SLB', 'contact', 13, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 12, 'negated')), ('DI03', ('P::SLB', 'contact', 12, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 11, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 24, 'negated')), ('DI03', ('P::SLB', 'contact', 24, 'reference')), (')', ()), (' AND ', ()), ('DI10', ('P::SLB', 'contact', 22, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 27, 'negated')), ('DI03', ('P::SLB', 'contact', 27, 'reference')), (')', ()), (' AND ', ()), ('Control01', ('P::SLB', 'contact', 26, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 5, 'negated')), ('OUT03', ('P::SLB', 'contact', 5, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 4, 'negated')), ('C1', ('P::SLB', 'contact', 4, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 3, 'negated')), ('DI03', ('P::SLB', 'contact', 3, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 2, 'reference')), (' OR ', ()), ('OUT01', ('P::SLB', 'contact', 29, 'reference')), (')', ()), (';\n', ()), ('  ', ()), ('R_TRIG1', ('P::SLB', 'contact', 31, 'rising')), ('(CLK := ', ()), ('OUT01', ('P::SLB', 'contact', 31, 'reference')), (');\n', ()), ('  ', ()), ('R_TRIG2', ('P::SLB', 'block', 32, 'input', 0, 'rising')), ('(CLK := ', ()), ('R_TRIG1.Q', ('P::SLB', 'contact', 31, 'rising')), (');\n', ()), ('  ', ()), ('R_TRIG3', ('P::SLB', 'contact', 34, 'rising')), ('(CLK := ', ()), ('C2', ('P::SLB', 'contact', 34, 'reference')), (');\n', ()), ('  ', ()), ('CTU0', ('P::SLB', 'block', 32, 'name')), ('(', ()), ('CU', ('P::SLB', 'block', 32, 'input', 0)), (' := ', ()), ('R_TRIG2.Q', ('P::SLB', 'block', 32, 'input', 0, 'rising')), (', ', ()), ('R', ('P::SLB', 'block', 32, 'input', 1)), (' := ', ()), ('R_TRIG3.Q', ('P::SLB', 'contact', 34, 'rising')), (', ', ()), ('PV', ('P::SLB', 'block', 32, 'input', 2)), (' := ', ()), ('1', ('P::SLB', 'io_variable', 37, 'expression')), (');\n', ()), ('  ', ()), ('C1', ('P::SLB', 'coil', 35, 'reference')), (' := ', ()), ('CTU0.Q', ('P::SLB', 'block', 32, 'output', 0)), (';\n', ()), ('  ', ()), ('TON0', ('P::SLB', 'block', 164, 'name')), ('(', ()), ('IN', ('P::SLB', 'block', 164, 'input', 0)), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 40, 'negated')), ('DI03', ('P::SLB', 'contact', 40, 'reference')), (')', ()), (' AND ', ()), ('OUT01', ('P::SLB', 'contact', 38, 'reference')), (', ', ()), ('PT', ('P::SLB', 'block', 164, 'input', 1)), (' := ', ()), ('T#15S', ('P::SLB', 'io_variable', 161, 'expression')), (');\n', ()), ('  ', ()), ('B1_SB', ('P::SLB', 'coil', 165, 'reference')), (' := ', ()), ('TON0.Q', ('P::SLB', 'block', 164, 'output', 0)), (';\n', ()), ('  ', ()), ('TON1', ('P::SLB', 'block', 44, 'name')), ('(', ()), ('IN', ('P::SLB', 'block', 44, 'input', 0)), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 43, 'negated')), ('DI03', ('P::SLB', 'contact', 43, 'reference')), (')', ()), (', ', ()), ('PT', ('P::SLB', 'block', 44, 'input', 1)), (' := ', ()), ('T#30M', ('P::SLB', 'io_variable', 45, 'expression')), (');\n', ()), ('  ', ()), ('B1_CS', ('P::SLB', 'coil', 46, 'reference')), (' := ', ()), ('TON1.Q', ('P::SLB', 'block', 44, 'output', 0)), (';\n', ()), ('  ', ()), ('OUT03', ('P::SLB', 'coil', 79, 'reference')), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 78, 'negated')), ('OUT04', ('P::SLB', 'contact', 78, 'reference')), (')', ()), (' AND ', ()), ('DI02', ('P::SLB', 'contact', 57, 'reference')), (' AND ', ()), ('(', ()), ('DI05', ('P::SLB', 'contact', 62, 'reference')), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 63, 'negated')), ('DI04', ('P::SLB', 'contact', 63, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 64, 'reference')), (' OR ', ()), ('DI07', ('P::SLB', 'contact', 66, 'reference')), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 67, 'negated')), ('DI04', ('P::SLB', 'contact', 67, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 68, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 56, 'negated')), ('OUT01', ('P::SLB', 'contact', 56, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 55, 'negated')), ('C2', ('P::SLB', 'contact', 55, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 54, 'negated')), ('DI04', ('P::SLB', 'contact', 54, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 53, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 58, 'negated')), ('DI01', ('P::SLB', 'contact', 58, 'reference')), (')', ()), (' AND ', ()), ('NOT(', ('P::SLB', 'contact', 59, 'negated')), ('DI04', ('P::SLB', 'contact', 59, 'reference')), (')', ()), (' AND ', ()), ('DI09', ('P::SLB', 'contact', 60, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 70, 'negated')), ('DI04', ('P::SLB', 'contact', 70, 'reference')), (')', ()), (' AND ', ()), ('DI10', ('P::SLB', 'contact', 71, 'reference')), (' OR ', ()), ('NOT(', ('P::SLB', 'contact', 73, 'negated')), ('DI04', ('P::SLB', 'contact', 73, 'reference')), (')', ()), (' AND ', ()), ('Control03', ('P::SLB', 'contact', 74, 'reference')), (' OR ', ()), ('OUT03', ('P::SLB', 'contact', 76, 'reference')), (')', ()), (';\n', ()), ('  ', ()), ('R_TRIG4', ('P::SLB', 'contact', 82, 'rising')), ('(CLK := ', ()), ('OUT03', ('P::SLB', 'contact', 82, 'reference')), (');\n', ()), ('  ', ()), ('R_TRIG5', ('P::SLB', 'block', 83, 'input', 0, 'rising')), ('(CLK := ', ()), ('R_TRIG4.Q', ('P::SLB', 'contact', 82, 'rising')), (');\n', ()), ('  ', ()), ('R_TRIG6', ('P::SLB', 'contact', 84, 'rising')), ('(CLK := ', ()), ('C1', ('P::SLB', 'contact', 84, 'reference')), (');\n', ()), ('  ', ()), ('CTU1', ('P::SLB', 'block', 83, 'name')), ('(', ()), ('CU', ('P::SLB', 'block', 83, 'input', 0)), (' := ', ()), ('R_TRIG5.Q', ('P::SLB', 'block', 83, 'input', 0, 'rising')), (', ', ()), ('R', ('P::SLB', 'block', 83, 'input', 1)), (' := ', ()), ('R_TRIG6.Q', ('P::SLB', 'contact', 84, 'rising')), (', ', ()), ('PV', ('P::SLB', 'block', 83, 'input', 2)), (' := ', ()), ('1', ('P::SLB', 'io_variable', 86, 'expression')), (');\n', ()), ('  ', ()), ('C2', ('P::SLB', 'coil', 87, 'reference')), (' := ', ()), ('CTU1.Q', ('P::SLB', 'block', 83, 'output', 0)), (';\n', ()), ('  ', ()), ('TON2', ('P::SLB', 'block', 92, 'name')), ('(', ()), ('IN', ('P::SLB', 'block', 92, 'input', 0)), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 91, 'negated')), ('DI03', ('P::SLB', 'contact', 91, 'reference')), (')', ()), (' AND ', ()), ('OUT03', ('P::SLB', 'contact', 89, 'reference')), (', ', ()), ('PT', ('P::SLB', 'block', 92, 'input', 1)), (' := ', ()), ('T#15S', ('P::SLB', 'io_variable', 93, 'expression')), (');\n', ()), ('  ', ()), ('B2_SB', ('P::SLB', 'coil', 94, 'reference')), (' := ', ()), ('TON2.Q', ('P::SLB', 'block', 92, 'output', 0)), (';\n', ()), ('  ', ()), ('TON3', ('P::SLB', 'block', 98, 'name')), ('(', ()), ('IN', ('P::SLB', 'block', 98, 'input', 0)), (' := ', ()), ('NOT(', ('P::SLB', 'contact', 97, 'negated')), ('DI04', ('P::SLB', 'contact', 97, 'reference')), (')', ()), (', ', ()), ('PT', ('P::SLB', 'block', 98, 'input', 1)), (' := ', ()), ('T#30M', ('P::SLB', 'io_variable', 99, 'expression')), (');\n', ()), ('  ', ()), ('B2_CS', ('P::SLB', 'coil', 100, 'reference')), (' := ', ()), ('TON3.Q', ('P::SLB', 'block', 98, 'output', 0)), (';\n', ()), ('  ', ()), ('OUT04', ('P::SLB', 'coil', 107, 'reference')), (' := ', ()), ('DI02', ('P::SLB', 'contact', 106, 'reference')), (' AND ', ()), ('(', ()), ('Control04', ('P::SLB', 'contact', 111, 'reference')), (' OR ', ()), ('DI11', ('P::SLB', 'contact', 103, 'reference')), (' AND ', ()), ('(', ()), ('TRUE', ()), (' OR ', ()), ('TRUE', ()), (')', ()), (' OR ', ()), ('DI12', ('P::SLB', 'contact', 105, 'reference')), (')', ()), (';\n', ())]
    Errors: []
    Warnings: []

traceback:
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\BeremizIDE.py", line 829, in OnMenu
    getattr(self.CTR, method)()
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\ProjectController.py", line 2187, in _generateOpenPLC
    if (self._Build() is True):
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\ProjectController.py", line 1275, in _Build
    IECGenRes = self._Generate_SoftPLC()
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\ProjectController.py", line 777, in _Generate_SoftPLC
    if self._Generate_PLC_ST():
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\ProjectController.py", line 806, in _Generate_PLC_ST
    _program, errors, warnings = self.GenerateProgram(
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCControler.py", line 453, in GenerateProgram
    self.ProgramChunks = GenerateCurrentProgram(self, self.Project, errors, warnings,**kwargs)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1786, in GenerateCurrentProgram
    generator.GenerateProgram(log,**kwargs)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 482, in GenerateProgram
    self.GeneratePouProgram(pou_name)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 260, in GeneratePouProgram
    program = pou_program.GenerateProgram(pou)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1735, in GenerateProgram
    self.ComputeProgram(pou)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1049, in ComputeProgram
    expression = self.ComputeExpression(body, connections)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1390, in ComputeExpression
    paths = self.GeneratePaths(connections, body, order, to_inout)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1356, in GeneratePaths
    factorized_paths = self.FactorizePaths(result)
  File "C:\Users\XSJ\OpenPLC_Editor\.\editor\PLCGenerator.py", line 1087, in FactorizePaths
    factorized_paths.sort()
<class 'TypeError'>: '<' not supported between instances of 'tuple' and 'str'

wx-platform:
__WXMSW__

wx-version:
4.2.0
 
Reply 0 0
thiagoralves
Update your editor and try again. Since your version is a bit old you might need to download and install the new version from the Autonomy website
Reply 0 0
Reply