Shift DB X Bytes Siemens S7300

Rusty_K

Member
Join Date
Mar 2004
Location
Norway
Posts
73
Hello,

I'm looking for a way to shift the values of an entire DB up or down by X bytes (In my particular case it's 18 Bytes shifted up) Unfortuately the "Block Move" and "Fill" SFCs dont allow overlapping source and destination targets. The freed space ( Bottom 18 bytes after shift) should have "zero" values. Seems to me like this is a pretty basic question..sorry I'm still fairly new to this. Any help would be greatly appreciated.

Thank you kindly for your time

Cheers,

R.K.
 
An Idea....

A quick look through the SFC blocks gave me an idea. :

- use SFC 22 to creat a DB
- use BlkMov to transfer the the part of my original DB I wish to shift, to the newly created DB
- use BlkMove again to transfer data values in my newly created DB to my original DB, shifted up 18 bytes
- Finally use SFC 23 to delete the newly created DB

Is this at all a good idea? Is there a more efficent way of shifting the 18 bytes?
Cheers,

R.K.
 
Right on...so this worked fairly well...and on my first try!

Still, any feedback from you pros out there will be greatly appreciated!

Cheers,

R.K.
 

Similar Topics

I've got a Powerflex 700 that doesn't like to get going in the mornings. This motor will run anywhere from 30 seconds to 5 minutes before it just...
Replies
3
Views
177
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,163
Hi All. I have a very specific question about tracking using an encoder and bitshift register. We would like to use a Compact or Control Logix PLC...
Replies
40
Views
1,746
Hey all, was wondering if it was possible to shift values in an array of strings? I have a database that I am loading up with "Users" in the...
Replies
2
Views
311
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
695
Back
Top Bottom