Inputs and Outputs
- diekie
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
use pncconf and look at the readme file produced or use dmesg and the pins should be listed
then you need to relate the 5i20 pins to your breakout
Please Log in or Create an account to join the conversation.
You must connect them to input pins from the 5i20 or from the parallel port.
for example (5i20)
net x-home-sw => axis.0.home-sw-in hm2_5i20.0.gpio.052.in
net x-neg-limit => axis.0.neg-lim-sw-in hm2_5i20.0.gpio.051.in
net x-pos-limit => axis.0.pos-lim-sw-in hm2_5i20.0.gpio.050.in
I know the manual is difficult to find stuff in when your new.
Cncbashers suggestion of using PNCconf to build a sample config is an excellent idea.
Because setting up limits and homing is a difficult task all by it's self.
You could either just use the pncconf made config or use it as reference to get what you want in your custom config.
Please Log in or Create an account to join the conversation.
www.linuxcnc.org/docview/html/drivers_hostmot2.html#r1_7
John
Please Log in or Create an account to join the conversation.
The functions of the physical pins are different depending on what firmware you are using, and how many of each module such as "stepgen" is loaded.Please can someone help me? I have been asking around, but everyone gives the same answer:"read the manual". now where in the sample configurations do I find the 'physical pins'?
If you open a console window once EMC2 has started and type "dmesg" you will get a listing of the pin layout you have ended up with.
Bear in mind that HAL is the Hardware Abstraction Layer, the point is that it allows you to connect any physical pin with any machine function, so any free GPIO pin at all can be connected in HAL to axis.0.home-sw-in, and if you want to also connect the same pin to axis.0.pos-limit-sw-in then you can do so.
Please Log in or Create an account to join the conversation.
1 The GPIO pins 0..23 are on 5I20 P2, 24..47 are on P3 and 48..71 are on P4.
2. For a standard servo config, the servo interface will be on P2, leaving P3 and P4 free for GPIO use
3. If you have a 7I37 daughtercard its outputs are always on the top 8 pins of a connector (the lower 16 are inputs) so for example a 7I37 on P3 would have inputs on GPIO 24..39 and outputs on GPIO 40..47 A 7I37 on P4 would have inputs on GPIO 48..63 and outputs on GPIO 64..71
4. To get outputs to work, you will need to set the IS_OUTPUT parameter for all GPIO output bits (GPIO 40 ..47 in the 7I37 example)
5. Most mesa output devices like the 7I37 are active low (low means switch on), this means you will want to set the INVERT_OUTPUT parameter on outputs pins
6. One way to find if GPIO bits are available (not used by a special function) is to see if the output GPIO pin is listed, if the GPIO output pin is listed, that I/O pin is a free GPIO bit
Please Log in or Create an account to join the conversation.
- diekie
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
- diekie
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
Thank all of you who helped. I tried it out, and as a terrible reader, i like pncconf. has any of you done some Fanuc dc servo motors? I want to throw out the system 5t control, and some of my machines is also using 6t and 6m controls. just wondering if anyone has done it.
I think it has been done. I guess you want to keep the servo drives?
Are the motors brushed or brushless (red-cap or yellow-cap?)
Please Log in or Create an account to join the conversation.