Breadcrumbs

CDRFLEx.set_modbus_output

Features

This is a function for outputting 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

nValue

unsigned short

-

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

  • In the case of Modbus analog: Data

Return

Value

Description

0

Error

1

Success

Example

C++
//When the Modbus digital I/O is connected and the signal is registered as “di1” and “do1,”  
drfl.set_modbus_output("do1",1);
drfl.set_modbus_output("do2",0);