Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-249
EREXP(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.21 From BCD format data to floating decimal point (EREXP(P))
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The format designated by was neither 0 nor 1. (Error code: 4100)
A value other than 0 to 9 exists in the each digit of + 1 and + 2. (Error code: 4100)
The format designation made by + 3 is something other than 0 or 1.
(Error code: 4100)
The exponent data designated by +4 is outside the range of from 0 to 38.
(Error code: 4100)
The decimal fraction digit designated by is outside the range of from 0 to 7.
(Error code: 4100)
The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
Program Example
(1) The following program converts the BCD type floating decimal point format data being
stored in devices starting from D0 to 32-bit floating decimal point type real number data
based on the decimal fraction digit being stored at D10, and stores the result at D100 and
D101 when X0 goes ON.
[Ladder Mode] [List Mode]
[Operation]
S1
S1 S1
S1
S1
S2
S1
Instruction
Device
Step
D0
D10
D1
D2
D3
D4
1
4567
H
0123H
1
3
3
1234567H (BCD 7 digits)
D101
D100
1. 2 3 4 5 6 7