del_modbus_signal(name)
Features
This function deletes the registered Modbus signal. The Modbus I/O must be set in the Teach Pendant I/O set-up menu. Use this command only for testing if it is difficult to use the Teach Pendant. The Modbus menu is disabled in the Teach Pendant if it is set using this command.
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
name | string | - | Name of the registered Modbus signal |
Return
Value | Description |
---|---|
0 | Success |
Negative value | Failed |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
DR_Error (DR_ERROR_VALUE) | Parameter value is invalid |
DR_Error (DR_ERROR_RUNTIME) | C extension module error occurred |
DR_Error (DR_ERROR_STOP) | Program terminated forcefully |
Example
# Use the following command when the Modbus IO signals are registered as "input1" and "output1"
# and this signal registration is to be deleted. .
del_modbus_signal("input1") # Deletes the registered " input1" contact
del_modbus_signal("output1") # Deletes the registered " output1" contact