![SIASUN GCR Series Скачать руководство пользователя страница 74](http://html.mh-extra.com/html/siasun/gcr-series/gcr-series_user-manual_1263477074.webp)
70
receive : It represents the array that stores the floating-point numbers
parsed by this function. All data in the string received from the connected
server should be in (). Adjacent floating-point numbers should be separated
by ",". For example:
(
1.23,3.1416,1.0
)
. Note that the maximum string length
is 100.
timeout : It represents the maximum waiting time for which the system
can receive the string message. Its unit is ms. This value can be changed. It
has a default value of 3000ms.
Return Value:
Return the number of bytes received when the reception is successful.
Return -1 If error occurs or the string length exceeds the limit.
Example
a = Array(2,FLO);
socket_read_str_float ( a );
print_f(a[0]);
print_f(a[1]);
socket_read_float ( Array : receive, int : timeout = 3000 );
Function Description:
Receive a set of floating-point numbers from the connected server.
Store the floating-point numbers in the array.
Parameters Description:
receive : It represents the array that stores the floating-point numbers
received from the connected server. Note that the maximum values can be
read in one command is 30. Each value stored in the array is 32 bits.
timeout : It represents the maximum waiting time for which the system
can receive the floating-point numbers. Its unit is ms. This value can be
changed. It has a default value of 3000ms.
Return Value:
Return the number of bytes received when the reception is successful.
Return -1 If error occurs.
Example
a = Array(2,FLO);
socket_read_float ( a );
print_f(a[0]);
print_f(a[1]);
socket_read_str_int ( Array : receive, int : timeout = 3000 );
Function Description:
Receive a specific format string from the connected server. Parse the
string to integer numbers and store the integer numbers in the array.
Parameters Description:
receive : It represents the array that stores the integer parsed by this
function. All data in the string received from the connected server should be
Содержание 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 ...