app-title:
beremiz
app-version:
3.0
Release: 2024-10-16
cwd:
C:\Program Files (x86)\OpenPLC_Editor
date:
Mon Jun 30 11:54:57 2025
e-type:
<class 'PermissionError'>
e-value:
[Errno 13] Permission denied: 'C:\\Program Files (x86)\\OpenPLC_Editor\\editor\\arduino\\src\\debug.c'
locals:
self: <ProjectController.ProjectController object at 0x00000165B8508460>
dvars: ['{&(RES0__INSTANCE0.SWITCH_1), BOOL_ENUM}', '{&(RES0__INSTANCE0.SWITCH_2), BOOL_ENUM}', '{&(RES0__INSTANCE0.COIL_1), BOOL_ENUM}', '{&(RES0__INSTANCE0.INPUT_1), BOOL_ENUM}', '{&(RES0__INSTANCE0.INPUT_2), BOOL_ENUM}', '{&(RES0__INSTANCE0.INPUT_3), BOOL_ENUM}', '{&(RES0__INSTANCE0.OUTPUT_1), BOOL_ENUM}', '{&(RES0__INSTANCE0.SR0.EN), BOOL_ENUM}', '{&(RES0__INSTANCE0.SR0.ENO), BOOL_ENUM}', '{&(RES0__INSTANCE0.SR0.S1), BOOL_ENUM}', '{&(RES0__INSTANCE0.SR0.R), BOOL_ENUM}', '{&(RES0__INSTANCE0.SR0.Q1), BOOL_ENUM}']
externs: ['extern TESTPI RES0__INSTANCE0;']
enums: ['BOOL_ENUM']
template_path: 'editor\\arduino\\src'
base_folder: 'C:\\Program Files (x86)\\OpenPLC_Editor\\editor'
loader: <jinja2.loaders.FileSystemLoader object at 0x00000165B9F047C0>
template: <Template 'debug.c.j2'>
cfile: 'C:\\Program Files (x86)\\OpenPLC_Editor\\editor\\arduino\\src\\debug.c'
platform:
Windows-10-10.0.19045-SP0
python-version:
3.9.10
self:
LastNewIndex: 0
Project: <Element {http://www.plcopen.org/xml/tc6_0201}project at 0x165b9682180>
ProjectBufferEnabled: True
ProjectBuffer: <PLCControler.UndoBuffer object at 0x00000165B9691AF0>
ProjectSaved: True
Buffering: False
FilePath: 'L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\plc.xml'
FileName: 'plc'
ProgramChunks: [('PROGRAM ', ()), ('TestPi', ('P::TestPi', 'name')), ('\n', ()), (' VAR', ()), ('\n', ()), (' ', ()), ('Switch_1', ('P::TestPi', 'var_local', 0, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_local', 0, 'type')), (';\n', ()), (' ', ()), ('Switch_2', ('P::TestPi', 'var_local', 1, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_local', 1, 'type')), (';\n', ()), (' ', ()), ('Coil_1', ('P::TestPi', 'var_local', 2, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_local', 2, 'type')), (';\n', ()), (' END_VAR\n', ()), (' VAR_INPUT', ()), ('\n', ()), (' ', ()), ('Input_1', ('P::TestPi', 'var_input', 3, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_input', 3, 'type')), (';\n', ()), (' ', ()), ('Input_2', ('P::TestPi', 'var_input', 4, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_input', 4, 'type')), (';\n', ()), (' ', ()), ('Input_3', ('P::TestPi', 'var_input', 5, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_input', 5, 'type')), (';\n', ()), (' END_VAR\n', ()), (' VAR_OUTPUT', ()), ('\n', ()), (' ', ()), ('Output_1', ('P::TestPi', 'var_output', 6, 'name')), (' ', ()), (': ', ()), ('BOOL', ('P::TestPi', 'var_output', 6, 'type')), (';\n', ()), (' END_VAR\n', ()), (' VAR', ()), ('\n', ()), (' ', ()), ('SR0', ('P::TestPi', 'var_local', 7, 'name')), (' ', ()), (': ', ()), ('SR', ('P::TestPi', 'var_local', 7, 'type')), (';\n', ()), (' END_VAR\n', ()), ('\n', ()), (' ', ()), ('SR0', ('P::TestPi', 'block', 2, 'name')), ('(', ()), ('S1', ('P::TestPi', 'block', 2, 'input', 0)), (' := ', ()), ('Input_1', ('P::TestPi', 'io_variable', 3, 'expression')), (', ', ()), ('R', ('P::TestPi', 'block', 2, 'input', 1)), (' := ', ()), ('Input_2', ('P::TestPi', 'io_variable', 4, 'expression')), (');\n', ()), (' ', ()), ('Output_1', ('P::TestPi', 'io_variable', 5, 'expression')), (' := ', ()), ('SR0.Q1', ('P::TestPi', 'block', 2, 'output', 0)), (';\n', ()), ('END_PROGRAM\n\n', ()), ('\nCONFIGURATION ', ()), ('Config0', ('C::Config0', 'name')), ('\n', ()), ('\n RESOURCE ', ()), ('Res0', ('R::Config0::Res0', 'name')), (' ON PLC\n', ()), (' TASK ', ()), ('task0', ('R::Config0::Res0', 'task', 0, 'name')), ('(', ()), ('INTERVAL := ', ()), ('T#20ms', ('R::Config0::Res0', 'task', 0, 'interval')), (',', ()), ('PRIORITY := ', ()), ('0', ('R::Config0::Res0', 'task', 0, 'priority')), (');\n', ()), (' PROGRAM ', ()), ('instance0', ('R::Config0::Res0', 'instance', 0, 'name')), (' WITH ', ()), ('task0', ('R::Config0::Res0', 'instance', 0, 'task')), (' : ', ()), ('TestPi', ('R::Config0::Res0', 'instance', 0, 'type')), (';\n', ()), (' END_RESOURCE\n', ()), ('END_CONFIGURATION\n', ())]
ProgramOffset: 23
NextCompiledProject: <Element {http://www.plcopen.org/xml/tc6_0201}project at 0x165b9686db0>
CurrentCompiledProject: None
ConfNodeTypes: [{'name': 'Native', 'types': <Element {http://www.plcopen.org/xml/tc6_0201}project at 0x165bd6024f0>}]
TotalTypesDict: OrderedDict([('SR', [('Standard function blocks', {'name': 'SR', 'type': 'functionBlock', 'extensible': False, 'inputs': [('S1', 'BOOL', 'none'), ('R', 'BOOL', 'none')], 'outputs': [('Q1', 'BOOL', 'none')], 'comment': 'The SR bistable is a latch where the Set dominates.', 'usage': '\n (BOOL:S1, BOOL:R) => (BOOL:Q1)'})]), ('RS', [('Standard function blocks', {'name': 'RS', 'type': 'functionBlock', 'extensible': False, 'inputs': [('S', 'BOOL', 'none'), ('R1', 'BOOL', 'none')], 'outputs': [('Q1', 'BOOL', 'none')], 'comment': 'The RS bistable is a latch where the Reset dominates.', 'usage': '\n (BOOL:S, BOOL:R1) => (BOOL:Q1)'})]), ('SEMA', [('Standard function blocks', {'name': 'SEMA', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLAIM', 'BOOL', 'none'), ('RELEASE', 'BOOL', 'none')], 'outputs': [('BUSY', 'BOOL', 'none')], 'comment': 'The semaphore provides a mechanism to allow software elements mutually exclusive access to certain resources.', 'usage': '\n (BOOL:CLAIM, BOOL:RELEASE) => (BOOL:BUSY)'})]), ('R_TRIG', [('Standard function blocks', {'name': 'R_TRIG', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLK', 'BOOL', 'none')], 'outputs': [('Q', 'BOOL', 'none')], 'comment': 'The output produces a single pulse when a rising edge is detected.', 'usage': '\n (BOOL:CLK) => (BOOL:Q)'})]), ('F_TRIG', [('Standard function blocks', {'name': 'F_TRIG', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLK', 'BOOL', 'none')], 'outputs': [('Q', 'BOOL', 'none')], 'comment': 'The output produces a single pulse when a falling edge is detected.', 'usage': '\n (BOOL:CLK) => (BOOL:Q)'})]), ('CTU', [('Standard function blocks', {'name': 'CTU', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'INT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, INT😋V) => (BOOL:Q, INT:CV)'})]), ('CTU_DINT', [('Standard function blocks', {'name': 'CTU_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'DINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, DINT😋V) => (BOOL:Q, DINT:CV)'})]), ('CTU_LINT', [('Standard function blocks', {'name': 'CTU_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'LINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, LINT😋V) => (BOOL:Q, LINT:CV)'})]), ('CTU_UDINT', [('Standard function blocks', {'name': 'CTU_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'UDINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, UDINT😋V) => (BOOL:Q, UDINT:CV)'})]), ('CTU_ULINT', [('Standard function blocks', {'name': 'CTU_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'ULINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, ULINT😋V) => (BOOL:Q, ULINT:CV)'})]), ('CTD', [('Standard function blocks', {'name': 'CTD', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'INT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, INT😋V) => (BOOL:Q, INT:CV)'})]), ('CTD_DINT', [('Standard function blocks', {'name': 'CTD_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'DINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, DINT😋V) => (BOOL:Q, DINT:CV)'})]), ('CTD_LINT', [('Standard function blocks', {'name': 'CTD_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'LINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, LINT😋V) => (BOOL:Q, LINT:CV)'})]), ('CTD_UDINT', [('Standard function blocks', {'name': 'CTD_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'UDINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, UDINT😋V) => (BOOL:Q, UDINT:CV)'})]), ('CTD_ULINT', [('Standard function blocks', {'name': 'CTD_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'ULINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, ULINT😋V) => (BOOL:Q, ULINT:CV)'})]), ('CTUD', [('Standard function blocks', {'name': 'CTUD', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'INT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, INT😋V) => (BOOL:QU, BOOL:QD, INT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'})]), ('CTUD_DINT', [('Standard function blocks', {'name': 'CTUD_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'DINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, DINT😋V) => (BOOL:QU, BOOL:QD, DINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'})]), ('CTUD_LINT', [('Standard function blocks', {'name': 'CTUD_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'LINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, LINT😋V) => (BOOL:QU, BOOL:QD, LINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'})]), ('CTUD_UDINT', [('Standard function blocks', {'name': 'CTUD_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'UDINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, UDINT😋V) => (BOOL:QU, BOOL:QD, UDINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'})]), ('CTUD_ULINT', [('Standard function blocks', {'name': 'CTUD_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'ULINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, ULINT😋V) => (BOOL:QU, BOOL:QD, ULINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'})]), ('TP', [('Standard function blocks', {'name': 'TP', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PT', 'TIME', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('ET', 'TIME', 'none')], 'comment': 'The pulse timer can be used to generate output pulses of a given time duration.', 'usage': '\n (BOOL:IN, TIME😋T) => (BOOL:Q, TIME:ET)'})]), ('TON', [('Standard function blocks', {'name': 'TON', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PT', 'TIME', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('ET', 'TIME', 'none')], 'comment': 'The on-delay timer can be used to delay setting an output true, for fixed period after an input becomes true.', 'usage': '\n (BOOL:IN, TIME😋T) => (BOOL:Q, TIME:ET)'})]), ('TOF', [('Standard function blocks', {'name': 'TOF', 'type': 'functionBlock', 'extensible': False, 'inputs'
TotalTypes: [{'name': 'Standard function blocks', 'list': [{'name': 'SR', 'type': 'functionBlock', 'extensible': False, 'inputs': [('S1', 'BOOL', 'none'), ('R', 'BOOL', 'none')], 'outputs': [('Q1', 'BOOL', 'none')], 'comment': 'The SR bistable is a latch where the Set dominates.', 'usage': '\n (BOOL:S1, BOOL:R) => (BOOL:Q1)'}, {'name': 'RS', 'type': 'functionBlock', 'extensible': False, 'inputs': [('S', 'BOOL', 'none'), ('R1', 'BOOL', 'none')], 'outputs': [('Q1', 'BOOL', 'none')], 'comment': 'The RS bistable is a latch where the Reset dominates.', 'usage': '\n (BOOL:S, BOOL:R1) => (BOOL:Q1)'}, {'name': 'SEMA', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLAIM', 'BOOL', 'none'), ('RELEASE', 'BOOL', 'none')], 'outputs': [('BUSY', 'BOOL', 'none')], 'comment': 'The semaphore provides a mechanism to allow software elements mutually exclusive access to certain resources.', 'usage': '\n (BOOL:CLAIM, BOOL:RELEASE) => (BOOL:BUSY)'}, {'name': 'R_TRIG', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLK', 'BOOL', 'none')], 'outputs': [('Q', 'BOOL', 'none')], 'comment': 'The output produces a single pulse when a rising edge is detected.', 'usage': '\n (BOOL:CLK) => (BOOL:Q)'}, {'name': 'F_TRIG', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CLK', 'BOOL', 'none')], 'outputs': [('Q', 'BOOL', 'none')], 'comment': 'The output produces a single pulse when a falling edge is detected.', 'usage': '\n (BOOL:CLK) => (BOOL:Q)'}, {'name': 'CTU', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'INT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, INT😋V) => (BOOL:Q, INT:CV)'}, {'name': 'CTU_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'DINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, DINT😋V) => (BOOL:Q, DINT:CV)'}, {'name': 'CTU_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'LINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, LINT😋V) => (BOOL:Q, LINT:CV)'}, {'name': 'CTU_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'UDINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, UDINT😋V) => (BOOL:Q, UDINT:CV)'}, {'name': 'CTU_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'ULINT', 'none')], 'comment': 'The up-counter can be used to signal when a count has reached a maximum value.', 'usage': '\n (BOOL:CU, BOOL:R, ULINT😋V) => (BOOL:Q, ULINT:CV)'}, {'name': 'CTD', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'INT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, INT😋V) => (BOOL:Q, INT:CV)'}, {'name': 'CTD_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'DINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, DINT😋V) => (BOOL:Q, DINT:CV)'}, {'name': 'CTD_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'LINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, LINT😋V) => (BOOL:Q, LINT:CV)'}, {'name': 'CTD_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'UDINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, UDINT😋V) => (BOOL:Q, UDINT:CV)'}, {'name': 'CTD_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CD', 'BOOL', 'rising'), ('LD', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CV', 'ULINT', 'none')], 'comment': 'The down-counter can be used to signal when a count has reached zero, on counting down from a preset value.', 'usage': '\n (BOOL:CD, BOOL:LD, ULINT😋V) => (BOOL:Q, ULINT:CV)'}, {'name': 'CTUD', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'INT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'INT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, INT😋V) => (BOOL:QU, BOOL:QD, INT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'}, {'name': 'CTUD_DINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'DINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'DINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, DINT😋V) => (BOOL:QU, BOOL:QD, DINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'}, {'name': 'CTUD_LINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'LINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'LINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, LINT😋V) => (BOOL:QU, BOOL:QD, LINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'}, {'name': 'CTUD_UDINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'UDINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'UDINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, UDINT😋V) => (BOOL:QU, BOOL:QD, UDINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'}, {'name': 'CTUD_ULINT', 'type': 'functionBlock', 'extensible': False, 'inputs': [('CU', 'BOOL', 'rising'), ('CD', 'BOOL', 'rising'), ('R', 'BOOL', 'none'), ('LD', 'BOOL', 'none'), ('PV', 'ULINT', 'none')], 'outputs': [('QU', 'BOOL', 'none'), ('QD', 'BOOL', 'none'), ('CV', 'ULINT', 'none'), ('CD_T', 'R_TRIG', 'none'), ('CU_T', 'R_TRIG', 'none')], 'comment': 'The up-down counter has two inputs CU and CD. It can be used to both count up on one input and down on the other.', 'usage': '\n (BOOL:CU, BOOL:CD, BOOL:R, BOOL:LD, ULINT😋V) => (BOOL:QU, BOOL:QD, ULINT:CV, R_TRIG:CD_T, R_TRIG:CU_T)'}, {'name': 'TP', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PT', 'TIME', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('ET', 'TIME', 'none')], 'comment': 'The pulse timer can be used to generate output pulses of a given time duration.', 'usage': '\n (BOOL:IN, TIME😋T) => (BOOL:Q, TIME:ET)'}, {'name': 'TON', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PT', 'TIME', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('ET', 'TIME', 'none')], 'comment': 'The on-delay timer can be used to delay setting an output true, for fixed period after an input becomes true.', 'usage': '\n (BOOL:IN, TIME😋T) => (BOOL:Q, TIME:ET)'}, {'name': 'TOF', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PT', 'TIME', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('ET', 'TIME', 'none')], 'comment': 'The off-delay timer can be used to delay setting an output false, for fixed period after input goes false.', 'usage': '\n (BOOL:IN, TIME😋T) => (BOOL:Q, TIME:ET)'}]}, {'name': 'Additional function blocks', 'list': [{'name': 'RTC', 'type': 'functionBlock', 'extensible': False, 'inputs': [('IN', 'BOOL', 'none'), ('PDT', 'DT', 'none')], 'outputs': [('Q', 'BOOL', 'none'), ('CDT', 'DT', 'none')], 'comment': 'The real time clock has many uses including time stamping, setting dates and times of day in batch reports, in alarm messages and so on.', 'usage': '\n (BOOL:IN, DT😋DT) => (BOOL:Q, DT:CDT)'}, {'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', '
ProgramFilePath: 'L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\generated_plc.st'
InstancesPathCollector: <plcopen.InstancesPathCollector.InstancesPathCollector object at 0x00000165B85083D0>
POUVariablesCollector: <plcopen.POUVariablesCollector.POUVariablesCollector object at 0x00000165B8508B50>
InstanceTagnameCollector: <plcopen.InstanceTagnameCollector.InstanceTagnameCollector object at 0x00000165B8508A00>
BlockInstanceCollector: <plcopen.BlockInstanceCollector.BlockInstanceCollector object at 0x00000165B8508E20>
VariableInfoCollector: <plcopen.VariableInfoCollector.VariableInfoCollector object at 0x00000165B96BD7C0>
BaseParams: <Element BaseParams at 0x165b95ca720>
MandatoryParams: None
CTNParams: ('BeremizRoot', <Element BeremizRoot at 0x165bc2e6040>😉
Parser: <xmlclass.xmlclass.XMLClassParser object at 0x00000165B960AA40>
BeremizRoot: <Element BeremizRoot at 0x165bc2e6040>
Children: {}
_View: None
ConfNodeMethods: [{'bitmap': 'editIECrawcode', 'name': 'Raw IEC code', 'tooltip': 'Edit raw IEC code added to code generated by PLCGenerator', 'method': '_editIECrawcode'}, {'bitmap': 'ManageFolder', 'name': 'Project Files', 'tooltip': 'Open a file explorer to manage project files', 'method': '_OpenProjectFiles'}]
_builder: <targets.Win32.Win32_target object at 0x00000165B9572430>
_buildType: 'simulator'
_connector: None
DispatchDebugValuesTimer: <wx._core.Timer object at 0x00000165B959E700>
DebugValuesBuffers: []
DebugTicks: []
AppFrame: <BeremizIDE.Beremiz object at 0x00000165A6D0EAF0>
logger: <BeremizIDE.LogPseudoFile object at 0x00000165B8492370>
StatusTimer: <wx._core.Timer object at 0x00000165B959E670>
Libraries: [<POULibrary.SimplePOULibraryFactory.<locals>.SimplePOULibrary object at 0x00000165BC2E4250>]
IECdebug_datas: {'__tick__': [<WeakKeyDictionary at 0x165b96919d0>, [], 'Registered', None, True]}
DebugUpdatePending: False
_ProgramList: [{'num': '0', 'C_path': 'RES0__INSTANCE0', 'type': 'TESTPI'}]
_VariablesList: [{'num': '0', 'vartype': 'FB', 'IEC_path': 'CONFIG0.RES0.INSTANCE0', 'C_path': 'RES0__INSTANCE0', 'type': 'TESTPI', 'derived': ''}, {'num': '1', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SWITCH_1', 'C_path': 'RES0__INSTANCE0.SWITCH_1', 'type': 'BOOL', 'derived': ''}, {'num': '2', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SWITCH_2', 'C_path': 'RES0__INSTANCE0.SWITCH_2', 'type': 'BOOL', 'derived': ''}, {'num': '3', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.COIL_1', 'C_path': 'RES0__INSTANCE0.COIL_1', 'type': 'BOOL', 'derived': ''}, {'num': '4', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_1', 'C_path': 'RES0__INSTANCE0.INPUT_1', 'type': 'BOOL', 'derived': ''}, {'num': '5', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_2', 'C_path': 'RES0__INSTANCE0.INPUT_2', 'type': 'BOOL', 'derived': ''}, {'num': '6', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_3', 'C_path': 'RES0__INSTANCE0.INPUT_3', 'type': 'BOOL', 'derived': ''}, {'num': '7', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.OUTPUT_1', 'C_path': 'RES0__INSTANCE0.OUTPUT_1', 'type': 'BOOL', 'derived': ''}, {'num': '8', 'vartype': 'FB', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0', 'C_path': 'RES0__INSTANCE0.SR0', 'type': 'SR', 'derived': ''}, {'num': '9', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.EN', 'C_path': 'RES0__INSTANCE0.SR0.EN', 'type': 'BOOL', 'derived': ''}, {'num': '10', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.ENO', 'C_path': 'RES0__INSTANCE0.SR0.ENO', 'type': 'BOOL', 'derived': ''}, {'num': '11', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.S1', 'C_path': 'RES0__INSTANCE0.SR0.S1', 'type': 'BOOL', 'derived': ''}, {'num': '12', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.R', 'C_path': 'RES0__INSTANCE0.SR0.R', 'type': 'BOOL', 'derived': ''}, {'num': '13', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.Q1', 'C_path': 'RES0__INSTANCE0.SR0.Q1', 'type': 'BOOL', 'derived': ''}]
_DbgVariablesList: [{'num': '1', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SWITCH_1', 'C_path': 'RES0__INSTANCE0.SWITCH_1', 'type': 'BOOL', 'derived': ''}, {'num': '2', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SWITCH_2', 'C_path': 'RES0__INSTANCE0.SWITCH_2', 'type': 'BOOL', 'derived': ''}, {'num': '3', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.COIL_1', 'C_path': 'RES0__INSTANCE0.COIL_1', 'type': 'BOOL', 'derived': ''}, {'num': '4', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_1', 'C_path': 'RES0__INSTANCE0.INPUT_1', 'type': 'BOOL', 'derived': ''}, {'num': '5', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_2', 'C_path': 'RES0__INSTANCE0.INPUT_2', 'type': 'BOOL', 'derived': ''}, {'num': '6', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.INPUT_3', 'C_path': 'RES0__INSTANCE0.INPUT_3', 'type': 'BOOL', 'derived': ''}, {'num': '7', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.OUTPUT_1', 'C_path': 'RES0__INSTANCE0.OUTPUT_1', 'type': 'BOOL', 'derived': ''}, {'num': '9', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.EN', 'C_path': 'RES0__INSTANCE0.SR0.EN', 'type': 'BOOL', 'derived': ''}, {'num': '10', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.ENO', 'C_path': 'RES0__INSTANCE0.SR0.ENO', 'type': 'BOOL', 'derived': ''}, {'num': '11', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.S1', 'C_path': 'RES0__INSTANCE0.SR0.S1', 'type': 'BOOL', 'derived': ''}, {'num': '12', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.R', 'C_path': 'RES0__INSTANCE0.SR0.R', 'type': 'BOOL', 'derived': ''}, {'num': '13', 'vartype': 'VAR', 'IEC_path': 'CONFIG0.RES0.INSTANCE0.SR0.Q1', 'C_path': 'RES0__INSTANCE0.SR0.Q1', 'type': 'BOOL', 'derived': ''}]
_IECPathToIdx: {'CONFIG0.RES0.INSTANCE0.SWITCH_1': (0, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SWITCH_2': (1, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.COIL_1': (2, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.INPUT_1': (3, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.INPUT_2': (4, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.INPUT_3': (5, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.OUTPUT_1': (6, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SR0.EN': (7, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SR0.ENO': (8, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SR0.S1': (9, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SR0.R': (10, 'BOOL'), 'CONFIG0.RES0.INSTANCE0.SR0.Q1': (11, 'BOOL')}
_Ticktime: 20000000
TracedIECPath: []
TracedIECTypes: []
ChangesToSave: False
CTNParent: None
CTNType: 'Beremiz'
ProjectPath: 'L:\\Engineering\\(A) Files For OEE System\\OpenPLC files'
BuildPath: None
DefaultBuildPath: 'L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build'
debug_break: False
previous_plcstate: 'Disconnected'
StatusMethods: [{'bitmap': 'Build', 'name': 'Build', 'tooltip': 'Build project into build folder', 'method': '_Build', 'shown': False}, {'bitmap': 'Clean', 'name': 'Clean', 'tooltip': 'Clean project build folder', 'method': '_Clean', 'enabled': False, 'shown': False}, {'bitmap': 'Run', 'name': 'Run', 'tooltip': 'Start PLC Simulation', 'method': '_Run', 'shown': True}, {'bitmap': 'Stop', 'name': 'Stop', 'tooltip': 'Stop PLC', 'method': '_Stop', 'shown': False}, {'bitmap': 'Connect', 'name': 'Connect', 'tooltip': 'Connect to the target PLC', 'method': '_Connect', 'shown': False}, {'bitmap': 'Transfer', 'name': 'Transfer', 'tooltip': 'Transfer PLC', 'method': '_Transfer', 'shown': False}, {'bitmap': 'Disconnect', 'name': 'Disconnect', 'tooltip': 'Disconnect from PLC', 'method': '_Disconnect', 'shown': False}, {'bitmap': 'Repair', 'name': 'Repair', 'tooltip': 'Repair broken PLC', 'method': '_Repair', 'shown': False}, {'bitmap': 'IDManager', 'name': 'ID Manager', 'tooltip': 'Manage secure connection identities', 'method': '_showIDManager', 'shown': False}, {'bitmap': 'ShowIECcode', 'name': 'Show code', 'tooltip': 'Show IEC code generated by PLCGenerator', 'method': '_showIECcode', 'shown': False}, {'bitmap': 'down', 'name': 'Generate Program', 'tooltip': 'Generate program for OpenPLC Runtime', 'method': '_generateOpenPLC', 'shown': True}, {'bitmap': 'arduino', 'name': 'Upload Arduino', 'tooltip': 'Transfer program to PLC', 'method': '_generateArduino', 'shown': True}, {'bitmap': 'Debug', 'name': 'Debug PLC', 'tooltip': 'Live debug remote PLC', 'method': '_debugPLC', 'shown': True}]
DebugToken: None
LastComplainDebugToken: None
debug_status: 'Stopped'
IECcodeDigest: 'd0a48e4de212d28d899bfcb017f87260'
LastBuiltIECcodeDigest: 'd0a48e4de212d28d899bfcb017f87260'
arduinoSettings: {}
CurrentElementEditing: None
PLCGeneratedLocatedVars: []
PLCGeneratedCFiles: ['L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\Config0.c', 'L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\Res0.c']
plcCFLAGS: '"-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w'
LocationCFilesAndCFLAGS: [('', [('L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\plc_main.c', '"-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w'), ('L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\plc_debugger.c', '"-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w')], False), ((), [('L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\Config0.c', '"-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w "-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w'), ('L:\\Engineering\\(A) Files For OEE System\\OpenPLC files\\build\\Res0.c', '"-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w "-IC:\\Program Files (x86)\\OpenPLC_Editor\\matiec\\lib\\C" -w')], False)]
LDFLAGS: ['', '']
traceback:
File "C:\Program Files (x86)\OpenPLC_Editor\.\editor\BeremizIDE.py", line 836, in OnMenu
getattr(self.CTR, method)()
File "C:\Program Files (x86)\OpenPLC_Editor\.\editor\ProjectController.py", line 2246, in _generateOpenPLC
self.generate_embed_plc_debugger()
File "C:\Program Files (x86)\OpenPLC_Editor\.\editor\ProjectController.py", line 1168, in generate_embed_plc_debugger
with open(cfile, 'w') as f:
<class 'PermissionError'>: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\OpenPLC_Editor\\editor\\arduino\\src\\debug.c'
wx-platform:
__WXMSW__
wx-version:
4.2.0