Omron FZ4 Series User Manual page 188

Vision sensor
Table of Contents

Advertisement

Dim X&(3),Y&(3)
X&(0)=50
Y&(0)=50
X&(1)=100
Y&(1)=100
X&(2)=150
Y&(2)=50
ApproximationCircle 3, x&(), y&(), centerX#, centerY#, radius#
4
Get the value of the character code for the specified character.
Asc (<Character String>)
Parameters
<Character String>
Return Value
Returns the value of the integer.
The content of the value is the character code of the specified character. Character code is ASCII.
Description
The character code of the head character of the of the character string specified by <Character String>
is returned in decimal.
There is chr$ as the reverse function of Asc. The chr$ function returns the character that corresponds to
the specified character code.
Example
Get the character code for 'A'.
CHARA$="A"
CODE&=Asc(CHARA$)
The result is as follows:
CODE&=65
Register a processing unit.
AssignUnit <unitNo>, <itemIdent>
Parameters
<unitNo>
<itemIdent>
186
Using Custom Command
The character string (character type) that requests the character code.
Unit number indicating the registration position (integer type)
Identifier of the processing item to register (character type)
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents