Autor Thema: Settings of timers from MFD Titan to EasyRelays  (Gelesen 11210 mal)

Offline Marco

  • Jr. Member
  • **
  • Beiträge: 20
Settings of timers from MFD Titan to EasyRelays
« am: Oktober 09, 2013, 09:01:04 Vormittag »
Hi to all,
please help me about the followinf question.
I need to set, from MFD Titan (NET-ID3), the values of some timers (NET-ID1).
Annex you can find the project.

Thanks a lot.

Reagds

Offline Maikky

  • Sr. Member
  • ****
  • Beiträge: 531
Re:Settings of timers from MFD Titan to EasyRelays
« Antwort #1 am: Oktober 09, 2013, 12:23:38 Nachmittag »
Dear Marco.

I haven't scanned the whole program but I have some comments/remarks upfront :
- I assume the input of the timers is done in screens 005 and 006
- in screen 005 you show the value of words MW03 and MW04 and the buttons are incrementing
  or decrementing the same words
- you are also using the marker M57 within your program, which is part of MW04, so you will get
  some strange values
- in screen 006 you are displaying the double words MD80 and MD90 but the buttons are
  acting on the words MW80 and MW90, you will see no change of value
- sending all values from NetID03 via PT function block is correct
- receiving all values at NetID01 via GT function block is correct, you may but do not need to
  assign a marker value to the output of each GT block
- at the related timer you have to change the constant NU against the variable GT QV 1 to 4

Regards
Maikky

Offline Marco

  • Jr. Member
  • **
  • Beiträge: 20
Re:Settings of timers from MFD Titan to EasyRelays
« Antwort #2 am: Oktober 10, 2013, 08:50:32 Vormittag »
Good morning Maikky,
I'm sorry but yesterday the customer was here, so it was no possible to check the process with your advices.
Now, I modified the program and I'm testing the machine but there are any problem.

1) in screen 05 there are 2 values for timers settings (MW3 and MW4)
2) in screen 06 there are 2 values for timers settings (MW1 and MW2)

About the screen 06 I need to set the values in milliseconds so I set the scaling up to 99999, but the max value that I read is 8562.
This is the limit for MW? Do I change it into MD?

Thanks.

Regards
Marco

Offline Maikky

  • Sr. Member
  • ****
  • Beiträge: 531
Re:Settings of timers from MFD Titan to EasyRelays
« Antwort #3 am: Oktober 10, 2013, 22:31:51 Nachmittag »
Dear Marco.

At first you should be aware, that you are using the words MW01 to MW04 for your values,
which means that all markers M01 to M64 should not be used inside your program.

The marker range is overlapping (see the online help by selecting any marker and hitting the
F1-button) and any change of a marker automatically changes your timer value and vice versa.

I propose to use a marker word MWxx or double word MDxx, whose marker bytes MBxx and
markers Mxx are not in use already.

Regarding the timer values at screen 06 you should be aware, that there are two different value ranges.
At first you have the "internal value", which is used inside the program (in your case as a timer value) and
at second the "displayed value", which is shown on the display.

For example if you use a word MWxx the max. value is 65535, you display it as 99999 by using the scaling
function in visualisation, assuming a time of 99999 ms but the internal value still is 65535 equalling 65535 ms.

I propose to use a double word and set the min. and max. values in the visualisation to 0 and 99999.
The value range of a double word is -2147483648 to +2147483647.

Regards
Maikky

Offline Marco

  • Jr. Member
  • **
  • Beiträge: 20
Re:Settings of timers from MFD Titan to EasyRelays
« Antwort #4 am: Oktober 11, 2013, 10:36:16 Vormittag »
Dear Maikky,
now everything is clear.
I'm sorry for my missing about the programming rules.

Thanks a lot



Reagrds