OSCAT Forum

oscat.lib => Bestehende Module / Existing Modules => Thema gestartet von: automatizator am 30. September 2008, 10:02:06

Titel: DEC_TO_BYTE problem
Beitrag von: automatizator am 30. September 2008, 10:02:06
I apologize if writing in English is not acceptable, but I only understand German enough to read the posts...

I think there might be some wrong checking in the various conversion functions, such as DEC_TO_BYTE, DEC_TO_DWORD, DEC_TO_INT and so on, at least in the plaintext version of the library (oscat276.txt). The IF clause

"IF X > 47 AND x < 56 THEN"

appears in them, but if you check the ASCII table you'll see that it should probably read

"IF X > 47 AND x < 58 THEN"

otherwise characters '9' and '8' will not be evaluated.
Titel: Re: DEC_TO_BYTE problem
Beitrag von: hugo am 30. September 2008, 10:30:10
we will check immediately and correct in version 277 if necessary

thx for the input

ps dont worry about english, its no problem for us
Titel: Re: DEC_TO_BYTE problem
Beitrag von: hugo am 30. September 2008, 10:49:01
thanks very much for the input,
the mentioned functions had a serious problem and will be corrected with the next release 2.77
Titel: Re: DEC_TO_BYTE problem
Beitrag von: Jicin am 02. Oktober 2008, 17:20:14
Hallo,

das gleiche Problem ist auch in der Funktion FLOAT_TO_REAL.
Auch hier wird leider immer die 8 und die 9 ignoriert.
Titel: Re: DEC_TO_BYTE problem
Beitrag von: peewit am 02. Oktober 2008, 19:39:34
Ja hier ist leider auch der gleiche Fehler mit drinnen
wird auch mit der release 2.77 behoben

danke..