I am using Siemens TIA portal V17 along with Factory IO.
I configured a start button on HMI and set invert bit on it to make it a toggle button (Press once to ON, press 2nd time to OFF). By pressing the start button on HMI, it works as intended as seen in the ladder diagram in simulation.
However, after connecting to factory IO through PLCSIM, it seems that pressing the start button on HMI doesn’t toggle the signal on ladder diagram.
Google said it something regarding the input, but I am not sure which to change. Do let me know what is causing the issue
Thanks guys!
Hello @yuefeng868, welcome to the forum!
Could you please detail what you are trying to do? What exactly is the purpose of the button? What address does the button have on TIAPortal? Is that address being used in Factory I/O?
The issue could be an overlap of addresses. Have you checked if this is the case?
A small note: when using PLCSIM, which seems to be the case, you do not need to set an offset for the addresses. This is usually needed only when using a physical PLC to avoid the PLC overwriting Factory I/O’s signals.
Hi! Thanks for the reply.
I am trying to simulate controlling the water tank in factory IO using HMI input.
The start button is to initiate the filling up of the water tank.
I checked the addresses of my plc tag and compared to Factory IO and they are correct.
One thing I realized is that when I connect Factory IO and TIA portal through PLCSIM and I control using input from factory IO (No HMI involve), it works perfectly.
Regarding the offset, so it’s fine to leave it at 0?
Thank you!
Are you linking the HMI tag directly to the input? If so try using a different HMI tag. Use it or the input to initiate your start.
Yes, it’s fine to leave the offset at 0.
What seems to be happening is that you are using both the HMI and Factory I/O to write to the Start Button address, %I10.0. That means that Factory I/O is most likely overwriting the input from the HMI.
Since you want to use the HMI to start the filling process, you do not need to map the Start Button in Factory I/O.
When you use only Factory I/O to start filling the tank, it works because only Factory I/O is writing to the address %I10.0. But when you connect Factory I/O and the HMI to %I10.0, you have both writing to that address, and only one can do it. That’s why, since you want to use the HMI, you don’t need to map the Start Button in Factory I/O.
Thanks for the help, however I sort of fixed it on my end.
It seems that the HMI device that I selected is sort of not compatible with my PLC device selected. The issue is fixed after I changed it to a different HMI device.
Thank you!