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 Datenbogen

Produktcode
198805
Seite von 42
valid. All inputs may appear different when they will be shown on LCD or printed. This is caused by internal 
formatting, but of course does not change the value itself. 
 
OUTPUT 
Output ot terminal or LCD is controlled by the Object that is active. All examples for the Unit ADVANCED 
write to LCD 
 
 
Outputformat: 
Values larger than 1: 
For output in decimal there are 7 digits available which are distributed to be located before and after the 
decimal point. 
But always at least one digit remains after the decimal point. 
If this is not possible (e.g a value with more than 7 digits before decimal point) the scientific notation is used. 
Is a value positive, a blank is written first and a minus otherwise.  
 
 
 
Values 0 bis 1: 
Very small values are shown decimal as long as there is only a single zero after the decimal point.  
Otherwise here the scientific notation is used also. 
 
 
12345.123456             shown as                    12345.12  
123456.1234567         shown as                   123456.1 
1234567.1234567       shown as                   1.23456E06  
-1234.1234567            shown as                  -1234.123 
1.234566E03               shown as                   1234.123  
0.0123456                   shown as                    0.012345 
0.001234567               shown as                   1.234567E-03 
 
 
 
 
 
 
 
 
 
FPPRINT 
Provides a formatted output to LCD or terminal 
Because a FP value may have many digits it is useful to limit the number of digits after decimal point. The 
decimal point counts as one digits . 
FPRINT always means an output to LCD or terminal (depending on the active object) and is not written as 
LCD.FPRINT if output is done to LCD 
 
 
 FPPRINT (Term, Digits)  
 
  
 
Examples for terms in  FPPRINT: 
 
FPPRINT(MyFloat*FLOAT(MyWord),5) 
FPPRINT(MyFloat*MyFloat,5) 
 
 
 
 
Note: 
FPPRINT ignors the operator  &    
FPPRINT (MyVar,3) & "VOLT"           is therefore no possible but easyly can be achieved by adding: 
LCD.PRINT "VOLT"  
 
 
PRINT  
Provides a standard unformated output to LCD or terminal 
 
A PRINT instruction will cause an output value with n digits after the decimal point (corresponding to the 
internal formatting) and is not different to an output of a WORD or BYTE variable. For an output to LCD here 
therefore it must be written: 
 
31