Delta AS Series Programming Manual page 403

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0302
Device
X
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction transfers the string in S to D, and adds the code 16#00 to the end of the string.
_6
2.
When the operand S is not a string, the instruction adds the code 16#00 to the end of the data transferred.
3.
When the ending code16#00 cannot be found in S for 256 characters in a row or even beyond the device range,
the instruction is not executed; SM0 is ON and the error code in SR0 is 16#200E.
4.
When the operand S is not a string and the instruction is executed, the string starting with the data in the device
specified by S (including 16#00) is transferred to D. When the instruction is not executed, the data in D is
unchanged.
5.
If D is not sufficient to contain the string composed of the values in S, the instruction is not executed, SM0 is ON,
and the error code in SR0 is 16#2003.
6.
Suppose the operand S is not a string. When the instruction is executed and the first character in S is the code
16#00, 16#00 is still transferred to D.
6 - 1 2 4
$MOV
P
Y
M
S
T
C
Operand
S, D
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: Data source
S
: Data destination
D
Function
Transferring a string
SR
E
K
16#
"$"
32-bit instruction
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents