Storing the User Program to an SD Card

Online

  1. Build the complete project using the menu items Project => Clean all and Project => Rebuild all.

  2. Load the project into the AC500.

  3. Create the boot project on the controller using Online => Create boot project.

    Using PS501 V1.x:

    The boot project files (DEFAULT.PRG and DEFAUL.CHK) are loaded into the AC500 and flashed.

    Using PS501 V2.x:

    The boot project files (<projectname>.PRG.ZIP and <projectname>.WEB.ZIP) are loaded into the AC500 and flashed

    The RUN LED on the AC500 flashes while data flashing is in progress.

  4. Insert the SD Card. If the SD Card does not already contain the required file structure, the structure will be created (see also: Initializing an SD card using the AC500 The SD Memory Card in the AC500).

    Caution

    :strong:Overwriting of files on the SD Card

    If a user program is already stored on the SD Card, i.e., the directory UserData\PM5x1\UserPrg already contains the files DEFAULT.PRG and DEFAULT.CHK, these files will be overwritten without any warning.

    If you want to store several user programs to the SD Card, you have to copy them into other directories using the PC.

  5. Open the PLC-Browser from the Resources tab and enter the command “sdappl”<ENTER>

    Using PS501 V1.x:

    The files DEFAULT.PRG and DEFAULT.CHK are loaded from the Flash memory and stored to the directory UserData\PM5x1\UserPrg on the SD Memory Card.

    Using PS501 V2.x:

    The files <projectname>.PRG.ZIP and <projectname>.WEB:ZIP are loaded from the Flash memory and stored as BOOT.ZIP / WEBVISU.ZIP to the directory UserData\PM5x1\UserPrg on the SD Memory Card.

    In the file SDCARD.INI, the parameter FunctionOfCard is set to 1 (bit 0 = 1) and the parameter UserProgram is set to 1, i.e. the function “Load the user program” is activated.

    The RUN LED on the AC500 flashes while writing to the SD Memory Card is in progress.

    If you insert the SD Memory Card containing the user program into the AC500, the SD Memory Card is loaded into the Flash memory of the AC500 (see next section).

Offline

Furthermore it is possible to create a project offline. Before creating it offline (menu: Online => Create bootproject) the project has to be compiled. After creating the boot project the files were available at according storage folder of the project.

Using PS501 V1.x:

  • PM5xy: *.PRG and *.CHK has to rename to: DEFAULT.PRG and DEFAULT.CHK and copied to the according PM5xy CPU folder: USERDATA\PM5xx\USERPRG folder.
  • CM574-RS: Copy the created CM574 project-files (xxx.PRG and xxx.CHK) into the according PM5xy CPU folder: USERDATA\PM5xx\USERPRG and rename it to CM574_X1.PRG and CM574_X2.CHK (X=Slot number).

Using PS501V2.x:

  • PM5xy: <projectname>.PRG.ZIP / <projectname>.WEB.ZIP has to be renamed to BOOT.ZIP / WEBVISU.ZIP and copied to the according PM5xy CPU folder: USERDATA\PM5xx\USERPRG folder.
  • CM574-RS: Copy the created CM574 ZIP-file into the according PM5xy CPU folder: USERDATA\PM5xx\USERPRG and rename it to CM574_X1.bpz (X = Slot number).