shift register in TIA portal

Ranjith

Member
Join Date
May 2007
Location
Melbourne
Posts
316
I need to shift a value along a conveyor after each index.
Following is the method I used.
It works most of the time.
But some times it puts the same value into 2 registers with one pulse.
Is there a better and reliable way to do this with TIA.

Thanks in advance
 
Since you have only 5 integers long block_move, you could change it to 5*normal move blocks and see if there is any difference.
If it still not work, check if bits have writed over somewhere. (double coil or same words used)
 
Is the rising edge memory bit "Outfeed".Pulse12 used somewhere else?
For troubleshooting try denouncing the trigger with a timer and see what happens.
A side ponit, I usually set up my data so that I shift an index not the value.
 
Last edited:
Oh, you're overlapping the memory area you're moving the values to.
You're moving 5 Ints starting from DBX54 to DBX62 to five Ints starting from DBX52 to DBX60.
And you have an array of words starting at DBX34 and extends at least to DBX62 that you're moving another word to from DB11.

Edit#3: OK it took me a while to recreate your arrays. It looks like it should work with the exception of the mover from DB11 to DB4 that will be overwriting part of the BLKMOV instruction before it. But that could be intentional!
 
Last edited:

Similar Topics

I am attempting to reject a bottle If the label fails. The rejection works fine at normal line speed but at low speed the rejector fires (air...
Replies
35
Views
1,138
Hi guys, I am pretty new when it comes to programming. I am working with CX-Programmer and I am having a problem where I have a sensor on my...
Replies
6
Views
682
Hi all, i have a very slow indexing machine where we are looking to make everything as bulletproof as possible, money is not much of a factor...
Replies
12
Views
3,058
Good morning (EST), I am trying to implement the code below in on an S7-1200. It's barely half a dozen instructions, but I am stuck; I have not...
Replies
26
Views
5,648
Hi everyone I am completely new to using shift registers and am a bit stuck, my shift register works as should, it is for an overhead conveyor...
Replies
55
Views
15,576
Back
Top Bottom