Search found 35 matches

by kennethnilsen69
Thu Sep 29, 2022 8:22 am
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

I figured it out Ben. I was just missing an s at the end of in TypeConversion's name
by kennethnilsen69
Thu Sep 29, 2022 8:16 am
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

Thanks Ben, I have added the TypeConversion component but get this error message in the Calculation
by kennethnilsen69
Wed Sep 28, 2022 1:20 pm
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

Does anyone have a suggestion for how I write this calculation in a FC calculation box unsigned long odo = ((unsigned long)id599[0] << 24) | ((unsigned long)id599[1] << 16) | ((unsigned long)id599[2] << 8) | (id599[3]); odo /= 10; id55E[6] = odo >> 8; id55E[7] = odo & 0x00ff;
by kennethnilsen69
Thu Sep 22, 2022 4:16 pm
Forum: General
Topic: Hall Effect Sensor component (LEM DHAB S/124)
Replies: 3
Views: 971

Re: Hall Effect Sensor component (LEM DHAB S/124)

Thanks for the component. I have now tested it a bit but am struggling to get it to work as it should. On voltageADC I always get 5.0v no matter what I set VDD to. At VDD 2.500000 I get 0.0 current and no results when current passes through the sensor. If I increase or decrease VDD, I get values on ...
by kennethnilsen69
Sun Sep 18, 2022 6:01 pm
Forum: General
Topic: Hall Effect Sensor component (LEM DHAB S/124)
Replies: 3
Views: 971

Hall Effect Sensor component (LEM DHAB S/124)

Does FC9 have any components for this LEM hall sensor?
https://www.lem.com/en/dhab-s124
Does the FC9 have any components that can be used for this LEM hall sensor?

If not. can it be made?
by kennethnilsen69
Fri Sep 16, 2022 2:35 pm
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

Hello, Sorry the long hand method is currently the only way. If you put the code inside a macro then you would just have to call the macro whenever you want to send the data. We could add a function to allow the data to be loaded from and to an array so I'll get this on the list. Thanks Ben. it wou...
by kennethnilsen69
Fri Sep 16, 2022 10:30 am
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

A new question. If, for example, I want to send out the entire id155_INIT[8], I can do it like this: FC_CAN_SetTxIdent_1(0, 0x155);FC_CAN_SetTxData_1(0, 8, FCV_id155_INIT[0], FCV_id155_INIT[1], FCV_id155_INIT[2], FCV_id155_INIT[3], FCV_id155_INIT[4], FCV_id155_INIT[5], FCV_id155_INIT[6], FCV_id155_I...
by kennethnilsen69
Fri Sep 16, 2022 9:57 am
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

sorry DLC 4 is just a typo. I use 8 :-) But I found out that I had to use FCV_ in front of the variable (FCV_ID155_INIT[1]) so now it works as it should :-)
by kennethnilsen69
Thu Sep 15, 2022 4:26 pm
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

Ok so now I have created a variable id155_init[8] with data { 0xFF, 0x97, 0xD0, 0x94, 0x00, 0x08, 0x00, 0x6F } Now if I want to retrieve/Save data 1 from/to the variable id155 (which is 0x97) How do I do that? I have tried to retrieve it like this and put it in data 6 in this CAN message without suc...
by kennethnilsen69
Wed Sep 14, 2022 11:45 am
Forum: General
Topic: Converting a program from Arduino to Flowcode help.
Replies: 17
Views: 3334

Re: Converting a program from Arduino to Flowcode help.

Aha now I understand :-) thank you Martin. there will probably be 1000 more questions later :-)