Writing the Project Sources from PC to SD Card

Writing the project sources to the SD Card is done as follows:

  1. Select the project sources to be written by selecting: “Project” => “Options” => “Source download”

    f40975c4e38c28ca0a33139000473a6a_fa01c433e38c26690a33139000eba54e

    The “Timing” options specify the time, when the project sources are to be written. The default setting is “On demand”.

    The “Extent” options define, which files are to be written. Using the option “Source code only” writes all files, that are part of the project. The option “All files” also includes the libraries and configuration files. Especially with the option “All files” the compressed file SOURCE.DAT can have a size of several megabytes (in particular if visualizations with bitmaps are included!).

  2. Insert the SD Card into the CPU. In case a new SD Card is used, the directory structure required for the AC500 is created. This is indicated by the flashing LED RUN.

  3. Login to the CPU (via serial interface, Ethernet or ARCNET, depending on the interfaces available for your PLC).

  4. If possible, stop the PLC with the command “Online” => “Stop”. (In Stop mode of the PLC, loading the project sources is much faster than in Run mode.)

  5. Select “Online” => “Sourcecode download”.

    f40975c4e38c28ca0a33139000473a6a_f94c1ad1e38c25220a33139000eba54e

    The compressed file SOURCE.DAT is created, downloaded to the CPU and written to the SD Card. The file is located in the following directory on the SD Card: [device]:\USERDATA\USERPROJ\SOURCE.DAT

    ../_images/35e5c7ede38c26c70a33139000eba54e
  6. Restart the CPU with “Online” => “Start”.

  7. Logout from the CPU by selecting “Online” => “Logout”.

Example of the project sources size:

Example of the project sources size:
Project file Upload_Test_PM581.pro
Size of built user program 18638 Bytes 18 kB
Size of project sources (all files) 321503 Bytes 314 kB
Size of project sources (sources only) 90297 Bytes 89 kB