Hi
You can ignore the warnings.
Most of those warnings come from the fact that we (Flowcode CAL) define MX_CHAR as a char, but MX_STRING as an unsigned char *
It’s for historic reasons, but we’ll fix it along the way.
Leigh
Search found 2067 matches
- Tue Apr 29, 2014 8:28 am
- Forum: Flowcode V6
- Topic: Dspic33EP256MU806 Problem I2C
- Replies: 8
- Views: 4771
- Wed Apr 23, 2014 4:35 pm
- Forum: E-blocks
- Topic: EB083 LCD Programming Problem
- Replies: 3
- Views: 4039
Re: EB083 LCD Programming Problem
Also might be worth changing your E and RS macros (defines) to use LATB rather than PORTB
- Tue Apr 22, 2014 9:20 am
- Forum: Flowcode V5
- Topic: how much memory is free? 16f1939 to 18f4520
- Replies: 1
- Views: 2986
Re: how much memory is free? 16f1939 to 18f4520
Hi
Both of those processors have 16k word, or instruction, program memory space.
The 16F1939 instruction is 14 bits wide, so converting the program space to bytes does not make any sense so is not quoted by the manufacturer.
Regards,
Leigh
Both of those processors have 16k word, or instruction, program memory space.
The 16F1939 instruction is 14 bits wide, so converting the program space to bytes does not make any sense so is not quoted by the manufacturer.
Regards,
Leigh
- Tue Apr 22, 2014 8:56 am
- Forum: E-blocks
- Topic: EB006 V9 ADC confusion. [SOLVED]
- Replies: 2
- Views: 3209
Re: EB006 V9 ADC confusion.
Hi Martin,
That is odd, works OK on the EB006 V9 and 16F1937 I have.
Regards,
Leigh
That is odd, works OK on the EB006 V9 and 16F1937 I have.
Regards,
Leigh
- Thu Apr 17, 2014 11:53 am
- Forum: E-blocks
- Topic: Temperature Sensor network EB051C EB051R
- Replies: 3
- Views: 3806
Re: Temperature Sensor network EB051C EB051R
Hi The communication signals to and from the Zigbee e-blocks are logic level not RS232, so you can connect directly to the UART and control signals of a processor or connect the board directly to an EB006 programmer board. You would only need to convert the signals to RS232 (e.g with MAX232) if the ...
- Wed Apr 09, 2014 12:21 pm
- Forum: Flowcode V6
- Topic: FAT: faster way to write data
- Replies: 76
- Views: 38027
Re: FAT: faster way to write data
Hi
Thanks for the screen shots.
MOSI_SDO “7” and CLK_SCK “8” are the Output Function Numbers for SPI1 Data and Clock outputs, and not related to port pin numbers.
The outputs are directed to RP14 and RP7.
Which looks correct. Hope that helps.
Leigh
Thanks for the screen shots.
MOSI_SDO “7” and CLK_SCK “8” are the Output Function Numbers for SPI1 Data and Clock outputs, and not related to port pin numbers.
The outputs are directed to RP14 and RP7.
Which looks correct. Hope that helps.
Leigh
- Mon Apr 07, 2014 1:26 pm
- Forum: Flowcode V6
- Topic: Compilation Problems
- Replies: 1
- Views: 1541
Re: Compilation Problems
Seems that Boostc does not like file names that include letters with accents,
try re-naming the file to Programme Penelope.fcfx
Regards
Leigh
try re-naming the file to Programme Penelope.fcfx
Regards
Leigh
- Thu Apr 03, 2014 11:52 am
- Forum: General Programming
- Topic: NewString = toString$(msg[0]) + toString$(msg[1])
- Replies: 5
- Views: 6441
Re: NewString = toString$(msg[0]) + toString$(msg[1])
Hi Rudi, As Steve says, there are some problems at the moment with concatenating strings. But I also think you have some confusion about constructing strings and how characters are coded. The toString macro converts a number into a string representation of it. The character that is printed as an “h”...
- Sat Mar 29, 2014 7:12 pm
- Forum: Flowcode V6
- Topic: Arduino Uno + Arduino Ethernet shield
- Replies: 9
- Views: 5720
Re: Arduino Uno + Arduino Ethernet shield
Glad you got the page visible in your browser at least.
If the 360 character per page (x4 pages) limit holds up your project let us know and we can probably increase it a touch in the short term until we have time for a more elegant solution.
Let us know how you get on.
Leigh
If the 360 character per page (x4 pages) limit holds up your project let us know and we can probably increase it a touch in the short term until we have time for a more elegant solution.
Let us know how you get on.
Leigh
- Sat Mar 29, 2014 7:04 pm
- Forum: Flowcode V6
- Topic: Flowcode 6 internal CAN component
- Replies: 4
- Views: 2550
Re: Flowcode 6 internal CAN component
Well done. Thanks for letting us know.
Leigh
Leigh
- Fri Mar 28, 2014 12:07 pm
- Forum: Flowcode V6
- Topic: Arduino Uno + Arduino Ethernet shield
- Replies: 9
- Views: 5720
Re: Arduino Uno + Arduino Ethernet shield
Hi Peter, Because of substantial differences between the way V5 and V6 work internally, the V6 Webserver component works differently to the V5 version. Unfortunately this means that V5 flowcharts that use the Webserver component do not convert well to V6. Also there is currently an html page text li...
- Fri Mar 28, 2014 9:28 am
- Forum: Flowcode V6
- Topic: Flowcode 6 internal CAN component
- Replies: 4
- Views: 2550
Re: Flowcode 6 internal CAN component
Hi Does the B0 output still toggle at 1 second interval when sending CAN messages? If not, I think the problem will be the Delay 1000 ms, change it to Delay 1 second (or twice Delay 500 ms) Another reason could be that the CAN controller is repeating the message if it is not acknowledged by a receiv...
- Thu Mar 27, 2014 9:21 am
- Forum: Flowcode V6
- Topic: Arduino Uno + Arduino Ethernet shield
- Replies: 9
- Views: 5720
Re: Arduino Uno + Arduino Ethernet shield
Hi Peter, Sorry about that, the flowchart was created in version 6.0.6 so will not be readable by older versions. You can get a link to updated version here http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=54&t=14600 When you have loaded the example flowchart you can change the target to AVR...
- Wed Mar 26, 2014 11:46 am
- Forum: Flowcode V6
- Topic: Arduino Uno + Arduino Ethernet shield
- Replies: 9
- Views: 5720
Re: Arduino Uno + Arduino Ethernet shield
Hi We’ve changed the way that substitutions work on the V6 webserver component. For outgoing values use SetOutValue macro that has as parameters, first the index, then the value string, e.g. SetOutValue(0, “Out 0”), the string “Out 0” will replace %0 in the html. (Use SetOutValue(1, “Out 1”), %1 etc...
Re: Sensors
Hi John, Thanks for your comments. Sorry for late reply (to-do list stack corruption due to stack overflow :o We’ll add your thoughts to the list, and any other ideas for additional sensor boards. Unfortunately there is not a lot of circuit space left on the boards between the connectors and mountin...
- Thu Mar 13, 2014 1:07 pm
- Forum: Flowcode V6
- Topic: Problem in SPI project
- Replies: 8
- Views: 4716
Re: Problem in SPI project
I’m not too familiar with float calculations on AVR gcc, but I don’t think you are going to be able to get a 32 bit integer result from float calculations. If you have a ulong variable that is to be multiplied by a fractional constant, then I would suggest that you use ulong only maths and calculate...
- Mon Mar 10, 2014 10:36 am
- Forum: Flowcode V6
- Topic: Can Bus baudrate
- Replies: 7
- Views: 4615
Re: Can Bus baudrate
You are correct the CAN component for external MCP2515 assumes a 20MHz xstal To operate at 16MHz you will need to calculate and change the setup of the CNF1, CNF2 and CNF3 registers of the MCP2515. CNF1 sets the Baud rate prescaler bits, but you will also need to modify the CNF2 and CNF3 and set the...
- Fri Mar 07, 2014 3:15 pm
- Forum: Flowcode V6
- Topic: ToString function problem
- Replies: 8
- Views: 4267
Re: ToString function problem
Hi Mathy Thanks for your investigations. Looks like a bug has been introduced in our attempts to support null terminated strings. The safest things to do to avoid this is to ensure the array is one character larger than your longest string and insert a 0 into the last byte. Array STRING_TEST[4] STRI...
- Fri Mar 07, 2014 2:54 pm
- Forum: Flowcode V6
- Topic: UDP Multicast
- Replies: 2
- Views: 1892
Re: UDP Multicast
Hi Mathy
The component C code can be seen in the generated C output file.
Just add the component to a project and drop say the Intialise macro onto the flowchart and compile to C.
Regards
Leigh
The component C code can be seen in the generated C output file.
Just add the component to a project and drop say the Intialise macro onto the flowchart and compile to C.
Regards
Leigh
- Fri Mar 07, 2014 12:29 pm
- Forum: Flowcode V6
- Topic: Problem in SPI project
- Replies: 8
- Views: 4716
Re: Problem in SPI project
Hi
The AVR lib function fmod expects a double (32 bit wide float), so that could be where the problem arises.
LCD Print Number only accepts 16 bit numbers
In this kind of application you would be better using bit shifting.
B4 = ans1
B3 = ans1 >> 8
B2 = ans1 >> 16
B1 = ans1 >> 24
Regards
Leigh
The AVR lib function fmod expects a double (32 bit wide float), so that could be where the problem arises.
LCD Print Number only accepts 16 bit numbers
In this kind of application you would be better using bit shifting.
B4 = ans1
B3 = ans1 >> 8
B2 = ans1 >> 16
B1 = ans1 >> 24
Regards
Leigh
- Fri Mar 07, 2014 10:08 am
- Forum: Flowcode V5
- Topic: RS485 protocol
- Replies: 17
- Views: 12568
Re: RS485 protocol
Hi Looks like you are getting there. The FCSZ_xxx is a value created by Flowcode that represents the maximum string length, so as to avoid buffer overruns in the called macro. Just remember, from notes earlier, how character bytes are coded. For a carriage return character, when in a string is repre...
- Thu Mar 06, 2014 2:26 pm
- Forum: Flowcode V6
- Topic: Problem in SPI project
- Replies: 8
- Views: 4716
Re: Problem in SPI project
Hi You’ve come across a bug in our system. It seems that Flowcode NumberToHex$ target function only works with 16 bit numbers, hence your 3rd and 4th bytes are missing from the string for the target device, although it works for 32 bit numbers in the simulator. I have attached a fixed version of AVR...
- Wed Mar 05, 2014 11:25 am
- Forum: General Programming
- Topic: String = NumberToHex$
- Replies: 3
- Views: 5944
Re: String = NumberToHex$
Hi Rudi You are correct, we have a bug there and will resolve it as soon as we can. The bug happens when you attempt to concatenate the NumberToHex$() with another string. As a temporary fix you could try: Msg1 = NumberToHex$(159) Msg2 = NumberToHex$(60) Msg3 = NumberToHex$(60) Msg = Msg1 + Msg2 + M...
- Fri Feb 28, 2014 4:44 pm
- Forum: MIAC
- Topic: MIAC-MODBUS
- Replies: 6
- Views: 8893
Re: MIAC-MODBUS
Hi Pantelis, Thanks for the further information. A Bluetooth link is a good idea, we have done Android connected demonstrations with MIAC in the past. It’s a while since I have looked at Android, it’s a fast moving platform, but there are plenty of tools out there to support it. Another question is:...
- Thu Feb 27, 2014 12:23 pm
- Forum: MIAC
- Topic: MIAC-MODBUS
- Replies: 6
- Views: 8893
Re: MIAC-MODBUS
Hi Pantelis Thanks for your comments, and it sounds like an interesting project you have there. Are you just using a MIAC or do you have other MIAC Expansion modules as well? We usually refer to a “MIAC System” as being a MIAC connected via CAN to one or more Expansion modules or MIAC CAN Slaves. Th...