#linuxcnc | Logs for 2013-08-26

Back
[18:15:37] <nspielbe> so i am trying to combine two hal files together on with my mesa working code and one with the skeleton of my defaulkt scara config but they are so different its hard to parse what to combine
[18:53:35] <JT-Shop> well she got a comunnication error and gave up... so it is a remote service call now.
[19:00:14] <Jymmm> JT-Shop: ?
[19:01:29] <JT-Shop> you had to have been there
[19:02:09] <Jymmm> JT-Shop: what is "she" though
[19:02:11] <Jymmm> ?
[19:02:20] <JT-Shop> customer
[19:02:30] <Jymmm> ah
[19:50:27] <nspiel> how can i read about what the core hal components of the default 7i43 setup are in order to integrate them in the default scara config
[19:51:07] <Tom_itx> dmesg will show you the components loaded from the bit files
[19:51:41] <Tom_itx> there is a chart somewhere iirc though
[19:54:26] <Tom_itx> the firmware configurations are in the integrators manual
[19:55:36] <Tom_itx> http://linuxcnc.org/docs/EMC2_Integrator_Manual.pdf
[20:00:34] <Tom_itx> section 6.11
[20:00:41] <Tom_itx> section 16.11
[20:06:54] <nspiel> thanks tom that was what i was looking for
[20:07:45] <Tom_itx> the actual pins can be found with dmesg once you load the pin file
[20:15:52] <nspiel> im kind of confused because i have the arm getting encoder feedback now with the default 7i43 small file
[20:16:29] <nspiel> and the scara default config is so different its not as easy as copy and paste to get the fpga configured right
[20:27:21] <nspiel> tom theres not that much that it says on 16.11 configurations that is of use
[20:29:08] <Tom_itx> those are the 'core' hal components for the bit files
[20:30:04] <Tom_itx> how many pwmgens do you need?
[20:30:11] <Tom_itx> how many encoders do you need?
[20:30:22] <Tom_itx> define them in the ini
[20:30:31] <Tom_itx> find the pins with dmesg
[20:30:48] <nspiel> 4 and 4
[20:30:59] <Tom_itx> what firmware do you have loaded?
[20:31:15] <nspiel> svst4_4
[20:31:39] <Tom_itx> any leftover pins can be configured as GPIO
[20:32:01] <Tom_itx> so the SVST4_4 has 4 encoders and 4 pwmgens
[20:32:38] <Tom_itx> 18.11
[20:33:49] <nspiel> im also confused because the default scara config and the default 7i43 config are sooooo different
[20:34:53] <Tom_itx> well you said you need 4 encoder and 4 pwmgens
[20:35:03] <Tom_itx> so you have the bit file you need
[20:35:10] <Tom_itx> find out what pins they are on
[20:35:29] <Tom_itx> look at how the pwm is mapped in the scara file and map them to those pins
[20:37:22] <nspiel> it looks like the scara doesnt even have pwm
[20:37:32] <nspiel> thats where i am confused
[20:41:42] <Tom_itx> does it have [AXIS_X] sections?
[20:42:11] <Tom_itx> in the ini
[20:55:16] <nspiel> for some reason when i start up plug in my 7i43 then open lcnc with the scara default config i type in dmesg and get all the encoder pins and outputs from the 7i43
[20:55:28] <nspiel> but its not configured in the hal or ini yet
[20:56:39] <Tom_itx> but you have the pinout
[20:56:43] <Tom_itx> that's what you need
[20:57:13] <nspiel> what do u mean
[20:57:17] <Tom_itx> dmesg even tells you what they are
[20:57:39] <Tom_itx> you're not gonna find them in the ini or hal, they're part of the driver you loaded on the first line
[20:57:54] <Tom_itx> but you know what pins they are connected to because of dmesg
[20:58:24] <Tom_itx> PwmGen #0 would be the first axis
[20:58:26] <Tom_itx> etc
[20:59:00] <nspiel> the first line on the hal?
[20:59:03] <nspiel> or the ini?
[20:59:05] <nspiel> the ini right?
[20:59:12] <Tom_itx> and it also tells you what io pin it is wired to
[20:59:56] <atom1> CONFIG="firmware=hm2/7i43-4/SVST2_4_7I47B.BIT num_encoders=2 num_pwmgens=0 num_stepgens=4"
[21:00:05] <Tom_itx> the one similar to that in your ini file
[21:00:10] <nspiel> yeah i have that
[21:00:22] <Tom_itx> so you know what you have defined right there
[21:00:29] <Tom_itx> dmesg tells you where they are wired
[21:00:33] <Tom_itx> IO pins
[21:00:35] <nspiel> except CONFIG="firmware=hm2/7i43-4/SVST2_4_7I47B.BIT num_encoders=4 num_pwmgens=4 num_stepgens=0"
[21:00:49] <Tom_itx> axis0 is related to the first group
[21:00:50] <Tom_itx> etc
[21:01:27] <Tom_itx> so print out the 7i43 pinout page and label them acording to dmesg
[21:01:36] <Tom_itx> and you know where to wire your axis
[21:01:46] <nspiel> im lost
[21:01:47] <Tom_itx> and encoders
[21:02:16] <atom1> [ 561.339626] hm2/hm2_7i43.0: IO Pin 000 (P4-01): StepGen #0, pin Step (Output)
[21:02:27] <atom1> that's from my dmesg listing
[21:03:18] <atom1> i know from that that my first stepper step io will be on IO 00 Pin P4-01
[21:03:44] <atom1> and the direction pin will be on IO 01 P4-03
[21:04:12] <atom1> they are all listed in dmesg
[21:04:30] <Tom_itx> acording to what you said in the config = line
[21:05:11] <Tom_itx> so you know your first axis (axis0) will be related to the pins on PWMGEN #0
[21:05:24] <Tom_itx> i can't make it any clearer
[21:05:52] <Tom_itx> yours will be different because i'm using steppers and you're using servos
[21:06:29] <nspiel> but the hal config for scara is nothing remotely close to the one from 7i43 small
[21:06:34] <nspiel> where it makes sense
[21:06:43] <Tom_itx> does it have axis sections?
[21:06:51] <nspiel> no it doesnt...
[21:07:15] <Tom_itx> it must have something related to them somehow
[22:10:10] <CaptHindsight> archivist: heh, the discussion about the camera system and cross hairs was on the ML
[22:55:29] <nspiel> is it worth it to read the whole integrators manual to understand building hal files and ini files
[22:55:52] <jdh> it's better than watching teevee
[22:56:24] <nspiel> lol
[23:35:44] <nspiel_> getting this config for my scara working is impossible. im gaining nothing from reading the integrators manual
[23:41:24] <nspiel_> the literature is so hard to understand