del_modbus_signal
This is a function for deleting information on the Modbus I/O signal registered in the robot controller in advance.
Definition
DRFLEx.h within class CDRFLEx, public section (line 869)
bool del_modbus_signal(string strSymbol)
{
return _del_modbus_signal(_rbtCtrl, strSymbol.c_str());
};
Parameter
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
strSymbol |
string |
Name of the registered Modbus signal to delete |
Return
Value |
Description |
|---|---|
0 |
Error — failed to delete Modbus registration. |
1 |
Success — Modbus signal successfully removed. |
Example
/*
* If the Modbus I/O signal is registered as “di1” and “do1,”
* and you want to delete this signal registration.
*/
drfl.del_modbus_signal("di1"); // Deletes “di1” contact point registration
drfl.del_modbus_signal("do1"); // Deletes “do1” contact point registration
This example demonstrates removing previously registered Modbus I/O points. After calling this function, the corresponding signal names are no longer available for read/write operations in the controller memory.