
68
Return Value:
none
8.5.2 TCP/IP Socket client
socket_open( string : ip, int : port );
Function Description:
This command is used to open an Ethernet communication link. If the
creation is not successful within three seconds, the link creation fails.
Parameters Description:
ip : It represents the IP address of the server. It needs to be enclosed in
"".
port : It presents the port number of the server.
Return Value:
True, if the Ethernet communication link is open.
False, otherwise.
Example
socket_open("192.168.67.60",2003);
socket_send_string ( string : msg_send );
Function Description:
Send a string to the connected server.
Parameters Description:
msg_send : It represents the string sent to the server. It needs to be
enclosed in "".
Return Value:
true or false
Example
Form one: socket_send_string ( “send message” );
Form two: s = “XYZ”;
socket_send_string ( s );
socket_send_float ( Array : array_send);
Function Description:
Send a floating-point array to the connected server.
Parameters Description:
array_send : It represents the floating-point array sent to the server.
Each data in the array is 32 bits.
Return Value:
true or false
Example
a = Array(2,FLO);
Содержание 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 ...