[ Pobierz całość w formacie PDF ]

data specified by the S value or S~S+1 register, and store the result into the register specified by D~D+1.
Range of S data : -1~ +1 ; range of D value : 0 ~ À(Unit in radian)
If the value of S is out of range0or invalid indirect addressing, the error flag "ERR" will be set to 1, and not
update the value of D~D+1.
All floating point instructions can t be executed in interrupt service routine.
Example
$ When M219=1, calculate the arc cosine value, it is DD258 = cos-1 DD58;
DD258(Unit in radian) × 57.295788(180/À ) to acquire the degree value
6
Floating point instructions
FUN 220 P FUN 220 P
FLOATING POINT ARC TANGENT FUNCTION, tan-1
FATAN FATAN
S : Source data or register to be calculated the arc
F220P.FATAN
Operation
tangent value
Control EN S :
ERR
D :
D : Register for storing the result
S, D may combine with V, Z, P0~P9 to serve indirect
address application
HR ROR DR K XR
Range
R0 R5000 D0 V0Z
Floating
Ope- #" #" #"
number
P0^ÿP9
rand R3839 R8071 D3999
S Ë% Ë% Ë% Ë% Ë%
D Ë% Ë%* Ë% Ë%
Description
The format of floating point number of Fatek-PLC follows the IEEE-754 standard of 32-bit.
When operation control "EN" = 1 or "EN‘!" ( P instruction) from 0 to 1, calculate the arc tangent value of the
data specified by the S value or S~S+1 register, and store the result into the register specified by D~D+1.
S data is any number ; range of D value : -À/2 ~ À/2 (Unit in radian)
If it exists invalid indirect addressing, the error flag "ERR" will be set to 1, and not update the value of D~D+1.
All floating point instructions can t be executed in interrupt service routine.
Example
$ When M220=1, calculate the arc tangent value, it is DD260 = tan-1 DD60;
DD260(Unit in radian) × 57.295788(180/À ) to acquire the degree value
7 [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • metta16.htw.pl
  •