FLT Conversion

FLT, FLTP, DFLT, DFLTP

 

FLT instruction converts binary data to float value and save the result in Destination (assigned device address).

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

 

S

Source

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

FLT(P)

DFLT(P)

S

o

o

o

o

o

o

o

o

-

o

o

o

o

4

o

-

-

D

o

-

o

o

o

-

-

-

-

o

o

o

-

 

FLT(P)

Functions

  • Convert S(16bit binary data) to float value and save the result in the Destination.

  • The range of binary data in S is -32,768 ~ 32,767.

 

Example)

If M00 is ON, save 1234 to D90 and convert D90 to float value and then save the result in D100.

 

 

DFLT(P)

Functions

  • Convert S(32bit binary data) to float value and save the result in the Destination.

 

  • The range of binary data in S is -2,147,483,648 ~ 2,147,483,647.

 

Example)

If M00 is ON, save 12345678 to D90 and convert D90 to float value and then save the result in D100.