Author Topic: Object does not match target type  (Read 4201 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Object does not match target type
« Reply #15 on: July 21, 2016, 08:10:30 AM »
Try setting your PollRateOverride on every driver instance to 10000 just to see if it begins to have any effect.

I don't have access to a SLC/Micro with a serial connection right now, so I won't be able to test this until next week.

eci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Object does not match target type
« Reply #16 on: July 21, 2016, 08:26:16 AM »
I just tested it and it still runs at 100% once you get 4 to 5 of the forms open. It jumps up in percentage significantly when each form is opened.

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Object does not match target type
« Reply #17 on: July 21, 2016, 09:43:46 AM »
Do you actually get readings on every form that you open?

eci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Object does not match target type
« Reply #18 on: July 21, 2016, 10:35:59 AM »
Yes, everything works as expected in the HMI.  I have 3 ovens hooked up to the PLC and am able to control them as I want.  All other forms are reading correctly from the PLC.

The only reason I noticed that the CPU in my computer was being over-worked is because the pilot lights started to change color from the top to the bottom slowly enough to easily see.

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Object does not match target type
« Reply #19 on: July 21, 2016, 11:11:51 AM »
It appears as if everything on your end is working properly in "small amounts".

Out of curiosity, what is the actual baud rate of your communication?

eci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Object does not match target type
« Reply #20 on: July 21, 2016, 11:37:23 AM »
RSLinx auto-configures it to 19200.  I am not too familiar with serial connections though and do not know what the limiting factor is for baud rates are.

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Object does not match target type
« Reply #21 on: July 21, 2016, 09:26:19 PM »
According to some websites, the max baud rate for your PLC is 19200 (which these days is considered slow).

If you do read the topic I mentioned in one of my previous posts then you will see what AabeckControls did in his project to improve the performance (the same changes made to the driver might not be possible in your case unless Archie comes with some solution but shuffling things on your forms might help).

Maybe, if your project had only 3 forms then it could possibly be working OK.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Object does not match target type
« Reply #22 on: July 23, 2016, 03:29:20 PM »
The problem was narrowed down to a driver problem with the SLCMicro drivers. This will be fixed in an updated that will be availbale in the next couple days.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Object does not match target type
« Reply #23 on: July 24, 2016, 10:39:02 PM »
Version 3.99n is now available that fixes this problem causing high CPU usage.

eci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Object does not match target type
« Reply #24 on: July 27, 2016, 07:14:36 AM »
That seems to have fixed the problem.

Thank you!