Skip to main content

6.17. ADD(Add) Add

6.17. ADD(Add):Add

 

Symbol

Relay combination

Factor

sA: 1st relay (or Number) for the operation

sB: 2nd relay (or Number) for the operation

dst: Relay that will save the result

Description

If Rung is activated, add the value sA and sB, then save it to dst.

If overflow occurs on operation result, set SP8=1.

Usage example

ADD(XB3,RB2,RW3): (RW3)=(XB3)+(RB2)

ADD(XB3,RB2,RB2): (RB2)=(XB3)+(RB2)

ADD(XB3,50,RW3): (RW3)=(XB3)+50