0
Answered

S7 connection

Kévin 4 months ago in General Questions updated 4 months ago 5

Hello,

I have started to use S7 TCP-IP to connect to TIA Portal with PLCSIM advanced. When I think they are connected and I tried to force a signal at true, in the TIA program I see the corresponding signal blinking irregulary.

Do someone have this problem or how to resolve it?

Answer

Answer
Answered

It depends what you want to do. Because of Limitations in Unity PLCSim Advanced is a little bit more complicated (external coupling exe needs to be started). S7 Interface is easier and works on all Platforms. But with S7 interface you can't write to inputs where also a hardware is configured to.

Under review

You can't write on inputs which are configured in the hardware configuration like in a real PLC because the hardware status will overwrite / collide with your write.

The input forced at true is in Unity. Normally, you can force input from Unity to PLC. Even if I don't force it at true and initiate it value at true at the beginning, the corresponding signal in TIA program block just blink sometimes.

I retried with the interface PLCSIM advanced and I can force a signal at true and the corresponding signal in TIA will be at true. Perhaps the interface PLCSIM advanced is better than S7 TCPIP for virtual commissioning between Unity, TIA and Wincc (HMI)?

Answer
Answered

It depends what you want to do. Because of Limitations in Unity PLCSim Advanced is a little bit more complicated (external coupling exe needs to be started). S7 Interface is easier and works on all Platforms. But with S7 interface you can't write to inputs where also a hardware is configured to.

If S7 can't write the input, then how it is useful for virtual comissioning with unity and TIA?

It is normal for S7 if a sensor detect an object and the signal input will be true in Unity but in TIA it will blink?

Do you have a method to modifie the input with S7 like using a Memento?

If I want to write the input and read the output, it is better to use the interface PLCSIM advanced?

I heard from an automation specialist that it is normal to not write an input but the interface PLCSIM can do it?