Rockwell-automation 1771-DB Basic Module User Manual - Series A Manual de usuario Pagina 74

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 167
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 73
Operating Functions
Chapter 5
5–37
Mode: COMMAND and/or RUN
Type: INPUT/OUTPUT
The PH0. and PH1. statements function the same as the PRINT statement
except that the values are printed out in a hexadecimal format. The PH0.
statement suppresses two leading zeros if the number printed is less than
255 (0FFH). The PH1. statement always prints out four hexadecimal digits.
The character “H” is always printed after the number when PH0. or PH1. is
used to direct an output. The values printed are always truncated integers.
If the number printed is not within the range of valid integer (i.e. between
0 and 65535 (0FFFFH) inclusive), the BASIC Module defaults to the
normal mode of print. If this happens no “H” prints out after the value.
Since integers are entered in either decimal or hexadecimal form the
statements PRINT, PH0., and PH1. are used to perform decimal to
hexadecimal and hexadecimal to decimal conversion. All comments that
apply to the PRINT statement apply to the PH0. and PH1. statements.
PH0.# and PH 1.# function the same as PH0. and PH1. respectively, except
that the output is directed to the list device instead of the console device.
The baud rate and peripheral port parameters must match your device. See
Chapter 3 Section 3.2.4 titled, “Configuration Plugs” and Chapter 5
Section 5.8.1 titled, “Peripheral Port Support – Parameter Set – CALL 30.
Examples:
uPH0.2*2 uPH1.2*2 uPRINT 99 H uPH0.100
04H 0004H 153 64H
uPH0. 1000 uPH1. 1000 uP. 3E8H uPH0.PI
3E8H 03E8H 1000 03H
5.4.24
Statements:
PH0., PH1.,
PH0.#, PH1.#
Vista de pagina 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 166 167

Comentarios a estos manuales

Sin comentarios