On Sat, Apr 30, 2016 at 8:13 AM, Marius Alksnys <[email protected]> wrote:

> Your subjects says it. Look at halcmd documentation, alias command.
> Will it help?

nope.
when the first connection is made it defines a *signame*. if later i
need to use any pin which is already connected to this signal net i
have to explicitly specify *signame*.
what i try to do (pseudo syntax)

- 1st file: define symbolic names for external connections:
limit-sw = hw.in3

- 2nd file: make actual connection using symbolic names
limit-sw => axis.0.pos-lim-sw-in

- 3rd file: connect pins without knowing which signals they are connected to
hw.in1 => pyvcp.led1
hw.in2 => pyvcp.led2
hw.in3 => pyvcp.led3
hw.in4 => pyvcp.led4

and i can't do it. i have to either use hardware numbers in 2nd file
or symbolic names in 3rd file. so if i change routing in 1st file i
also forced to edit 2nd or 3rd.

/dmitry


> 04/30/2016 02:47 AM, Dmitry Yurtaev rašė:
>> i'm trying to organize my configs and having trouble doing it
>> conveniently. i'd like to localize external connections in one place
>> and give signals meaningful names. e.g.
>>
>> net x-neg-limit sscii.0.gpio.0.in-not
>> net x-pos-limit sscii.0.gpio.1.in-not
>> net stop sscii.0.gpio.11.in-not
>>
>> and then use signal names for actual connection:
>>
>> net x-pos-limit => axis.0.pos-lim-sw-in
>> net x-neg-limit => axis.0.neg-lim-sw-in
>>
>> if wiring changes, i can just edit the first net definition. BUT! i
>> also have a pyvcp panel with LEDs  showing inputs status. and i can't
>> just write in posgui.hal
>>
>> net led-in0 sscii.0.gpio.0.in-not => pyvcp-led0
>>
>> because sscii.0.gpio.0.in-not was already named x-neg-limit! so i'm
>> forced to use x-neg-limit name here which ruins routing localization
>> attempt...
>>
>> am i missing something? is there a way to make a connection without
>> referring to a signal name which was given to it before?
>>
>> /dmtiry
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to