stacking 32 bytes in Step7

rpop91

Member
Join Date
Mar 2012
Location
Detroit, Mi
Posts
44
Hey all, running into some trouble trying to get this done cleanly.

I have two inputs of 16 bytes each, from two different locations. I take both sets of 16 bytes, concatenate them into a 32 byte array and stack beginning at byte 0 of a destination DB. A new part then comes into station, I again take the concatenated 32 byte block and stack it at byte 31 of destination DB, so on and so forth. Once my stack is complete a bit goes high and I clear the destination DB and start back from byte 0. Here are my variables:

Input Bool = clear data
Input 1 array of 16 bytes
Input 2 array of 16 bytes
concatenate into 32 byte array and dump into DB1

output: DB1.DBB0 (the first layer)
DB1.DBB31 (layer 2) etc..

Any help would be appreciated.

Thanks!
 

Similar Topics

I have an application with output stacking. The applications is: 8 conveyors merge into 1 each of the 8 conveyors have a photocell each...
Replies
2
Views
2,817
I have a customer that is trying to calibrate a load cell in a system by putting another load cell into that system and seeing if they agree...
Replies
11
Views
4,316
Hey Guys, I'm trying to come up with programming(Contrologix) for alarm reporting. The alarms are to be stacked(I'm thinking FIFO)and recalled one...
Replies
61
Views
12,955
Hello, I have 8 different numeric values shown on a PV550 in a row as "Numeric Values". From the PLC I want to control the HMI so I can indicate...
Replies
9
Views
2,675
Hi everyone! I am working on a Siemens plc (1200/1500), and I have two instruction that i have to perform. A) data structure (40 bools, 40...
Replies
3
Views
2,411
Back
Top Bottom