[Instruction] Contents

[Instruction] Contents [Instruction] Contents

servotechnica.ru
from servotechnica.ru More from this publisher
13.07.2015 Views

Advance Function InstructionFUN 208 PFSQRFLOATING POINT NUMBER SQUARE ROOTFUN 208 PFSQRS : Source register to be taken square rootD : Register for storing result(square root value)S, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeHR ROR DR K XRR0∣R3839R5000∣R8071D0∣D4095FloatingpointnumberV、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 operation control "EN" = 1 or "EN↑" ( P instruction) from 0 to 1, take the square root of the dataspecified by the S value or S~S+1 register, and store the result into the register specified by D~D+1.• If the value of S is negative, then the error flag "ERR" will be set to 1, and do not execute the operation.X0EN208P.FSQRS : 2520.04ERRD :D07-135

Advanced Function InstructionFUN 209 PFSINSIN TRIGONOMETRIC INSTRUCTIONFUN 209 PFSINS : Source register to be taken SIND : Register for storing result(SIN value)S, D may combine with V, Z, P0~P9 to serveindirect address application.OperandRangeHR ROR DR K XRR0∣R3839R5000∣R8071D0∣D4095Integer16 BitnumberV、ZP0~P9S ○ ○ ○ ○ ○D ○ ○* ○ ○Description• The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of theformat please refer to 5.3 (Numbering System) page 5-9.• When operation control "EN" = 1 or "EN↑" ( P instruction) from 0 to 1, take the SIN value of the angle dataspecified by the S register and store the result into the register D~D+1 in floating point number format. Thevalid range of the angle is from –18000 to +18000, unit in 0.01 degree.• If the S value is not within the valid range, then the S value error flag "ERR" will be set to 1, and do notexecute the operation.X0EN209P.FSINS : 3000D : R100ERR • At left, the example program gets the SIN value of 30,and stores the results the register DR100.7-136

Advance Function <strong>Instruction</strong>FUN 208 PFSQRFLOATING POINT NUMBER SQUARE ROOTFUN 208 PFSQRS : Source register to be taken square rootD : Register for storing result(square root value)S, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeHR ROR DR K XRR0∣R3839R5000∣R8071D0∣D4095FloatingpointnumberV、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 operation control "EN" = 1 or "EN↑" ( P instruction) from 0 to 1, take the square root of the dataspecified by the S value or S~S+1 register, and store the result into the register specified by D~D+1.• If the value of S is negative, then the error flag "ERR" will be set to 1, and do not execute the operation.X0EN208P.FSQRS : 2520.04ERRD :D07-135

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

Saved successfully!

Ooh no, something went wrong!