Noora
Hello,
I changed the hardware_layer.cpp for my BeagleBoard-X15 successfully.

And now when I run my openPLC with other PLC I/O board, I found its I/O initialization value is all 255, so I have to change my output_data initialization value from 0 to 255.

But I done it, void updateBuffersOut() function will change my output_data to 0.

So how can I solve it ?

Thanks a lot for any answers.
Quote 0 0
thiagoralves
I don’t know what changes you made on the hardware layer for your board, and I don’t know what exactly your output_data structure does. But if I would guess a way to solve your problem, would be to initialize the variables to 255 from your PLC program (ladder logic). The updateBuffersOut() will update OpenPLC’s buffers with the values dictated by the ladder logic. So, initialize your IOs from the ladder logic program, not the hardware layer  
Quote 0 0
Noora
Hi thiagoralves,
Thanks for you quick reply!

Now, we try to initialize the IOs from the ladder logic program.

Do you have any guide about PLCOpen Editor to provide me?

Best regards!
Noora
Quote 0 0
zhouw
I am looking for PLCOpenEditor tutorial too but found nothing. Is there a tutorial for PLCOpenEditor? Or there are any examples of the use of PLCOpenEditor's libraries?
Quote 0 0
thiagoralves
I'm writing tutorials and documentation about the project that will be available soon on the website. For now you could use the manual for LPC Manager from Smarteh. They use PLCOpenEditor as well, so you can look at their user manual for descriptions of FB and standard libraries. http://www.beremiz.org/LpcManager_UserManual.pdf
Quote 0 0
zhouw
thiagoralves wrote:
I'm writing tutorials and documentation about the project that will be available soon on the website. For now you could use the manual for LPC Manager from Smarteh. They use PLCOpenEditor as well, so you can look at their user manual for descriptions of FB and standard libraries. http://www.beremiz.org/LpcManager_UserManual.pdf


Thank you so much. The manual you mentioned is of great use. Hoping new tutorials and documentation go online too.
Quote 0 0