News:

  • June 27, 2026, 01:02:21 PM

Login with username, password and session length

Poll

Please rate your experience with Do-more

Outstanding - the only PLC I would ever use...would you please put it on new platforms
41 (48.8%)
Very nice - I plan to add this to the systems I currently use
38 (45.2%)
OK - I might use it again
3 (3.6%)
Not impressed - I would only use it if none of the other controllers would do the job
2 (2.4%)
Um...no - won't ever use it again
0 (0%)

Total Members Voted: 84

Author Topic: Please tell us what your experience has been with Do-more...  (Read 1375542 times)

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Displaying consecutve registers storing text in data view
« Reply #90 on: June 03, 2013, 01:05:02 PM »
I have often taken string value (recipe names, recipe component names, etc.) broken them up into 16 bit values representing two bytes each, and transmitted them to a range of contiguous registers in the PLC.

When looking at the same range from the PLC end, in a DL PLC, you could add V2000 or whatever to a data view and configure it to display ASCII, x number of bytes, and byte swapped or not (IIRC).

You have all this and more for native DM strings, but in some cases I'm not doing anything with the strings, just keeping them in a block with associated operational data, so there's no reason to move them to an SS type value.  In my case, they're in a range of MHR registers, which as far as I can see, I can only display as ASCII two bytes at a time.

Is there a way to emulate the old multi-register view for non string types in DM data views?  If not, I'd like to make a feature request for it in a future release.

Thanks!   ;D
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Please tell us what your experience has been with Do-more...
« Reply #91 on: June 03, 2013, 02:25:42 PM »
Do-more meets DL half way (see the attached Data View screen shot).  The numeric registers have ASCII and Swapped ASCII, but only for that register.  But using Ctrl+Enter, you can easily monitor MHR/V/D/R,etc. as ASCII, addition to all the other Do-more numeric formats.  The only thing you cannot do is specify the size - it's always the number of bytes for that numeric element (so you could get up to 4 characters per row using casts, e.g. MHR4:SD, vs. just two characters for MHR4).

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #92 on: June 03, 2013, 09:07:27 PM »
Right, that's what I was saying, so consider it a feature request for whenever you have a chance to get to it.

At least showing the registers as 32-bit is twice as good as what I came up with.

Thanks!   ;D
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #93 on: June 04, 2013, 06:06:15 PM »
So those bytes stored in MHR's?  I want to copy them to an SSx.  The string in the MHR is variable length with no delimeter, and usually has zero's in any spare positions.  I'm using STRPUTB to copy the bytes to the string.  How do I strip the 0's when I copy to the SS?  Alternatively, I'm using the SS to STRPRINT to another SS I'm going to STREAMOUT to something.  Is there a way to strip the NULLs while doing the STRPRINT?

Also could really use the ability to EDIT numeric registers in multi-byte mode (extension of yesterday's request to be able to view them that way), or at least to be able to edit in ASCII one register at a time.

Tried STRTRIM but it only trims a list of about 6 common non-printing chars.  Recommend adding a checkbox to have it delete ALL non-printing chars (or as customizable as you want to make it), but definitely with the capability to remove 0x00 bytes.
« Last Edit: June 04, 2013, 06:20:53 PM by Controls Guy »
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Please tell us what your experience has been with Do-more...
« Reply #94 on: June 04, 2013, 06:21:24 PM »
So those bytes stored in MHR's?  I want to copy them to an SSx.  The string in the MHR is variable length with no delimeter, and usually has zero's in any spare positions.  I'm using STRPUTB to copy the bytes to the string.  How do I strip the 0's when I copy to the SS?  Alternatively, I'm using the SS to STRPRINT to another SS I'm going to STREAMOUT to something.  Is there a way to strip the NULLs while doing the STRPRINT?

Also could really use the ability to EDIT numeric registers in multi-byte mode (extension of yesterday's request to be able to view them that way), or at least to be able to edit in ASCII one register at a time.

STRTRIM will remove leading or trailing whitespace, and it should remove NULLs as well...although I have a sinking feeling it may not. I will make sure it does for the upcoming release.

We have plans to add a memory view of the type you are asked for. It'll happen eventually.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #95 on: June 04, 2013, 06:28:48 PM »
I tried STRTRIM and unless I'm doing it wrong, it doesn't strip NULs.

Assuming that it doesn't, what's the workaround?

I tried STRFIND (to be followed with a STRDELETE), but I can't figure out how to enter a NUL as the character to find.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Please tell us what your experience has been with Do-more...
« Reply #96 on: June 04, 2013, 06:31:18 PM »
It's suppose to...and I just updated it to do so.

Workaround? Brute force. Loop...character by character...just like the instruction (now) does it.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #97 on: June 04, 2013, 06:33:57 PM »
But even then, I need a way to compare the byte in question to a NULL.  How do I enter the string value for one to do the compare?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Please tell us what your experience has been with Do-more...
« Reply #98 on: June 04, 2013, 06:35:27 PM »
"$00"
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #99 on: June 04, 2013, 06:38:46 PM »
Hmmm....thought I tried that in STRFIND.  Maybe I didn't include the quotes.  Will give it another try.  (Because as long as I can find it, I can still trim it in two boxes with no looping)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #100 on: June 04, 2013, 06:41:53 PM »
STRFIND "$00" + STRDELETE works great.

You rock, dude!   Thanks!  ;D
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Please tell us what your experience has been with Do-more...
« Reply #101 on: June 04, 2013, 06:43:26 PM »
Sorry it required the work around... ::)
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #102 on: June 04, 2013, 06:47:04 PM »
No sweat.  Consider it OJT in Do-More.  ;D   Heck, that's barely a workaround anyway!

One glitch -- STRFIND is edge triggered so it had only worked once when I reported it fixed.  I'll need to generate some edges.  Not a problem -- I have the technology!   :D
« Last Edit: June 04, 2013, 06:48:52 PM by Controls Guy »
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Please tell us what your experience has been with Do-more...
« Reply #103 on: June 04, 2013, 06:49:39 PM »
That's now optional in rel 1.1. There were about 5 or 6 instructions that were strictly edge triggered that we have changed to optional.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: Please tell us what your experience has been with Do-more...
« Reply #104 on: June 04, 2013, 07:16:08 PM »
To create an edge, I put an ST7 on the rung ahead of the STRFIND, but the rung is in a called program, and the scan toggle doesn't seem to work.

How should I handle edge triggered stuff in programs and tasks?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.