Kkula
Browse Questions » STEP 7 (TIA Portal): Plcsim Enhanced Api Commands Fault Testing

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

STEP 7 (TIA Portal): Plcsim Enhanced Api Commands Fault Testing

Hello,
I'm trying to test out PLC hardware errors and Error OBs using PLCSIM Advanced. These errors can be triggered but only through the API.
Can anyone point me to or share a simple C# program they've developed to connect to a running PLCSIM advanced instance and issue some commands? 
https://support.industry.siemens.com/cs/ww/en/view/109739660

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

PLC SIM Advanced - Triggering Hardware Errors via API (C# Example)

You are correct, PLC SIM Advanced hardware errors and Error OBs are best tested via the API. Siemens provides resources to assist with this.

Based on this support article, you can use the PLCSIM Advanced API to inject faults.

While a complete C# program isn't directly provided by Siemens, the article links to a sample project on GitHub:

PLCSIMAdvancedXAML on GitHub - This repository contains XAML and C# examples demonstrating API usage, including fault injection.

Key aspects to consider:

  • Ensure you have the necessary PLCSIM Advanced API documentation.
  • The GitHub example provides a starting point; you may need to adapt it to your specific error testing requirements.
0