lraja143
Dear All,
 
I am trying to interface Delta (DOP-107EV) HMI with Rpi4 using Modbus TCP/IP and openPLC. 
 
tried with led blinking program
 
1. PLC code: 
blink code.jpg
 
Modbus address mapping
led1.jpg
 
2. Configured Rpi and HMI ip address. RPi:192.168.0.10         HMI:192.168.20
 
3. I have tested the blink code. it's working fine. For every 500 ms the indicator toggle the states
on1.jpg
 
4. next I have added the momentary button to control the toggle states, which means, when the button pressed , toggle start.
But not working for me. both indicator and button are start blinking. Kindly check 
 
button _code.jpg
 
5. configured plc address. IF the problem is due to wrong address config, then give me a correct address. 
 
The output indicate start toggle only if i pressed the button.  But, in my case without button press indicator toggle starts. and bad thing is button also start toggle
But both button and indicator start blinking. kindly help me to solve this issues .
button_out.jpg
Reply 0 0
thiagoralves
IX0.0 and IX0.1 have internal pull ups on the hardware of the raspberry pi board. Their logic is inverse. 

As for the button toggling, most likely you are reading both from the same address. QX0.0 is coil 0 and IX0.0 is input status 0
Reply 0 0
lraja143
 
I have tried the counter example.
 
OpenPLC Code:
------------------
counter_openplc.jpg
 
Delta HMI:
----------------
HMI_counter.jpg
It is working. I can able to initiate the counter by pressing the "counter enable" button , but i cant disable the counter for the next press. Similarly "counter _Reset". Once counter is enabled i cant disable it, After rebooting the Raspberry pi only , i can able to do. kindly help 
Reply 0 0
thiagoralves
Most likely your HMI is not sending the write coil command to clear the coil. Check your HMI configuration.
Reply 0 0
Reply