Omron's MOVD (read with caution)

theripley

Member
Join Date
Jul 2008
Location
laguna
Posts
545
CAUTION: This will be a long post.

I get a little confuse with MOVD (MOVE Digit) instruction of omron PLC.

According to an explanation I googled, a MOVD instruction has 3 elements: Source (S), Control word (C), Destination (D). The Source (S) is the value to be copied, control word (C) is the manipulator of the "movement", destination (D) is the destination of the copied value starting from the digit specified in C and filling in to the left.

Example:

MOVD DM0 #0132 DM10, DM0 = 5678 (D3=5, D2=6, D1=7, D0=8)

S = DM0
D = DM10
C = 0132 (D3=0, D2=1, D1=3, D0=2)
D0 = 2 (Specifies the 1st digit copied from source, the value must be
from 0 - 3)

Hence, the D2 of DM0, which 6, will be the first to be transferred
to the location specified by D2 of C.
D1 = 3 (Indicates the number of digits to be copied, 0=1 digit, 1=2
digits, 2=3 digits, 3=4 digits)

Since D1 of C = 3, hence we will move all 4 digits of Source to
Destination.
D2 = 1 (Indicates the starting digit that the data will be moved into
the Destination)

The D2 of DM0, which is 6, will be moved to D1 of the
Destination. The rest of the digit will be copied in the same pattern and
wrapping back around to D0.
D3 = 0 (The MSB must always be zero)

Hence result of the "movement" will be:

MOVD DM0 #0132 DM10 (DM0 = 5678, DM10 = 8567)

Continue to next post.........
 
If I have:

MOVD DM0 #0000 101, DM0 = 3 (D3=0, D2=0, D1=0, D0=3)

Hence,

101 = 3
102 = 0
103 = 0
104 = 0

However, 101 is a bit. So how it is going to function having a value of 3?
 
I see.

Hence,

D0 = 101.00-101.03
D1 = 101.04-101.07
D2 = 101.08-101.11
D3 = 101.12-101.15

Meaning if DM0 = 3 with C = 0000, then

101.00 - 1
101.01 - 0
101.02 - 1
101.03 - 0
 

Similar Topics

Hi There. I have PC to get few tags from PLC into C# windows forms application. What is the best and fastest way? I could not find Omron in...
Replies
3
Views
161
Our plant manger/my boss wants each line to display the takt time above the line. I am trying to research the cheapest way to do this. Our plant...
Replies
3
Views
166
Hello everyone. I am new when it comes to Omron PLCs. Currently I'm uploading program from CJ1M PLC using CS1W-CIF31 cable only. I connected the...
Replies
2
Views
99
Hello ! I am trying to use an omron cj2m-cpu33 with a CP1W-CIF01 plug in serial connector to talk to a zebra ZT610 printer. I am getting the data...
Replies
8
Views
316
Hello everyone, I'm having trouble downloading a file to a omron nt11 PT. I am able to upload from 2 other PT's but am unable to download...
Replies
3
Views
209
Back
Top Bottom