Hi all,
I have a small problem with Factory IO and TIA portals PLCsim.
I am just starting with TIA portal and tried the “Queue of items” scene in Ladder. (followed a youtube tutorial).
It all seems to work but when i make contact with plcsim and Factory IO, the NC contacts from the sensors seem to give a pulse at startup.
Becaus of this the conveyors start before they actualy see a box on the conveyor.
Does anybody else have this problem, and am i doing something wrong?
Thanks
Small update…
When i try the same Ladder program in Codesys i don’t seem to have this problem. So i guess i’m doing somethng wrong in TIA portal. But i can’t figure out what it could be.
Any help would be appreciated.
I suspect that your program is already running before the connection to Factory IO is established, so your NC contacts are not yet driven to FALSE because the signal from the simulation hasn’t yet arrived.
One thing you have to make sure for your program (I suspect you mean this video?) is that the PLC is started but in STOP, then you connect the FactoryIO Simulation to the PLC and only then do you start the PLC in RUN.
What you could also do is to put your code into a function block and then only call this one in OB1 if you get the “Running” Signal from the FactoryIO Simulation.
Thanks for the information, that is indeed the video i used.
As far as i know Factoy IO needs PLCsim to be in run-mode to connect so that would be a problem, but using the Running signal from Factory IO is a great option. I’ll play around with that a bit. Should be the correct solution.
Thank you.
1 Like
Ah, right. Okay, my bad. According to the docs, PLCsim PLC needs to be running, okay. I didn’t see that. In my mind I was still at the regular PLCs.
Unfortunately i don’t have a PLC available so i have to use PLCsim for now. Not realy a problem for me as i am still learning.
Again, thanks foor helping me out.