Chapter 4. programming – IAI America S-SEL-E User Manual
Page 185

Page 180
Chapter 4. Programming
[Function]
Assigns 1 character from the column in Operand 2 to the variable in Operand 1.
[Example
SGET
1
100
Assign 1 byte of column 100 to variable 1.
LET
1
3
LET
2
1
SCPY
1
'A'
SGET
*1
*2
Assign 3 to variable 1.
Assign 1 to variable 2.
Copy 'A' to column 1.
Assign 'A' in column 1 (content of variable 2) to variable 3 (content of variable 1).
SGET (Acquire Character String)
SPUT (Set Character)
[Function]
Sets the data in Operand 2 to the column in Operand 1.
[Example]
SPUT
5
10
Set 10 (LF) to column 5.
LET
1
100
LET
2
50
SPUT
*1
*2
Assign 100 to variable 1.
Assign 50 to variable 2.
Set 50 (' 2') which is the content of variable 2 to column 100 (content of variable 1).
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 P U T
C o lu m n n o .
D a ta
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 G E T
Va ria b le n o .
C o lu m n n o .