Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Dmelnyk 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!
-
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
-
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 :)
-
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.
-
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.