Can module extension

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Post Reply
JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Can module extension

Post by JFinlayson »

Hi
I use can for marine NMEA 2000 which is can bus but using extended. ie 29 bit ID mode instead of 11bit, can you extend FLOWCODE 6 to access this. Having problems with ID if you can help in this matter?

:)
The older the boy the bigger the toy

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: Can module extension

Post by Benj »

Hello,

Yes the Flowcode component should allow standard and extended CAN ID's to work correctly.

Can you post your program so far, maybe explain your setup and detail any problems your facing and we will do our best to help.

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Can module extension

Post by JFinlayson »

My computer just crashed. major failure. will attempt to recover files and post when all is up and running again
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Can module extension

Post by JFinlayson »

Ok New Computer and programmer. Don't ask bit lost all data on raid drives.

Problem with ID on CAN is Flowcode 6 can not convert ULONG to string or UINT . This is a major headache at the moment. I have attached the little test programme I am playing with. It would seem from this that the 29 bit ID maybe wrong. but the major issue is the string conversion.

:(
Attachments
CanTest1.fcfx
(17.77 KiB) Downloaded 258 times
The older the boy the bigger the toy

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: Can module extension

Post by Benj »

Hello,

The to Hex String function will work with the ULONG and UINT variables.

The attached file should allow the string typecast command to compile correctly if you copy it into your Flowcode/CAL/PIC folder.

StringVar = string ULONGVar
Attachments
PIC_CAL_String.c
(23.61 KiB) Downloaded 253 times

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Can module extension

Post by JFinlayson »

Thanks! I will try it out when time permits.



:D
The older the boy the bigger the toy

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Can module extension

Post by JonnyW »

Hi.

This is most likely the protection system kicking in.

I will have a brows in our protection systems set-up to see if anything stands out.

Cheers,

Jonny

henker
Posts: 45
Joined: Mon Dec 22, 2008 11:22 pm
Location: Prospect, NS, Canada
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: Can module extension

Post by henker »

Do you guys have this example in FC5???

Post Reply