How to connect 2 signal
30 Dec 2022 13:30 #260544
by zz912
How to connect 2 signal was created by zz912
Hello,
I want use PNCconf and I dont want change the files generated by PNCconf.
The PNCconf prepared in main *.hal file this:
But I need connect this two iocontrol pin.
Now I have to comment it after every modification in PNCconf. It make me mad.
In custom.hal is:
I would need something like a HAL terminal block.
I want use PNCconf and I dont want change the files generated by PNCconf.
The PNCconf prepared in main *.hal file this:
net tool-prepare-request <= iocontrol.0.tool-prepare
net tool-prepare-confirmed => iocontrol.0.tool-prepared
But I need connect this two iocontrol pin.
Now I have to comment it after every modification in PNCconf. It make me mad.
In custom.hal is:
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
I would need something like a HAL terminal block.
Please Log in or Create an account to join the conversation.
30 Dec 2022 15:13 - 30 Dec 2022 15:50 #260546
by PCW
Replied by PCW on topic How to connect 2 signal
Not sure, but I don't think there is any technical reason that connecting two signals
cannot be done in hal though the signal name binding gets a bit funny since you have
one address with multiple names...
net tool-prepare-loopback tool-prepare-request => tool-prepare-confirmed
The parser would need to know the readers and writers of the signal or some kind of
directionality would need to be included in the syntax:
copy tool-prepare-request => tool-prepare-confirmed
cannot be done in hal though the signal name binding gets a bit funny since you have
one address with multiple names...
net tool-prepare-loopback tool-prepare-request => tool-prepare-confirmed
The parser would need to know the readers and writers of the signal or some kind of
directionality would need to be included in the syntax:
copy tool-prepare-request => tool-prepare-confirmed
Last edit: 30 Dec 2022 15:50 by PCW. Reason: format
The following user(s) said Thank You: zz912
Please Log in or Create an account to join the conversation.
31 Dec 2022 15:46 #260646
by zz912
I did not find command "copy" in HAL documentation.
I thought aboat my problem, and I will solve the problem by and2 in custom hal.
setp and2.0.in1 1
net tool-prepare-request => and2.0.in0
net tool-prepare-confirmed <= and2.0.out
Replied by zz912 on topic How to connect 2 signal
Will this work? Or this is example for new posibly functionality?copy tool-prepare-request => tool-prepare-confirmed
I did not find command "copy" in HAL documentation.
I thought aboat my problem, and I will solve the problem by and2 in custom hal.
setp and2.0.in1 1
net tool-prepare-request => and2.0.in0
net tool-prepare-confirmed <= and2.0.out
Please Log in or Create an account to join the conversation.
31 Dec 2022 16:07 #260653
by PCW
Replied by PCW on topic How to connect 2 signal
No, there is no copy command, I was just suggesting a possible syntax to connect signals
The following user(s) said Thank You: zz912
Please Log in or Create an account to join the conversation.
31 Dec 2022 16:45 - 31 Dec 2022 16:47 #260659
by andypugh
Replied by andypugh on topic How to connect 2 signal
In your custom.hal, which will never be overwritten, add:
This deletes the existing two signals(which un-nets the pins) then makes a new connection.
delsig tool-prepare-request
delsig tool-prepare-confirmed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
This deletes the existing two signals(which un-nets the pins) then makes a new connection.
Last edit: 31 Dec 2022 16:47 by andypugh.
The following user(s) said Thank You: zz912
Please Log in or Create an account to join the conversation.
31 Dec 2022 17:02 #260663
by zz912
Replied by zz912 on topic How to connect 2 signal
Andy - this is good solution. Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.109 seconds