EasyManua.ls Logo

LS Industrial Systems XBC-DR10E - Page 216

LS Industrial Systems XBC-DR10E
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-99 Ve r. 1
6.19.9 $MOV, $MOVP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
$MOV(P)
S
O
O
O
-
O
O
O
-
O
-
-
O
O
O
O
O
2~18
O - -
D
O
O
O
-
O
O
O
-
O
-
-
-
O
O
O
O
Operand
Description
Data Size
S String to transfer or device’s head number string is saved in STRING
D
Device’s head number to save string transferred
STRING
[Flag Set]
Flag
Description
Device Number
Error
If out of S or D device’s range.
F110
1) $MOV (Character string Move)
(1) It transfers string starting with S to device starting with D.
If NULL is saved in S+n’s lower byte, 0x00 will be saved in D+n’s higher byte.
Up to 31 letters is available for string to transfer.
2) Program Example
(1) If input contact point P00000 is On, string Data’ is saved in D2000.
$MOV String Data D2000
P00000
$MOV
$MOVP
S
D
$MOVP
$MOV
S
D
NULL:
b0
b15
2nd letter
S
S+1
displays the last of text
S+2
5th letter
3rd letter
First letter
6th letter
4th letter
b7
b8
nth letter
h00
b0
b15
2nd letter
D
D+1
D+2
5th letter
3rd letter
First letter
6th letter
4th letter
b7
b8
nth letter
h00
b0
b15
h42(B)
S
S+1
S+2
h00
h43(C)
h46(F)
h44(D)
b7
b8
Higher byte is not transferred.
h41(A)
b0
b15
h42(B)
S
D+1
D+2
h00
h43(C)
h00
h44(D)
b7
b8
Higher byte of 0x00 is saved.
h41(A)

Table of Contents

Related product manuals