Controlling Integrated Vacuum Generators with PLC , Relay & 6XD
-
@droftarts , @dc42 , @T3P3Tony
I am working with friend who is helping me through a complex setup of my PnP machine project using Duet 6XD .
Devices involved:
-
1 x Duet 6XD (with 24V DC input)
-
6 x Integrated Vacuum Generators require 24VDC input
-
1 x PLC ( Mitsubishi FX3U-48MR/ES-A ) with 24VDC input
-
2 x Phoenix Contact 12V relay ( PLC-RSC-12DC/21 - 2966906 with 2961150 relay )
we want to know if it possible to get 12V controllable digital outputs that can be used and controlled from Duet 6XD .Is it possible to use OUT 0 - 2 , OUT 3 -5 or OUT 6 - 8 for this . i have attached small diagram on our thought , is this possible or there is an better way to do it
Is possible to control V_OUTLC1 (12V ) on Duet 6XD by switching it ON and OFF ?
Please can anyone give us some quick guidance on Duet 6XD 12V controllable outputs
Connection: Duet 6XD (24V DC input ) ===> 12V Controllable Digital Outputs ===> Phoenix contact 12V relay ===> PLC Inputs ===> Vacuum Generators
-
-
@developeralgo222 If you're basically controlling a 12V relay from a fan output (OUT 3 -5 or OUT 6 - 8), yes, you can do that. OUT 0 - 2 are at VIN voltage, so not suitable to use if VIN is 24V. Set the voltage jumper to 12V for the fan pins you want to use, each bank of fan pins (OUT 3 -5 or OUT 6 - 8 ) can be set to VIN or 12V. Make sure your relays don't draw more current than the 12V regulator can handle.
The fans aren't a 'digital' ouput, ie they are not an IO port to send digital data over, but they are a PWM output, as well as being on/off. They are switched on the ground side, not the positive side, but this shouldn't matter to a relay.
What the relay is connected to is somewhat irrelevant; the 6XD is just controlling the relay. For some guidance on connecting a relay, see the heated bed section here: https://docs.duet3d.com/User_manual/Connecting_hardware/Heaters_bed#bed-heater-driven-using-a-solid-state-relay
Use M950 with P parameter to create an output, control it with M42.
Ian
-
@droftarts , great guidance , let's see if we can get it going. As per the documentation the maximum current at 12V should not exceed 800mA ? would something like thise command work ?
i have updated it to ( outX- , V_OUTLC1 ) and tested it , i am able to switch ON & OFF both Relay R1 and R2
M950 P0 C"!0.out3" Q500 ; Duet 3 6XD (out3- , V_OUTLC1 ) to Phoenix Contact Relay 1 ( A1+, A2- ). Allocate OUT3 to Relay 1 M42 P0 S0 ; set 0% PWM on OUT3 out3 pin ( OFF or CLOSE == X6(R1) is ON) ;M42 P0 S1 ; set 100% PWM on OUT3 out3 pin ( ON or OPEN == X6(R1) is OFF) M950 P1 C"!0.out4" Q500 ; Duet 3 6XD (out4- , V_OUTLC1 ) to Phoenix Contact Relay 2 ( A1+, A2- ). Allocate OUT4 to Relay 2 M42 P1 S0 ; set 0% PWM on OUT4 out4 pin ( OFF or CLOSE == X7(R2) is ON) ;M42 P1 S1 ; set 100% PWM on OUT4 out4 pin ( ON or OPEN == X7(R2) is OFF)
-
@developeralgo222 Great, glad that worked.
Ian
-
Hi,
just a sidenote: I just stumbled across an vacuum generator that works with compressed air. Together with a pneumatic valve it would make a cheap and easy PnP tool.
No need for an expensive vacuum pump, a single generator will use around 9l/min. Even a cheap airbrush compressor can handle that.
It's called SMC ZU05S
I ordered a few variants on aliexpress for ~4€ each to build a vacuum table (video). They are impressivly strong... -
-