• Posts 559
  • Reputation 86
  • Member Since
  • Last Active
Email
    This user has not added any photos yet.
All Posts Topics Started Likes
newbie how-to/book/excercises
Hi matten,

Right now I'm writing a bunch of tutorials that I will upload to the OpenPLC project website. I know that many users without much PLC knowledge struggle to start using OpenPLC. For that reason, I'm creating a good hands-on documentation to have users initiated. Unfortunately it might take a while for me to finish everything (I might be done by mid June). So, meanwhile, you can read some PLC programming books online, like this one:  http://www.etf.unssa.rs.ba/~slubura/Procesni%20racunari/Programmable%20Logic%20Controllers%204th%20Edition%20%28W%20Bolton%29.pdf  (start from chapter 5)
0 0
Error accessing NodeJs WebServer
You got errors during the DNP3 stage, it seems that there is a problem with your gcc compiler. Are you sure you installed all the required packages (apt-get)? You could also answer “No” to the DNP3 question and you should be just fine. It will work without DNP3 support, which you probably won’t need anyway
0 0
Error accessing NodeJs WebServer
You probably got errors during the installation process that prevented the openplc executable from being generated. Try reinstalling openplc by running the ./build.sh script and post here the installation log
0 0
Communication between two PLCs
Would you mind sharing your solution with the community?
0 0
Communication between two PLCs
You don’t have to have anything connected to have values on the registers. Usually the easiest way to try Modbus is to have a little wire with positive voltage (3v3 in case of Raspberry Pi) connected to one of the input pins. Then you can read input status register that reflects directly the digital inputs from the pins
0 0
PLC Device identification
According to the Modbus standard, the Device Identification (function code 43) is used to request information about the slave device. This function code is not implemented in OpenPLC built-in Modbus, so it will respond with an invalid function code error. If you want, you can modify the modbus.cpp file inside the /core folder to have that function code implemented as you want. Then you can fake it to respond with identification strings just like any of your devices.
0 0
Communication between two PLCs
It seems that your java modbus implementation might be terminating the connection sooner than expected. Can you get any data from OpenPLC on your java application?
0 0
OpenPLC on Raspbian Stretch?
The instructions are the same. It should work on any version of Raspbian (Debian) from Jessie up.
0 0
Experiences with mySCADA
OpenPLC’s default SCADA software is ScadaBR. I’m planning to update OpenPLC website to add tutorials and more information about how to setup ScadaBR with OpenPLC. All the experience I’ve had with it has been great.
0 0
Problem with TP TON TOF
OpenPLC uses an earlier version of MatIEC. The one you’re using is probably the most recent one directly from their repository. I know they have made many changes to MatIEC since I got an working version for OpenPLC, but I don’t know exactly what was changed.

Maybe the problem is not with MatIEC, but with the auxiliary files you created to generate a binary application. Anyway, you will probably get better help if you ask your question directly to the MatIEC development group (Beremiz):  https://sourceforge.net/p/beremiz/mailman/
0 0
Problem with TP TON TOF
Have you tried to run your program on OpenPLC? I’ve run a bunch of TON and TOF tests with OpenPLC and they all ran fine. Your question is about a modified MatIEC example, so I don’t know if we can help you much.
0 0
OpenPLC-Zero
@LeissKG, your input, as the input of all the users on this forum, is extremely valuable to me. As you said, in the end it is always up to me to decide which features I'll add based on my expertise and free time, because for now I'm still the only developer in the project. I don't have much experience with analog circuits, so it kinda pushes me to do the simplest things, just to have something done. I'm thinking about having just a resistor divide circuit to divide the 0-10V input into something like 0-3.3V for the PCF8591. For the analog output I will have to have an op amp to amplify the output to 0-10V. Do you have any sample circuits to help me with that?
0 0
Problem with TP TON TOF
This is the correct behavior. The TON timer will keep the output off, unless the input is true for more than time PT. In your example, you must keep %IX0.5 true for more than 1000ms to see %QX0.2 going to true.
0 0
Build openPLC on ti beagleboard-x15
What were your modifications? It seems that your build process is failing when it tries to compile MatIEC. You must install all packages that are listed on the OpenPLC installation instructions for Raspberry Pi. The build log complains about not finding bison. Try installing all the packets first, and then building a clean OpenPLC from git (without modifications) using the blank driver. If that works, then you can try changing the hardware_layer.cpp with your modification and see what works and what doesn’t.
0 0
OpenPLC-Zero
I'm planning to make it simple, like just wiring up a PCF8591 on the Pi's I2C bus, which has 4-channel analog in and 1-channel analog out. Obviously this chip works with low voltages, so I might add some circuitry to amplify the range to 0-10V which is very common in industry. Do you have any suggestions in mind?

About the case, I don't plan to make it fit on the NEO's case. I might just ask Petri to design a square case for it. I'm designing it to be just a single board with the connectors on the edges, so a square casing with DIN rail mounting on the back should be a good start. However, when I make it available for selling, the case will be optional, so that users that just want the PCB can buy it with the lowest cost.
0 0
count post selected

Add a Website Forum to your website.