- Posts: 106
- Thank you received: 15
Request for Mesa 5i23_7i48_7i52 firmware
2 years 2 weeks ago #312261
by freemoore
Replied by freemoore on topic Request for Mesa 5i23_7i48_7i52 firmware
Back on the 5i23 with this firmware, trying to get two stepper motors working. Using a config I adapted from sim vismach xyzbc trt, combined with the hal files from my mill which works well as a 3 axis (XYZW, W on the knee).
I have step output but no direction control for B axis, neither step nor direction for C axis. Wiring from the 7i52 is:
SSerial on COM 0
Step0 on COM 1
Dir0 on COM 2
Step1 on COM 3
Dir1 on COM 4
and an as yet unused PWM on COM 5.
One single-ended encoder for each stepper motor wired in to ENC 0 & ENC 1.
Does this look like the right wiring for getting step/dir out of the 7i52?
Brown = step0 gnd
Red = step0 +
Yellow = dir0 gnd
Orange = dir0 +
Green = step1 gnd
Blue = step1 +
Grey = dir1 gnd
Purple = dir1 +
Oscilloscope shows a nice pulse stream on the Step0 connection but nothing on the rest - there's 0v and +5v where expected (i.e. pins 0/1 and 6/7 of each block of
but nothing from what I think are the relevant TX pins.
The red alarm LEDs on the driver don't seem to mean anything; if I change things round so that the step0 pulsestream is sent to the C motor, that turns.
I have step output but no direction control for B axis, neither step nor direction for C axis. Wiring from the 7i52 is:
SSerial on COM 0
Step0 on COM 1
Dir0 on COM 2
Step1 on COM 3
Dir1 on COM 4
and an as yet unused PWM on COM 5.
One single-ended encoder for each stepper motor wired in to ENC 0 & ENC 1.
Does this look like the right wiring for getting step/dir out of the 7i52?
Brown = step0 gnd
Red = step0 +
Yellow = dir0 gnd
Orange = dir0 +
Green = step1 gnd
Blue = step1 +
Grey = dir1 gnd
Purple = dir1 +
Oscilloscope shows a nice pulse stream on the Step0 connection but nothing on the rest - there's 0v and +5v where expected (i.e. pins 0/1 and 6/7 of each block of
The red alarm LEDs on the driver don't seem to mean anything; if I change things round so that the step0 pulsestream is sent to the C motor, that turns.
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #312268
by PCW
Replied by PCW on topic Request for Mesa 5i23_7i48_7i52 firmware
You need to set GPIO bit 24 low to get the TX3 output enabled
sudo mesaflash --device 5i23 --dbname2 7i52 --readhmid
should help with the pinout
sudo mesaflash --device 5i23 --dbname2 7i52 --readhmid
should help with the pinout
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #312273
by freemoore
Replied by freemoore on topic Request for Mesa 5i23_7i48_7i52 firmware
Is there any more to that than adding the line:
setp [HMOT](CARD0).gpio.024.out false
to my halfile? looking at Hostmot2 doc page, it doesn't look like it has to be explicitly added as a gpio in the loadrt hm2_pci config="...etc"
but I'm not sure what else might be required. I've just tried the above setp line, ending it either 'true' or 'false', and still have no activity on P3 pins
setp [HMOT](CARD0).gpio.024.out false
to my halfile? looking at Hostmot2 doc page, it doesn't look like it has to be explicitly added as a gpio in the loadrt hm2_pci config="...etc"
but I'm not sure what else might be required. I've just tried the above setp line, ending it either 'true' or 'false', and still have no activity on P3 pins
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #312275
by PCW
Replied by PCW on topic Request for Mesa 5i23_7i48_7i52 firmware
You need to set the pin to output mode.
(all GPIO start-up as input pins)
setp [HMOT](CARD0).gpio.024.is_output true
setp [HMOT](CARD0).gpio.024.out false
(all GPIO start-up as input pins)
setp [HMOT](CARD0).gpio.024.is_output true
setp [HMOT](CARD0).gpio.024.out false
The following user(s) said Thank You: freemoore
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds