- Posts: 30
- Thank you received: 0
(Solved) Use already connected Buttons twice
10 years 1 month ago #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:
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
Please Log in to join the conversation.
10 years 1 month ago #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 to join the conversation.
Time to create page: 0.091 seconds
