Search found 43 matches

by ncc1502
Sun May 24, 2020 11:24 pm
Forum: Flowcode V6
Topic: Inverting a Bool
Replies: 3
Views: 229

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: 3387

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: 3387

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: 3387

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: 16068

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: 16068

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: 2062

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: 2062

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: 2396

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: 2396

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: 2396

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: 2910

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: 2910

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: 2910

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: 2910

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: 2735

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: 2735

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: 2735

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: 2735

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: 3222

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 ...
by ncc1502
Fri Feb 04, 2011 5:45 pm
Forum: Programming Tips & Tricks
Topic: 3C : LCD I2C
Replies: 31
Views: 45690

Re: 3C : LCD I2C

Has anybody done the same work for the LCD on an SPI port expander?
by ncc1502
Thu Jan 13, 2011 11:24 pm
Forum: Flowcode V4
Topic: adding a programmer
Replies: 2
Views: 2694

Re: adding a programmer

I use Easypic5 from MikroElectronica

I have added at programmer location: C:\Program Files\Mikroelektronika\PICFLASH-mikroICD\PICFLASH.exe
with Parameter: -f"%f.hex"

I use the older picflash, i think it should probably work also with the newer Mikroprog suite.

Hope this helps.
by ncc1502
Sat Aug 28, 2010 12:02 am
Forum: Programming Tips & Tricks
Topic: 3C : RS232 Parity (1)
Replies: 4
Views: 5440

Re: 3C : RS232 Parity (1)

Dan81, I am not a C programmer and i do not understand the code of components, so how to change that is even more a mistery to me. After i import your 232 component, what do i have to do to send/receive in odd or even parity? I have looked at your sample files but at the extende properties of the RS...
by ncc1502
Tue Jul 20, 2010 9:43 pm
Forum: Flowcode V4
Topic: PIC EEPROM does not store data
Replies: 15
Views: 3468

Re: PIC EEPROM does not store data

Just a thougt.

You do not set the fuse that code protect the eeprom from writing/reading when programming?
by ncc1502
Mon Jun 07, 2010 9:07 pm
Forum: Flowcode 4 Bugs
Topic: Decision balloon
Replies: 4
Views: 2263

Re: Decision balloon

Thanks Steve