![SIASUN GCR Series Скачать руководство пользователя страница 84](http://html.mh-extra.com/html/siasun/gcr-series/gcr-series_user-manual_1263477084.webp)
80
with a delay of 1s. Therefore, it is recommended that user use this command
only for debugging.
Parameters Description:
s : It represents a string value.
Return Value:
none
Example:
s="siasun";
print_s(s);
8.5.5 Modbus
modbus_read(string : signal_name);
Function Description:
This command can read the data of the modbus node. The return value
of this command is an integer.
Parameters Description:
signal_name : It represents the name of the modbus node.
Return Value:
an integer
Example:
modbus_read(“mbus1”);
print_i(modbus_read(“mbus1”) );
modbus_write_d(string : signal_name, int : digital_value);
Function Description:
This command can write to the modbus node of digital type.
Parameters Description:
signal_name : It represents the name of the modbus node.
digital_value : It represents the value written to the modbus node. Its
value is 0 or 1.
Return Value:
none
Example:
modbus_write_d(“mbus1”, 1);
modbus_write_r(string : signal_name, int : register_value);
Function Description:
This command can write to the modbus node of register type.
Parameters Description:
signal_name : It represents the name of the modbus node.
register_value : It represents the value written to the modbus node. Its
Содержание 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 ...