Author Topic: PLC Enable Logging - No control  (Read 1077 times)

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
PLC Enable Logging - No control
« on: December 02, 2019, 07:05:57 PM »
I have a FAST LINE chart with logging 2 items and am trying to start / stop logging with a bit in the PLC entered in the properties "PLC ENABLE LOGGING" The chart logs regardless of the state of the bit.
BETA 33
 If you need more info let me know. Am I missing something?  Does enable logging need to be set to FALSE?  See properties image
David

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: PLC Enable Logging - No control
« Reply #1 on: December 04, 2019, 03:11:52 PM »
Try using the attached modified ChartWithLogging control.

It has a new property "EnableLoggingComComponent" which you need to set in order for the PLCAddressEnableLogging to work.

You have to understand that this control allows you to set different ComComponents for each of the items you want to chart.
It is because of this that the new property had to be created and needs to be set individually.
« Last Edit: December 26, 2019, 03:39:56 PM by Godra »

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: PLC Enable Logging - No control
« Reply #2 on: December 04, 2019, 04:40:52 PM »
Thanks Much,  Do you recommend removing the installed version? If so before or after I add this version? 
David

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: PLC Enable Logging - No control
« Reply #3 on: December 04, 2019, 07:43:34 PM »
You should just replace the stock control by adding this one as existing item to the folder where the stock control is (Controls/Charting).
Close all open forms before you do this and rebuild the solution after you add it.

You can always restore the stock control if need be.

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: PLC Enable Logging - No control
« Reply #4 on: December 05, 2019, 04:05:28 AM »
Perfect! 

Thanks Godra , Always glad to see you helping out here.
David

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: PLC Enable Logging - No control
« Reply #5 on: December 26, 2019, 03:44:13 PM »
The file attached in my previous post was updated and replaced.

Just minor changes related to unsubscribing and disposing of the subscription handler.