Data memory "Block" transfer

wadlinx79

Member
Join Date
Jul 2005
Location
Japan
Posts
2
Hi... I'm new here and also new in plc world.... And I'm also not very good in english...
I just want to ask about how to tranfer several data in DM to another DM....
I'm using OMRON CJ1M-CPU23 and cx-one programmer. For Example I've created area between D0 to D99 where I put in each memory between that area my data(calculation,average etc).My problem is every time a flag is on (each time its on means new product is detect), I want to xfer all the before data between d0-d99 to d100-d199,so the new data for new product will be save in d0-d99, continue shifting if flag is turn on again. I think with xfer command it can be done but I dont know how to use it the right way.Also until it reach d900-d999, after that the data will be reset.
Any suggestion is appreciate....thanks:oops:
 

LD "New Product Condition" ; Condition when new product is made
@XFER #3E8 D0 D100 ; Transfer #1000 Data Memories from D0 to D100
> D1000 #0 ; Check for Non-Zero Data in D1000
BSET #0 D100 D1000 ; Clear from D100 to D1000

 
LD "New Product Condition" ; Condition when new product is made
@XFER #3E8 D0 D100 ; Transfer #1000 Data Memories from D0 to D100

> D1000 #0 ; Check for Non-Zero Data in D1000

BSET #0 D100 D1000 ; Clear from D100 to D1000


Thanks again Jay.... (It's you again...hehehe:oops: )
The program works great but maybe you misunderstand my english a little, I just want to clear the last data from d900 to d999 which means no shifting data after d900 ( 10 set of data only),
so I change to BSET #0 d1000 d1099, I thinks its ok(is it?).
So all the data only between D0-D1000....
Thanks again(y)
 

Similar Topics

Hi, I am still confused when to use just simple memory tags or put it in a data block. The same, when to put your ladder logic in a function or a...
Replies
3
Views
3,294
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
95
Hello everyone! We have a project running on a 1756-L72. The controller’s data and logic memory is about to end. We have about 8% free. I have a...
Replies
3
Views
1,089
Hi Everyone, We are getting an error window whenever I opened the Factory talk asset center Application as "The Database size is critical level...
Replies
0
Views
351
Dear colleagues, I am reaching out for assistance with an issue I am having. I have a code that can successfully insert data from FactoryTalk...
Replies
6
Views
1,099
Back
Top Bottom