Convert to string (to_strg), C.9.4 convert to string (to_strg) – Nematron Pointe Controller User Manual

Page 432

Advertising
background image

Appendix C: Ladder Diagram Block Reference

Pointe Controller User Guide

430

When EN becomes on, the block function is executed: the Input Value (IN) is
converted into an equivalent floating point and the result is sent to the Output
Value (OUT).

NOTE: When IN is a String, conversion to a numeric representation is attempted.
If the conversion succeeds, then OUT is set to 1. If the conversion fails, then OUT is
set to 0.

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.

IN

Input
Value

req

any Input

any Memory

any Output

Numeric

String

The input value.

OUT

Output
Value

req

%MF

%QF

The result of converting the input
value into an equivalent floating
point.

C.9.4 Convert to String (TO_STRG)

When used in a Ladder Diagram, the TO_STRG block converts any input value into
an equivalent string. It is used primarily to convert non-String variables into String
variables which can then be stored, edited, or displayed. However, any input
values can be given, including other Strings.

Select the

tool (from the

Miscellaneous 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.

Advertising