Chapter 5 Relay Ladder Logic Programming 127
-
15BAS (Add-Subtract)
The iSmart smart relay includes 31AS coils that can be used throughout a program. The AS function performs a
simple integral-math-calculation: Addition and Subtraction. There are 6 parameters for proper configuration. The
table below describes each configuration parameter, and lists each compatible element for configuring AS.
Compute formula:
AS current value is the calculated result. Parameters V1, V2, and V3 can be a constant or current value of other
function. The “Error Coil” turns ON when the calculated result is overflowed, the current value keeps at 32767 or
-32768, which depends on the direction of the overflow. But it will do nothing if the output coil is NOP. The output
coil will turn OFF when the result is in the range or the function is disable
d.
The
example below shows how to configure AS function.
※
Error output coil N01 will turn ON when the compute result is overflow.
①
AS current value ( -32768~32767)
②
V1 parameter ( -32768~32767)
③
V2 parameter ( -32768~32767)
④
V3 parameter ( -32768~32767)
⑤
Error output coil (M, N, NOP)
⑥