Author Topic: Read ML1400 PID.CVH  (Read 3367 times)

g.mccormick

  • Newbie
  • *
  • Posts: 29
    • View Profile
Read ML1400 PID.CVH
« on: January 05, 2021, 08:08:22 PM »
I am needing to read/write the CV high value for a PID loop in ML1400.  I set the read address to PD10:1.CVH and get the error of invalid address.  Is this something that can not be done?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Read ML1400 PID.CVH
« Reply #1 on: January 05, 2021, 08:20:51 PM »
CVH is not recognized as a sub-element by the driver. You can try to use a number in place of the CVH. You will either have to know the word number or figure it out by trial and error. I would guess it's element 9 which will be bad news because the driver only accepts up to 8
« Last Edit: January 05, 2021, 08:26:06 PM by Archie »

g.mccormick

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #2 on: January 05, 2021, 08:27:24 PM »
Ok I'm thinking it may be word 8.  Would the syntax then be PD10:1.8?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Read ML1400 PID.CVH
« Reply #3 on: January 05, 2021, 08:39:03 PM »
Yes, that would be the correct syntax. I am looking at adding these sub elements to the next beta version which may be available by the end of this week.

g.mccormick

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #4 on: January 05, 2021, 08:41:30 PM »
Yes, that would be the correct syntax. I am looking at adding these sub elements to the next beta version which may be available by the end of this week.

Hmm. I am getting invalid address for PD10:1.8
PD10:1\8 gives me true so seems to be bit addressing..

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Read ML1400 PID.CVH
« Reply #5 on: January 05, 2021, 09:05:37 PM »
The sub-element numbers don't work like I thought they would. Going to have to use a workaround until the next version is available. To workaround you will need to move that value into a register such as N7:0

g.mccormick

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #6 on: January 05, 2021, 09:10:37 PM »
Dang.  Unfortunately I can't do that in this case.  I'm trying to solve a problem where I need to change the CVH value but cannot connect to the PLC.  I was hoping to through together a quick HMI to get around my issue.

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #7 on: January 05, 2021, 09:47:21 PM »
Dang.  Unfortunately I can't do that in this case.  I'm trying to solve a problem where I need to change the CVH value but cannot connect to the PLC.  I was hoping to through together a quick HMI to get around my issue.

Not trying to promote another project, just trying to offer a solution.  You could check out pycomm or libplctag on github to see if it solves your problem before Archie gets to this.

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #8 on: January 05, 2021, 10:56:32 PM »
Or just do a quick test with the app from reply #6 in this topic:

   https://www.advancedhmi.com/forum/index.php?topic=2563.0

which is using the libplctag library but all that would matter is what kind of response you would get.
 

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #9 on: January 06, 2021, 01:12:05 AM »
The app I mentioned, the way it currently is, can read some PID stuff (see the attached picture):

- address PDxx:x can be used to read any number of consecutive words up to 23
- address PDxx:x/x can read bits

As of 10-JAN-21, the app was updated for reading and writing MicroLogix PID bits/words!
« Last Edit: January 10, 2021, 03:50:05 AM by Godra »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Read ML1400 PID.CVH
« Reply #10 on: January 06, 2021, 08:58:54 AM »
V3.99y Beta 37 supports all the elements of the PD data type.

https://www.advancedhmi.com/forum/index.php?topic=2838.0

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #11 on: January 06, 2021, 11:47:49 AM »

g.mccormick

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #12 on: January 06, 2021, 05:01:34 PM »
V3.99y Beta 37 supports all the elements of the PD data type.

https://www.advancedhmi.com/forum/index.php?topic=2838.0

Awesome!.

Just a few hours too late.  I ended up installing rslogix500 for the 7day grace period over teamviewer to set the value.  I have modified the program from home and now just waiting for a time to download (hope wihting the next 6days) I added some logic to mov N register values to the .CVL and .CVH.

Thank you to Archie for the fix though.

Side question, what is the easiest way to upgrade a previous project to the latest?

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Read ML1400 PID.CVH
« Reply #13 on: January 06, 2021, 05:52:11 PM »
V3.99y Beta 37 supports all the elements of the PD data type.

https://www.advancedhmi.com/forum/index.php?topic=2838.0

Awesome!.

Just a few hours too late.  I ended up installing rslogix500 for the 7day grace period over teamviewer to set the value.  I have modified the program from home and now just waiting for a time to download (hope wihting the next 6days) I added some logic to mov N register values to the .CVL and .CVH.

Thank you to Archie for the fix though.

Side question, what is the easiest way to upgrade a previous project to the latest?

Microphone check this:

https://www.advancedhmi.com/forum/index.php?topic=218.msg16724#msg16724