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
.
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...