7i76E - Starting

More
03 Nov 2018 21:38 #119884 by MarcoGaspar
7i76E - Starting was created by MarcoGaspar
Hello,

It's my first time with mesa cards.

- I download the image linuxcnc-stretch-uspace-amd64-r13.iso and installed it
- Changed the Ip to 10.10.10.1
- Connect 24v to 7i76e
- Connect the 7i76 to DM860A Driver

Ping 7i76e:
PING 10.10.10.10 (10.10.10.10): 56 data bytes
64 bytes from 10.10.10.10: icmp_seq=0 ttl=64 time=0.308 ms
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.233 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.238 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.231 ms
^C--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.231/0.253/0.308/0.032 ms


- sudo mesaflash --device 7i76e --addr 10.10.10.10 --readhmi
Configuration Name: HOSTMOT2

General configuration information:

BoardName : MESA7I76
FPGA Size: 16 KGates
FPGA Pins: 256
Number of IO Ports: 3
Width of one I/O port: 17
Clock Low frequency: 100.0000 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256

Modules in configuration:

Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: IOPort
There are 3 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: StepGen
There are 5 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: QCount
There are 1 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5A00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes

Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for on-card
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 0 IOPort StepGen 0 Dir/Table2 (Out)
14 1 IOPort StepGen 0 Step/Table1 (Out)
2 2 IOPort StepGen 1 Dir/Table2 (Out)
15 3 IOPort StepGen 1 Step/Table1 (Out)
3 4 IOPort StepGen 2 Dir/Table2 (Out)
16 5 IOPort StepGen 2 Step/Table1 (Out)
4 6 IOPort StepGen 3 Dir/Table2 (Out)
17 7 IOPort StepGen 3 Step/Table1 (Out)
5 8 IOPort StepGen 4 Dir/Table2 (Out)
6 9 IOPort StepGen 4 Step/Table1 (Out)
7 10 IOPort SSerial 0 TXData1 (Out)
8 11 IOPort SSerial 0 RXData1 (In)
9 12 IOPort SSerial 0 TXData2 (Out)
10 13 IOPort SSerial 0 RXData2 (In)
11 14 IOPort QCount 0 Quad-IDX (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-A (In)

IO Connections for P1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 17 IOPort None
14 18 IOPort None
2 19 IOPort None
15 20 IOPort None
3 21 IOPort None
16 22 IOPort None
4 23 IOPort None
17 24 IOPort None
5 25 IOPort None
6 26 IOPort None
7 27 IOPort None
8 28 IOPort None
9 29 IOPort None
10 30 IOPort None
11 31 IOPort None
12 32 IOPort None
13 33 IOPort None

IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 34 IOPort None
14 35 IOPort None
2 36 IOPort None
15 37 IOPort None
3 38 IOPort None
16 39 IOPort None
4 40 IOPort None
17 41 IOPort None
5 42 IOPort None
6 43 IOPort None
7 44 IOPort None
8 45 IOPort None
9 46 IOPort None
10 47 IOPort None
11 48 IOPort None
12 49 IOPort None
13 50 IOPort None

- Start PNCCONF and when i try to test axis i get error (IMG_20181103_212410.jpg)

Then when starting Axis i get (IMG_20181103_212510.jpg)
If i try to move the machine does nothing and give joint following error. (IMG_20181103_212528.jpg)

What is wrong or missing to do?

Best Regards,
Marco Gaspar
Attachments:

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

More
03 Nov 2018 22:21 #119886 by PCW
Replied by PCW on topic 7i76E - Starting
The first image shows a lost connection from the host to the 7I76E

Also the ping times are quite bad which suggests a real time or network driver setup error.

Can you post:

1. Your current hal/ini files

2. What type of PC hardware you have (motherboard/CPU)

3. What Ethernet hardware you have on the host

( lspci | grep -i ethernet should show this)

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

More
03 Nov 2018 22:35 #119888 by MarcoGaspar
Replied by MarcoGaspar on topic 7i76E - Starting
I have:

Gibabyte h310m with Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz

Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)

Connected directy to 7i76e
Attachments:

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

More
03 Nov 2018 23:04 #119891 by PCW
Replied by PCW on topic 7i76E - Starting
Change:
SERVO_PERIOD = 16000
to:
SERVO_PERIOD = 1000000

and you should be OK
.

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

More
03 Nov 2018 23:18 #119892 by MarcoGaspar
Replied by MarcoGaspar on topic 7i76E - Starting
Motor moves but...

The stepper motor makes a very strange noise on moving (and not moving at the correct feed... slower) and when i stop moving it continues moving slower and with more noise.

Do i have to flash anything to mesa?

Do i need any more power supply thant : 24v at TB1 pin 5 and TB3 pin 22?

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

More
04 Nov 2018 00:32 #119898 by PCW
Replied by PCW on topic 7i76E - Starting
If you just changed the servo period (rather than re-running pncconf with a 1 ms (1000000 ns) servo thread period, you will also have to set the P terms to 1000

You will probably also have to lengthen the step lengths since the default 1 usec (1000 ns) is likely too short for your drives (I would start at 5 usec = 5000 ns)

Also you should delete all the lines like:

setp pid.x.maxerror .0005

in the hal file. I thought this bug was fixed in pncconf but i guess not...

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

More
04 Nov 2018 00:51 #119900 by cmorley
Replied by cmorley on topic 7i76E - Starting
Peter is there ever a time to set maxerror?
Current master sets it for steppers

Chris M

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

More
04 Nov 2018 01:11 - 04 Nov 2018 01:18 #119901 by MarcoGaspar
Replied by MarcoGaspar on topic 7i76E - Starting

If you just changed the servo period (rather than re-running pncconf with a 1 ms (1000000 ns) servo thread period, you will also have to set the P terms to 1000

You will probably also have to lengthen the step lengths since the default 1 usec (1000 ns) is likely too short for your drives (I would start at 5 usec = 5000 ns)

Also you should delete all the lines like:

setp pid.x.maxerror .0005

in the hal file. I thought this bug was fixed in pncconf but i guess not...




Done that, and its the same...


swaped to old chinese db25 and works ok.... but on 7i76e not
Last edit: 04 Nov 2018 01:18 by MarcoGaspar.

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

More
04 Nov 2018 01:29 #119903 by PCW
Replied by PCW on topic 7i76E - Starting

Peter is there ever a time to set maxerror?
Current master sets it for steppers

Chris M


Its useful on step/dir systems, especially if the DPLL is not used, but it needs to be scaled differently for
inch and metric systems, that is .0005 inches is a significant error and should never happen normally
but .0005 mm is insignificant and will not allow great enough corrections to velocity to fix time base errors etc
0.01 is probably good number for metric systems...

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

More
04 Nov 2018 01:31 #119904 by PCW
Replied by PCW on topic 7i76E - Starting

Done that, and its the same...


swaped to old chinese db25 and works ok.... but on 7i76e not


Can you include you current hal/ini files?

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

Moderators: cmorley
Time to create page: 0.342 seconds
Powered by Kunena Forum