1. Home
  2. Docs
  3. TIA Portal
  4. Plc Alarm Library
  5. FC PLC_Alarm_UsedAlarms

FC PLC_Alarm_UsedAlarms

General

This Siemens TIA Portal function block is able to create a “.txt-file” which lists all message numbers who are on the input “MessNo” of the FC “PLC_Alarm”. This list you can upload to the WebApp to have the advantage that the system knows the used messages. This reduces your textlists and our documentation.

Limitations

  • The block counts all instances of the FC “PLC_Alarm” in one cycle to know the amout of how often it is used. So this is important that all instances of the FC “PLC_Alarm” are in the same cycle/task and no one is disabled during the activation.

In- & Outputs

NameData typeComment
StartBoolA rising edge on this input will start the file creation process
DoneBoolThis output gets high as soon the file creation finshed.
It stays high as long the “Start” signal is also high.
Otherwise it is just high for one cycle.

Function

As soon the “Start” signal gets high, a internal sequence starts. After creating a file and deleting the existing one it writes line after line according to the desription for the used alarm function. For writing the list, it askes the first instance of the FC “PLC_Alarm” what the input “MessNo” is before wrinting in the list. Then it asks the second instance and so on.

As soon the file is ready, the “Done” signal gets high for one cycle. In case the “Start” signal is still high, the “Done” signal also stay high till the input falls to “0”.

How can we help?