Page 1 of 1

graycode plc confusion

Posted: Sun Nov 22, 2020 7:57 pm
by Obsidian
Looking to clear up confusion about setting up the graycode plc. I'm following the instructions for the ACORN_Gray_Code_2_Motor_Output_Turret_r1.src. When you move the files given for this into your cnct folder and follow the install instructions, does MPU use this plc instead of the original acorn_lathe_plc?

Re: graycode plc confusion

Posted: Sun Nov 22, 2020 8:56 pm
by cnckeith
yes that is correct. you are using a custom PLC when you use any of the preprogrammed ATC programs and you must wire inputs/outputs just like the schematics shows (or learn how to edit the PLC program yourself:-))

choose custom PLC program in use in the wizard so the wizard doesn't overwrite your custom plc program when you use the wizard to update/change other settings.

Re: graycode plc confusion

Posted: Sun Nov 22, 2020 9:07 pm
by Obsidian
okay! also does the wizard write the Axis Drive Type data into the plc or is there another file that stores that information? I have a custom plc already written for everything but the turret so im going to migrate that stuff over to the graycode plc.

Re: graycode plc confusion

Posted: Tue Nov 24, 2020 2:01 pm
by cnckeith
when you pick a drive type that "preset" corresponds to the provided drive schematic as a convenience for the user. some drives require connections to acorn inputs and outputs (see the schematics for details) in those cases by definition the drive type preset will assign any inputs and outputs in the wizard to match the schematic, (you can of course change that to you liking and easily create a custom drive type as well). if you are writing your own custom plc you can simply start with one that the wizard created using a the drive type that works with your drives and then modify that wizard generated plc source file code to your special application. just be sure to tell the wizard that you are using a custom PLC program so it doesn't overwrite your work.