Page 1 of 1

Splitting Up My INIT File

Posted: Fri Aug 24, 2018 9:57 pm
by CNC_Machines
Greetings,

I have a very large INIT file and I am wondering if it is possible to split it into several files. For example, I would like to separate the configurations for my 6 axis into a stand alone file. I tried to make a header file, and then use a #include in my init program. Does that sound like it should work? Can the axis configurations be done this way?

This is a small piece of what I put in the header file..


ch0->InputMode=ENCODER_MODE;
ch0->OutputMode=CL_STEP_DIR_MODE;
ch0->Vel=120000;
ch0->Accel=1.29e+006;
ch0->Jerk=2.88e+007;
ch0->P=0;
ch0->I=0.02;
ch0->D=0;
ch0->FFAccel=0;
ch0->FFVel=0;

Thanks,

Scott

Re: Splitting Up My INIT File

Posted: Fri Aug 24, 2018 11:05 pm
by TomKerekes
Yes. That should work.