Having trouble understanding Some Applied Instructions

vidy_9

Member
Join Date
May 2018
Location
india
Posts
12
Hi Everyone!

I'm new to PLC and ladder diagram and i was hoping if any of you could help me explain what do these applied instructions mean.

I studied the manual but i dont seem to get it and need someone for me to explain it in layman terms especially the MUL D8142 K-1 part which i have no idea what K-1 MEANS.

Your Help is Greatly Appreciated.


Thank you :site:

1212121 - Copy.JPG 1212.JPG
 
Last edited:
Could you tell us the manufacture of the PLC?
The instruction looks like a multiplication of memory area D8142 by a constant K-1 and the result is stored at another memory location.

Regards,
 
Those look like Mitsubishi instructions to me. It looks like code for controlling the speed and direction outputs to a stepper or servo drive. "K" denotes a constant in their instructions. In this case, it is multiplying the number in D8142 by -1 and storing it in D2040.
 
K is used to denote a constant, in this case K-1 means a constant of minus 1, this would give a value of 65535 in 16 bit unsigned integer.


Steve
 
[MUL D8142 K-1 D2040] multiplies the value on D8142 as a 16bit integer signed value with the constant -1 and the result is stored as a 32bit signed integer in the pair of registers D2040 and D2041

In the other image [DDIV D8140 K10 D2020] divide the value on D8140 and D8141 as a 32bit signed integer with the constant 10 and the result is stored as 32bit in D2020 and D2021, the remainder is stored in D2022 and D2023.
The instruction D prefix stands for 32bit operation.
 

Similar Topics

Hey guys, I worked on this all night last night and all afternoon today. I have a SLC5/04 that I am trying to make a msg read from a PLC 5/20. I...
Replies
5
Views
2,198
The program seems and sounded simple enough to me, but I'm having trouble with it anyway. I'll give a quick rundown of what the system should do...
Replies
8
Views
2,507
So long story short I'm frustrated at work because I can't get my timer to actually time in the FB's. I have been using the SB4 blocks in my FB...
Replies
12
Views
3,008
The ATv 31's and 312's worked great. sans so move and the documentation. Why did they have to discontinue them? The 320's are not performing...
Replies
2
Views
1,775
Hello, I am on a automotive line right now (4 segments) and we have a barcode reader at the beginning of each segment at the elevators. The...
Replies
4
Views
2,267
Back
Top Bottom