F345_FCMP

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: EQ

Compares the real number data (floating point data) specified by s1 with that specified by s2. The comparison result is stored in special internal flags R9009, and R900A to R900C.

Parameters

Input

s1 (REAL)

Real number data to which s2 is compared

s2 (REAL)

Real number data compared to s1

Remarks

Comparison between s1 and s2

Flags

sys_bIsGreaterThan (>flag) sys_bIsEqual (=flag) sys_bIsLessThan (<flag) sys_bIsCarry (carry-flag)

s1 < s2

off

off

on

*

s1 = s2

off

on

off

off

s1 > s2

on

off

off

*

*Turns on or off depending on conditions.

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

  • if data other than real number data is specified in s1 and s2.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

  • if data other than real number data is specified in s1 and s2.

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline