PLC BLOG | Mitsubishi | Mitsubishi PLC Comparison Instruction - Mitsubishi 16 bit, 32 bit, floating point and Character string data Comparison Instruction
Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


lg-12 col-12 fb-share-button">

Share on Facebook

Share on twitter

Share on Whats-App

Mitsubishi PLC Comparison Instruction - Mitsubishi 16 bit, 32 bit, floating point and Character string data Comparison Instruction

Mitsubishi PLC Comparison Instruction is used to compare two value. Comparison Instructions are equal to, greater than, less than greater than or equal to. in comparison instruction generally have two value S1 and S2, Data value of S2 is compared with data value S1 if the comparison result of S1 and S2 is true than output is activated otherwise output is is OFF condition. S1 is first source value of comparison and S2 is second source value of comparison. Mitsubishi PLC Comparison Instruction is divide as 16 bit, 32 bit, floating point, and character string, 16 bit block and 32 bit block comparion.in this article we discuss only 16 bit, 32 bit, floating point and Character string data Comparison Instruction. block comparison instruction in separate article. each Comparison Instruction have symbol which are help to determine which type of instruction is used following are the Comparison Instruction is available in 16 bit, 32 bit, floating point and character string


Mitsubishi PLC 16 bit Comparison Instruction

Mitsubishi PLC 16 bit Comparison Instruction only compare 16bit value all above instruction. so if you want to comparison of 16 bit value than use 16 bit compare. below is the example of Mitsubishi PLC 16 bit Comparison Instruction in this example S1 is assigned by data register D0 and S2 assigned by data register D1. with and input and Output coil.

Mitsubishi PLC 16 bit Comparison Instruction

above is the example of Mitsubishi PLC 16 bit Comparison Instruction, in these example we have all comparison instruction.


Mitsubishi PLC 32 bit Comparison Instruction

Mitsubishi PLC 32 bit Comparison Instruction used to compare 32 bit value. range of 32 bit value is more as compared to 16 bit data value. all instruction is same used as described in 16 bit comparison instruction only difference is the value range. so if your application have 32 bit value operation than use 32 bit comparison instruction.

Mitsubishi PLC 32 bit Comparison Instruction

above is the example of Mitsubishi PLC 32 bit Comparison Instruction -


Mitsubishi Floating Point Comparison Instruction

Mitsubishi Floating Point Comparison Instruction is used for floating point and real type value 16 bit and 32 bit comparison instruction only compare numerical value without decimal but if your value is real or floating point than use floating point comparison instrunction.in floating point have same comparison instruction and same structure. in Mitsubishi Floating Point Comparison Instruction have two types

Mitsubishi single precision Floating Point Comparison Instruction

above is the example of Mitsubishi single precision Floating Point Comparison Instruction in these example S1 is assigned by Data register D0 and S2 is assigned by D10.


Mitsubishi Double precision Floating Point Comparison Instruction

above is the example of Mitsubishi Double precision Floating Point Comparison Instruction in this example S1 is assigned by SD20 and S2 is assigned by SD30


Mitsubishi character string data Comparison Instruction

Mitsubishi character string data Comparison Instruction compare two string according to comparison result output is set to active. A comparison operation involves the character-by-character comparison of the ASCII code of the first character in the character string. in this string comparison only for character or string.

Mitsubishi character string data Comparison Instruction

above is the example of Mitsubishi character string data Comparison Instruction -