1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

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

  • In the case of Modbus digital I/O: 0 or 1

  • In the case of Modbus analog: Data

Example

C++
//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…
}