Click logo icon to hide/show contact information.
Click Here to Hide/Show contact information.
Contact: Keith Beidelman
Beidelman Software
10530 McPherson
Indianapolis, IN 46280
Office: (317) 608-5051
Cell: (317) 727-3361
E-Mail: keith@BeidelmanSoftware.com
  • Industrial Automation
  • Web Based MMI
  • C/C++/C# Programming
  • VB Programming
  • Java Programming
  • Mint Programming
  • Assembly Programming
  • Database Design
  • Internet Connectivity
  • Embedded Systems
  • Micro-Controller Programming
  • Linux
  • Microsoft Windows
  • Data Acquisition
  • Navigation: Home Page - Resume
    Information: Overview - Parameters - References
    Examples: #1 - #2
    Software: Download

    Mint Loader for Mint-MT
    "This Utility Does Program Downloads to Mint-MT Motion Controllers"

    Current version is 0.90-rc1
    Download MintLoad Version 0.90-rc1


     

    Overview

        MintLoader uses the Active-X control MintControls5224.OCX, which is included in build 5224 and later of the Mint-MT WorkBench V5. This can be obtained from www.supportme.net which is Baldor's end-user support web page. I used build 5225 for testing, which is available Here.

        I have used the BX, BX-II, MintDrive, MintDrive-II, FlexDrive, and FlexDrive+ on jobs for customers. But, I don't have access to them at my office. So, at present, I have only tested MintLoad on the NextMove-PCI. Therefore, I could use some feedback as to if there are any problems. Please send comments Here.

        Please keep Beidelman Software in mind if you have the need for custom software development. We write Mint software, Windows software, Linux software, and PLC software. Please visit my Online Resume for more details.

    Mint Load Manual Page

        Click on the MintLoad icon, or run it from the start menu. Next, you pick the controller tab for the desired mint platform, provide the desired communication parameters, and the desired firmware and program paths. Instead of typing in the path as a character string, you can click on the browse button, and select the file with a browser. After all the information is entered, you can click on the Download button. At this point, any program currently running on the controller is stopped, the new program is downloaded, and the new program is started. If you want to save all the information you entered into this form for later used, you can click Save, and file it away for later use. The standard extension for this parameter file is MLC, for Mint Load Configuration. At some later time, you can click the Open button, and recall the file, then repeat the download. If you checked the Automatic Download check box when you saved the configuration, then there is no need to click the Download button, as the open process will do this automatically.

    Example 1 : Running MintLoad Directly at Startup

        Non-interactive use relies on passing strings to the program on the command line. In the simplest form, you can pass just a single argument, which is the pathname of the MLC file previously saved. If automatic download is checked, then as soon as the non-interactive icon is clicked on, the program is downloaded to the Mint controller and run. If automatic exit is also checked, then the MintLoad program will be automatically closed, after this auto download.

        In windows, there are several ways to pass the file name argument on the command line. You can create a shortcut with the arguments immediatly following the executable file name. for example:

    Step Instructions
    1 right click on the desktop
    2 select New on the menu
    3 select Shortcut on the sub-menu
    4 click the browse button, and find the mintload.exe file under Program Files then under mintload.
    5 add the path name of the MLC file to the right of the mintload.exe If the pathname contains spaces, it must be enclosed in double quotes. The same rule applies to the first part, but the browse function puts in the quotes for you, if they are needed.
    6 click next
    7 enter the name for the new shortcut. It will be placed on your desktop.
    8 If you don't want the shortcut on the desktop, you can now drag it over to a folder.
    9 If you want the download to happen on login, you can move the shortcut (or a copy of the shortcut) to the Startup group in the start menu.

    Example 2 : Associating the MLC Extension with Mint Load

        You can set up Windows to automatically run the process when you click on the MLC file.

    Step Instructions
    1 Open an explorer by right clinking in start, then clicking explore.
    2 click on the MLC file.
    3 Click on other
    4 browse to mintload.exe
    5 click Open to return to the original dialog
    6 make sure "Always use this program to open these files" is checked

    From this point on, whenever you click on a MLC file, mintload will always be run, passing the MLC file to it.

        You can place a shortuct to the MLC file in the Startup group to do the download at login. You can also give the MLC file on a start->run or a command prompt.

    MLC Parameters

        The MLC configuration file is created by the save button, taking all the parameters which were in effect at the time of the save. MintLoad is capible of maintaining this file on it's own. However, it should be mentioned that this file is an ascii file, which may also be edited with a text editor (such as notepad). Each line in the file is of the form parameter=value. The same parameter names may also be specified on the command line. In the configuration file, you should not quote parameter values which contain spaces (the end of line is the end of the parameter). When the parameter is given on the command line, parameter=values phrases which contain spaces must be enclosed in quotes (as "parameter=value with spaces"). The comand line parser distinguishes MLC file names from parameter=value settings by the equals sign in the parameter=value pair. The command line is processed left to right. Therefore, a parameter may be overidden from the MLC file by specifying the override parameter=value pair to the right of the file.

    Parameter Type Description
    Progressflag Display progress bars when communicating with the controler.
    Sourceflag Download source code to the controller.
    AutoExitFlag Automaticly shut down when run from the command line.
    AutoLoadFlag Automaticly download the mint program and start it running, without requiring the user to hit the download button.
    ProgramFileString Provides a full path name to the mint program (MNT or MEX file)
    FirmwareFileString Provides a full path name to the binary firmware for the controler. If this value is blank, no firmware is downloaded.
    ControllerString This value sets the controler platform. It's value is the same as the names on top of the tabs in the program. It must be one of the following: FlexDrive-II, FlexPlus-II, NextMove-PCI, NextMove-BX, NextMove-BXII, or MintDrive-II.
    PciCardInteger Supplies the PCI card number to be used.
    PciNodeInteger Assigns PCI node number to be used.
    Mint2BaudInteger Provides baud rate for a Mint Drive II.
    Mint2ComInteger Determines the communications port number for a Mint Drive II.
    Mint2NodeInteger Supplies the node number for a Mint Drive II.
    Bx2BaudInteger Provides the NextMove BX II baud rate.
    Bx2ComInteger Assignes the nextMove BX II communications port number.
    Bx2NodeInteger Supplies the nextMove BX II node number.
    BxBaudInteger Provides the NextMove BX baud rate.
    BxComInteger Assignes the NextMove BX communications port number.
    BxNodeInteger Supplies the NextMove BX node number.
    FlexP2BaudInteger Provides the Flex+ Drive II baud rate.
    FlexP2ComInteger Assignes the Flex+ Drive II communications port number.
    FlexP2NodeInteger Supplies the Flex+ Drive II node number.
    Flex2BaudInteger Provides the Flex Drive II rate.
    Flex2ComInteger Assignes the Flex Drive II communications port number.
    Flex2NodeInteger Supplies the Flex Drive II node number.

        A flag's value is either 0 or 1. Set it to 1, to make it true, and cause the action mentioned in the table to be taken. Set it to 0, to make it false. In this case, the action mentioned in the table will not be taken.

        The AutoExit flag is ignored when no command line arguments are given. This is so that it is still possible to run the program interactively to edit the configuraton file. It is also ignored if the download fails for some reason.

        If the program to be downloaed is a MNT source file, it is automaticly compiled into a binary MEX file. The MEX file is then what is actualy downloaded. When a MEX file is specified, no compile is done. If the program file is blank, no program will be downloaded.

        If the firmware file name is blank, then no firmware is downloded. This should be the typical case on controllers which store the firmware in flash or battery backed static RAM. The PCI controller stores the program in RAM, so it must always be downloaded after power up.

        Communications ports are specified by their port number. 1 is for com1, 2 is for com2, and so on.

    References

    Download MintLoad 0.90-rc1 Download the MintLoad utility from Beidelman Software
    www.BaldorMotion.com/supportme Baldor's Technical Support Web Site
    www.baldor.com Baldor's Main Web Site
    Next Move Workbench Next Move Workbench downloads from Baldor's Site
    Mint MT Documentation Mint-MT documentation from Baldor's Site
    Device Drive for PCI Driver to Communicate with NextMove-PCI

    Copyright (C) Beidelman Software, 2005.
    Beidelman Software - Previous Page