Is it Possible to Program D000.0 in a Mitsubishi PLC?

tmiuser

Member
Join Date
May 2009
Location
Kentucky
Posts
26
Howdy, Folks....

I am looking to try and program up a few buttons for a HMI.
The HMI easily understands "D000.0, D000.1, D000.3" to
separate the 'bits' of a Data Register.....

But, I have not ever tried to program a single bit of a Data Register in a Mitsubishi PLC.

Can you do this????:
-----] [-----------------(D000.0)---

???????
Thanks!
 
Data registers are usually used to STORE data and then used in some other way, like a compare statement, that would THEN allow a coil or some other statement to become true.


---I I-----[= D000.0 K1]------------(M0)--


When in dought RTFM.đź““

If your addressing is correct it looks like you are using a Q series processor. While I have not done anything with those I have with FX and A series and my answer would be correct. Maybe someone else can correct me. Parky and Goody use Mitsi also.
 
i have used the set instruction with D registers on Q Series CPU's before - so i'd say its possible.

--| |---------[SET D0.0]
 
Yes, I understand that D Registers......But....

are normally used for 'data'.

I am using a A2SH PLC, actually.

I would love to RTFM....if I could find one.
I have already scanned until my neck hurts thru MEAU.COM
and have downloaded umteen hundreds of PDF's.....
but, what I would really like to find is the Instruction Set manuals for these things.

Oh...and the purpose of all of this is to make a Ladder that resembles the following.....

X00
---] [---------------------------------------(D000.0)---

M0
---] [---------------------------------------(D000.1)---

M340
---] [---------------------------------------(D000.2)---

Y8F
---] [---------------------------------------(D000.3)---


Fairly Easy to do in a AB... you just designate the bit you want.
i.e.
---] [--------(N7:0/0)---
---] [--------(N7:0/1)---
---] [--------(N7:0/2)---


Just trying to figure out how in the world that is done in a Mit.

Thanks.
 
This is what I could cut and paste from my A series manual.


Hope it helps.


2.9 Data Register D


1) The data register is
a memory which stores data inside the
PC.
2) Data registers consist of 16 bits and allow read and write
operations requiring 16 bits.
3) When 32-bit data is handled, two registers are used. The
data register number specified by the 32-bit instruction
contains the lower 16 bits and the specified data register
number +1 contains the upper 16 bits.

4)


The data stored by the sequence program is retained until
other data is stored.
5) The data stored in the data register is cleared by turning on
the power or moving the RESET switch to the "RESET" position.
The latched data registers are cleared by moving the RESET
switch to the "LATCH CLEAR" position with the RUN key
switch located at the STOP position.
6) The following devices can be used as data registers. (if not
utilized)
Unused timers (T) and counters (C) File registers (R) in the range specified by parameter
setting
Link registers (W) which are not used for data link
Index registers (Z, V)
Accumulators (AO, A l l

 
OK...Here's what I have found......

In a 'A' Series book....
The only instruction I have found that might do what I desire is.........

BSET and BRST

so, for each rung that I want to use....
(i.e. BIT)

X0
--][----------(D000.0)-- (Button Pressed)

M30
--][----------(D000.1)-- (Interlock OK)

Y10
--][----------(D000.2)-- (In Position)


I would need to do this.......

X0
--][----------[BSET D0 K1]--

M30
--][----------[BSET D0 K2]--

Y10
--][----------[BSET D0 K1]--

AND........

X0
--]/[----------[BRST D0 K1]--

M30
--]/[----------[BRST D0 K2]--

Y10
--]/[----------[BRST D0 K1]--

But, according to what I am reading...this should give me the result I desire. (Just will take 2 rungs for each 'bit'....)

?Better suggestions?......

Steve
 
Code:
X00
---] [---------------------------------------(D000.0)---

   M0
---] [---------------------------------------(D000.1)---

   M340
 ---] [---------------------------------------(D000.2)---

   Y8F
 ---] [---------------------------------------(D000.3)---
Code:
X00
---] [---------------------------------------[MOV K1 D0]---

   M0
---] [---------------------------------------[MOV K2 D0]---

   M340
 ---] [---------------------------------------[MOV K4 D0]---

   Y8F
 ---] [---------------------------------------[MOV K8 D0]------

etc
 
or
Code:
X00
---] [---------------------------------------(M100)---

   M0
---] [---------------------------------------(M101)---

   M340
 ---] [---------------------------------------(M102)---

   Y8F
 ---] [---------------------------------------(M103)---

   M9036
 ---] [----------------------------------[ MOV K4M100 D0]---
 
bit level access to data registers works on most plcs (Q, FX3U etc.), does not work on smaller FX units for example.


however, i don't understand why is this asked, it should be tried.
 

Similar Topics

I will be designing an automated hydrostatic system. The system on paper works like this, a plc like the click will get information from an hmi...
Replies
227
Views
43,558
Hello. I have been trying to crack this one without success and could not find any hint after several search attempts. I wonder if any CODESYS...
Replies
4
Views
3,956
Hello, I'm pretty sure I know the answer to this, but wanted to verify with the experts. Am I able to write a program using the Micro Starter...
Replies
7
Views
3,179
First off, i am new to ladder logic. I do have some experience programming microcontrollers in C. I will try and give a short version and if more...
Replies
7
Views
2,045
This is a CompactLogix L33ERM, version 30 (31 is too unstable on my machine to work with), with a Kinetix 5500 drive. I have a program where...
Replies
2
Views
2,032
Back
Top Bottom