
63
def fun1(pose:p, array:a, int:c, string:str):
…
end
Parameter Type:
array: array type
string: string type
int: integer
float: floating point
Pose: pose type
Return value type:
int: integer
float: float
Custom functions are only used for mathematical
operations. Motion functions and print functions are not
supported in the system.
8.4.4 Return Statement
return exp;
Return statement can only be used inside a function to return the result of the
function.
The data returned by return statement determines the return value of the function. If
the function does not contain a return statement, the function does not return any
value.
8.4.5 Conditional Control Statement
Form one:
if (exp):
…
elif (exp):
…
else:
…
end
Form two:
if (exp):
…
end
Содержание GCR Series
Страница 41: ...37 6 Robot Programming 6 1 Create program Click Create Program and enter a program name ...
Страница 47: ...43 The functions illustrate below are functions for IO The function illustrate below are logic function ...
Страница 51: ...47 6 6 Example Add a movej and movel node respectively Then add a MoveC node and set it s sub nodes position ...
Страница 53: ...49 ...
Страница 86: ...82 signal_name It represents the name of the modbus node Return Value none Example modbus_delete_signal mbus1 ...