Text end RIGHT

Dest = the last Count characters.

TagAfter two scans
Serial'SN-2026-0417'
Suffix'0417'
SuffixLen4

How it's used

Use RIGHT to read the end of a code, such as a serial number.

TagValue
Serial'SN-2026-0417'
Unit'0417'

Unit is the last 4 characters: 0417.

Operands

OperandData typeRead or write
SourceSTRING or a numberReads
CountDINT or a numberReads
DestSTRINGWrites

Common mistakes

  • Expecting a position operandThis operation takes the requested count from the end of the source.