Shifting data in DB

Grzesiuk

Member
Join Date
Dec 2018
Location
Ukraine
Posts
24
Hello specialists!

I am little bit concerned about transferring 4 chars to data block every time we receive positive edge. The thing is, I would like to move 4 individual CHARs from one data block and put it to another data block when we got positive edge. However, when it happens, the older data must to be shifted by 4 chars down, so I can see what chars were before, I guess 100-200 records of Array should be fine, since there will not be too much positive edges in one day. Please could you provide my with some tips or solution how to make it with STL?

Thank you
 
Thank you for this example!
In this example we have a two DBs with Chars. The thing is, I would like to get 3 chars separately from UDT structure (lets say UDT starting address in DB is 10.0, and char starts from 45.0 up to 48.0) and copy these 3 chars to another DB every time I have positive edge on input. I am just not sure how to point to these 3 chars and move them to another block and then make something like FIFO?
 

Similar Topics

Hello all, What I want to do is take a word of data and move the bits over 1 bit. So to keep it simple: 0001 0011 1100 0110 and move into...
Replies
2
Views
1,506
Good day all! I am using a compact logic controller, L16ER, and I have an 8 position rotary table. I will try to explain the table positions as I...
Replies
5
Views
2,197
I'm working on a conveyor type system where i have a part moving on a conveyor that i measure the length with sensors puts the floating point data...
Replies
17
Views
6,876
Hello, Im trying to shift 110 bytes of data down by 10 bytes within the same datablock (data block is actually 110 bytes in size) so im...
Replies
20
Views
11,203
Hi! I have an array of 300 part numbers (each is an ascii string of 2 DINT in size). I need to display the top part number at the first station...
Replies
7
Views
4,465
Back
Top Bottom