Mitsubishi Electric M800VW Series Programming Manual page 271

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.4 Data Transfer Instructions
 Program example
 The following program transfers the character string data stored in D10 to D12 to D20 to D22 when X0 turns ON.
[Ladder mode]
X0
0
4
b15
D10
4DH(M)
D11
45H(E)
D12
 The following program transfers the character string "ABCD" to D20 to D22 when X0 turns ON.
[Ladder mode]
X0
0
4
 The following program transfers the character string to D20 to D24 when X0 turns ON.
[Ladder mode]
X0
0
$MOVP "
4
(*1) For 2-byte data (Shift-JIS character), the upper bytes and lower bytes are stored in the opposite order. For "
above example, the shift JIS code is 82A0(H). However, when the $MOV instruction is executed, A082(H) is stored
in D20 .
82 A0
b15
D20
A0 (H)
IB-1501667-B
$MOVP D10 D20
END
[Operation]
b8b7
b0
2AH( * )
45H(E)
00H
$MOVP "ABCD" D20
END
" D20
END
[Operation]
b15
b8b7
(*1)
D20
A0 (H)
82 (H)
D21
A2 (H)
82 (H)
D22
A4 (H)
82 (H)
D23
A6 (H)
82 (H)
D24
A8 (H)
82 (H)
b8b7
b0
82 (H)
[List mode]
Steps
Inst.
0
LD
1
$MOVP
4
END
b15
b8b7
b0
D20
2AH( * )
4DH(M)
D21
45H(E)
45H(E)
00H
D22
[List mode]
Steps
Inst.
0
LD
1
$MOVP
4
END
[List mode]
Steps
Inst.
0
LD
1
$MOVP
4
END
b0
(*1)
250
Device
X0
D10
D20
Device
X0
"ABCD"
D20
Device
X0
"
"
D20
" in the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents