Rockwell-automation 1771-DB BASIC MODULE Uživatelský manuál Strana 228

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 394
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 227
Chapter
Call Routines 0–68
12
12 -38
Use this routine to convert 3.3-digit BCD from the PLC processor to
BASIC floating point. See also CALL 26.
See Chapter 8 for more information.
Input and Output Arguments
This routine has one input and one output argument. The input argument is
the number (1-64) of the first word (3.3-digit BCD is sent to the BASIC
module in two processor words) of the write-block-transfer buffer you
want to convert from 3.3-digit, signed, fixed decimal BCD to BASIC
floating point. The maximum values allowed are +
999999. The output
argument is the value converted into BASIC floating point format.
The sign bit is bit number 16.
Syntax
PUSH number of word (1 – 64) to be converted
CALL
39
POP converted value
Example
>
10 PUSH X
> 20 CALL 39
> 30 POP Y
CALL 39 : 3.3-Digit Signed,
BCD to BASIC Floating
Point
Chapter
Zobrazit stránku 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 393 394

Komentáře k této Příručce

Žádné komentáře