42
7.
Function Reference
This chapter describes the functions for building a robot vision application
7.1.
List of Functions
This is a list of functions that can be used by the actual driving robot program.
Function Name Description
Reference
fhdefglobal
Initialize a global variable.
Chapter 7.4.1
fhconnect
Connect to the Vision Sensor
Chapter 7.4.2
fhclose
Disconnects from the Vision Sensor
Chapter 7.4.3
fhsample_chgscn
Switching the scene of the Vision Sensor
Chapter 7.4.4
fhsample_regpos
Register the current robot position to the Vision
Sensor
Chapter 7.4.5
fhsample_trig
Sends measurement commands to the Vision Sensor
and receives the measurement results from the
Vision Sensor
Chapter 7.4.6
fhsample_move
Move the robot
Chapter 7.4.7
fhrunsendcmd
Send a no-procedure command to the Vision Sensor Chapter 7.4.8
fhrunrecvres
Receive a command response from the Vision Sensor Chapter 7.4.9
fhrunrecvval
Receive numerical data from the Vision Sensor
Chapter 7.4.10
7.2.
Error Message
The error message was stored in variables(fh_err_message(L11$)).
To confirm the error message, it will be displayed on the [Monitor] of the teaching
pendant
7.3.
List of global variables
Set or get the global variables when the program used as input/output
parameters.
Change the value of global variables as needed. the List of global variables as below.
A list of variables and names should not be used for any purpose other than
function parameters
Also, names that start with “fh” are used as local variables and function names,
please avoid overlapping parameter definitions.
Global variables
Define Description
fh_usertaskfunc_no
V50%
Function No. in user task.
fh_connect_loop_flag
V51%
Socket unconnected flag
fh_retries_count
V52%
Number of communications retires