ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8314
Скачиваний: 1
© MCS Electronics, 1995-2007 |
|
frequency |
' use baud rate |
$baud = 19200 |
|
$hwstack = 32 |
' default use 32 |
for the hardware stack |
' default use 10 |
$swstack = 10 |
|
for the SW stack |
' default use 40 |
$framesize = 40 |
|
for the frame space |
|
Dim A As Byte , B1 As Byte , C As Integer , S As String * 4 |
|
A = 1 |
|
Print "print variable a " ; A |
'new line |
Print "Text to print." |
'constant to print |
B1 = 10 |
'print in hexa |
Print Hex(b1) |
|
notation |
'assign value to |
C = &HA000 |
|
c% |
'print in hex |
Print Hex(c) |
|
notation |
'print in decimal |
Print C |
|
notation |
|
C = -32000 |
|
Print C |
|
Print Hex(c) |
|
Rem Note That Integers Range From -32767 To 32768 |
|
Print "You can also use multiple" _ |
|
; "lines using _" |
|
Print "use it for long lines" |
|
'From version 1.11.6.4 : |
|
A = &B1010_0111 |
|
Print Bin(a) |
|
S = "1001" |
|
A = Binval(s) |
'9 dec |
Print A |
|
End |
PRINTBIN
Action
Print binary content of a variable to the serial port.
Syntax
PRINTBIN var [ ; varn]
PRINTBIN #channel, var [; varn]
Remarks
Var |
The variable which value is send to the serial port. |
varn |
Optional variables to send. |
The channel is optional and for use with OPEN and CLOSE statements.
page -590-