Mitsubishi Code help still needed

escoplcguy

Member
Join Date
Jun 2010
Location
New Jersey
Posts
191
Hey guys,

I am starting to sort of understand what is going on in the mitsubishi world of programming, but i am still at a loss when it comes to these math instructions. I have an example and i really hope someone can help me fully understnad this, cause its all i really have left to this program puzzle i was left with...

i have a rung that says..


M8000
---| |----[DEMUL D957 D971 D248]
__________________5.0 185.0 27.942


This makes no sense to me because if you do the acutal math 27.942 is obviously not that answer.

Further details:

D957 gets its value, i think, from this instruction

[FLT D235 D957]
________5 5.00

But then further down the program there is this

[DEDIV D244 E600 D957]
_________90.624 5.00
Then Further down i have

[DEDIV D248 E28.32 D957]
__________27.942 5.00
Then of course theres

[DEMUL D954 E600 D957]
__________833.30 5.00



Problems like this are all through out this program and it doesnt make any sense to me... also how can a value be in a register when there are multiple values being either moved or multiplied to that register.... I'm so confused...
 
Lots of things to look for, remember M8000 is the run contact so wherever this is used it will do the math, move or whatever if there is no other logic between it and the instructions. Also doing D(E)Mul or D(E)Div results in the answer being stored in 4 consecutive registers D248(249,250, & 251)
 
M8000 is 'Always On' but what else is in the rung.
D248 is a result value that may be from another part of the program
do a search for D248
 

Similar Topics

Hey guys, I am tryinh to scale a 4-20 input in GX Developer. I have the the input set to D1 which shows me a value in mA. I have my y=mx+b...
Replies
5
Views
2,787
I am new to PLC programming and just started a new internship where they are asking me to write a pretty simple program. I am studying Mechanical...
Replies
27
Views
19,956
Hi Friends, just new with this forum and PLC mitsubishi, currently, i try to upload code from PLC Q00CPU. i don't have the project with me. when...
Replies
4
Views
1,363
Hi, I am looking to solve error in mitsubishi PLC. Error code 7000 is currently active, which is for motion control. It has multiple controller...
Replies
0
Views
835
Hello Friends I have a machine with a barcode reader connected through serial port to a GS2110 HMI and a FX3G CPU. Where can I found the tag...
Replies
4
Views
1,628
Back
Top Bottom