Remote-processing BASIC for the CX-10 Modbus Manuel d'utilisateur Page 50

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 84
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 49
BASIC PROGRAMMING GUIDE
2-41
PH0.
PH1.
Syntax: PH0.
expr
PH1.
expr
Where:
expr
= any mathematical expression
Function: Print in hexadecimal format following the number with an "H".
Mode: Command, run
Use: PH0. PEEKB(1,3000)
DESCRIPTION
The PH0. and PH1. instructions work like PRINT instruction except that it print values in HEX. The value
printed is always a truncated integer and is followed with an "H" to indicate hexadecimal format. If
expr
evaluates to a fractional number within integer range,
expr
is truncated and displayed in hex format. If
expr
is
not within integer range (0 through 0FFFFH/65535), the normal decimal PRINT mode is used. PH0.
suppresses two leading zeros if
expr
evaluates to less than 0FFH. PH1. always prints four hexadecimal digits.
If there is no
expr
, a carriage return - line feed combination (a blank line) will be output. An
expr
may be any
combination of instructions/operators and variables, strings, or literal values. More than one
expr
may be
output by separating them with commas. Values are printed with a leading space; a list of values separated
by commas will thus print with one intervening. This is different from the decimal PRINT instruction which
prints values with a trailing blank. Strings and literals are output with no added blanks. If a comma is the last
character in the list then a carriage return/linefeed is suppressed.
EXAMPLE
100 PH0. A
Vue de la page 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 83 84

Commentaires sur ces manuels

Pas de commentaire