Download EV5000 User Manual
Transcript
Chapter 9 Macro The configuration window is shown as follows: Perform offline simulation and enter “5” and “2” in LW0 and Lw1 respectively, and press “=” to obtain the result as follows: According to our estimation, the result shall be 2.5 instead of 2. What is the problem? If the user is familiar with the C language, he will be aware of the reason quickly. Because the data type for LW0_R and LW1_R is “short”, according to the default type conversion principle of C language, the division result will be rounded off to an integer. How to solve the problem? It is simple: just convert an input value into the type of “double”: LW2_W= (double)(LW0_R) / LW1_R; 294
Related documents
DeView LCD Monitor Instruction manual
Kaspro KA-Software Manual Rev_001
GM-5400T GM-3400T
Siemens KDN Series Specifications
User`s Manual for HIMOS Series
Smartec STM-150/170/190 LCD Monitors User Manual
OVERHAULING OF FUEL INJECTION PUMP (PNEUMATIC TYPE)
4To create a Function Key Object
Ponto Series CPUs PO3x42
NB-series Programmable Terminals Startup Guide Manual
ADSL 2/2+ VPN Firewall Router
GM-5400T - Pioneer