Hi vadim_cnc,
Message Actions were added in V4.34j
See:
Dynomotion
Regards
Hi, Tom!
We are figured out with MPG and now we need to add buttons to face screen (for example radio buttons) but the version of Kmotion we use 4.34i does not have items like at Wiki PC KMotion CNC Screen Editor - Dynomotion.
This at Wiki:
This is our:
Maybe need to setup something?
Thanks and best regards!
Hi vadim_cnc,
Message Actions were added in V4.34j
See:
Dynomotion
Regards
Regards
TK http://dynomotion.com
Thanks a lot, Tom!
But it possible to add a radio buttons, like this?
If it possible, how to add them?
Best regards!
Hi vadim_cnc,
No you can only modify the look of the existing Radio Buttons.
The Radio buttons have special functionality, need to be associated as a group, configurable in Tool Setup and so forth.
What exactly are you trying to do? I suppose it would be theoretically possible to implement such functionality with regular buttons and bitmap labels that interact.
Regards
Regards
TK http://dynomotion.com
Hi, Tom!
Of course, functionality is possible to realize with regular toggle button. Radio buttons is more interesting (maybe only for me) to use with MPG, something like this:
Best regards!
One more question, can this board (KFLOP) accumulate an error while working?
After 3 hours of the cycle in which the axis moves, the range of movement has decreased. Maybe it is associated with the old age of our equipment (such as an electric drive).
Maybe You know something about it?
Best regards!
Hi vadim_cnc,
Here is an example of how you might create that type of functionality:
This uses 3 Virtual Bits to contain the X Y Z Selection
The X Button sets the 3 states as appropriate for X by using an Action to run a C Program like this:Y button runs this:Code:#include "KMotionDef.h" main() { SetBit(1024); ClearBit(1025); ClearBit(1026); }I've attached the programs and screen scriptCode:#include "KMotionDef.h" main() { ClearBit(1024); SetBit(1025); ClearBit(1026); }
Z button runs thisDoes that work for you?Code:#include "KMotionDef.h" main() { ClearBit(1024); ClearBit(1025); SetBit(1026); }
Regards
Regards
TK http://dynomotion.com
Hi, Tom!
I tried this and it is works great, thanks!
Hi vadim_cnc,
No, KFLOP should not accumulate any error. Have you resolved this? It might be you have a noise problem causing gain or loss of encoder counts. That would cause a position drift not a reduction of range of movement.One more question, can this board (KFLOP) accumulate an error while working?
After 3 hours of the cycle in which the axis moves, the range of movement has decreased. Maybe it is associated with the old age of our equipment (such as an electric drive).
Maybe You know something about it?
Regards
Regards
TK http://dynomotion.com
Hi, Tom!
Thanks for clarifying. Of course it may be a problem with a linear encoder (released in the 80s) and unshielded wires. But the most problem we think is hydraulic station, which cannot provide necessary power.
Best regards!
Hi vadim_cnc,
Normally if the encoder was working correctly and the hydraulic station didn't have enough power to move correctly you would receive an error. So that is why I was thinking it might be an encoder issue.
Regards
Regards
TK http://dynomotion.com
Hi, Tom!
There is another question: how to read variable, which recorded by G-code string?
For example to read Speed variable (S) we used persist.UserData[SPEEDVAR]
It is possible to get feed rate value (F) from G-code (for use it in script)? Also maybe it possible to add custom variable to G-code string, for example:Code:#include "KMotionDef.h" #include "MySpindleDefs.h" main() { float speed = *(float *)&persist.UserData[SPEEDVAR]; // value stored is actually a float Jog (4, -speed*166.6667); SetBit (146); }
M105 X50 F300 AA85 BB95 CC99
where AA, BB, CC - custom variables
Best regards!
Hi vadim_cnc,
The Feedrate value is not normally available to a KFLOP C Program. You can determine the axes velocities. You might look at the VelocityToPWM.c example.It is possible to get feed rate value (F) from G-code (for use it in script)?
Well no, but what are you trying to do? GCode has Variables. You can call M Codes with PQR parameters. See:Also maybe it possible to add custom variable to G-code string, for example:
M105 X50 F300 AA85 BB95 CC99
where AA, BB, CC - custom variables
MCodes with Parameters
Regards
Regards
TK http://dynomotion.com
Hi, Tom!
M code with parameters works well! Thanks!
P.S. We trying to make cyclical moving of gidraulic cylinder. But there is need some parameters, like start and end coordinates and speed.
P.P.S. Now it works!
Hi vadim_cnc,
Great! Where is the Video?
Regards
Regards
TK http://dynomotion.com