0% found this document useful (0 votes)
56 views32 pages

Calculate

The document describes how to use the CALCULATE instruction to define mathematical expressions and logic combinations using different data types. The CALCULATE instruction allows defining expressions using inputs (IN1, IN2) and output (OUT) by selecting the appropriate data type (INT, REAL, STRING), adding register tags for the inputs and output, and compiling and downloading the logic. The result of the expression, such as IN1 + IN2, will be stored in the output register tag.

Uploaded by

Amydchic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views32 pages

Calculate

The document describes how to use the CALCULATE instruction to define mathematical expressions and logic combinations using different data types. The CALCULATE instruction allows defining expressions using inputs (IN1, IN2) and output (OUT) by selecting the appropriate data type (INT, REAL, STRING), adding register tags for the inputs and output, and compiling and downloading the logic. The result of the expression, such as IN1 + IN2, will be stored in the output register tag.

Uploaded by

Amydchic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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