
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Just an addendum as a result of my recent work: I just found out that the SGN function in CControl 1 V2.0 does not work correctly. When evaluating a positive number, for example SGN(5), the function replies (0) instead of (1). I made a workaround with some IF THEN lines as shown below: 'ROUTINE ALS ERSATZ DER DEFEKTEN SGN-FUNKTION 'in #Signum_Funktion IF C < 0 THEN GOTO Kleiner_Null IF sw_Function1_Return = 0 THEN GOTO Gleich_Null IF sw_Function1_Return > 0 THEN GOTO Groesser_Null #Kleiner_Null sw_Function1_Return = -1 RETURN #Gleich_Null sw_Function1_Return = 0 RETURN #Groesser_Null sw_Function1_Return = 1 RETURN MaPi |
| Antwort schreiben |