C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805 Ficha De Dados
Códigos do produto
198805
EXP(MyFloatX,MyByteY)
Calculates x power y based on continued multiplication and is full 32 bit accurate.
EXP(MyFloat, Mybyte)
EXP(12.345,3)
EXP(MyFloat,3)
The variable RESULT contains calculation result
EXP(12.345,3)
EXP(MyFloat,3)
The variable RESULT contains calculation result
-----------------------------------------------------------------------------------------------
TAN(x) (x=degrees)
TAN is calculated with a SIN function and has an absolute error of 0.5 at 89°. At lower angles the accuracy
increases rapidly. At 80° the calculation is accurate up to 3 digits.
increases rapidly. At 80° the calculation is accurate up to 3 digits.
TAN(MyFloat)
TAN(12.345)
The variable RESULT contains calculation result
TAN(12.345)
The variable RESULT contains calculation result
-----------------------------------------------------------------------------------------------
The FLOATING POINT TOOLS LIBRARY
This library contains tools that are often needed and will make your programming more enjoyable
GET_FPVALUE() Enter a FP value with keyboard
The call of this function lets u type a floating point by keyboard value e.g. to set up some parameters or
similar.
The input value then is available at the variable RESULT1 for further processing.
The function is dedicated to the keyboard provided with the Application Board or any other based on this
circuit. The keys 0 to 9 have to be pressed to enter this numeric values. F2 will create the minus sign, F1 the
decimal point. If an decimal point is already entered, F1 will create the character E preceding the exponent
value. If a value is entered in scientific notation, the mantissa must have a decimal point therefore.
See the example here:
The call of this function lets u type a floating point by keyboard value e.g. to set up some parameters or
similar.
The input value then is available at the variable RESULT1 for further processing.
The function is dedicated to the keyboard provided with the Application Board or any other based on this
circuit. The keys 0 to 9 have to be pressed to enter this numeric values. F2 will create the minus sign, F1 the
decimal point. If an decimal point is already entered, F1 will create the character E preceding the exponent
value. If a value is entered in scientific notation, the mantissa must have a decimal point therefore.
See the example here:
-123E-02
INPUT: <F2> <1> <2> <3> <F1> <0> <F1> <F2> <0> <1> <E> enters the value -123.0E-02
The input format is widely flexible, but some rules have to be considered.
1) The leading ZERO in front of the decimal point must be written 0.001 (not: .001)
40