148
Parameter p (number of decimals)
The values V1, V2, V3, and V4 can be provided by the actual value of another already-programmed
function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Data latching relay: AQ
Up/Down counter: Cnt
Parameter p applies to the display of V1, V2, V3, V4 and AQ in a message text.
Description of the function
The analog math function combines the four operands and three operators to form an equation. The
operator can be any one of the four standard operators: +, -, *, or /. For each operator, you must set a
unique priority of High ("H"), Medium ("M"), or Low ("L"). The high operation will be performed first,
followed by the medium operation, and then by the low operation. You must have exactly one operation
of each priority. The operand values can reference another previously-defined function to provide the
value. The analog math function rounds the result to the nearest integer value.
The number of operand values is fixed at four and the number of operators is fixed at 3. If you need to
use fewer operands, use constructions such as " + 0" or " * 1" to fill the remaining parameters.
You can also configure the behavior of the function when the Enable parameter "En"=0. The function
block can either retain its last value or be set to 0.
Possible errors: Zero division and overflow
If the analog math function block execution results in zero division or overflow, it sets internal bits that
indicate the type of error that occurred. You can program an analog math error detection function block
in your circuit program to detect these errors, and to control the program behavior as needed. You
program one analog math error detection function block to reference one specific analog math function
block.
Examples
The following tables show some simple example analog math block parameters, and the resulting
equations and output values:
V1
Operator1
V2
Operator2
V3
Operator3
V4
12
+(M)
6
/(H)
3
-(L)
1
Equation: (12 + (6 / 3)) - 1
Result: 13
V1
Operator1
V2
Operator2
V3
Operator3
V4
Summary of Contents for ELC-12AC-R-N
Page 1: ...Applied to ELC PR series Ver 3 0 Programmable Relay User s Manual Rievtech Electronic Co Ltd...
Page 27: ...27 PR 14 and PR 18 series 1 PR 18 CPU 2 PR E extension PR 24 series...
Page 31: ...31 AC type digital inputs Analog Inputs DC 0 10V Analog inputs current Inputs 0 20mA...
Page 40: ...40...
Page 120: ...120 C Analog input value of CPU and extensions D Analog output value of CPU and extensions...
Page 121: ...121 E F digital flag status F AF analog flag value...
Page 122: ...122 G M status H AM value...
Page 221: ...221 7 Click Install button to install Program is being installed...
Page 250: ...250...
Page 256: ...256 You can read the parameters from the PLC...
Page 258: ...258...
Page 267: ...267 TCP Sever 192 168 0 227 port 8004 is ok TCP Sever 192 168 0 227 port 8005 is ok...
Page 268: ...268 TCP Sever 192 168 0 227 port 8006 is ok TCP Sever 192 168 0 227 port 8007 is ok...
Page 269: ...269 TCP Sever 192 168 0 227 port 8008 is ok TCP Sever 192 168 0 227 port 8009 is ok...
Page 290: ...290 Slave1 IP 192 168 0 101 TCP server port 8001 Slave2 IP 192 168 0 102 TCP server port 8002...
Page 317: ...317 Network settings You can view the network parameters in such table...
Page 331: ...331 B005 Read the I1 IA status from the slave1 to the F11 F20 of the master Setting as follows...
Page 332: ...332 B006 Read the I1 IA status from the slave2 to the F21 F30 of the master Setting as follows...
Page 346: ...346 7 4 2 The scheme of xLogic The circuit diagram of industry gate...
Page 353: ...353 7 6 2 The scheme of xLogic Components K1 main contactor...
Page 357: ...357 4 cursors Cursor key Type 1x MODBUS code 02 C1 C4 256 259 BIT R...
Page 392: ...392...