/
ADD (FLOAT)

ADD (FLOAT)

EADD, EADDP (Float)

 

ADD instruction adds two float values (S1 and S2) and save the result in Destination (assigned device address).

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

 

S1, S2

Source 1 and 2

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

EADD(P)

S1

o

o

o

o

o

-

-

-

-

o

o

o

-

4

o

-

-

S2

o

o

o

o

o

-

-

-

-

o

o

o

-

D

o

-

o

o

o

-

-

-

-

o

o

o

-

 

Example)

If X02 is ON, add D0 and D4 and then send the result to Y40.

 

 

If M00 is ON, add 0.23 and D2 and then send the result to D40.

 

 

Related content