Thanks a lot for your answer, I think that this could be the root cause of
my issue.
But I cannot well understood how can i specify only certains pin to be
recognized like inputs.
I'm seeing the comments on the file (on below) to try to understand the
right way to generate the dir using the formulas but is very difficult for
me.
Can you help me to found the right way to set only the pin :
16,18,19,21,23,35 as input and all other as output please?
Thanks a lot for your help, very appreciated.
# standard pinout config file for 3-axis steppers
# using RapBerryPi V2 GPIO
#
# first load the gpio driver
#rpi2_gpios[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 };
#rpi2_pins[] = {3, 5, 7, 29, 31, 26, 24, 21, 19, 23, 32, 33, 8, 10, 36,
11, 12, 35, 38, 40, 15, 16, 18, 22, 37, 13 };
# 2^26-1 = 67108863 all out
# Output for GPIO 7,8,9,10,11,22,23,24,25 => 2^(5,6,7,8,9,
20,21,22,23)111100000000001111100000b = 15729632
Il giorno venerdì 6 ottobre 2017 17:11:15 UTC+2, Masoun Mardini ha scritto:
>
> As far as I can see all your pins are configured as outputs
> you must use direction to set outputs and inputs for example in your Hal
> file line 10
>
> loadrt hal_gpio dir=0x??????????????
> 1 means output
> 0 means input
>
> you can exclude pins that you will not use
>
> loadrt hal_gpio dir=0x???????? exclude=0x???????
> 1 means don't use this pin
> 0 means use this pin
>
>
> refer to lines 8&9 in your Hal file to find which pins are used and how
>
> Masoun
>
>
>
> On Friday, 6 October 2017 14:49:28 UTC+2, Antonio Bello wrote:
>>
>> I was able to create the hal file but I cannot set the limits for axis
>> and for ESTOP input.
>> Can you help me to understand the right procedure pls?
>> When I decomment the line 78
>>
>> net estop-ext <= hal_gpio.pin-37-in
>>
>> machinekit tell me that the hal_gpio.pin-37-in not exists...
>> The same for the line 123
>>
>> can you help me pls?
>>
>> Il giorno giovedì 5 ottobre 2017 16:22:42 UTC+2, Antonio Bello ha scritto:
>>>
>>> I have attached here the files also.
>>>
>>>>
>>>>
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github:
https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.