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>FUN201 D PFICONVERSION OF FLOATING POINT NUMBER TO INTEGERFUN201 D PFILadder symbolConversion controlEN201DP.FS :D :IERRRange ErrorS : Starting register of Integer to be convertedD : Starting register to store the result of conversionRangeOperandHR ROR DR K XRR0∣R3839R5000∣R8071D0∣D409516 bitOR32 bitV、ZP0~P9S ○ ○ ○ ○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.• When conversion control "EN" = 1 or "EN↑" ( P instruction) has a transition from 0 to 1, will convert thefloating point data from S~S+1 32bits register into D register( integer data ).• If the value exceeds the valid range of destination, then do not carry out this instruction, and set therange-error flag “ERR” as 1 and the D register will be intact.X2EN201P.FS :IR20ERRD :D107-127

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

Saved successfully!

Ooh no, something went wrong!