Jump to content
Sign in to follow this  
Sremac

Reset Problem--urgent!

Recommended Posts

Well, i consider myself experienced user on Vision PLCs. Now I am facing a problem that is blowing my mind! i use maximum loaded V570 configuration (Snap-in, 4 x DI16, 2 x TO16 and 2 x AO6X with EX-A2X adapter). I already use incremental encoder on my Snap-in module (A, B and Z pulse) emulating absolute encoder. But i need two more counts in order to determine some sync points on the other moving parts on my cartoning machine. So I connected just phase A of an incremental encoder to expansion DI16 module and in HW configuration make it work like a HSC. It counts up all right. But it doesn't let me reset MI1 connected to it no matter what I do. I tried to use Reset numeric, storing #0 to MI1, multiplying it by zero... Even in on-line mode it won't send #0 to MI1! Then I tried to trigger physically (with 24V, PNP configuration) Hardware input #46 designated as the Reset input for a HSC that uses input #47 as the HSC (and counts!) - still nothing.

I absolutely need to reset MI1 before I make a move that will produce counts on every machine cycle!

Any help, please?

post-281-0-80643100-1367056483_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

There is no direct option to reset HSC which is on expansion unit.

Attached is application which implements resetting HSC using virtual HSC.

In the attached application instead of working directly with the MI that linked to the HSC (which you are unable to change/reset) working with the virtual HSC.

Expansion HSC reset.vlp

Share this post


Link to post
Share on other sites

Dear Ofir,

thanks a lot for zour reply. I am sorry for my late response, but as soon as I posted I myself found out the workaround. But, there is an issue about it: since calculation is provided only once per OPLC cycle and there is no possibility to use interrupt subroutine, is this really a HSC? The only thing that you get by using it is that you don't miss a pulse shorter than a OPLC cycle time. Anyway, my application could "swallow" it, so now everything work as expected.

Also, I suggest that there should be a short notice about that limitation in the hardware manual, so nobody gets as confused as I was.

Thanks once again.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...