Selecting Cam Profiles from the Control Panel
I'd like to be able to select from the loaded cam profiles on the control panel, and remotely. Is there a way to populate a Combo-Droplist with the names of all loaded cam profiles? Or to get a list from a global variable?
Comments & Answers
toddevans01 said ...
It isn't clear what Kollmorgen products you are working with.
Please provide model numbers of all HMIs, Controllers, Drives, and Motors that you are working with.
Joe Parks said ...
If you add a cam profile before compiling and downloading the project to the PDMM controller, either through the creation tool in the KAS IDE or by importing one from a csv file, they are automatically added as a global variable called Profiles that is a built in structure. If you build the cam profile while the project is running through the MLProfileBuild function block, then it will not.
I do not believe this built in structure will help you though, since you would not know the string based name of the subsection in your C# program. Just an idea, but you could create an array of Strings in your project that keep track of all the names of the cam profiles in your program (with maybe a separate integer that keeps track of the number of cams currently created) then add code to your C# program to read all the names of the currently created cam profiles onto a drop down menu. You would have to update the array of strings when a new cam profile is added, but hopefully the C# program would automatically update then.