Repurpose RS-422 on 7i76e?

More
6 years 3 months ago #173606 by jhandel
I need to add a 6th step generator for my spindle (it is a servo spindle)... Am I understanding how bit file generation works (Xilinx Webpack design tool, VHD files, etc) that I could just replace the
Code:
IOPortTag & x"00" & SSerialTag & SSerialTX0Pin, -- I/O 10 PIN 7 IOPortTag & x"00" & SSerialTag & SSerialRX0Pin, -- I/O 11 PIN 8 IOPortTag & x"00" & SSerialTag & SSerialTX1Pin, -- I/O 12 PIN 9 IOPortTag & x"00" & SSerialTag & SSerialRX1Pin, -- I/O 13 PIN 10
with something like
Code:
IOPortTag & x"05" & StepGenTag & StepGenDirPin, -- I/O 10 PIN 7 IOPortTag & x"05" & StepGenTag & StepGenStepPin, -- I/O 11 PIN 8 IOPortTag & x"06" & StepGenTag & StepGenDirPin, -- I/O 12 PIN 9 IOPortTag & x"06" & StepGenTag & StepGenStepPin, -- I/O 13 PIN 10

?

Also, in the VHD files, where are the 48 standard I/O ports programmed? I am not quite following where the last 3 rows of the 7i76e are programmed in the project..

Thanks all

Please Log in to join the conversation.

More
6 years 3 months ago #173607 by jhandel
Replied by jhandel on topic Repurpose RS-422 on 7i76e?
Looking at the file more (and some other docs)..

Maybe change

Delete:
Code:
(SSerialTag, x"00", ClockLowTag, x"01", SSerialCommandAddr&PadT, SSerialNumRegs, x"10", SSerialMPBitMask),

Also Update:
Code:
(StepGenTag, x"02", ClockLowTag, x"05", StepGenRateAddr&PadT, StepGenNumRegs, x"00", StepGenMPBitMask),
To:
Code:
(StepGenTag, x"02", ClockLowTag, x"07", StepGenRateAddr&PadT, StepGenNumRegs, x"00", StepGenMPBitMask),

??

Please Log in to join the conversation.

More
6 years 3 months ago #173608 by PCW
Replied by PCW on topic Repurpose RS-422 on 7i76e?
SSerial 0 on a 7I76E goes to the field I/O section so not useful for step/dir
( the 48 field I/O points are accessed via this port )

SSerial 1 goes to the expansion serial port (so you could get 1 output only)

If you want to add additional stepgens, they should be added to one of the 7I76Es
parallel expansion connectors, for example using the 7i76e_7i76x1_5abobD.bit
firmware allows you to use one of the common "Mach 5 Axis" breakout boards
connected to P1 and giving 5 additional buffered 5V step/dir channels

Please Log in to join the conversation.

More
6 years 3 months ago #173672 by jhandel
Replied by jhandel on topic Repurpose RS-422 on 7i76e?
Gatcha, I am already having to add a 7i89 for encoders, and I have a spare bob, and was trying to find a way to NOT have to add it too... But if that is the case, that is the case.. I figured no matter what I did I would have to build a custom firmware..

I am guessing then I can't repurpose TB4 to Step and Direction either as it has special analog IO Pins? (Spindle is a servo so it runs better off step&direction than over PWM especially with rigid tapping, and again that would end up saving me an extra Bob for 1 Step and Direction generator :-P)

Please Log in to join the conversation.

Time to create page: 0.207 seconds
Powered by Kunena Forum