How To Configure DO or DI Signals for DENSO Robots in Master-Control Communication?

DENSO robots provide a large number of DO and DI ports. You can configure the mapping between DOs and DIs of DENSO robots and those of Mech-Viz.

Configure Mapping Between DOs of Robots and Those of Mech-Viz

  • The Master-Control program can be found in the Communication Component\Robot_Server\src\robot\denso path in the installation directory of Mech-Vision and Mech-Viz.

  • In the Master-Control program, the digital output 0 (DO0) of Mech-Viz corresponds to digital output 24 (DO24) of the robot.

To configure the mapping between DOs of the robot and those of Mech-Viz, open the cao_controller.py file and modify the value of _GO_Start_Num in line 5. For example, you can modify the value of _GO_Start_Num to 100 to indicate that DO0 of Mech-Viz corresponds to D0100 of the robot.

from win32com.client import Dispatch

_J_REG_Start = 10
_J_REG_MaxLimit = 90
_GO_Start_Num = 24

Configure Mapping Between DIs of Robots and Those of Mech-Viz

  • The Master-Control program can be found in the Communication Component\Robot_Server\src\robot\denso path in the installation directory of Mech-Vision and Mech-Viz.

  • In the Master-Control program, the digital input 0 (DI0) of Mech-Viz corresponds to digital input 8 (DI8) of the robot.

To configure the mapping between DIs of the robot and those of Mech-Viz, open the denso_robot_adapter.py file and modify IOB8 in line 39. For example, you can modify IOB8 to IOB100 to indicate that DI0 of Mech-Viz corresponds to DI100 of the robot.

...
    def run(self):
        time.sleep(0.5)
        pythoncom.CoInitialize()
        eng = Dispatch("CAO.CaoEngine")
        ctrl = eng.Workspaces(0).AddController("RC1", "CaoProv.DENSO.RC8", "", "Server={}".format(self.host))
        self.arm = ctrl.AddRobot("Arm1", "ID=0")
        self.di = ctrl.AddVariable("IOB8", "")  # DO: IOB24   DI: IOB8
        while self.arm:
...

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.