Clr - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

CLR$

Instruction
CLEAR STRING
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Text string first word
S: Text String First Word
15
S
Text string data: 4,095 characters max. + NUL
to
S + maximum 2,047 words
Note The data from S to S + the maximum 2,047 words must be in the same area.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
Flags
Name
Error Flag
Function
CLR$(666) clears with NUL (00 hex) the entire text
string from the first word designated by S until the NUL
code (00 hex). The maximum number of characters
that can be cleared is 4,096. If there is no NUL before
the 4,096th character, only 4,096 characters will be
cleared
CLR$(666) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
1084
Mnemonic
Variations
CLR$
@CLR$
Block program areas
Step program areas
OK
OK
Description
0
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
Function
code
666
Clears an entire text string with NUL (00 hex).
CLR$
CLR$(666)
S: Text string first word
S
Subroutines
OK
Data type
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
---
---
Operation
S
A
C
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
B
S
D
TR
bits
---
---
NUL

Advertisement

Table of Contents
loading

Table of Contents