Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-216
VAL(P),DVAL(P)
Program Example
(1) The following program reads the character string data stored from D20 to D22 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program reads the character string data stored from D20 to D24 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
D21
D22
D23
2D
H
( )31
H
(1)
36
H
(6)2E
H
(.)
b15 b8b7 b0
35
H
(5)34
H
(4)
D20
00
H
1654D0
6
2
D10
D11
Total number of digits
Number of digits in decimal fraction
00
H
Set
Step Instruction Device
D21
D22
D23
20
H
(space)37
H
(7)
39
H
(9)31
H
(1)
b15 b8 b7 b0
30
H
(0)30
H
(0)
D20
00
H
10
3
D10
D11
Total number of digits
Number of digits in decimal fraction
00
H
2E
H
(.)36
H
(6)
31
H
(1)31
H
(1)
D24
D25
79
1
006
11
D1
D0
Set