TIA Portal: Unified Comfort Panel - Only Buttons Javascript

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 9

  • @mattiaalve
    @mattiaalve 2 місяці тому +1

    Gran bel Video! Complimenti!

  • @tashriqpandy3752
    @tashriqpandy3752 3 роки тому +1

    12-14 mins: how can we increase a tag thats in a plc DB, this only seems to work on a hmi internal tag?

    • @System-Restored
      @System-Restored  3 роки тому +1

      Use that tag browsing capability of WinCC. In the tag table properties, you can point a tag to the PLC DB tag. I would write a resetting routine in the new javascript but there are already functions to do that. Increasing a tag is easy with a built in function that is already on the event tab of the tag properties. The thing to consider with the newer javascript capabilities are the sychronous vs asynchrounous feature of calling the script. These can't mismatch.

    • @System-Restored
      @System-Restored  3 роки тому +1

      If you can't find a connection to the PLC from the hmi tag table, you may be missing an HMI connection. In this case, just add one in the hmi area called connections. This is where all sort of protocols are available for use like EthernetIP and ModbusTCP also beyond S7. Once the connection has been made you can drag and drop the specific tag you want from the PLC DB to the HMI tag table. Good luck!

  • @mr.kittichartrittirut7098
    @mr.kittichartrittirut7098 3 роки тому +1

    When i link mtp-700 with s7-1200 it can show status input and output from plc but when i use button in hmi i can't use button to controll input :( Why ? (sorry im not good english)

    • @System-Restored
      @System-Restored  3 роки тому +1

      The PLC will read in the channel and write the value to the tag. This will always take precedence over the HMI because the HMI tags update acyclically. The PLC is quicker than the 100ms update rate on the HMI. Make sure you are not being overwritten. The HMI should technically interact with a HMI DB specifically for handshaking the interactions of your HMI to your PLC logic. Otherwise you will never know who is in control of the tag when you have a situation where both require independent control at times.
      Could suggest you have an overwrite option from the HMI this way if you want to simulate without using the physical IO on the PLC then you will not be overwritten.

    • @System-Restored
      @System-Restored  3 роки тому +1

      Try PLC SIM. There is a sim table you can build in there which will allow you to do this simulation you are attempting.

    • @System-Restored
      @System-Restored  3 роки тому +1

      I think there is a "while key pressed" event now in v17. This may be what you were trying to do. Do know there are very different effects from each type of event, press vs click, for example.