MOV with a STxx:xx File????

tech-1452

Member
Join Date
Jul 2009
Location
wapakoneta
Posts
5
I am using a SLC 5/04 with a AST3301 Proface touchscreen. I am using 500 software. I have recipes stored in the Nxx:x file. I have names of the recipes stored in a STxx:xx file. Is there a way to MOV with a STxx:xx file? :confused: I have temporary running places in the STxx:xx file that I wish to temporary store the running recipe name so that I can display it on the touchscreen.
 
The reason you can't use a MOV is because it operates on single words only and a string is 42 words long (82 chars (byte) + .LEN word). Use the COP instruction with a length of 1. COP uses element length, and even though a string is 42 words, it is still 1 element.

Another way to move single strings is using AEX. The reason I suggested AEX is that RSLogix 500 SLC instruction help states that you can use indirect addressing with this instruction.

AEX ST19:[N7:0] 1 82 ST20:0

This extracts the string at ST19:[N7:0], beginning at char 1 through char 82. If the string is less than 82 chars long then only the chars up to ST19:[N7:0].LEN are extracted.
 
Just as an update, the AEX allows indirect in the source string address but not in the destination string address. For my recipe functions I need to use it both ways. Too bad.
 

Similar Topics

Hello experts. Anyone has any idea how to make BLKMOV execute only once? I have tried with R_TRIG and (P) but it wont write to my location.
Replies
3
Views
200
I've used AOI and User Defined Data Types, but I haven't created one yet. I have a lot of repetitive MOV commands to take a select number of...
Replies
4
Views
389
I'm having to make an AOI to use with a generic ethernet device because the manufacturer does not provide an AOP. I just want to do a sanity check...
Replies
13
Views
1,265
Hello, I'm trying to copy the entire value of a UDT base tag to an element of an array of another UDT containing an element of the first UDT...
Replies
7
Views
1,682
Hi, I would like to move a word to display wind direction. For example: NW, or SE, or ESE in RSLogix 5000, not panelview. I have a wind speed...
Replies
18
Views
5,565
Back
Top Bottom