![SIASUN GCR Series Скачать руководство пользователя страница 79](http://html.mh-extra.com/html/siasun/gcr-series/gcr-series_user-manual_1263477079.webp)
75
Return 0 when the content of the internal bool register is false.
Return -1 when the serial number of the internal bool register is wrong.
Example
print_i( r_reg_bool( 5 ) );
w_reg_byte( int : num, int : value );
Function Description:
This command can change the value of the internal byte register.
Parameters Description:
num : It represents the serial number of the internal byte register. Its
range is from 1 to 32.
value : It is assigned to the internal byte register. Its range is from 0 to
255.
Return Value:
none
Example
w_reg_byte( 5, 35 );
r_reg_byte( int : num);
Function Description:
This command reads the value of the internal byte register.
Parameters Description:
num : It represents the serial number of the internal byte register. Its
range is from 1 to 32.
Return Value:
Return the value stored by the internal byte register. It is an integer.
Example
a = r_reg_byte( 5 );
print_i( a );
w_reg_ float ( int : num, float : value );
Function Description:
This command can change the value of the internal float register.
Parameters Description:
num : It represents the serial number of the internal float register. Its
range is from 1 to 32.
value : It is assigned to the internal float register. It is a floating-point
number..
Return Value:
none
Example
w_reg_float( 5, 3.14 );
r_reg_float ( int : num );
Содержание 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 ...