Dig IOs visible on HAL (shows Set and Reset by M64,M65) but no physical change

More
29 Feb 2020 10:21 - 29 Feb 2020 18:22 #158800 by Schneckerich_63
Hallo
I am working with 7i76e and 7i85s. For Testpurposes i only use one axis in closed loop mode. It runs very well.
Closed Loop is very satisviing.

The Hal based definition of IOs works internally very fine. In HAL i obeye the outputs adressed by their GPIO Pin.
As used in cnc program by M64 and M65 they switch on and off as expected.

But here starts the Problem. Measuring with Digital Multimeter in DC Volt range the Outputs Show absolutely no Change.

For Power supply i am working with TB1 Field power Pin 8 GND , Pin 5 24V and TB3 Power Pin 23 GND, Pin 22 24V

Defining of Limit switches in Hal is in my opinoun correct. When i start my cnc prog i receive at once an errormessage caused by
the limit switch which does not gets any voltage Information.


My last try was to Change the Mode of 7i76e from 0 onto 2.

I hope one of you can give me an additionately Information to solve this Problem .

In the attachement you will find hal and ini files, may be there are some informations still missing. I worked
with a project given by talla83 (Youtube).

I switched from mach3 to linuxcnc and be shure it was a good decision.

Thanks to all

Schneckerich_63
:(
Attachments:
Last edit: 29 Feb 2020 18:22 by Schneckerich_63.

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

More
29 Feb 2020 10:46 #158802 by BeagleBrainz
You forgotten to attach the hal & ini files.

You do have the read & write functions added to the thread ?

I forgot to do this once when using halrun when doing some testing.

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

More
29 Feb 2020 11:19 #158803 by tommylight
The digital IO's are not connected to physical outputs in hal.
Something like
net dout-00 <= motion.digital-out-00
net dout-01 <= motion.digital-out-01
net dout-02 <= motion.digital-out-02
net dout-03 <= motion.digital-out-03
net dout-00 => parport.0.pin-08-out
net dout-01 => parport.0.pin-09-out
net dout-02 => parport.0.pin-14-out
net dout-03 => parport.0.pin-16-out
Change parport entries to mesa if needed
The following user(s) said Thank You: BeagleBrainz

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

More
29 Feb 2020 18:25 #158832 by Schneckerich_63
Thank you BeagleBrtainz
now i added hal and ini may be you can see something wrong.
as i understood the man read and write are correct.

Schneckerich_63

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

More
29 Feb 2020 18:31 #158833 by Schneckerich_63
Thank you tommylight,

i forgot to addon the hal and ini file. This was done now.

I suppose your proposel is already part of hal.
May be a glance on my files will give you an additionately idea.

Schneckerich_63.

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

More
29 Feb 2020 21:12 #158842 by PCW
You may be better off starting with a pncconf created hal/ini file set

The field I/O on a 7I76E is not GPIO but rather:

halcmd show pin hm2_7i76e.0.7i76.0.0.*
Component Pins:
Owner Type Dir Value Name
23 float OUT 0 hm2_7i76e.0.7i76.0.0.analogin0
23 float OUT 0 hm2_7i76e.0.7i76.0.0.analogin1
23 float OUT 0 hm2_7i76e.0.7i76.0.0.analogin2
23 float OUT 0 hm2_7i76e.0.7i76.0.0.analogin3
23 s32 OUT 0 hm2_7i76e.0.7i76.0.0.enc0.count
23 bit I/O FALSE hm2_7i76e.0.7i76.0.0.enc0.index-enable
23 float OUT 0 hm2_7i76e.0.7i76.0.0.enc0.position
23 s32 OUT 0 hm2_7i76e.0.7i76.0.0.enc0.rawcounts
23 bit I/O FALSE hm2_7i76e.0.7i76.0.0.enc0.reset
23 s32 OUT 0 hm2_7i76e.0.7i76.0.0.enc1.count
23 bit I/O FALSE hm2_7i76e.0.7i76.0.0.enc1.index-enable
23 float OUT 0 hm2_7i76e.0.7i76.0.0.enc1.position
23 s32 OUT 0 hm2_7i76e.0.7i76.0.0.enc1.rawcounts
23 bit I/O FALSE hm2_7i76e.0.7i76.0.0.enc1.reset
23 float OUT 14.3217 hm2_7i76e.0.7i76.0.0.fieldvoltage
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-00
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-00-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-01
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-01-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-02
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-02-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-03
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-03-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-04
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-04-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-05
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-05-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-06
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-06-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-07
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-07-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-08
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-08-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-09
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-09-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-10
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-10-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-11
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-11-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-12
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-12-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-13
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-13-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-14
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-14-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-15
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-15-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-16
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-16-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-17
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-17-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-18
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-18-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-19
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-19-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-20
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-20-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-21
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-21-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-22
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-22-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-23
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-23-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-24
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-24-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-25
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-25-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-26
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-26-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-27
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-27-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-28
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-28-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-29
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-29-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-30
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-30-not
23 bit OUT FALSE hm2_7i76e.0.7i76.0.0.input-31
23 bit OUT TRUE hm2_7i76e.0.7i76.0.0.input-31-not
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-00
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-01
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-02
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-03
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-04
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-05
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-06
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-07
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-08
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-09
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-10
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-11
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-12
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-13
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-14
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.output-15
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.spindir
23 bit IN FALSE hm2_7i76e.0.7i76.0.0.spinena
23 float IN 0 hm2_7i76e.0.7i76.0.0.spinout

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

More
02 Mar 2020 15:31 #158983 by Schneckerich_63
Hallo PCW,

thank your for the fast Help.
At the Moment my Problem is solved. your assumption something
is wrong in HAL was Right.

Bye

Schneckerich_63

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

More
02 Mar 2020 20:23 #159022 by tommylight

Hallo PCW,

thank your for the fast Help.
At the Moment my Problem is solved. your assumption something
is wrong in HAL was Right.

Bye

Schneckerich_63

What was wrong ?

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

More
03 Mar 2020 11:55 - 03 Mar 2020 12:02 #159071 by Schneckerich_63
Hallo Tommylight

I added the new working Hal file. Comparing to the old Hal file in my Question you will see at once my faults.

Not all io were tested, but works one they will work all i suppose.

Thanks to all.

Schneckerich_63
Attachments:
Last edit: 03 Mar 2020 12:02 by Schneckerich_63.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.123 seconds
Powered by Kunena Forum