Search found 48 matches

by ncc1502
Thu Dec 14, 2023 2:21 am
Forum: Flowcode V6
Topic: PWM problem in Flowcode V6
Replies: 1
Views: 5254

Re: PWM problem in Flowcode V6

Fixed with help from Medelec.
by ncc1502
Thu Dec 14, 2023 12:28 am
Forum: Flowcode V6
Topic: PWM Not working
Replies: 2
Views: 26659

Re: PWM Not working

Hi Martin, Thank you for your fast answer, that did the trick for the frequency not changing. Leaves the issue with duty cycle, but that is not important to me. Is there anywhere on the forum a list of things that do not work / need a work around? It could have saved me a few hours work if I had kno...
by ncc1502
Wed Dec 13, 2023 4:29 am
Forum: Flowcode V6
Topic: PWM problem in Flowcode V6
Replies: 1
Views: 5254

PWM problem in Flowcode V6

Hi, For a test I need to simulate a load cell. The cell outputs a block signal of about 16470 Hz with no load and about 17850Hz at full load. I have the latest version of Flowcode V6, a board with a PIC 18F4520 at 8 mHz. HS-PLL --> 32mHz. I was thinking about using PWM and changing the base frequenc...
by ncc1502
Tue Dec 22, 2020 10:15 pm
Forum: Flowcode V6
Topic: Oscillator/Timer question
Replies: 2
Views: 3783

Re: Oscillator/Timer question

Dank je
by ncc1502
Wed Dec 16, 2020 6:40 pm
Forum: Flowcode V6
Topic: Oscillator/Timer question
Replies: 2
Views: 3783

Oscillator/Timer question

I have a board with a 8 MHz crystal, In my configuration settings I have set HS PLL enabled (freq=4xFosc1), so internal clock is 32 MHZ. In general options should I set the clock at 32MHz, or should I set it at 8MHz (and does it calculatie 8x4=32 itself)? If I want to use a timer2 interrupt, I assum...
by ncc1502
Sun May 24, 2020 11:24 pm
Forum: Flowcode V6
Topic: Inverting a Bool
Replies: 3
Views: 4070

Inverting a Bool

Hi, In a program I have to invert a Bool variable. I did not want to use If A = 0 then 1 else 0, but just toggle the value: In other C dialects it would be: A = !A ( where ! means NOT) Since there does not seem to be a "!" in Flowcode, I used NOT So I thought A = NOT A would do the trick, but then t...
by ncc1502
Thu Feb 07, 2019 11:10 pm
Forum: Flowcode V6
Topic: Timer0 interrupt
Replies: 11
Views: 11219

Re: Timer0 interrupt

Is it possible to synchonise timer2 with an event like interupt on port B pin 0 change? or can I start the interupt timer at that moment? I have to do some actions which have to happen within certain time window and waiting for the next timer interupt and start then could be too late. Does timer2 ke...
by ncc1502
Thu Feb 07, 2019 10:53 pm
Forum: Flowcode V6
Topic: Timer0 interrupt
Replies: 11
Views: 11219

Re: Timer0 interrupt

Medelec,
thank you for your tip about the timer 2 program, it is verry usefull.
by ncc1502
Mon Feb 04, 2019 12:55 am
Forum: Flowcode V6
Topic: Timer0 interrupt
Replies: 11
Views: 11219

Timer0 interrupt

I have searched the forum but could not find an answer. I wat to use timer0 interupt. On the internet there are some programs where you can calculate the values (prescaler and offset) to get the desired frequency/time In properties of timer0 interrupt you can set the prescaler rate, how do you progr...
by ncc1502
Thu Dec 06, 2018 1:34 am
Forum: Programming Tips & Tricks
Topic: Creating Custom LCD Characters Flowcode V4 & V5
Replies: 8
Views: 24047

Re: Creating Custom LCD Characters Flowcode V4 & V5

I do not understand how you convert the numbers you want to display to the ram write box (in your picture).

What should I use if I want to display 14,31,27,21,23,21,27,14, so FCD_LCDDisplay0_RAM_Write(0,14,31,27,21,23,21,27,14);
by ncc1502
Thu Dec 06, 2018 1:02 am
Forum: Programming Tips & Tricks
Topic: Creating Custom LCD Characters Flowcode V4 & V5
Replies: 8
Views: 24047

Re: Creating Custom LCD Characters Flowcode V4 & V5

Hi Martin, Do you know how this should be done in Flowcode 6? If I compile your program I get errors: Volume Up Down_v6.c(686:2): error: unknown identifier 'FCD_LCDDisplay0_RAM_Write' Volume Up Down_v6.c(686:2): error: failed to generate expression Volume Up Down_v6.c(687:2): error: unknown identifi...
by ncc1502
Sat Nov 17, 2018 6:16 pm
Forum: Flowcode V6
Topic: Limitation on length of filename?
Replies: 2
Views: 3571

Re: Limitation on length of filename?

Yes, the comma was the problem.
by ncc1502
Fri Nov 16, 2018 1:12 am
Forum: Flowcode V6
Topic: Limitation on length of filename?
Replies: 2
Views: 3571

Limitation on length of filename?

