Skip to main content
7-Bedrock
September 19, 2023
Solved

Disable tags when PLC is offline and re-activate when PLC is online.

  • September 19, 2023
  • 2 replies
  • 2246 views

We have a successful connection from KEPServer to a Siemens PLC using Siemens TCP/IP Ethernet. The only issue we are having is that when the PLC is powered off, we are filling up the KEPServer event log with hundreds of entries per hour. . Is there any way for KEPServer to deactivate the tags while the PLC if offline, and re-activate when the PLC is powered back up? 

 

Best answer by NW_10639682

Just to follow up on this, it looks like turning off the Advanced Tags stops the event log entries, so I'm looking at using the Trigger While Comparison is True trigger type on each advanced tag....I'll report back if it works.

2 replies

14-Alexandrite
September 25, 2023

PLC is acting as a client here and Kepware is attempting to poll the PLC data.

When the device comes online it will poll the data automatically, We can stop the event log entries by manually disabling 

 

Use a derived tag to check the quality and link that with the system-enabled bit (It may disable the device and will not come up online automatically ) 

1-Visitor
March 10, 2026

Apologies for Necroing an Old Thread.
I'm using the system-enabled bit to disable/enable communications with a device. I'm running into the issue where I am able to turn the bit off and disable communication, but I am no longer able to turn the bit on to re-enable communication outside of manually enabling the device through the kepware application.

NW_106396827-BedrockAuthorAnswer
7-Bedrock
September 27, 2023

Just to follow up on this, it looks like turning off the Advanced Tags stops the event log entries, so I'm looking at using the Trigger While Comparison is True trigger type on each advanced tag....I'll report back if it works.

7-Bedrock
September 28, 2023

I used the SecondsInError parameter as the basis for the condition. Worked fine 🙂

10-Marble
July 12, 2024

Hi NW_10639682,

 

Did you solve the problem? I have the same need and I was thinking of solving it via a FLIP-FLOP tag (the automation in this case sets the tag to 1 and the Kepware immediately sets it to 0, in this way the PLC knows that if the tag remains at 1 for a defined period of time the communication is not active), but the problem is that I 'm not aware of how to create automatic triggers on the Kepware side to replicate this structure.