Problem mit externen Tastern

More
2 years 3 days ago #313362 by WKS-3D
Guten Morgen Gemeinde,
ich habe ein Problem mit meinen externen Tastern um die Pinole raus und wieder einzufahren. Das Ganze läuft pneumatisch über ein Relais und Magnetventil.
Wenn ich den einen Taster drücke, soll die Pinole ausgefahren werden und auch so bleiben, wenn ich den anderen Taster drücke soll sie wieder eingefahren werden.
Mit nur einem Taster und "toggle" habe ich es hinbekommen, aber es ist nicht das, was ich haben will, es soll mit 2 Tastern laufen.
Die Taster sind NICHT rastend, dann wäre es kein Problem, es sind einfach normale Taster welche nur in gedrückter Stellung schließen.

 

Attachment not found



Danke schonmal für eure Hilfe.


Gruß
Olli

Please Log in to join the conversation.

More
2 years 2 days ago #313363 by Aciera
Replied by Aciera on topic Problem mit externen Tastern
Vielleicht 'flipflop' .set/.reset:

linuxcnc.org/docs/html/man/man9/flipflop.9.html

Please Log in to join the conversation.

More
2 years 2 days ago #313372 by spicer
Replied by spicer on topic Problem mit externen Tastern
Gute Idee.
Jetzt interessiert mich da, ob der CLOCK optional ist (SR-Flipflop) oder der immer gebraucht wird?

Please Log in to join the conversation.

More
2 years 2 days ago #313373 by Aciera
Replied by Aciera on topic Problem mit externen Tastern
set und reset funktionieren unabhängig von data und clk (ie wie ein RS typ).

Please Log in to join the conversation.

More
2 years 2 days ago #313392 by WKS-3D
Replied by WKS-3D on topic Problem mit externen Tastern
Danke für den Tipp, flipflop hats gebracht 
Hier die Lösung für meinen Einsatzzweck mit 2 Tastern und einem Relais zum Schalten von einem Pneumatik-Magnetventil:
Code:
# --- Pinole Input Signale --- net taster-pinole-minus  <=  hm2_7i92.0.7i76.0.0.input-25 net taster-pinole-plus  <=  hm2_7i92.0.7i76.0.0.input-24 # Set flipflops net taster-pinole-minus => flipflop.0.set  net taster-pinole-plus => flipflop.1.set net buf_taster-pinole-minus <= flipflop.0.out => hm2_7i92.0.7i76.0.0.output-01 net buf_taster-pinole-plus <= flipflop.1.out => flipflop.0.reset => flipflop.1.reset

Vielleicht kann es ja jemand brauchen.
CLOCK wird, wie man sieht, nicht gebraucht.


Viele Grüße
Olli

Please Log in to join the conversation.

More
2 years 2 days ago #313393 by WKS-3D
Replied by WKS-3D on topic Problem mit externen Tastern
Hatte noch was vergessen, das gehört auch noch mit dazu 
Code:
loadrt flipflop count=2 addf flipflop.0 servo-thread addf flipflop.1 servo-thread

Please Log in to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum