Difference between revisions of "Additional DIO-Modules"

From Wiki
(Updated)
 
Line 1: Line 1:
=Scope=
+
The Commonplace Robotics control for comes with one digital input / output (DIO) module with seven digital inputs (24V via Optocoupler) and 7 digital outputs (24V max 300 mA via reed relay).   
The Commonplace Robotics control for the igus robolink robots comes with one digital input / output module with seven digital inputs (24V via Optocoupler) and 7 digital outputs (24V max 300 mA via reed relay).   
+
If these DIOs are not enough it is possible to add two further DIO modules to the control for a total number of 21 inputs and outputs.
If these DIOs are not enough it is possible to add two further digital input / output modules to the control.
 
  
=For current CProg/iRC versions 902-11-XXX=
+
This article explains the mechanical, electrical and software setup that is needed to add additional DIO modules.
The entire process of installing and activating an additional DIO Module is described in detail in the document:
 
* [[media:AdditionalDIOModules.pdf|AdditionalDIOModules.pdf]]
 
  
=For older CPRog versions 902-10-XXX=
+
Please read the [[Documentation|User Guide]] for more information and wiring examples.
To simplify the setup process, these older versions of CPRog should be updated to the current version using the Updater: [[Software_Updates#Updater CPRog and TinyCtrl|Software Updates]].  
 
  
In case you want to go ahead with the the older version of CPRog, follow the instructions below.
+
=Mechanical Integration=
 
 
==Mechanical Integration==
 
 
[[file:Caution.png|frameless|50px]] Do not hotplug! Disconnect the control from the power source before changing components of plugging / unplugging cables!  
 
[[file:Caution.png|frameless|50px]] Do not hotplug! Disconnect the control from the power source before changing components of plugging / unplugging cables!  
  
Line 22: Line 16:
 
**Third (additional) IO module:                4 (this results in CAN ID 0x90 = 144)
 
**Third (additional) IO module:                4 (this results in CAN ID 0x90 = 144)
 
[[file:DIO_bus_settings.png|DIO_bus_settings.png]]
 
[[file:DIO_bus_settings.png|DIO_bus_settings.png]]
==Electrical Integration==
+
 
 +
=Electrical Integration=
 
[[file:DIO_pinout.png|thumb|400px|left]]
 
[[file:DIO_pinout.png|thumb|400px|left]]
====Digital Inputs====
+
==Digital Inputs==
 
* Connect the ground pin (Output connector 1, to GND
 
* Connect the ground pin (Output connector 1, to GND
 
* Supply 24V to one of the input pins
 
* Supply 24V to one of the input pins
Line 30: Line 25:
 
* Result in CPRog/iRC: digital input Din24 is triggered
 
* Result in CPRog/iRC: digital input Din24 is triggered
  
====Digital Outputs====
+
==Digital Outputs==
 
*Connect the supply pin to 24V power supply
 
*Connect the supply pin to 24V power supply
 
*The supply is forwarded to one of the outputs pins via reed relays
 
*The supply is forwarded to one of the outputs pins via reed relays
Line 42: Line 37:
 
<br clear=all>
 
<br clear=all>
  
==Software Integration==
+
=Software Integration=
*Open your project file, e.g. C:\CPRog\Data\Projects\51_IGUS_arm5DOF_SV.prj with and editor.
+
* Connect CPRog/iRC to the robot control.
*Find the line with the <code><DIOModule></code> Tag, e.g. line 30.
+
* Open the configuration by clicking File -> Configure Project -> I/Os
*Add one (for one additional module) or two lines (for two additional modules) as follows.
+
* In the DIN rail I/O section set the number of modules
*The number in the ID tag is the CAN ID in decimal writing.
+
* Optional: Name the inputs and outputs and set the reset and error states.
 
+
* Click Save project
The first line <code><DIOModule ID="112"></code> should exist already.
+
* Wait for at least 30 seconds, then restart the robot control and reload the project in iRC
<syntaxhighlight lang=xml>
 
<DIOModule ID="112">
 
<DIOModule ID="128">
 
<DIOModule ID="144">
 
</syntaxhighlight>
 
 
 
==Software Integration in the EmbeddedCtrl==
 
If the robot is controlled by an embedded control unit running TinyCtrl the changes in the project file have to be made there, too.
 
Please see this page to find the necessary instructions: [[Additional DIO-Boards of the DCi Control Electronics#Embedded Control]]
 
 
 
=Use of DIOs in CPRog v980-10-XXX=
 
===Manual Use===
 
This is e.g. useful for an initial test:
 
The tab "DIN-Rail Input/Output" in CPRog allows to check the input states and to set the output channels for up to three DIO modules.
 
 
 
When the physical robot is connected, only the outputs can be set. The inputs are shown based on the signals from the electronics. (During simulation, i.e. with the physical robot disconnected, also the input channels can be set to simulate e.g. sensors.)
 
[[file:DIO_cprog.png]]
 
 
 
===Use in CPRog Programs===
 
The modules can be used the same way as the standard module:
 
 
 
{| class="wikitable"
 
!  !! Digital Output Numbers !! Digital Input Numbers
 
|-
 
! Module 1 (standard)
 
| 21 to 27 || 21 to 27
 
|-
 
! Module 2 (additional)
 
| 31 to 37 || 31 to 37
 
|-
 
! Module 3 (additional)
 
| 41 to 47 || 41 to 47
 
|}
 
 
 
====Example====
 
'''For a detailed how-to on operating a gripper via the DOut of the DIO module, have a look at: [[How to operate a gripper using CPRog and the Modular Control Electronics]]'''
 
 
 
Here's the short version for those who have used DIOs in CPRog before:
 
 
 
This enables the
 
* first output of the first DIO module (DOut21)
 
* first output of the second DIO module (DOut31)
 
* second output of the second DIO module (DOut32)
 
* first output of the third DIO module (DOut41)
 
* seventh output of the third DIO module (DOut47)
 
 
 
[[file:DIO_CPRog_outputs.png]]
 
 
 
 
 
This waits until the fifth input of the third module is high:
 
 
 
[[file:DIO_CPRog_inputs.png]]
 
 
 
 
 
  
  
[[Category:robolink]][[Category:CPRog]][[Category:DIO_Modules]][[Category:CPRog/iRC v980-11-XXX]][[Category:CPRog v980-10-XXX]]
+
[[Category:robolink]][[Category:CPRog]][[Category:DIO_Modules]]

Latest revision as of 11:24, 18 August 2022

The Commonplace Robotics control for comes with one digital input / output (DIO) module with seven digital inputs (24V via Optocoupler) and 7 digital outputs (24V max 300 mA via reed relay). If these DIOs are not enough it is possible to add two further DIO modules to the control for a total number of 21 inputs and outputs.

This article explains the mechanical, electrical and software setup that is needed to add additional DIO modules.

Please read the User Guide for more information and wiring examples.

Mechanical Integration

Caution.png Do not hotplug! Disconnect the control from the power source before changing components of plugging / unplugging cables!

  • Add the bus extenders to the control. They have to be pressed in the C-Rail and pressed to the existing control beneath the Digital IO module.
  • Plug the additional digital IO module
  • Set the CAN ID with the selector on the front face:
    • First (already existing) IO module: 0 (this results in CAN ID 0x70 = 112)
    • Second (additional) IO module: 2 (this results in CAN ID 0x80 = 128)
    • Third (additional) IO module: 4 (this results in CAN ID 0x90 = 144)

DIO_bus_settings.png

Electrical Integration

DIO pinout.png

Digital Inputs

  • Connect the ground pin (Output connector 1, to GND
  • Supply 24V to one of the input pins
  • Example on the left: 24V via switch to input pin 4
  • Result in CPRog/iRC: digital input Din24 is triggered

Digital Outputs

  • Connect the supply pin to 24V power supply
  • The supply is forwarded to one of the outputs pins via reed relays
  • Connect a valve or another component to the output pin
  • Connect the component to GND to close the electrical circuit
  • See the example with the lamp on output 5 on the left.
  • In CPRog:
    • Reset and Enable the robot
    • Set DOut 25 to true to switch on the lamp


Software Integration

  • Connect CPRog/iRC to the robot control.
  • Open the configuration by clicking File -> Configure Project -> I/Os
  • In the DIN rail I/O section set the number of modules
  • Optional: Name the inputs and outputs and set the reset and error states.
  • Click Save project
  • Wait for at least 30 seconds, then restart the robot control and reload the project in iRC