Required parameter missing

Moderators: TomKerekes, dynomotion

Post Reply
User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Required parameter missing

Post by cnc_freak » Thu Jan 12, 2023 7:36 am

Hello.
Any idea what this error is?
It comes when i send any gcode command from Kmotioncnc.
Version 435g.
The Kmotion console does not show anything, when this error comes.
Attachments
Screenshot_20230112_093031.png
Screenshot_20230112_093031.png (7.88 KiB) Viewed 955 times

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Required parameter missing

Post by TomKerekes » Thu Jan 12, 2023 6:33 pm

Hi,

The GCode Interpreter saves/restores GCode Variables/Parameters into a file specified in Tool Setup | Tool/Setup Files | Vars file. See here. If unspecified the file emc.var is used.

This file lists which variables are to be saved/restored along with their value. Certain variables must be specified to be saved/restored (mainly the parameters used for GCode Offsets). Others are optional. If the mandatory variables are not specified this error is displayed.

Is your Var file missing? Have you changed it? Is it corrupted?

Here is a list of the mandatory parameters:

Code: Select all

/*

This is an array of the index numbers of system parameters that must
be included in a file used with the rs274ngc_restore_parameters
function. The array is used by that function and by the
rs274ngc_save_parameters function.

*/

static const int _required_parameters[] = {
 5161, 5162, 5163,   /* G28 home */
 5164, 5165, 5166,
 5181, 5182, 5183,   /* G30 home */
 5184, 5185, 5186,
 5211, 5212, 5213,   /* G92 offsets */
 5214, 5215, 5216,
 5220,               /* selected coordinate */
 5221, 5222, 5223,   /* coordinate system 1 */
 5224, 5225, 5226,
 5241, 5242, 5243,   /* coordinate system 2 */
 5244, 5245, 5246,
 5261, 5262, 5263,   /* coordinate system 3 */
 5264, 5265, 5266,
 5281, 5282, 5283,   /* coordinate system 4 */
 5284, 5285, 5286,
 5301, 5302, 5303,   /* coordinate system 5 */
 5304, 5305, 5306,
 5321, 5322, 5323,   /* coordinate system 6 */
 5324, 5325, 5326,
 5341, 5342, 5343,   /* coordinate system 7 */
 5344, 5345, 5346,
 5361, 5362, 5363,   /* coordinate system 8 */
 5364, 5365, 5366,
 5381, 5382, 5383,   /* coordinate system 9 */
 5384, 5385, 5386,
 RS274NGC_MAX_PARAMETERS
};
Regards,

Tom Kerekes
Dynomotion, Inc.

User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Re: Required parameter missing

Post by cnc_freak » Fri Jan 13, 2023 6:39 am

Thank you for the quick reply. The file somehow was there, but with no data.
In the error window, it would be a good idea, to say something like "Recuired parameter missing, in file vars"
Regards.

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: Required parameter missing

Post by TomKerekes » Fri Jan 13, 2023 4:05 pm

Done
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply