Chapter 5 Relay Ladder Logic Programming
120
-
16B
MD (MUL-DIV)
The SG2 smart relay inc
ludes 31MD coils that can be used throughout a program. The MD function performs a
simple integral-math-calculation, Multiplication and Division
.
There are 6 parameters for proper configuration.
The
table below describes each configuration parameter, and lists each compatible element for configuring MD.
Compute formula:
3
/
2
*
1
V
V
V
MD
=
MD current value is the calculated result. Parameters V1, V2, and V3 can be a constant or other function current
value. The “Error Coil” turns ON when the calculated result is overflowed or V3 equals to zero. The current value
keeps at 32767 or -32768, which depends on the direction of the overflow, and keeps zero when V3 is zero. 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 MD function.
※
Error output coil M01 will turn ON when the compute result is overflow.
Symbol Description
①
MD current value ( -32768~32767)
②
V1 parameter ( -32768~32767)
③
V2 parameter ( -32768~32767)
④
V3 parameter ( -32768~32767)
⑤
Error output coil (M, N, NOP)
⑥
MD code (MD01~MD1F)
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor