DEV Community

yohan
yohan

Posted on Originally published at cnblogs.com

CODESYS Features — Download and Startup

Building CODESYS applications means download and start are unavoidable. This post digs one layer inward and walks the chain from compile to run.

You can also download and update from the command line without opening the CODESYS IDE.

The run chain

Compile

After the IDE compiles, you get two files:

File What it is
.app The application image: compiled target code
.crc A small checksum file

Compile → Login → Download → Run

Login vs Download

Login vs Download: what happens inside the controller after you click

Login opens the online connection, compares the application signature, and builds an online-change plan.

Download transfers the .app via the gateway protocol on port 1217, writes the image into the controller, and applies the restart policy.

Controller startup

Controller startup path

Boot → Runtime services → Select boot application → Start (enter RUN).

IDE download vs manual update

IDE download vs manual update

IDE download is for the development loop. Manual update (copy .app/.crc, set boot entry, restart) is for production field updates.

Top comments (0)