Square root (sqrt), C.3.5 square root (sqrt) – Nematron Pointe Controller User Manual

Page 366

Advertising
background image

Appendix C: Ladder Diagram Block Reference

Pointe Controller User Guide

364

The block function is executed every time the ladder is

scanned

, so long as EN

remains on. If EN becomes off, then OUT remains at its last calculated value until
EN becomes on and the block function is executed again.

Configuration Reference

The parameters of this block are described in the following table:

Param

Name

Config

Var Type

Description

EN

Enable

no

-

The state of the rung (off/on)
received from the left.

ENO

Enable
Out

no

-

The state of the rung (off/on)
passed to the right.

IN1

Input
Value 1

req

any Input

any Output

any Memory

T_DONE

T_VALUE

T_PREVAL

Numeric

The first input value.

IN2

Input
Value 2

req

any Input

any Output

any Memory

T_DONE

T_VALUE

T_PREVAL

Numeric

The second input value.

OUT

Output
Value

req

any Input

any Output

any Memory

The result of multiplying the first
input value by the second input
value.

NOTE: This function does not check for bit register overflow. You can assign any
variables you wish, but mixing variable sizes – for example, a 32-bit input and an
8-bit output – may result in unusable output.

C.3.5 Square Root (SQRT)

When used in a Ladder Diagram, the SQRT block finds the square root of an input
and sends the result to output.

Select the

tool (from the

Math Blocks

toolbar) and click on a ladder rung to

insert the following block:

Advertising