I am using a Conduit Multitech to create a LoRa net and control some devices.
The Conduit has internally the NodeRed and I am using it in order to send payloads to the Conduit and those payloads are saved in the downlink queue.
Now I am sending that payloads in two different ways:
Injecting timestamps from the NodeRed interface (just pressing the timestamp button) and, as a consequence, activating the function I want.
Through an external interface connected to the NodeRed via MQTT which also activate those functions.
What I want to do is to send that payloads (just to activate the function I am activating now through the timestampt button or the external interface) but using my PLC instead.
Then my question is what blocks/commands I should use in order to recognize from NodeRed that I'm sending that payloads from the PLC (it has the protocols I told you in the previous message)
You said it can do profibus, ethecat and canopen. I don't know much about any of those and can't see any relevant nodes on flows.nodered.org.
Do you currently have any communication between the device running node-red and the PLC?
Do you have to pass data between node-red and the PLC or just trigger an action? If just a trigger then presumably you could use an output on the PLC connected to a digital input that node-red can read.
I meant any way that node-red can see a digital input that could be triggered by the PLC. If the node-red device can see digital inputs on the concentrator then you could do it that way.
I presume by E-net you mean ethernet, What protocols or services does it support on that interface?
Why could you not set the correct IP?
Yes, Ethernet. It supports RS-232 and RS-485. I was trying differents configurations that NodeRed allows me with TCP and UDP and I couldn't make it work.
I saw some tutorials about people using sensors connected to a PLC (simmilar than the one I have) to send payloads through NodeRed, but they are using Modbus Blocks in NodeRed, as I am running the NodeRed from the concentrator and I cannot download it because is a bit limited.
About the OPC server, I don't have it... but isn't needed a computer for that?
The think is that I am not going to use any computer in the aplication, just the Interface->PLC->LoRa concentrator with NodeRed.
I am a bit lost with this... another solution I am going to try is to use an Arduino with two modules: one with an RS-232 connection to send the data from my PLC to the Arduino and a LoRa module to send that data directly to the concentrator... otherwise I have no idea how to do it.
I connected the PLC to the concentrator via Ethernet and I tried using the TCP/UDP blocks that NodeRed has internally but I couldn't communicate between them.