Jump to content

Recommended Posts

  • MVP 2023

Translated-

Dear, I have a problem with memories, when an action is performed (track Max) I always get a fixed value (28688) download several programs and the same thing happens.

please your support.

 

According to your picture the block will be looking for the maximum value in the vector ranging from MI 13 to MI 1250.  The bottom "B" value is the vector size, not the vector end.

If all you want to do is look at MI 13..16 then enter a Constant of 4 in the bottom (D#4).

Joe T.

Link to comment
Share on other sites

Gracias Joe, la MI16 es una referencia analógica que mide el valor de 1238 (12.38v) y ML7 debería guardar este valor. Pero siempre guarda  el valor 28688. Esta óperacion se repite  desde el ML1, ML2...ML40.

El programa trabajaba bien , descargue una modificación y empezó este problema.

La MI0 siempre es 0.

Link to comment
Share on other sites

  • MVP 2023

Translated-

Thanks Joe, the MI16 is an analog reference that measures the value of 1238 (12.38v) and ML7 should save this value. But it always saves the value 28688. This operation is repeated from the ML1, ML2 ... ML40.

The program worked well, download a modification and started this problem.

The MI0 is always 0.

 

I don't think you're using this block properly.  If you want to save the value in MI 16 to ML 7 you should just use a STORE block-

image.png.f74a39bdca6c024fc1395b2984986752.png

Is there a reason the MAX block was used?

Upload your program if you have more questions.

Joe T.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...