Text start LEFT

Dest = the first Count characters.

TagAfter two scans
Barcode'ABC-12345'
Prefix'ABC'
PrefixLen3

How it's used

Use LEFT to read a prefix, such as the product family from a barcode.

TagValue
Barcode'ABC-12345'
Family'ABC'
Pumps'ABC'
IsPump1

The first 3 characters are ABC, so IsPump is on.

Operands

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

Common mistakes

  • Using a count larger than the textCheck the source length and the destination capacity before extracting.