![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454130.webp)
All BASIC commands
Section 4-2
119
4-2-47 CHR
/i
4-2-48 CLEAR
/i
4-2-49 CLEAR_BIT
/i
Type
I/O command
Syntax
CHR(x)
Description
The
CHR
command is used to send individual ASCII characters which
are referred to by number.
PRINT CHR(x)
; is equivalent to
PUT(x)
in
some other versions of BASIC.
Arguments
•
x
A BASIC expression.
Example
>>PRINT CHR(65);
A
See also
N/A
Type
System command
Syntax
CLEAR
Description
The
CLEAR
command resets all global VR variables to 0 and sets local
variables on the process on which the command is run to 0. When you
use it in a program it resets all local variables defined to 0.
Arguments
N/A
Example
>>VR(0)=22: VR(20)=44.3158: VR(300)=-12
>>PRINT VR(0), VR(20), VR(300)
22.0000 44.3158 -12.0000
>>CLEAR
>>PRINT VR(0), VR(20), VR(300)
0.0000 0.0000 0.0000
See also
•
RESET
,
VR
Type
System command
Syntax
CLEAR_BIT(bit_number, vr_number)
Description
The
CLEAR_BIT
command resets the specified bit in the specified VR
variable. Other bits in the variable keep their values.
Arguments
•
bit_number
The number of the bit to be reset. Range: 0 - 23.
•
vr_number
The number of the VR variable for which the bit will be reset. Range:
0 - 1023.
Example
>>PRINT VR(17)
112.0000
>>CLEAR_BIT(5, 17)
>>PRINT VR(17)
80.0000
See also
READ_BIT
,
SET_BIT
,
VR
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...