Speak with authority, quality is trustworthy.

PLC instructions and comparison of the use of the instance

by:Coolmay     2020-07-22
We should all know, transfer instructions and compare instruction can be said to be the function of the most commonly used commands. Transfer instructions have transmitted MOV, digital transfer instructions SMOV, take the transfer instructions CML, batch transfer instructions BMOV, multicast FMOV instruction, so many transfer instructions are commonly used in fact is the MOV instruction. More instructions have a CMP, interval comparison order ZCP, floating point comparisons instruction ECMP, EZCP, this a few more instructions which is commonly used in the CMP instruction. Besides, there are data exchange instructions XCH, contact will be more frequently used to compare instructions.

here we give an example of applying to multiple instructions to master the commonly used commands.

10 Numbers, existing respectively in D0 ~ in the D9, write a program to find the maximum number, and saving it to the D10.

in this case, the program is not so short but use to many knowledge points, have transfer instructions, instructions, contact more instructions, data exchange instructions, add 1 instruction, and knowledge of indexed addressing.

then expand again, we can also use FOR a cycle, the NEXT instruction design program, adopt the method of call subroutine.

so, with this small example, we can not only control to transfer instructions, instructions, contact more instructions, data exchange instructions, add 1 instruction, can also learn to cycle instruction, subroutine call instruction, and knowledge of indexed addressing.

Chat Online
Chat Online
Chat Online inputting...
Sign in with: