CDRFLEx.get_modbus_input
Features
This is a function for checking a signal at the modbus I/O contact point in the robot controller.
Parameter
Parameter Name | Data Type | Default Value | Description |
strSymbol | string | - | Modbus name |
Return
Value | Description |
unsigned shor |
|
Example
//When the Modbus digital I/O is connected and the signal is registered as “di1” and “di2,”
unsigned short siganl1 = drfl.get_modbus_input("di1");
unsigned short signal2 = drfl.get_modbus_input("di2");
if ( signal1 == 1 && signal2 == 1) {
// do something…
}