Author Topic: Bidirectional PWM: How to set up correctly  (Read 8935 times)

George

  • Guest
Bidirectional PWM: How to set up correctly
« on: July 15, 2015, 01:56:26 AM »
Hi all

To control a single coil PCP in bidirectional mode you can use a pair of MF output pins on FI a MC024 controller.
You need to set the .Pinconfig to 8. That far seems simple, but then:
What do I use best to get the signal translated through the "outputs" bus?
A standard PWM Driver function block seems not suitable since it doesn't support negative values...

Probably there is a simple solution, but what is the cleanest / recommended way?

Offline FStelzer

  • PLUS+1 Expert
  • ****
  • Posts: 50
  • Karma: +8/-0
Re: Bidirectional PWM: How to set up correctly
« Reply #1 on: July 21, 2015, 09:59:56 AM »
Hello,

I have attached a Picture where you can see, how I handle with the "negative" values and the PWM.
Maybe this helps you with your Problems (as far as I have understand it right).

Have a nice day !



George

  • Guest
Re: Bidirectional PWM: How to set up correctly
« Reply #2 on: July 21, 2015, 11:33:32 PM »
I agree this is could be a working method, but it isn't clear since there is no mention on what to connect to the output pins if using .Pinconfig8
In the end I've used a S90 Function block, which sets both ports to .pinconfig 4 internally. and connects to both pins


Offline FStelzer

  • PLUS+1 Expert
  • ****
  • Posts: 50
  • Karma: +8/-0
Re: Bidirectional PWM: How to set up correctly
« Reply #3 on: July 22, 2015, 09:23:48 AM »
Hello,

When I have a bidirectional Signal, I always set the.Pinconfig of both Pins to 8 and connect the Outputs to the Output value and it works.
For example:
I use a MC012-110 and use C1p11 and C1p12 for my bidirecitonal control.
So I set the .PinConfig of the C1p11 and C1p12 to 8 and connect the signals to the Output values of C1p11 and C1p12.