Omron trajexia CJ1W-MCH72 Operation Manual page 130

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-47 CHR
4-2-48 CLEAR
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
/i
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
/i
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.
Section 4-2
119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents