Hardware

💾Software
Hardware
Navigate through spaces
💾Software
Hardware
⌘K
CPU5A3/CPU5A4/CPU5A4E
Wireless Pendant
UIO-10
Docs powered by archbee 
8min

Connecting a rotary switch

Besides a normal switch also rotary switches can be used. The rotary switch is very similar to a normal switch, and in fact, it is actually a collection of switches into one housing. One side of these switches is common to all of them and is connected to one pin. Below is an example of such a rotary switch.

Example of rotary switch
Example of rotary switch

For your information, many of these rotary switches can be set to a certain amount of positions. This can often be done by a ring that is sitting on top of the housing, this ring limits the number of positions. Therefore, you could have a 12-position rotary switch but only use 4 positions.

To help in understanding the internals, the drawing below shows a little more of the 'inside' of such a rotary switch.

Rotary switch schematic (4 positions)
Rotary switch schematic (4 positions)

As you can see the switch will always only have one connection with one pin. The advantage of such a switch is that there will always be only one 'switch' turned on, the other automatically will have been switched off since there can only be one connection.

This example will connect the rotary switch to select an axis for using an MPG to control the axis position. We will make the following connections:

Rotary #pin

UIO-10 #pin

Function

Common

Ground



#1

IO #1

Axis selection OFF

#2

IO #2

Select Axis X

#3

IO #3

Select Axis Y

#4

IO #4

Select Axis Z

The image below shows a diagram of how it is connected.

Rotary switch connected to UIO-10
Rotary switch connected to UIO-10

Software setup

The final step is setting up the software. For the example below software version, 4.03.58 was used.

To start the setup go to the setup tab, and click on the 'UIO-10' button.

Page 2 of the setup tab
Page 2 of the setup tab
UIO-10 Setup screen
UIO-10 Setup screen

The next step, is to configure the inputs. please not first the difference when selecting a 'switch' or 'rotary switch', a rotary switch is called a 'selector':

Switch vs. Selector
Switch vs. Selector

We first now configure a new selector, by selecting the appropriate inputs and selecting 'Selector' as function, next make sure that you group these together by giving them the same ID.

Setting up a number of selector inputs
Setting up a number of selector inputs

Next, we set the function for each of the four positions:

Assigning function to the inputs
Assigning function to the inputs

The video below shows again the step of connecting a rotary switch. Please note that the colors of the wires used in this video example are not related to the example above.





Updated 03 Aug 2022
Did this page help you?
Yes
No
UP NEXT
Connecting a rotary encoder (MPG)
Docs powered by archbee 
TABLE OF CONTENTS
Software setup