-
The output coil of the control motor is a bit element, that is, 1 and 0, using CMP comparison, the value of the result data register D is driven by comparing the bit element, such as D is greater than 0, the bit element M, conduction, and then through M, the motor contactor is turned on.
It is necessary to straighten out the distinction between bit components and registers.
-
Only 1 and 0 can be output, not -1, if you want the motor to be reversed, unless the special motor.
-
Compare directives CMP S1 S2 D
S2S1, the bit soft element D+2 becomes on
The last two bits should be set aside.
The outputs are also only 0 and 1
1 is not a bit of energy, it is a signed number.
The output coil also only has 0 and 1 to realize the motor reversal to see your external wiring.
-
First of all, I don't know what PLC you use, Siemens has greater than or equal to, less than or equal to, greater than, less than than, equal to ......And not a directive. Generally speaking, simple comparison is meaningless, that is, after the comparison is judged according to the comparison results is the main thing, I think your instruction means: d0=d1-d2, if so, the name should have a judgment instruction, judge d0 is zero or 1 or other numbers for program jumping.
The motor forward and reverse must first be supported by the motor, and the second circuit should be wired according to the instructions of the motor, in short, if you want to realize the function, you have to design hardware and software, PLC is some programs, and the program is whether you are a motor or a relay or a machine tool or something.
-
CMP directive for Mitsubishi PLC.
This means that a single-chip multiprocessor instruction can integrate symmetric multiple processors into the same chip, and each processor executes different processes in parallel.
The structure under the CMP instruction is designed to have multiple processor cores, each of which is relatively simple, which is conducive to optimizing the design, so it is more promising to a certain extent.
It is understood that IBM's Power4 chip and Sun's MAJC5200 chip both use CMP instructions, so that the cache will be shared within the processor, improve cache utilization, and simplify the complexity of the design.
-
The manual is very detailed.
For example, CMP K10 D10 Y0 is the value of the decimal constant 10>D10, Y0=1;
When the decimal constant is 10 = the value in d10, y1 = 1;
When the decimal constant is 10 <>
-
It is to compare two numbers and get a result of whether one is greater than, equal to, or less than.
-
When the execution condition is on, C1 and C2 are compared.
When c1 > c2, the flag bit is 25505 on
When c1 = c2, the flag bit 25506 on
When c1 < c2, the flag bit 25507 on
The CMP comparison command compares 2 values and outputs the result (large, consistent, small) to the soft component (3 points). The actions and instructions are as follows:
K2>D0 (the number is 0) states M10 is activated and the Y0 coil is energized. k2 = d0 (the number is 2), the state m11 is activated, and the y1 coil is energized.
-
It means to say".
When k3m13>k0, m25 is on
When k3m13=k0, m26 is on
k3m13k3m13 is a combination of bits.
Oh, I'm looking for a job about PLC, can anyone introduce me to Guangdong...
-
1.Compare directives CMP S1 S2 D
S2S1, the bit soft element D+2 becomes on
In your command cmp k3m13 k0 m25, k0k3m13, m27 is on
2.Explain the significance of the combination of k3m13.
First of all, bit soft element: only the soft element that handles the ON off state, such as the word soft element: the element that processes digital data, such as etc.
However, the counterpoint soft component, which consists of a combination of kn and the first component number, can also process the digital soft component to form the word soft component. The 4 bits of the bit soft element are grouped together into a unit.
K1: 4 bits, K2: 8 bits, K3: 12 bits, K4: 16 bits, for example, K1X0 represents 4 bits of data for x3 x0, and K3M13 represents 12 bits of data for M24 and M13.
-
"<" unsigned less than, you can compare 16-bit unsigned binary data, it is an input comparison instruction, and its comparison result can be directly used as an execution condition, that is, there must be other instructions between this type of instruction and the right bus.
CMP": Compares two unsigned binary values, the comparison result is displayed by the corresponding comparison flag, and the instruction can only be connected to the right bus.
-
M10 and M20 are not related to CMP, they are used in from k0 k29 k4m10 k1
K4M10 is a 4*4-bit data composed of M10, that is, M25M24M23M22... The 16-bit data of m12m11m10 is used here for m10 and m20
Hope...
-
CMP is a comparison instruction d128 and 1 comparison, and the result is put on the 3 bits starting from m11, d128 is less than 1, and m11 is 1
D128 is equal to 1 m12 is 1 D128 is greater than 1 m13 is 1
PLC has the concept of macro, in fact, the so-called macro is any kind of programming software, it is just a thought, the specific form may be different, but the function is the same, is to simplify the process of repeated programming and the establishment of the concept of macro, and Excel in the macro concept is similar. It refers to a set of algorithms. For example, Mitsubishi PLC's Q series, there is a macro function, that is, a macro function, the approximate usage is that you write a program, you can register this program as a macro, and then set some macro parameters, and then you can call the macro and set some parameters that you set when establishing the macro, you can automatically generate the corresponding program, simplifying the writing steps. >>>More
Lianwei Intelligent Education, Qicheng Education and other PLC training is good. >>>More
People are asking about PLC industrial control.
1. Standard contacts LD, A, O, LDN, AN, ON, LD, take instructions. Represents a normally open contact instruction connected to the input bus, that is, the start of the normally open contact logic operation. ldn, take the negative instruction. >>>More
TO is to write the command of the special function module, that is, to send the data in the PLC to the special function module and buffer memory BFM. >>>More