Help with watch dog

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times

Help with watch dog

Post by RLOPES780 »

Good Morning;

I need to use the watch dog in the attached program.
To make its use correct, do I just need to enable in project options and enable self-cleaning watch dog?
Or do I need to add something else in the code?

Grateful.

Ricardo.
Attachments
SR CARLOS.fcfx
(7.17 KiB) Downloaded 267 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Help with watch dog

Post by Benj »

Hello Ricardo,

To enable the watchdog timer you can normally do this in the Configuration tab of the project options.

The Auto Clear Watchdog timer tickbox in the project options will automatically clear the watchdog for you when calling component macros and when calling large delays (ms / s). It's up to you if you want this on or not. You may find things like delays are effected with this switched on.

You may find you need to add extra watchdog clear instructions into your program. You can do this by adding the following code inside a C icon.

Code: Select all

MX_CLEAR_WATCHDOG;

Post Reply