O
Hope this clarifies a bit for everyone.
I'm an electrician familiar with holding circuits and such.
Can we back up a little and get the OP to explain why he felt it necessary to invert the normal methodology of PLC/HMI communications? What he's ap
parently trying to accomplish is pretty simple when the HMI acts as the communications client and the PLC is the server.
Can we back up a little and get the OP to explain why he felt it necessary to invert the normal methodology of PLC/HMI communications? What he's apparently trying to accomplish is pretty simple when the HMI acts as the communications client and the PLC is the server.
In the world of HMIs, the HMI acts as the client unless there is some compelling reason for it to be the server. The number of HMIs that support Modbus TCP server is a smaller subset of the HMIs that support Modbus TCP client.So then the question becomes can the Omron HMI be a Modbus Client?
The reason Im using IOScanner is I plan to connect a schneider inverter + MPPT charge controller to the PLC and read and manipulate values using the HMI.
I found the best way to manage all of the data was to use ioscanner as it will automatically poll the devices for information. Seemed logical at the time.
I plan to use this system for home automation and control.
I understand I'm a noob. I get it. Theres lots I dont know about programming PLC's.
I've now written this flip flop logic in the attachment. The timer is required to keep the input true long enough for the flip flop logic to act on it. Seems to be working reliably now but the delay input sucks. Im sure there is a better way to do this. Maybe a rising edge trigger? I've got the modbus polling to the hmi set at 100ms seems to work okay.
My m221 has serial only, no TCP. I am using a Real Time Automation RTU -> TCP Gateway. No problem sending and receiving comms.
Since I only have the serial to work with I am sticking with IOScanner.
The rising edge instruction is what you refer to as "one shot", correct? This is my next try at the flip flop logic which I find is working very good now.
Knowing the proper terminology has been very helpful. Thanks everyone.
PS %IN100.0.0 is my input from HMI, QN100.1.1 is the output the HMI checks to see what the status of the bit is.
The timer is required to keep the input true long enough for the flip flop logic to act on it.