![SIASUN GCR Series Скачать руководство пользователя страница 73](http://html.mh-extra.com/html/siasun/gcr-series/gcr-series_user-manual_1263477073.webp)
69
a[0]=3.1416;
a[1]=2.71828;
socket_send_float ( a );
socket_send_int ( Array : array_send);
Function Description:
Send an integer array to the connected server.
Parameters Description:
array_send : It represents the integer array sent to the server. Each data
in the array is 32 bits.
Return Value:
true or false
Example
a = Array(2,INT);
a[0]=3;
a[1]=2;
socket_send_int ( a );
socket_read_string ( string : receive, int : length, int : timeout = 3000 );
Function Description:
Receive a string of a certain length from the connected server.
Parameters Description:
receive : It represents the string received from the server. The received
string will be stored in this variable.
length : It represents the length of the string received from the server.
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 = ”ss”;
b = “abc”;
while( a[0] != b[0] ):
socket_read_string ( a, 2 );
end
socket_read_str_float ( Array : receive, int : timeout = 3000 );
Function Description:
Receive a specific format string from the connected server. Parse the
string to floating-point numbers and store the floating-point numbers in the
array.
Parameters Description:
Содержание 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 ...