Supported platforms: CODESYS 2.3, CODESYS 3.5, CODESYS 3.5 SAFETY
To clear the application, use the following CANopen commands to CANopen interface for CODESYS runtime.
To remove PLCopen application:
1. Send a stop command to CODESYS runtime:
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
2Fh |
25h |
10h |
1h |
4h |
0h |
0h |
0h |
2. Wait until you get a response. If the control unit is booting continuously, it can take several attempts to get a response. If it is not possible to get this command through, there are some optional commands which can be used with some control unit platforms. See the following sections.
3. Send a reset original command to control unit command to CODESYS runtime.
This command also clears the retain and persistent retain variables |
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
2Fh |
25h |
10h |
1h |
13h |
2h |
0h |
0h |
4. Power boot the control unit.
This command does not clear the retain and persistent retain variables |
To clear the application and to keep persistent and retain persistent variables:
1. Send a stop command to CODESYS:
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
2Fh |
25h |
10h |
1h |
4h |
0h |
0h |
0h |
2. Wait until you get a response.
3. Write 0 checksum to checksum index.
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
23h |
50h |
1Fh |
4h |
0h |
0h |
0h |
0h |
4. Give a power boot for the control unit.
Use RAC (remote access and control).
To clear the application:
1. Send a following command to CODESYS node-ID:
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
23h |
50h |
1Fh |
3h |
0h |
0h |
0h |
0h |
Device remains in stopped state and the application is cleared from flash.
2. Power boot the control unit.
Use ApplicationLoader software, for more information see Clearing NVRAM / Files / Runtime (6107, 6112)
For 6505 Units, download runtime (or) from CODESYS IDE online, reset origin
To clear the application:
1. Follow Unlocking SW protection guide to enable clearing the application
2. Send a following command to CODESYS node-ID:
COB-ID |
DLC |
D0 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
600h + node-ID |
8 |
23h |
50h |
1Fh |
3h |
0h |
0h |
0h |
0h |
Device remains in stopped state and the application is cleared from flash.
3. Give a power boot for the control unit.
Removing application using BSL pin is supported in following firmware versions
|
BSL pin locations:
Control unit |
BSL pin number |
3606, 3610 |
X1.13 |
3720, 3724 |
X3.15 |
4602 |
X1.13 |
5050 |
X1.13 |
EC44 |
X1.25 |
3000/4000 series units3000/4000 series units
In case a control unit is not responding to CAN messages, use the BSL pin to reset the control unit to factory settings:
1. Disconnect the power from the control unit.
2. Connect the BSL pin to ground
3. Power up the unit
4. The LED indicator flashes red and green alternatively (5 Hz frequency) for ten seconds after which it will flash only green (5 Hz)
If the unit has no LED indicator, wait for 10 seconds
5. Reboot the control unit and disconnect the BSL pin from ground
6. The unit is now restored to factory settings
5000 series units5000 series units
In case a control unit is not responding to CAN messages, use the BSL pin to remove the PLCopen application.
1. Disconnect the power from the control unit.
2. Connect the BSL pin to ground
3. Power up the unit
4. The LED indicator flashes red and green in (5 Hz frequency) for about ten seconds after which it will flash only green (5 Hz).
The firmware waits for 10 -15 seconds before removing the PLCopen application. After removing the application, the default application is started.
5. Disconnect the BSL pin from ground, reboot the control unit
6. The default application is started
In case a control unit is not responding to CAN messages, use the BSL pin to remove the PLCopen application.
1. Disconnect the power from the control unit.
2. Connect the BSL pin to ground
3. Power up the unit
4. The LED indicator flashes red and green in (5 Hz frequency) for about ten seconds after which it will flash only green (5 Hz).
The firmware waits for 10 -15 seconds before removing the PLCopen application.
5. Disconnect the BSL pin from ground, reboot the control unit
6. Unit starts without application
Source file Topic000651.htm
Last updated 21-Feb-2025