send var to pyvcp

More
7 years 1 month ago #144559 by sergiop
send var to pyvcp was created by sergiop
One question, I want to send the value of a variable # 20 to a pyvcp pin to show a number, how do I do ??

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #144574 by pl7i92
Replied by pl7i92 on topic send var to pyvcp
depending on system you are you can do this via a Mcode
or using a INI Var
You can output the value of a parameter from G-code to a motion.analog-out HAL pin, and show that in the PyVCP.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #144584 by sergiop
Replied by sergiop on topic send var to pyvcp
I am making an engraving system and the idea is to see the serial number before executing the program (the serial number is stored in a variable)

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #144600 by pl7i92
Replied by pl7i92 on topic send var to pyvcp
as the serial number is to be engraved
you shoudt see it on the screen as gcode

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #144605 by sergiop
Replied by sergiop on topic send var to pyvcp
yes, but the surface to be engraved is irregular and it is difficult to see it from gcode

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145354 by andypugh
Replied by andypugh on topic send var to pyvcp
You would need to send your G-code variable #20 out to HAL using M68
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m68
Then connect motion.analog-out-00 to the PyVCP input pin.

(G-code can (unreliably) read HAL values, but can't directly write to them.)

Please Log in or Create an account to join the conversation.

Time to create page: 0.337 seconds
Powered by Kunena Forum