heretic
Hi!

I have some isses with OpenPLC - I cannot even create a simple ladder program.

This is my LD program: 
I'm using %QX0.11 with the Ardiono Mega board, which is Pin 13 LED.

Markering_005.png
And this is my configuration:

Markering_006.png   
I generate the ST file and upload it:

Markering_007.png  What's the reason why it become like this? Is there not a simple tutorial or manual? Like a video how to use OpenPLC from start to end?
Reply 0 0
thiagoralves
http://www.openplcproject.com/reference-your-first-project
Reply 0 0
heretic


Thank you! That's a good start, but I have been working with PLC's before too. Especially Codesys.

But the error does not explain why my simple "turn led pin 13 ON"-program won't work.
Reply 0 0
heretic
I started the PLC and looks what happen. Is it something with modbus?

Markering_008.png

The ST file looks like this:

PROGRAM blink
VAR
lamp AT %QX0.11 : BOOL := FALSE;
END_VAR

lamp := TRUE;
END_PROGRAM


CONFIGURATION configuration0

RESOURCE resource0 ON PLC
TASK task1(INTERVAL := T#1s0ms,PRIORITY := 0);
PROGRAM intances1 WITH task1 : blink;
END_RESOURCE
END_CONFIGURATION


Edit: Also slave devices seems not to work.

Markering_009.png 
Reply 0 0
thiagoralves
If you're running on Linux, you need to start the runtime with sudo (as stated on the installation instructions on the website). Otherwise, you will get permission denied if you try to run servers on the low privileges ports (below 1024).

Slave devices and Monitoring are not available yet.
Reply 0 0
heretic
Ok. Yes. I'm running Linux.


sudo ./start_openplc.sh


This is the right command to use?

When will that be avaiable?
Reply 0 0
thiagoralves
heretic wrote:

This is the right command to use?

Yes.
heretic wrote:

When will that be avaiable?

It will be available when I finish coding it.
Reply 0 0
Reply