6.20. DIV(Divide) Divide
6.20. DIV(Divide):Divide
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, divide the value of sA with the value of sB, then save it to dst. If sB is 0, or overflow occurs on operation result, set SP8=1. |
Usage example | DIV(XB3,RB2,RW3): (RW3)=(XB3)/(RB2) DIV(XB3,RB2,RB2): (RB2)=(XB3)/(RB2) DIV(XB3,50,RW3): (RW3)=(XB3)/50 |