Delta AS Series Programming Manual page 1056

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
2113
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
Suppose the values in S
th
the n
character in the string in S
b15
Se con d AS CII co de
S1
Fourt h AS CII cod e
S1
+1
n+ 1 AS CII co de f rom th e las t
t h
n+ 3 AS CII co de f rom th e las t
t h
n+ m
th
ASCI I c ode fro m the las t
6 - 7 7 6
$MIDR
P
Y
M
S
T
C
and S
+1 are n and m respectively. This instruction retrieves m characters starting from
2
2
, and stores them in D.
1
b7
b8
First ASCI I c ode
Third A SCII co de
n A SCII c ode from t he las t
t h
n+ 2 AS CII co de f rom th e las t
t h
n+ m-1 AS CII co de f rom th e las t
t h
Las t ASCI I c ode
16#0 0
Operand
S
, S
, D
1
2
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: String
S
1
: Part of the string to be retrieved
S
2
D : Device where the characters retrieved are stored
b0
b15
n+ 1 AS CII co de f rom th e las t
t h
n+ 3 AS CII co de f rom th e las t
t h
n+ m-2 AS CII co de f rom th e las t
t h
16#0 0
Function
Retrieving a part of a string
SR
E
K
16#
"$"
32-bit instruction
AS
b8
b7
n A SCII c ode from t he las t
t h
n+ 2 AS CII co de f rom th e las t
t h
n+ m-3
t h
AS CII co de f rom t he las t
n+ m-1 AS CII co de f rom th e las t
t h
F
-
b0
D
D
+1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents