You are on page 1of 32

CALCULATION

DISCRIPTION:

You can use the "Calculate" instruction to define and execute an expression for

calculating mathematical operations or complex logic combinations, depending on the

selected data type.

DATA TYPES:

INT,REAL , STRING

SUPPORTED DATA TYPE:

I,Q,M,D,L
To create a normally open contact

Given the address (I0.0)


Click the Math Operation
Select the CALCULATE instruction
Double click or drag and drop the CALCULATE instruction
You can select the data type of the instruction from the "<???>" drop-down list of
the instruction box
Select the data type as INT
Double click the ???
Type the equation

For example (IN1 + IN2)


Click OK
Now your equation is added in the CALCULATE instruction
To create the Data Block_1
Open the Data Block_1

Given any name

For example IN1


You can select the data type of the instruction from the "<???>" drop-down list of

the instruction box


Select the data type as INT
Similarly to create the IN2,OUT.

Here data type also INT


Select and copy the Register Tag(IN1)
Paste the Tag in to respective operand
Select and copy the Register Tag(IN2)
Paste the Tag in to respective operand
Select and copy the Register Tag(OUT)
Paste the Tag in to respective operand
Compile and download
Select first operand right click modify modify operand
Given the value

Click OK
Switch on the input

The value of the first operand is added to value of the second operand.

The result value is stored in out

You might also like