Problem with simple MOV instruction

buckian

Member
Join Date
May 2009
Location
couva
Posts
14
Hi everyone,

I'm trying to do a simple data move.

I have 2 tags of REAL and just want to move the tag1 data into tag2.

here is the code:

.......X1
|----[]---------------------[MOV ]----|
| .............................. [source: tag1].|
| ................................[ 60]............ |
| ...............................[dest: tag2]... |
| .................................[ 0]............. |



I am running this in RSLogix 5000 emulate. When I toggle bit X1, I expect tag2 to get its value from tag1, but even though X1 turns green, the source and destination values stay as they were.....

Anyone know what the problem is?

Ian
 
Last edited:
1. Is the code possibly in a subroutine which isn't scanned?

2. Is tag2 overwritten by something else (0) before the end of the scan after this code?
 
found the problem

Guys,

thanks for pointing this out....

The code was in a routine that was not being executed. I copied the code into the main program to test it and it worked beautifully! thanks!

Ian
 

Similar Topics

I have a program that does a 7 second "scan" sensor calibration routine whenever a setting (setting is called assistance level or "AL" and ranges...
Replies
3
Views
212
It would be awesome if someone could help me out with this problem. We can only use basic XIC XIO OTE OTL and OTU instructions. I'm not sure on...
Replies
33
Views
9,062
I'm trying to create a momentary push button using the pre-made libraries. Unfortunately, it seems they are all latching switches?? I'm not sure...
Replies
1
Views
1,400
For some reason, I cannot get even the most simple integer to integer function to work, e.g., (MOV N18:24 to N31:2). I have also tried MULT...
Replies
10
Views
2,535
Hi! Found this forum by accident and so far it seems to be active. :) PROBLEM: I want to use ARRAY OF BOOLs to determine which coils are set and...
Replies
1
Views
2,676
Back
Top Bottom