6.21. POW(Power) Power
6.21. POW(Power):Power
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, power the value of sA with the value of sB, then save it to dst. If overflow occurs on operation result, set SP8=1. |
Usage example | POW(2,3,RW3): (RW3)=2^3=2*2*2=8 POW(XB3,RB2,RW3): (RW3)=(XB3)^(RB2) POW(XB3,RB2,RB2): (RB2)=(XB3)^(RB2) POW(XB3,3,RW3): (RW3)=(XB3)^3 |