Omron FZ4 Series User Manual page 234

Vision sensor
Table of Contents

Advertisement

Fetches the specified character string length from the left of the character string.
Left$(<Character String>,<Length of Characters>)
Parameters
<Character String>
<Length of Characters>
Return Value
4
Returns the value of the character type string.
The content of the value is the extracted character string.
Description
Fetches the arbitrary character string length from the left (head) of the <Character String>.
Specify a character constant or a character variable for the eligible character string in <Character
String>.
Specify the number of bytes to extract from the character string in <Length of Characters>. Specify the
number of bytes in the range from 1 to the number of bytes eligible for extraction in the character string.
When the <Length of Characters> exceeds the number of bytes eligible for extraction of the character
string, all of the bytes eligible for extraction are returned.
Example
Extract 8 bytes from the character string and set them to the Scene Title.
CHARA$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
TITLE$=Left$(CHARA$,8)
The results are as follows:
TITLE$="ABCDEFGH"
Gets the length of the specified character string.
Len (<Character String>)
Parameters
<Character String>
Return Value
Returns the value of the integer.
The content of the value is the number of bytes of the character string gotten.
Description
Because the length is equal to the number of bytes, a 2-byte character is calculated as 2.
232
Using Custom Command
The Character String to be extracted (character string).
The length of the character string to be extracted (integer).
The character string for which the length is to be gotten (character string).
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents