Skip to main content

6.18. SUB(Subtract) Subtract

6.18. SUB(Subtract):Subtract

 

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, subtract the value sB from the value of sA, then save it to dst.

Usage example

SUB(XB3,RB2,RW3): (RW3)=(XB3)-(RB2)

SUB(XB3,RB2,RB2): (RB2)=(XB3)-(RB2)

SUB(XB3,50,RW3): (RW3)=(XB3)-50