Concatenate strings (cat), C.7.6 concatenate strings (cat) – Nematron Pointe Controller User Manual

Page 416

Advertising
background image

Appendix C: Ladder Diagram Block Reference

Pointe Controller User Guide

414

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
String

req

String

Literal

The input string. Literals must be
enclosed in single quotes (‘ ’).

POS

Position

req

unsigned*

Numeric

The starting position of the sub-
string to be extracted. The first
character corresponds to a Position
of 1.

LEN

Length

req

unsigned*

Numeric

The length (i.e., the number of
characters) of the sub-string to be
extracted.

OUT

Output
String

req

String

The result of extracting the sub-
string. The output is always NULL-
terminated.

* Any unsigned (UB, UW, UD) Input, Output, or Memory tag. For more information, see “

Defining

Input, Output, Memory tags

” on page 114

.

NOTE: If the configured length of the string variable assigned to OUT is smaller
than the result of the function, then the result is truncated to fit. No overflow
error is generated.

C.7.6 Concatenate strings (CAT)

When used in a Ladder Diagram, the CAT block concatenates two strings (variable
or literal) and send the resulting string to an output.

Select the

tool (from the

String 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