Is there a limitation on the length of the filename of a Flowcode program? I saved my program, renamed it and since it does not compile (with this cryptic massage), while the old (identical) program with a shorter name compiles without error. PicPLC Liftbesturing V19C FC6 MONO, EMOD en Kollmorgen Mo...
by ncc1502
Thu Oct 11, 2018 12:23 am
Forum: Flowcode V6
Topic: Bool True/False versus 1/0
Replies: 6
Views: 4997

Re: Bool True/False versus 1/0

@Martin (Medelex35) I do not use mechanical switches, I use a rotary encoder that is also used at VVVF drives. F.I. a Wachendorff WDG58 The encoder has 2 outputs A and B and a resolution of 1024 pulses per revelation. There is no bounce on the outputs. With 1024 pulses per revelation, a delay would ...
by ncc1502
Mon Oct 08, 2018 11:35 pm
Forum: Flowcode V6
Topic: Bool True/False versus 1/0
Replies: 6
Views: 4997

Re: Bool True/False versus 1/0

I did not combine results. The fault does not always occur. I have had this problem 2 or 3 times. Because I knew it worked before I assumed I made an error somewhere. I started to disable pictograms in my program until I only kept the part of the program that did not work, everything looked fine but...
by ncc1502
Mon Oct 08, 2018 2:07 am
Forum: Flowcode V6
Topic: Bool True/False versus 1/0
Replies: 6
Views: 4997

Bool True/False versus 1/0

Does it make any difference of I assign a Bool variable wit True or 1 / False of 0? I have a program in which I assign Boole versiables with 1 and 0 In decisions I also check if Bool variable = 1 For some Odd reason the program sometimes seems to compile wrong and makes wrong decisions at these bool...
by ncc1502
Sun Oct 07, 2018 9:13 pm
Forum: Flowcode V6
Topic: Error opening Flowcode file
Replies: 8
Views: 6568

Re: Error opening Flowcode file

Hi Martin, Thanks for the effort. @Benj It is/was stored on a nas. I saved the file before building the program. When the programming was finisched somehow the power of the NAS was cut of. Due to the fact that the file was saved just before, I did not save the program local an stopped working at the...
by ncc1502
Thu Oct 04, 2018 10:37 pm
Forum: Flowcode V6
Topic: Error opening Flowcode file
Replies: 8
Views: 6568

Re: Error opening Flowcode file

Hi Martin,

I sent jou the file by PM.

Thanks for having a look at it.
by ncc1502
Thu Oct 04, 2018 10:20 pm
Forum: Flowcode V6
Topic: Error opening Flowcode file
Replies: 8
Views: 6568

Re: Error opening Flowcode file

First make sure you have the latest V6 then try and open the file again. You can try looking for.001 file from the project directory and rename to .fcfx That file is a backup copy. If you want to keep the file that could be corrupted the rename it before completing the above step, so you don't have...
by ncc1502
Thu Oct 04, 2018 12:19 am
Forum: Flowcode V6
Topic: Error opening Flowcode file
Replies: 8
Views: 6568

Error opening Flowcode file

When I try to open my last Flowcode program, I get the error:

Failed to open document.
Can not load <schema> without a block header

OK



Can this be repaired?
by ncc1502
Wed Jul 11, 2018 10:48 pm
Forum: Flowcode V6
Topic: SourceBoost c Compiler Error
Replies: 8
Views: 6290

Re: SourceBoost c Compiler Error

Hi DavidA,

That seems to do the trick.

No limitations in boostC.

Now it also works without administrator rights.

Thank you verry much,


Marcel
by ncc1502
Tue Jul 10, 2018 11:48 pm
Forum: Flowcode V6
Topic: SourceBoost c Compiler Error
Replies: 8
Views: 6290

Re: SourceBoost c Compiler Error

Hi Benj,

Any chance on solving my problem?

Marcel
by ncc1502
Mon Jul 02, 2018 11:35 pm
Forum: Flowcode V6
Topic: SourceBoost c Compiler Error
Replies: 8
Views: 6290

Re: SourceBoost c Compiler Error

I have done what you asked me twice (started flowcode normal and as supervisor). At the end it says the key is accepted bus unfortunately it keeps saying: Launching BoostC... .... BoostC Optimizing C Compiler Version 7.20 (for PIC18 architecture) http://www.sourceboost.com Copyright(C) 2004-2013 Pav...
by ncc1502
Sun Jul 01, 2018 2:51 am
Forum: Flowcode V6
Topic: SourceBoost c Compiler Error
Replies: 8
Views: 6290

Re: SourceBoost c Compiler Error

Hello, I have Flowcode 6 professional and have the same problem. I got a new PC and installed Flowcode (downloaded it for Matrix website, installed it and activated it on the matrix website). Now I get message: Launching BoostC... .. BoostC Optimizing C Compiler Version 7.20 (for PIC18 architecture)...
by ncc1502
Fri Sep 14, 2012 11:13 pm
Forum: Flowcode V5
Topic: code protection and other protection method.
Replies: 7
Views: 5999

Re: code protection and other protection method.

Removing pins is not a good method. I have had eeproms with pins broken of at the casing, simply using a soldering iron and some solder was enough to create a temporary pin to read the chip in a programmer. Blowing a programming pin with high voltage would be an option but i would not take the risk ...