MOVE Block Function - Noob question

kat

Member
Join Date
May 2019
Location
KL
Posts
5
Hello, I did a programming using MOVE block. However, whenever i press input. The MOVE block does not read the value assigned to transfer. Instead of '1' that I set, it read '32' . Does anyone know how to fix this?
 
D5kZuRaXsAg66-h.jpg


from INT to INT
 
Your picture didn't attach properly so we can't see it. With little information my best guess is that you are transferring M type memory and have duplicated addresses. In all Siemens PLCs you can use memory as you wish but you have to be aware of overlaps. So M0.0 and M0.1 are part of M0, if you use the bits in one place and the word/int in another they will affect each other. It is a common way that you don't get the result you expect.
 
MW address

Attached files are how I programmed my MOVE block. When it read 0 on MW10 and 2 on MW12. The comparator reads the '2' value from MW12 but not '0' from MW10. I've tried various ways on fixing this but the value won't read what I wanted. It read as 2 < 0 when it supposed to be 2 > 0 on the comparators.

1.jpg 2.jpg 3.jpg 4.jpg
 

Similar Topics

Afternoon, I have a DB in TIA Portal V16 that is optimised. I cannot change this. There is an array inside that block which consists of 3000...
Replies
9
Views
1,118
Hello, In Tia Portal I put a motion block called MC-MoveRelative from the Technology instruction. I choose an instance datablock and I want to...
Replies
4
Views
1,443
Hello ladies an gents, I've always had a weakness of being too persistent; I often go way to long while knowing that all it would take to...
Replies
24
Views
6,480
Hi, Ok bear with me, I have an Array of Real in a DB ranging from 0 to 10. In ladder I want when count pulse = 100 move count into Array 0...
Replies
1
Views
2,076
Hello everyone. I have question on using Siemens PLC 1200 for Data Block move. The question is: I have 30 words, like MW20---MW29...
Replies
39
Views
10,343
Back
Top Bottom