PLC Floating point arithmetic Instructions FNC110~FNC139

Floating point arithmetic instructions include floating point comparison, arithmetic, square root operations and functions such as trigonometric functions. They are located in the order number is FNC110~FNC119, FNC120~FNC129, FNC130~FNC139.
(1) binary floating-point comparison instruction ECMP (FNC110) DECMP (p) instruction used is shown in Figure 3-83, to compare two source operands, the result reflected in the destination operand. If the operand is a constant it is automatically converted to binary floating-point value. The directive source operand k, h and d, target operand y, m, and s. For the 32-bit Command, 17 a program step.


(2) binary floating-point compare EZCP (FNC111) EZCP (p) function is the source operand of the instruction content and binary floating-point values specifying the upper and lower points of the area between the ON/OFF reflect the result in the destination operand, as shown in Figure 3-84. The instructions for 32-bit arithmetic instructions, covering 17 programs. The source operand can be a K,H and d; target operand y, m and s. [S1.] Should be less than [S2.], operands are constants will be automatically converted to a binary floating point value.


(3) binary floating-point arithmetic instructions add instructions EADD floating-point arithmetic instructions (FNC120), subtraction instructions ESUB (FNC121), multiplication instructions EMVL (FNC122) and divide instructions EDIV (FNC123) four instructions. Arithmetic instructions instructions for use is shown in Figure 3-85, which are two floating-point operations from the source operand into the destination operand. Operation error when the divisor is 0 o’clock, does not follow the instructions. Such instructions only the 32-bit operation, accounting for 13 programs. Results affecting the flag M8020 (zero sign), M8021 (a borrow flag), M8022 (carry flag). K and h and d in the source operand and destination operand to d. If constant participation in operation is automatically converted to a floating point number.


Binary floating-point square root, trigonometric function operation instructions, not all instructions here.




Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.