Chapter 5 Relay Ladder Logic Programming
119
-
15B
AS (Add-Subtract)
The SG2 smart relay includes 31AS coils that can be use
d 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:
3
2
1
V
V
V
AS
−
+
=
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 turns OFF when the result is in the range or the function is disabled.
The example below shows how to configure AS function.
※
Error output coil N01 will turn ON when the compute result is overflow.
Symbol Description
①
AS current value ( -32768~32767)
②
V1 parameter ( -32768~32767)
③
V2 parameter ( -32768~32767)
④
V3 parameter ( -32768~32767)
⑤
Error output coil (M, N, NOP)
⑥
AS code (AS01~AS1F)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor