Sub (subtraction), Mult (multiplication), Sub (subtraction) -15 mult (multiplication) -15 – Sensaphone SCADA 3000 Users manual User Manual

Page 171

Advertising
background image

15-15

Chapter 15: Ladder Logic Programming

C variables
Diagnostics
Alarms

SUB (Subtraction)

The SUB instruction subtracts the value stored in the memory location referenced by Source

B from the value stored in the memory location referenced by Source A when rung conditions

are true. The result is stored in the destination memory location. The operand values can be

fixed constants, values contained in I/O, or variables stored in any memory location. Only one

constant can be used in Source A or B.
The SUB instruction executes in 15µs and requires 58 bytes.
Following is a list of the data points that may be used with SUB instructions:

Valid Sources

Valid Destinations

Inputs Outputs
Outputs

Ladder variables

Timers (preset & value)

C Variables

Counters (preset & value)
Ladder variables
C variables
Diagnostics
Alarms

mULT (multiplication)

The MULT instruction multiplies the values stored in the two referenced memory locations,

labeled as Source A and Source B when rung conditions are true. The result is stored in the

destination memory location. The operand values can be fixed constants, values contained in

I/O, or variables stored in any memory location. Only one constant can be used in Source A or

B.
The MULT instruction executes in 15µs and requires 68 bytes.
Following is a list of the data points that may be used with MULT instructions:

Valid Sources

Valid Destinations

Inputs Outputs
Outputs

Ladder variables

15-15

Advertising