Sine (sin), C.3.7 sine (sin) – Nematron Pointe Controller User Manual

Page 369

Advertising
background image

Pointe Controller User Guide

Appendix C: Ladder Diagram Block Reference

367

Param

Name

Config

Var Type

Description

IN2

Input
Value 2

req

any integer*

T_DONE

T_VALUE

T_PREVAL

Numeric

The second input value, which is
divided into the first input value.

OUT

Output
Value

req

any integer*

The result of calculating the square

root of the input value.

* Any Input, Output, or Memory tag except 32-bit Real (F) or Bit (X). For more information, see

Defining Input, Output, Memory tags

” on page 114

.

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.7 Sine (SIN)

When used in a Ladder Diagram, the SIN block finds the sine 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:

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 sine of the Input Value
(IN) is calculated and the result is placed in the Output Value (OUT). The input
must be specified in radians.

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.

Advertising