13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 203 PFSUBFLOATING POINT NUMBER SUBTRACTIONFUN 203 PFSUBSa: MinuendSb: SubtrahendD : Destination register to store the resultsof the subtractionSa, Sb, D may combine with V, Z, P0~P9 toserve indirect addressingRangeOperandHR ROR DR K XRR0∣R3839R5000∣R8071D0∣D4095FloatingpointnumberV、ZP0~P9Sa ○ ○ ○ ○ ○Sb ○ ○ ○ ○ ○D ○ ○* ○ ○Description• The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation ofthe format please refer to 5.3 (Numbering System)…page 5-9.• Performs the subtraction of the data specified at Sa and Sb and writes the results to a specified register Dwhen the subtract control input "EN" =1 or "EN↑" ( P instruction) from 0 to 1. If the result exceed the rangethat the floating point number can be expressed(±3.4*10 38 ) then the error flag FO0 will be set to 1 andthe D register will be intact.X0EN203P.FSUBSa : R0Sb : R4ERRD :R107-129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!