Splitting Up My INIT File

Moderators: TomKerekes, dynomotion

Post Reply
CNC_Machines
Posts: 60
Joined: Fri Apr 27, 2018 10:43 pm

Splitting Up My INIT File

Post by CNC_Machines » Fri Aug 24, 2018 9:57 pm

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

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

Re: Splitting Up My INIT File

Post by TomKerekes » Fri Aug 24, 2018 11:05 pm

Yes. That should work.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply