How Can We Help?

Print

How to add a PWM to 0-5/10 V converter to a ACE PLC?

 

About the PWM to 0-10V ACE converter

It is sometimes useful to be able to connect the ACE PLC or any other device to a PWM to 0-10 V converter.

What we can do with analog output…

  • Speed drive control – Regulating a motor via an analog input.
  • Converter – Convert and scale another analogue value to a 0-10 V value (via an ACE PLC)
  • LED lighting control – Adjusting brightness using a 0-10 V signal.
  • Proportional valve control – Fine management of fluid flow.
  • Servo motor control – Converting PWM signal to analog voltage.
  • Heating regulation – Controlling power via an analog input.
  • Industrial automation – Interface between PLC with PWM outputs and analog actuators.
  • Fan speed control – Regulating speed using a 0-10 V input.

Imagine you need:

an ACE-11 PLC (6 DI + 6 DO) at 59€ or an ACE-1630 PLC (3 DI + 3 DO + 3 AI + RS232) at 89€ but an analog output is missing!

You can use one of its digital outputs, as PWM output, to add a 0-10V analogue output.

This converter is inexpensive, well designed electronically and reliable. It has 6 connection terminals. You can buy this PWM010 here

Convert 0-100% PWM digital signal to analogue signal
Linear conversion, 1% accuracy, 200 ms delay
Analog output:

  • Adjustable from 0-5 to 0-10 V (default)
  • Current output 15 mA max

Digital PWM input:

  • From 4.5 V to 28 V (need > 3.5 mA)
  • NPN-OC or PNP
  • PWM 50 Hz – 2 kHz

Power supply from 16 to 30 VDC, 100 mA
with reverse polarity protection
Integrated DIN-Rail Bracket + 3 leds
Dimensions: 55 x 50 x 33 mm

Note: This new version accepts 4.5 V to 28 V on its PWM input, without the need to select the voltage via a jumper.

The connection diagram

First, wire the (+) to the 24 VDC (+) to get a 24 VDC on digital output:

Outputs wiring description

  • (+) > VDC (+)
  • (-) > GND (-)
  • OUTPUT > DIN- (see bellow)

Wiring of the PWM converter at the output of the ACE PLC :

CONVERTER
PWM TO 0-10V
  ACE PLC
DIGITAL OUTPUT
PWM – IN < > One of its digital output (NPN)
PWM + IN < > + 4.5 – 28 VDC
24 V + IN < > + 24 VDC
24 V – IN < > GND – (Same as the ACE PLC)
0-10V – OUT < > GND Ouput – (Optional, it is the same as above)
0-10V + OUT < > Your 0-5/10 V for your external device

 

The subroutine for easy integration

We provide you with this program to convert the requested output value into a PWM value and apply it to the PLC output.

This program includ a subroutine you can import in your project

Here’s the program (PWM2ANA.vio)

  1. Here are the input/output variables for the subroutine.
  2. This is the period of the ACE PLC PWM output, which is set to 500 microseconds (2 kHz).
  3. This is the conversion of the desired analogue value (millivolts) into an OnTime value for the PWM.
    1. we scale the values: For example, if you ask 5400 mV (5.4 V), the subroutine set the “On Time” at 269 microseconds.
    2. Never use the “Period” value as “OnTime” value. Always 1 less than the maximal. Here we set 499 for 10000 mV.
  4. We start or correct the PWM value if it has changed.
  5. This “Copy” block allows you to bypass the scaling for possible manual calibration.

 

See “PWM – Pulse-width Modulation” page for more information on PWM if you wish to understand this function.

PWM010 with TBTN06-35L (or TBTN06-35H)

If you are using a TBTN06-35L (or TBTN06-35H on PWM+ input), you must select a period of 20,000 to operate at low frequency..

Converter calibration

You can use the above subroutine for calibration

  • Force the value 250 (Period/2) for PWM. See label [5] on the screenshot. (Connect the “Copy” bloc to bypass the “Scale” block)
  • Measure the output using a voltmeter.
  • Using a screwdriver, turn the potentiometer until you obtain the value of 5.4 V (5400 mV)
  • Possibly, set PWM to 499, and set 10 V with the screwdriver.