beautypg.com

Select maximum value (max), C.6.2 select maximum value (max) – Nematron Pointe Controller User Manual

Page 405

background image

Pointe Controller User Guide

Appendix C: Ladder Diagram Block Reference

403

Param

Name

Config

Var Type

Description

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 finding the smaller of
the two input values.

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.6.2 Select maximum value (MAX)

When used in a Ladder Diagram, the MAX block finds the larger of two inputs
and sends the result to output.

Select the

tool (from the

Selection Blocks

toolbar) and click on a ladder rung

to insert the following block:

Once the block is inserted, you can double-click on it to

configure

it.

Functional Description

This block always passes the Enable input state (EN) through to the Enable Out
output state (ENO) without change; when EN becomes on, ENO is turned on, and
when EN becomes off, ENO is turned off.

When EN becomes on, the block function is executed: the Input Values 1 and 2
(IN1 and IN2) are compared and the larger is placed in the Output Value (OUT).