DBL Conversion

DBL, DBLP

 

DBL instruction converts 2 word BCD source to 64bit float value and saves the result in Destination.

(It supports only in XP and PLC-S CPU series)

 

 

S

Source (2 word BCD data)

D

Destination (Float value)

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

DBL

DBLP

S

o

-

o

o

o

-

-

-

-

o

o

o

o

3

o

-

-

D

o

o

o

o

o

o

o

o

o

o

o

o

o

 

Error(F110) : If BCD Data is out of range, Error Flag(F110) will be set.

Instruction

Binary Data range

DBL

DBLP

32bit

0 ~ H05F5E0FF

0 ~ 99999999

 

Example)

If X03 is ON, the DBL instruction converts D1 (2word) to 64 bit Float value and saves it to D100