Kkula
Browse Questions » WinCC Unified Systems: Internal Variable Within Template

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

WinCC Unified Systems: Internal Variable Within Template

Hi,
Is there a way to create an internal or temporary tag in a faceplate? I want to create a faceplate where you can make a choice and the need to confirm your choice before it becomes executed.
F.ex. the choice buttons write 1 or 2 to a tempory tag and the confirm button then writes this value to an plc connected tag.
Regards, Bosse

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Creating Temporary Tags in Faceplates for Confirmation Logic

Yes, you can achieve this using internal tags within the faceplate to implement a confirmation mechanism before writing to a PLC tag.

Here's a common approach:

  1. Create Internal Tags: Define internal tags within your faceplate (e.g., 'TempChoice') to store the user's selection from the choice buttons.
  2. Choice Buttons: Configure the choice buttons to write the desired value (1 or 2) to the 'TempChoice' internal tag.
  3. Confirmation Button: Create a "Confirm" button. When pressed, this button's action will read the value from 'TempChoice' and write it to your PLC-connected tag.
  4. Reset 'TempChoice': After confirming, reset the 'TempChoice' tag to a default value (e.g., 0) to prepare for the next selection.

Example in TIA Portal:

Within the faceplate's VB script or HMI tags, you can manage these internal tags and the logic for transferring the value to the PLC.

For detailed guidance, refer to the Siemens documentation:

SiePortal Resources: You can find further examples and discussions on the Siemens Industry Online Support forum via SiePortal.

0