Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-234
RIGHT(P),LEFT(P)
Program Example
(1) The following program stores 4 characters of data from the rightmost of the character string
stored in the area starting from R0, and stores it into the area starting from D0 when X0 is
turned ON.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program stores the number of characters corresponding to the value being
stored in D0 from the left of the character string data being stored at D100 to the area
starting from R10 when X1C is turned ON.
[Ladder Mode] [List Mode]
[Operation]
Instruction
Device
Step
R1
42
H
(B)41
H
(A)
32
H
(2)31
H
(1)
D1
30
H
(0)45
H
(E)
46
H
(F)41
H
(A)
30
H
(0)45
H
(E)
46
H
(F)41
H
(A)
00
H
R2
R3
R4
D2
00
H
ASCII code for the 4th character
"BA210EFA"
"0EFA"
R0
D0
b15 b8b7 b0
b15 b8b7 b0
Instruction
Device
Step
D101
53
H
(S)51
H
(Q)
4F
H
(O)4E
H
(N)
R11
53
H
(S)51
H
(Q)
4F
H
(O)4E
H
(N)
48
H
(H)44
H
(D)
41
H
(A)42
H
(B)
00
H
D102
D103
D104
R12
ASCII code for the 6th character
"SQONHDAB"
"SQONHD"
D100
R10
00
H
48
H
(H)44
H
(D)
R13
6D0
b15 b8b7 b0
b15 b8b7 b0