News:

  • May 05, 2026, 06:32:24 PM

Login with username, password and session length

Author Topic: Do-More > C-More String Print Display  (Read 11571 times)

Dmelnyk

  • Newbie
  • *
  • Posts: 6
Do-More > C-More String Print Display
« on: July 02, 2013, 09:26:09 AM »
I am trying to display a string print to the C-More HMI.  I am unable to identify the SS0 address on the C-More.  I have tried a move function but no luck.
My Program reads:
Scale
Input:   WX0
In Min:  0
In Max:  4095
Out Min: 0
Out Max: 10
Output:  R0

Math:
Result:      R1
Expression:  R0-7.75

Math:
Result:      R2
Expression:  (R1/0.75)-0.125

Math:
Result:      R3
Expression:  10**R2

STRPRINT:
Print to:    SS0
Space Separator Inserted
Print Script: (R3,2,2exp)

Move:
Source:    SS0. MaxLen
Destination: V0

I am new to this so I'm probably doing it all wrong.  But I need to learn somehow. LOL

Thanks for any input!
 

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Do-More > C-More String Print Display
« Reply #1 on: July 02, 2013, 09:52:43 AM »
I assume that SS0 looks good in Designer when you turn status On in your ladder, or put SS0 in a Data View.  Make sure it is formatted like you want/need there first.

If that's true, you need to make sure you have the right driver in C-more.  It needs to be the Do-more driver, which should understand the SS data block (e.g. SS0, SS19, etc.).  It should work whether SS0 contains "1.234E-4" or "Hello, world!".

Let us know
1. you see the right text in Designer
and/or
2. you can see "Hello, world" (or any SS string) in C-more

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Do-More > C-More String Print Display
« Reply #2 on: July 02, 2013, 09:53:48 AM »
If you want to display SS0, then you need to use a Text display object on the Cmore.
SS0.maxlen contains the number of characters that can be placed in SS0 (64 I believe), SS0.length contains the number if characters that are contained in SS0.
If you merely want to display a Real number, then set up a numeric display for R3.
Hope this helps :)
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Do-More > C-More String Print Display
« Reply #3 on: July 02, 2013, 10:00:22 AM »
If you merely want to display a Real number, then set up a numeric display for R3.
In other posts, Dmelnyk stated that the number needed to be formatted in exponential notation, something that C-more cannot do ???, hence the need to use the STRPRINT to format it exactly as he wants it displayed.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Do-More > C-More String Print Display
« Reply #4 on: July 02, 2013, 10:11:03 AM »
If you merely want to display a Real number, then set up a numeric display for R3.
In other posts, Dmelnyk stated that the number needed to be formatted in exponential notation, something that C-more cannot do ???, hence the need to use the STRPRINT to format it exactly as he wants it displayed.
OK, cool.  Then just set up a Text display instead if a Numeric display, and you should have the option for SS0.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com