(Solved) Use already connected Buttons twice
26 Sep 2016 15:54 - 26 Sep 2016 16:58 #80936
by DaPeace
(Solved) Use already connected Buttons twice was created by DaPeace
Hey Guys,
another day another question...
I want to use my Arrow-Buttons that i use for moving the mill as a shortcut.
I want to press x+ and x- same time to switch to gmoccapy.jog-inc-0-PIN.
I dont have enough buttons to add that separatly.
Can someone give me a hint how i can do that?
i have added the x+ and x- with the following code:
I tried to use and2 but the problem is that the pins are already connected and i cant figure out how i could reuse them later.
Regards, Jan
another day another question...
I want to use my Arrow-Buttons that i use for moving the mill as a shortcut.
I want to press x+ and x- same time to switch to gmoccapy.jog-inc-0-PIN.
I dont have enough buttons to add that separatly.
Can someone give me a hint how i can do that?
i have added the x+ and x- with the following code:
net jogx-plus gmoccapy.jog-x-plus <= lcec.0.2.din-6
net jogx-minus gmoccapy.jog-x-minus <= lcec.0.2.din-1
I tried to use and2 but the problem is that the pins are already connected and i cant figure out how i could reuse them later.
Regards, Jan
Last edit: 26 Sep 2016 16:58 by DaPeace. Reason: Solved by myself, Wrong direction Signal -> Pin used...
Please Log in or Create an account to join the conversation.
27 Sep 2016 12:30 #80988
by andypugh
Replied by andypugh on topic (Solved) Use already connected Buttons twice
Just re-use the signals in more "net" commands.
net jogx-plus gmoccapy.jog-x-plus <= lcec.0.2.din-6
net jogx-minus gmoccapy.jog-x-minus <= lcec.0.2.din-1
net jogx-plus => parport.0.pin-57-out (for example)
And note that the => are only for human readability, and invsible to the computer.
net jogx-plus gmoccapy.jog-x-plus <= lcec.0.2.din-6
net jogx-minus gmoccapy.jog-x-minus <= lcec.0.2.din-1
net jogx-plus => parport.0.pin-57-out (for example)
And note that the => are only for human readability, and invsible to the computer.
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds