Skip to main content
Skip table of contents

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

PY
//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…
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.