News:

  • October 14, 2025, 12:15:25 PM

Login with username, password and session length

Author Topic: Timer preset values with Cmore  (Read 4269 times)

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Timer preset values with Cmore
« on: August 05, 2016, 08:32:35 AM »
So, first DoMore project, and some questions...

I have a project where I am using multiple timers (TMR), and I need to access/change the values for the initial set-up. In the timer instruction, I have selected variable for each preset (TMR 0 is D0, TRM1 is D1, etc.). When I create the numeric entry in the Cmore (after importing the tag database from the DoMore) I am no sure exactly how to set up the input so that the selectable range is only XXX.X seconds. I know the time base is milliseconds in the DoMore, but I don't want to have to enter  the ._XX value for each timer. Also, the default display for this variable comes up in the numeric display as -XXX.X. I used the D data type only because that is what was the default data type in the TMR command.
Is it possible to do this without math in the DoMore, or should I just select V memory locations instead(ala DL). I have over 50 of these timers,so that would be somewhat cumbersome at this point. I dont have the machine to connect to at this time, so I could not test the results....

Thanks for the help....ahead of time....)

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: Timer preset values with Cmore
« Reply #1 on: August 05, 2016, 09:04:11 AM »
I do not know C-more very well, but I would think they would have a format that could scale a floating point to an integer (anyone know?), or even a millisecond timer entry you enter in seconds w/decimal point?

V's data-format is 16 bit unsigned integer, so that would mean as a preset you would be limited to something less than 66 seconds (65.535ms).  So if all your timer presets were less than 66 seconds, you could use V, otherwise, use D (signed 32 bit integer with an upper limit of 2147483647ms, or over 24 days, as a "preset").

Note: Data View has a Format for numeric registers (like D and V) called Timer that will display the value as a timer preset value, hh/mm/ss.mmm.  So then 2147483647 native value would display as 596h 31m 23.647s in Timer format

Mike Nash

  • Hero Member
  • *****
  • Posts: 645
Re: Timer preset values with Cmore
« Reply #2 on: August 05, 2016, 04:05:51 PM »
Yes the C-more has the scaling function for each numeric object. I just did one today. Option/Scaling Option/

PLC Value
Point 1 = 0
Point 2 = 1000000

Display Value
Point 1 = 0
Point 2 = 10000

Number of Digits Total = 4
Fractional = 1

Range = 0 Min 9999 Max

I also did minutes for some 1.25 minutes on HMI gives 75000 mS in PLC.

Those scaling points aren't clamped so you just use values that are easy to understand, the first example could have been 999900 and 9999.

If you would rather use the decimal point when entering, use a real/float and scale 999900.0 PLC and 999.9 Display. Use a Real in the Timer. Be aware that you might get an occasional value off by 0.1 on the display due to the floating point.

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Re: Timer preset values with Cmore
« Reply #3 on: August 08, 2016, 07:44:09 AM »
Thanks, Mike.
I will give that a try!