7i77 Mode 3 coding in HAL file

More
13 Jul 2022 03:53 #247210 by Thods1222
Hello, 
I am trying to understand how to code the HAL file to allow for the 7i77 to be in Mode 3 to do encoder inputs on Pin 16 etc. My setup is ran through a 7I92H which runs to the 7i77 and the 7i74 through the headers. The 7I74 runs 7I70 and 7I71 for the respective inputs and outputs for the mill.  I feel like my wires are hooked up correctly to the pins. The ground is common to the field ground but it doesn't recognize the pendant A/B phases. I can see the axis select enable through Hal config as well as the increments select.  What setting do I need to have in the HAL file to make this convert to mode 3?  I think I have mine set up with 0=300xxx, which should get me mode 3 in my card correct? Do I need to run mesaflash to get it to change?

Also, can someone give me a tutorial on what the numbers/X's mean in their respective locations in the smart serial format?

Thanks for the help in advance, it is much appreciated. 

Please Log in or Create an account to join the conversation.

More
13 Jul 2022 04:46 #247212 by arvidb

Also, can someone give me a tutorial on what the numbers/X's mean in their respective locations in the smart serial format?

The config modparam is described here . Search for "sserial_port_N".

The Mesa FPGA cards support four SSerial "ports", where each port can handle up to eight SSerial "channels". N in sserial_port_N denotes port, and the string of numbers and x's sets the mode for each of the channels in that port; x means disabled. So "sserial_port_0=300xxx" would configure the six first channels of port 0 to modes 3, 0, 0, and channel 3-5 disabled. What the actual mode numbers mean depends on the type of Sserial device connected.

The channel layout depends on the specific firmware used.
You can determine the channel layout by using mesaflash's --readhmid function


The meaning of the 7i77's different modes are described in the 7i77 manual under "SOFTWARE PROCESS DATA MODES". Although that section doesn't mention which channel to the apply the mode to.
The following user(s) said Thank You: Thods1222

Please Log in or Create an account to join the conversation.

More
13 Jul 2022 16:14 - 13 Jul 2022 16:15 #247239 by PCW
Replied by PCW on topic 7i77 Mode 3 coding in HAL file
port_0=300xxx should be correct for standard 7I77 firmware

Note that likely you cannot read the A/B lines as individual inputs with 5V signals
(the digital inputs still have a ~ 1/2 field voltage threshold) but should be able to
read the MPG encoder counts on these pins:

hm2_7i92.0.7i77.0.0.enc0
hm2_7i92.0.7i77.0.0.enc1
Last edit: 13 Jul 2022 16:15 by PCW.
The following user(s) said Thank You: Thods1222

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.134 seconds
Powered by Kunena Forum