Overview
The Power Switch Module (CE-MD-005-0000) extends MachineMotion AI’s functionality with an integrated solid-state relay, which lets you switch various AC-powered devices on and off.
This plug-and-play module requires just three connections: one to the MachineMotion AI controller, one to an AC power outlet, and one to the device to control.
Compatible modules, including the Power Switch Module (CE-MD-004-0000), can also be daisy chained one after the other, making it possible to connect up to sixteen modules per MachineMotion AI controller.
This document covers requirements for current version of MachineMotion controller. For previous version, refer to link below:
Features
● Switch AC loads up to 15 A at 120 VAC or 10 A at 230 VAC.
● Support various loads with two types of output connectors: one NEMA 5-15R, and one, terminal block.
● Connect compatible modules via daisy chain.
● Configurable address.
● Plug-and-play to access from the Control Center, MachineLogic and Python API.
Included in the box
Part Number | Description | Quantity |
---|---|---|
CE-MD-005-0000 | Power Switch module | 1 |
CE-CA-022-5000 | Control Device Extension Cable, 5m | 1 |
CE-JP-001-0001 | Module Termination Jumper | 1 |
CE-CA-001-0001 | IEC C13 Cable, CA/US, 120 V, 3m | 1 |
CE-CA-001-0002 | IEC C13 Cable, EU, 230 V, 2.5m | 1 |
HW-FN-003-0018 | M8 x 18-mm Screw | 2 |
HW-FN-002-0001 | M8 Drop-in Spring-Loaded T-Nut | 2 |
WARNING: Important steps to avoid electric shock
The Power Switch Module operates at potentially life-threatening voltage levels. To prevent the risks of electric shock that could lead to serious injuries, follow the safety instructions below.
● When setting up the Power Switch Module connections, connect the input POWER cable to the AC power outlet last. Connecting to the power outlet should always be your final step.
● If you’re not using the OUT2 port, make sure the detachable plug stays mated to the fixed module connector, to prevent an exposed lead with potential live power. This is important because the OUT1 and OUT2 ports act in parallel, meaning they are either both energized or both de-energized at the same time.
WARNING: Hot surface
The top aluminum enclosure of the Power Switch Module acts as a heatsink for the internal relay. The higher the current going through the module, the hotter the surface will become. Keep this in mind when driving large loads with the module. Maximum enclosure temperature rise from ambient is specified in the datasheet.
Choosing the appropriate output connector
The Power Switch Module has two parallel output connectors.
Only use the OUT1 port with a standard NEMA 5-15P connector, and if the load operates at a max voltage of 125 VAC with a max current of 15 A.
The OUT1 port is a standard NEMA 5-15R connector, compatible with 120 VAC devices for North America and capable of delivering up to 15 A.
Use the OUT2 port with any other connector (not NEMA 5-15P), and/or if the load has an operating voltage higher than 125 VAC.
The OUT2 port is a two-part terminal block connector mating. The male connector is a fixed part (jack) of the module, whereas the female connector is detachable (plug) and provides three screw connections for flying leads (live, neutral, and earth).
Physical Interface
![]() Figure 1: Power Switch Physical interface. |
LED status indicators
Name | LED Color | Indicates (when ON) |
---|---|---|
SWITCH STATUS | Green | Power switch closed (active) |
POWER | White | 24 VDC supplied to module |
COMM | Yellow and Blue | RS-485 communication functional |
FUSE | Red | Module internal fuse tripped |
Applications
Connecting to MachineMotion AI (direct connection)
![]() Figure 2: Connecting a Power Switch Module directly to MachineMotion AI to control an external device |
To connect the Power Switch Module directly to a MachineMotion AI controller (see Figure 2):
Set the Power Switch Module address, as explained in the Address configuration switches section.
Using the Control Device Extension Cable (CE-CA-022-5000):
Connect the male end to any CONTROL port on the MachineMotion AI controller.
Connect the female end to the CTRL IN port on the Power Switch Module.
Connect the Module Termination Jumper (CE-JP-001-0001), to the CTRL OUT port on the Power Switch Module.
Connect the AC-powered device to be controlled to one of the Power Switch Module output ports; either OUT1 (US/Canada, NEMA 5-15R) or OUT2 (Terminal Block with Screw Connections).
Using an appropriate IEC C13 cable (CE-CA-001-0001, CE-CA-001-0002, or other):
Connect the female end to the POWER port on the Power Switch Module.
Connect the male end to an AC power outlet.
Connecting compatible modules (daisy chain)
![]() Figure 3: Connecting several Power Switch Modules to MachineMotion AI, via daisychain, to control multiple external devices. External device 1 (address 1), external device 2 (address 4), and external device 3 (address 7) |
Compatible modules, including the Power Switch Module, can also be daisy chained to a single CONTROL port on the MachineMotion AI controller (see Figure 2). Across all four CONTROL ports, the controller supports up to eight modules at the same time, provided they all have distinct addresses (see Address configuration switches).
To connect several modules in a daisy chain:
Set a distinct address for every module of the daisy chain, as explained in the Address configuration switches section.
Using a Control Device Extension Cable (CE-CA-022-5000):
Connect the male end to any CONTROL port on MachineMotion AI.
Connect the female end to the CTRL IN port on the first module in the daisy chain.
For every additional module to be connected, repeat this step using an additional Control Device Extension Cable:
Connect the male end to the CTRL OUT port on the previous module in the daisy chain.
Connect the female end to the CTRL IN port on the current module in the daisy chain.
Connect the Module Termination Jumper (CE-JP-001-0001) to the CTRL OUT port on the last module in the daisy chain.
Address configuration switches
Each module has an address with two components: device ID and device type. Both device ID and device type are set by changing the state of the address configuration switches, which are located at the front of the Power Switch Module under a removable rubber cap.
Switches 1 to 4 define the module device ID and allow the MachineMotion AI controller to know which module it is communicating with. Every module connected to the same controller should have a distinct device ID, regardless of its device type.
Switches 5 to 8 define the module device type and their positions should remain identical for all modules of the same type.
The table below lists every valid address for the Power Switch Module. An individual switch is considered ON when the selector is slid up and OFF when the selector is slid down.
Switches | Switches | |||||||
Device ID | Device Type | |||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
OFF | OFF | OFF | OFF | OFF | ON | OFF | OFF | Power Switch Module 1 |
ON | OFF | OFF | OFF | OFF | ON | OFF | OFF | Power Switch Module 2 |
OFF | ON | OFF | OFF | OFF | ON | OFF | OFF | Power Switch Module 3 |
ON | ON | OFF | OFF | OFF | ON | OFF | OFF | Power Switch Module 4 |
OFF | OFF | ON | OFF | OFF | ON | OFF | OFF | Power Switch Module 5 |
ON | OFF | ON | OFF | OFF | ON | OFF | OFF | Power Switch Module 6 |
OFF | ON | ON | OFF | OFF | ON | OFF | OFF | Power Switch Module 7 |
ON | ON | ON | OFF | OFF | ON | OFF | OFF | Power Switch Module 8 |
OFF | OFF | OFF | ON | OFF | ON | OFF | OFF | Power Switch Module 9 |
ON | OFF | OFF | ON | OFF | ON | OFF | OFF | Power Switch Module 10 |
OFF | ON | OFF | ON | OFF | ON | OFF | OFF | Power Switch Module 11 |
ON | ON | OFF | ON | OFF | ON | OFF | OFF | Power Switch Module 12 |
OFF | OFF | ON | ON | OFF | ON | OFF | OFF | Power Switch Module 13 |
ON | OFF | ON | ON | OFF | ON | OFF | OFF | Power Switch Module 14 |
OFF | ON | ON | ON | OFF | ON | OFF | OFF | Power Switch Module 15 |
ON | ON | ON | ON | OFF | ON | OFF | OFF | Power Switch Module 16 |
Connecting a device to the OUT2 port
The OUT2 port is a two part terminal block connector mating that can be used to control any AC-powered device within the Power Switch Module specifications (see Datasheet).
To connect a device to the OUT2 port:
Make sure the device has two wires (black and white) or three wires (black, white, and yellow/green).
Strip 7 mm of insulation off the device’s wires.
Use the markings on the Power Switch Module to identify the live (L), neutral (N) and ground (⏚) terminals.
Remove the plug from the OUT2 port.
Insert and screw the black wire into the OUT2 plug L (live) terminal.
Insert and screw the white wire into the OUT2 plug N (neutral) terminal.
If available, insert and screw the yellow/green wire into the OUT2 plug ⏚ (ground) terminal.
Re-insert the plug from step 4 in the OUT2 port.
Configuring the Power Switch Module
If you would like to configure your Power Switch Module and utilize MachineLogic to program it, follow the steps below:
Open your MachineBuilder design.
Open the Configuration section in the right pane.
Select the Power Switch Module you would like to configure.
Fill out the following fields:
MachineMotion Port: Represents the MachineMotion Control port the Power Switch Module is connected to
Device ID: Represents the device ID of your module. The device ID is configured on the physical module using address configuration switches, therefore, ensure the device ID configured in this dropdown matches the address configuration switches on the physical module.
Output Name: Friendly name which will be used to call the Power Switch Module in MachineLogic
Figure 4: Power Switch Module configuration in MachineBuilder
Testing the Power Switch Module in Control Center
To test the configured Power Switch Module, open the MachineMotion’s Control Center (via the Teach Pendant, or by connecting your laptop to the “To PC” Ethernet port, and navigating to the URL “machinemotion.local” in the Chrome browser).
Via the top navigation bar, select the Manual Control page.
In the left pane, select the Digital Inputs/Outputs section.
You should see your Power Switch Module, as long it has been properly connected to the MachineMotion.
You can test the Power Switch module by clicking the toggle on/off to check if the device connected to the Power Switch Module toggles on and off.
Note: If you connect a new Power Switch Module to the MachineMotion, you might need to refresh the Control Center view in order to see it appear in the Manual Control page. Select another section, and click again on the Digital Inputs/Outputs section.
.png)
Figure 5: Power Switch Module in Control Center’s Manual Control page
Programming the Power Switch Module with MachineLogic
CodeFree
To program your power-switch in MachineLogic, ensure you have completed the steps in Configuring the Power-Switch Module.
Go to the MachineLogic tab.
Click Add command > Add Outputs:
Under Output, select the Power Switch from the drop-down menu. Select the friendly name of your power switch under Output Name and select if you would like to turn your power-switch On or Off
.png)
Figure 6: Programming the power switch using MachineLogic
Python
See Python API reference here