riouxhugo Member R Join Date Sep 2009 Location Mtl Posts 18 Oct 22, 2009 #1 Hello, I would like to reset to zero Data File N96 compose of 20 elements (N96:0 to N96:20). I would like to do this using one command only if possible. Thanks for your help. H
Hello, I would like to reset to zero Data File N96 compose of 20 elements (N96:0 to N96:20). I would like to do this using one command only if possible. Thanks for your help. H
Bob O Member B Join Date May 2003 Location Posts 1,873 Oct 22, 2009 #2 What have you tried that didn't work?
riouxhugo Member OP R Join Date Sep 2009 Location Mtl Posts 18 Oct 22, 2009 #3 The only way I know it will work is using clr or mov for every elements. I don't know which command to use for one shot.
The only way I know it will work is using clr or mov for every elements. I don't know which command to use for one shot.
Bob O Member B Join Date May 2003 Location Posts 1,873 Oct 22, 2009 #4 Which controller are you using? Look in the help file and search for FLL.
riouxhugo Member OP R Join Date Sep 2009 Location Mtl Posts 18 Oct 22, 2009 #5 I'm sorry, i forgot to say I'm using a SLC5/05 (RSLogix 500).
OkiePC Lifetime Supporting Member Join Date Mar 2005 Location ENE of Nowhere Oklahoma Posts 11,776 Oct 22, 2009 #6 Try FLL (Fill File) with a source of 0, destination of N96:0, and length of 21.
riouxhugo Member OP R Join Date Sep 2009 Location Mtl Posts 18 Oct 22, 2009 #7 It's working with FLL command. Thank you very much Bob and Okie for your guidance.
jdbrandt Lifetime Supporting Member J Join Date Oct 2002 Location Pennsylvania Posts 1,203 Oct 24, 2009 #8 If you want to flair it up a bit, you can always XOR the file with itself, and store it in itself. hehehehe OkiePC said: Try FLL (Fill File) with a source of 0, destination of N96:0, and length of 21. Click to expand...
If you want to flair it up a bit, you can always XOR the file with itself, and store it in itself. hehehehe OkiePC said: Try FLL (Fill File) with a source of 0, destination of N96:0, and length of 21. Click to expand...