Karyadi Sulaiman

When I start, suddenly pop up.
After that I can start again.

Reply 0 0
thiagoralves
Were you trying to debug a program when this happened, or did this error appeared when you launched OpenPLC Editor? Does it happen every time you start the program? Can you provide a little more context?
Reply 0 0
Karyadi Sulaiman

I follow your tutorial "Basics 03_ Programming an Arduino Board with OpenPLC". I can Start PLC Simulation, but when I change Task0 cyclic T#500ms, it can't run Start PLC Simulation anymore, and Error pop up. I create Bug Report.

Mean while I update the OpenPLC editor, the Start PLC Simulation is run again.

Now I have another Start PLC Simulation error:

Start build in C:\PGR\OpenPLC\Counter\build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Collecting data types
Collecting POUs
Generate POU Counter
Generate Config(s)
Compiling IEC Program into C code...
"C:\Users\karya\OpenPLC_Editor\matiec\iec2c.exe" -f -l -p -I "C:\Users\karya\OpenPLC_Editor\matiec\lib" -T "C:\PGR\OpenPLC\Counter\build" "C:\PGR\OpenPLC\Counter\build\plc.st"
exited with status 1 (pid 2200)
C:\PGR\OpenPLC\Counter\build\plc.st:77-6..77-18: error: invalid variable(s) declaration.
In section: FUNCTION_BLOCK python_gear
0077: COUNTER : UINT;
C:\PGR\OpenPLC\Counter\build\plc.st:84-37..84-36: error: invalid parameter(s) defined in function invocation of ST expression.
In section: FUNCTION_BLOCK python_gear
0084: _TMP_ADD10_OUT := ADD(COUNTER, 1);
C:\PGR\OpenPLC\Counter\build\plc.st:87-4..87-10: error: invalid variable before ':=' in ST assignment statement.
In section: FUNCTION_BLOCK python_gear
0087: COUNTER := _TMP_SEL15_OUT;

3 error(s) found. Bailing out!

Error : IEC to C compiler returned 1
PLC code generation failed !

Would you please advised?

 

OpenPLC.jpg
Reply 0 0
thiagoralves
Something is wrong with your programming, but I can’t tell what it is from a screenshot
Reply 0 0
Karyadi Sulaiman
Here I attach the screen shot. Ladder.jpg Desc.jpg
Reply 0 0
thiagoralves
I think the problem could be the name of your project or variables. I don’t think the compiler likes you using “counter”. But I can’t be sure because, again, it is hard to tell from screenshots
Reply 0 0
Karyadi Sulaiman
Yes, its run well, when  I change project name to CNT.

Thank you very much for your kind support.
Reply 0 0
parjoe81
I just got a raspberry pi 500, tried to run the OPEN PLC application but it didn't work. I have included a bug report for reference..
Reply 0 0
thiagoralves
OpenPLC Editor is supposed to run on your PC, not on the Raspberry Pi
Reply 0 0
Write a reply...
Reply