RSLogix5000 Basic Question

kittydog42

Member
Join Date
Sep 2005
Location
Naperville
Posts
232
Is there a way to write multiple tags to 0? With the TSX37 Modicon, I would write %MW0:10:=0, for example, to indicate that I wanted to write 0 to %MW0 through %MW9. What I am actually trying to do is write 0 to multiple elements of an array to clear it out, but not necessarily starting at offset 0.
 
If the array is of a basic numeric type the the FLL should allow you to do what you want. If it is a user defined structure then create a zeroed copy of your UDT in a tag then use the COP command.
 
ya its easy,
you have to map the word/bit(which and all you want to move zer), into systamatic way (with free bits in the word starting from 0 say WX:0 to WN:0)and then you can use COP instruction to copy number of elements you wish to copy with ZERO 0.

Here WX=ANY STARTING WORD (STARTING FROM ZERO)
WN-END WORD
WX AND WN=SHOULD BE UNUSED.

thanks for your understanding.

Naag.
 

Similar Topics

from an email: this is a fairly common question - and since I'm swamped with other projects right now, I've decided to post my answer to...
Replies
7
Views
5,884
Greetings to all ... I got this in a PM the other day ... since the question is a rather common one, I decided to answer it here in the open...
Replies
10
Views
16,157
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
402
Hello everyone, I have an RSLogix5000 project which is running live in the factory but I need to make some changes to the logic. I want to test...
Replies
0
Views
1,113
Good Morning Everyone, I'm looking to use the GSV instruction to get I/O fault codes for my project so I know if there's a comms issue in my E/IP...
Replies
5
Views
852
Back
Top Bottom