vibram
Hello,

I read several threads but not found what I was looking.
I'm quite new to PLC thing but a small experience in custom PCB, MCU etc (not a lot, but small experience).

At the beginning my request is quite simple: I'm looking for a PLC with 230VAC in, 24VDC out and normal I/O stuff for a correct price (hobby, not professional) and almost everything I see on this forum and everywhere are PLC that require 24VDC In.
1 topic 2 questions:
1. Is this kind of product exist for hobby budget ?

2. If I want to create my custom PCB with an STM32 or ESP32, what are the hardware requirements to make it compatible with OPENPLC?

Sorry if dumb question 😉

Thank you 
Reply 0 0
thiagoralves
I don't know the answer for the first question, but the most PLCs take in 24VDC as it is very common to couple a PLC with a 24VDC power supply on a cabinet. For question 2, all you have to do is make sure you use one of the MCUs supported in the arduino ecosystem. Any board you can program on Arduino IDE can technically be used with OpenPLC after you write the hal (hardware abstraction layer) driver for it.
Reply 0 0
vibram

I don't know the answer for the first question, but the most PLCs take in 24VDC as it is very common to couple a PLC with a 24VDC power supply on a cabinet. For question 2, all you have to do is make sure you use one of the MCUs supported in the arduino ecosystem. Any board you can program on Arduino IDE can technically be used with OpenPLC after you write the hal (hardware abstraction layer) driver for it.


OK thank you for your answer.I used an arduino uno in another project but it was highly fucked up by high frequency. This kind of board is not suitable for this stuff.

if I design my board I would like to make it directly compatible with openPLC without rewriting HAL

Reply 0 0
thiagoralves
vibram wrote:

if I design my board I would like to make it directly compatible with openPLC without rewriting HAL


Then you will have to make sure that the pinout mapping matches your board layout (inputs and outputs)
Reply 0 0
jesawyers63
@vibram

You're best bet is to use a PLC that is designed for industrial use.  I would recommend the Arduino based Automation Direct P1AM-100 for a CPU.  The cost is $59.  You can get a power supply 120-240 VAC input that attaches directly to the CPU.  This power supply is $45.  There are many IO modules (DI, DO, AI, AO, etc) that can can be mounted directly to the CPU.

I should have said that I own a P1AM CPU with this power supply.  Also the P1AM is supported within OpenPLC.
Reply 0 0
vibram

Then you will have to make sure that the pinout mapping matches your board layout (inputs and outputs)



Hi Tiago, I went through your github project regarding openplc hardware. As far as I understand, you never finished it? 

I discovered the Norvi IOT PlC which is quite interesting.
Maybe I will try to copy it with the help of what you already did (all the input design with optocouplers and LED) 
Reply 0 0
thiagoralves
Hi @vibram yeah, the hardware project kinda stalled. There are so many companies nowadays making hardware but none of them have proper software, so I decided to focus more on software. I checked those Norvi PLCs, they are all based on the Arduino platform. This is good, which means that OpenPLC should be mostly compatible with them. Probably all that will be needed will be to adapt the pinout on the hal files so that the inputs and outputs are properly mapped. If they are willing to give me a few samples I could do it for them.
Reply 0 0
jesawyers63
@vibram Thanks for sharing the info on the Norvi PLCs.  This is what I have been looking for to do a couple of projects.  I needed 4-20mA inputs.
Reply 0 0
vibram
jesawyers63 wrote:
@vibram Thanks for sharing the info on the Norvi PLCs.  This is what I have been looking for to do a couple of projects.  I needed 4-20mA inputs.


If you by one, can you open it and take a picture of the circuit of inputs please? 
I'm curious to see optocouplers and other stuff 

Thank you 
Reply 0 0
jesawyers63
vibram wrote:


If you by one, can you open it and take a picture of the circuit of inputs please? 
I'm curious to see optocouplers and other stuff 

Thank you 



Will do.
Reply 1 0
Reply