pwm gen 7143 and 7137com
09 Jan 2015 05:01 - 09 Jan 2015 05:08 #54805
by andradela
pwm gen 7143 and 7137com was created by andradela
Hi all.
I'm trying creat a pwm gen on pncconf, but i found a problem, pncconf creat a output pwm in the pin 7. The pin 7 is a input on 7i37com. I changed that pin in hal file to pin 16, but isn't works. Emc doesn't run.
Show that fault.
Parameter or pin hm2_7143.0.gpio.0016.invert_output not found
I'm trying creat a pwm gen on pncconf, but i found a problem, pncconf creat a output pwm in the pin 7. The pin 7 is a input on 7i37com. I changed that pin in hal file to pin 16, but isn't works. Emc doesn't run.
Show that fault.
Parameter or pin hm2_7143.0.gpio.0016.invert_output not found
Last edit: 09 Jan 2015 05:08 by andradela.
Please Log in or Create an account to join the conversation.
09 Jan 2015 05:10 #54807
by andradela
Replied by andradela on topic pwm gen 7143 and 7137com
Follow the hal file an debug file.
Please Log in or Create an account to join the conversation.
09 Jan 2015 06:10 #54810
by PCW
Replied by PCW on topic pwm gen 7143 and 7137com
A couple of things...
1. Hardware PWM outputs are on fixed pins. so if you want a PWM output on GPIO16 you must have a bitfile
that already has a PWM output there.
2. Hardware PWM is not very useful on 7I37 outputs because they are fairly slow, in any case you would
want a slow PWM rate if you expect decent linearity, probably 1 KHz or below
3. If a very slow PWM rate is OK (say 10-20 Hz) you can use the software PWM generator and wire it in HAL to GPIO 16
What is the PWM for?
1. Hardware PWM outputs are on fixed pins. so if you want a PWM output on GPIO16 you must have a bitfile
that already has a PWM output there.
2. Hardware PWM is not very useful on 7I37 outputs because they are fairly slow, in any case you would
want a slow PWM rate if you expect decent linearity, probably 1 KHz or below
3. If a very slow PWM rate is OK (say 10-20 Hz) you can use the software PWM generator and wire it in HAL to GPIO 16
What is the PWM for?
Please Log in or Create an account to join the conversation.
09 Jan 2015 06:30 - 09 Jan 2015 06:31 #54811
by andradela
Replied by andradela on topic pwm gen 7143 and 7137com
To control a vfd spindle motor. I will use a pwm to 0-10v converter.
Last edit: 09 Jan 2015 06:31 by andradela.
Please Log in or Create an account to join the conversation.
09 Jan 2015 07:04 #54812
by andradela
Replied by andradela on topic pwm gen 7143 and 7137com
1khz I believe will works fine.
Please Log in or Create an account to join the conversation.
09 Jan 2015 20:10 #54819
by andypugh
Mesa make a device for this: store.mesanet.com/index.php?route=produc...spinx&product_id=205
But a capacitor and resistor can work too. (depending on the nature of the IO pin, it needs a degree of push-pull capability).
I use an ACPL chip directly connected to a 7i43 output pin to get the required current-source / current-sink behaviour.
picasaweb.google.com/1081645046564043805...#6013253785596056210
You would need a bigger cap than shown for a 1kHz PWM.
Which VFD are you using? Some of them can be directly controlled by the serial port / modbus.
Replied by andypugh on topic pwm gen 7143 and 7137com
To control a vfd spindle motor. I will use a pwm to 0-10v converter.
Mesa make a device for this: store.mesanet.com/index.php?route=produc...spinx&product_id=205
But a capacitor and resistor can work too. (depending on the nature of the IO pin, it needs a degree of push-pull capability).
I use an ACPL chip directly connected to a 7i43 output pin to get the required current-source / current-sink behaviour.
picasaweb.google.com/1081645046564043805...#6013253785596056210
You would need a bigger cap than shown for a 1kHz PWM.
Which VFD are you using? Some of them can be directly controlled by the serial port / modbus.
Please Log in or Create an account to join the conversation.
09 Jan 2015 20:29 #54820
by andypugh
I _think_ that if you set the number of PWMgens to 3 in pncconf then one of them will end up on an output pin of the 7i37.
This is a bit wasteful of 7i37 pins, as some of the 7i37 Inputs get claimed by PWM generators that are not being used.
It _might_ be better to use a step generator and frequency to voltage conversion to control the VFD.
Making a special 7i43-200 firmware that has a PWM output on the 7i37 pin of your choice is something that even I can do, but not until sunday. In the meantime (and if you are not using the 7i37 inputs on the pins that get "claimed" by PWMs 0 and 1) then try 3 PWMs to get things working.
Replied by andypugh on topic pwm gen 7143 and 7137com
Hi all.
I'm trying creat a pwm gen on pncconf, but i found a problem, pncconf creat a output pwm in the pin 7. The pin 7 is a input on 7i37com.
I _think_ that if you set the number of PWMgens to 3 in pncconf then one of them will end up on an output pin of the 7i37.
This is a bit wasteful of 7i37 pins, as some of the 7i37 Inputs get claimed by PWM generators that are not being used.
It _might_ be better to use a step generator and frequency to voltage conversion to control the VFD.
Making a special 7i43-200 firmware that has a PWM output on the 7i37 pin of your choice is something that even I can do, but not until sunday. In the meantime (and if you are not using the 7i37 inputs on the pins that get "claimed" by PWMs 0 and 1) then try 3 PWMs to get things working.
Please Log in or Create an account to join the conversation.
09 Jan 2015 23:38 #54824
by andradela
Replied by andradela on topic pwm gen 7143 and 7137com
Sinamics g110. Siemens
Please Log in or Create an account to join the conversation.
10 Jan 2015 00:22 #54825
by andypugh
That appears to have the option of RS232 control with a separate connection kit, but that is probably hard to get hold of.
I was wondering if the drive had an option to take pulse (stepgen) frequency as input, but it appears not.
One very easy way to convert a step/dir pulse to PWm to control an inverter would be an Arduino.
An interrupt that triggers on the rising edge of a digital input could simply measure how many clock ticks have happened since the last pulse, and set a PWM output accordingly.
You can get an Arduino Nano for <$10 from eBay. They make it barely worth building a breadboard circuit any more.
However, it should be possible to use the Mesa card PWM, it just needs a bit of firmware manipulation.
What daughter card is on the other port? Perhaps it would make sense (if a custom firmware is being built) to move the PWMgen pins to that port.
Replied by andypugh on topic pwm gen 7143 and 7137com
Sinamics g110. Siemens
That appears to have the option of RS232 control with a separate connection kit, but that is probably hard to get hold of.
I was wondering if the drive had an option to take pulse (stepgen) frequency as input, but it appears not.
One very easy way to convert a step/dir pulse to PWm to control an inverter would be an Arduino.
An interrupt that triggers on the rising edge of a digital input could simply measure how many clock ticks have happened since the last pulse, and set a PWM output accordingly.
You can get an Arduino Nano for <$10 from eBay. They make it barely worth building a breadboard circuit any more.
However, it should be possible to use the Mesa card PWM, it just needs a bit of firmware manipulation.
What daughter card is on the other port? Perhaps it would make sense (if a custom firmware is being built) to move the PWMgen pins to that port.
The following user(s) said Thank You: andradela
Please Log in or Create an account to join the conversation.
10 Jan 2015 02:58 - 10 Jan 2015 03:01 #54838
by andradela
Replied by andradela on topic pwm gen 7143 and 7137com
Another port i use a custom board, I built my own.
Last edit: 10 Jan 2015 03:01 by andradela.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.107 seconds