beautypg.com

Chapter 5. option – IAI America S-SEL-E User Manual

Page 226

background image

Page 221

[Function]

Copies the character string from the column in Operand 2 to the column in Operand 1.

Copies only the length set by the SLEN command.
When Operand 2 is a literal character, that is the length copied.

[Example]

SCPY

1

'ABC'

Copy 'ABC' to column 1.

SLEN

10

SCPY

100

200

Set the length of the operation to 10 bytes.
Copy 10 bytes from column 200 to column 100.

LET

1

300

LET

2

400

SLEN

5

SCPY

*1

*2

Assign 300 to variable 1.
Assign 400 to variable 2
Set the length of the operation to 5 bytes.
Copy 5 bytes from column 400 (the content of variable 2) to column 300 (the content of variable 1).

SCPY (Copy Character String)

E x p a n s io n

c o n d itio n

(A N D · O R )

In p u t

c o n d itio n

(I/O · F la g )

C o m m a n d

P o s t

(O u tp u t p o rt · F la g )

C o m m a n d

O p e ra n d 1

O p e ra n d 2

O p tio n a l

O p tio n a l

S C P Y

C o lu m n n o .

C o lu m n n o .

L ite ra l c h a ra c te r

‚ String Management Commands

String refers to a character string and the Super SEL controller has global and local strings. The global strings can be read
or written in all programs. Local strings can be used only within that particular program and not in any other program.
Global and local strings are distinguished by their numbers: global strings range from 300~399 and local strings range
from 1~299.

One of the requirements of string commands is that communications with general external devices (PC, controller) must be
done through serial communications. The serial communication data must be processed as a string which can be done by
comparing, moving, or exchanging the strings which contain the serial communication data. The string commands are
available for the Super SEL Type E & G controllers.

Chapter 5.

Option

This manual is related to the following products: