Re: [Emc-users] 7i43 usage

2021-04-17 Thread Peter C. Wallace

On Sat, 17 Apr 2021, dave engvall wrote:


Date: Sat, 17 Apr 2021 08:14:34 -0700
From: dave engvall 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: [Emc-users] 7i43 usage

Hi all,
I'm trying to use a 7i43 I've had on the shelf for awhile.
200K version despite the error message. :-)

I've tried it on several motherboards and several paraport cards with 
pretty much the same result.

Hopefully someone can give me a hint of what is really wrong.

Below is the message I get:

LINUXCNC - 2.7.14
Machine configuration directory is 
'/home/dave/linuxcnc/configs/by_interface.mesa.hm2-servo'

Machine configuration file is '7i43-small.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-servo.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
hm2_7i43: failed to clear EPP Timeout!
hm2_7i43: /DONE is not low after CPLD reset!
hm2/hm2_7i43.0: board has FPGA '3s400tq144', but the firmware in 
hm2/7i43-2/SVST4_4.BIT is for FPGA '3s200tq144'
hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x, epp_wide ON) not 
found!

hm2_7i43: rtapi_app_main: Invalid argument (-22)
./hm2-servo.hal:43: waitpid failed /usr/bin/rtapi_app hm2_7i43
./hm2-servo.hal:43: /usr/bin/rtapi_app exited without becoming ready
./hm2-servo.hal:43: insmod for hm2_7i43 failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime

So  is there a cure or do I go find another approach?

TIA

Dave


What parallel port are you using?

Motherboard ports are much more likely to work than add-in cards
On add-in cards, you either need to figure out the cards base address
(it cannot be 0x378) or use 0 as the address (assuming Linux finds
the parallel port)




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



Peter Wallace
Mesa Electronics



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] 7i43 usage

2021-04-17 Thread dave engvall

Hi all,
I'm trying to use a 7i43 I've had on the shelf for awhile.
200K version despite the error message. :-)

I've tried it on several motherboards and several paraport cards with 
pretty much the same result.

Hopefully someone can give me a hint of what is really wrong.

Below is the message I get:

LINUXCNC - 2.7.14
Machine configuration directory is 
'/home/dave/linuxcnc/configs/by_interface.mesa.hm2-servo'

Machine configuration file is '7i43-small.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-servo.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
hm2_7i43: failed to clear EPP Timeout!
hm2_7i43: /DONE is not low after CPLD reset!
hm2/hm2_7i43.0: board has FPGA '3s400tq144', but the firmware in 
hm2/7i43-2/SVST4_4.BIT is for FPGA '3s200tq144'
hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x, epp_wide ON) not 
found!

hm2_7i43: rtapi_app_main: Invalid argument (-22)
./hm2-servo.hal:43: waitpid failed /usr/bin/rtapi_app hm2_7i43
./hm2-servo.hal:43: /usr/bin/rtapi_app exited without becoming ready
./hm2-servo.hal:43: insmod for hm2_7i43 failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime

So  is there a cure or do I go find another approach?

TIA

Dave


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Sampler, overflow + header in output

2021-04-17 Thread Nicklas SB Karlsson
Sampler I found is simple to use then executing it from using a M1xx 
command, algorithm of shell script below:


  1. Disable sampler.

  2. Added an extra option to halcmd command read until buffer is 
"empty", used number of samples zero. Execute with this option to empty 
buffer.


  3. Enable sampler

  4. Run halsampler, there is parameter for selected channel and number 
of samples set then using "M100 Pchannel Qsamples".


  5. Disable sampler.

In 2. old values are flushed otherwise there may come old values first. 
Sample data is saved into a file with file ending .csv and it 
essentially is but with a space as separator, this work great. Think it 
is a good idea to add emptying of buffer but are a little bit in doubt 
about best solution? It might be sampling should be done until buffer is 
empty then sampler is disabled, maybe the best option is as I did? Or 
any better idea?



Even though samples have been flushed there is a overflow message then 
samples is started, this is an annoyance and should be removed to 
produce correct message but did not yet figure out how.



Shell command "halcmd show pin sampler.n.pin.* " show information about 
sampler pin(s). In particular type and information about net where it is 
connected. This printed information I plan to add an option so it will 
come before sampled values which is very useful then data is saved in a 
file, will also add either net information or pin as header for columns 
but are uncertain at this point which is best. Do anybody know if there 
is any not to hard method to access the information from "halcmd show 
pin sampler.n.pin.* " from within C code? Or  maybe calling the halcmd 
command from C code is the best solution? Or maye I better look into the 
halcmd code myself. This extra option to automatically add information 
about which net the sampled values are connected, anybody else interested?




Nicklas Karlsson



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users