Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
Rusdex,
Can you show us the code your using to control the stepper board (C++ code).
Thanks
David
1)
MkFsObject(F_VS, "", cbGauges, 0x02C8,4, TP_I32, FS_NORMAL);
MkFsbusObject (BTP_V_OUT, C_STEP1,"",cbGauges, 5, 80);
//
int ifvs = 0;
case F_VS :
ifvs = (val/19 + 400)/2;
FsbusWrite(C_STEP1, ifvs);
break;
and
2)
case F_VS :
FsbusWriteFmtVar(5, 80, (val/19 + 400)/2);
break;
Re: Progamming help with FSBus dll
Stepper works only in the format BTP_A_OUT. I think that the problem in "dll". Firmware of the stepper module does not understand the additional 2 bytes, which sends the C++ router (total lenght - 5).
For example - value "316"; CID - "11" : "dll" send AD 50 1E 02 CC, but admin send AC 50 1E 42
:sad:
Also do not work DISPLAY_BLANK, DISPLAY_BAR parameters for the display controllers
:cry:
Re: Progamming help with FSBus dll
There are still some bugs that i need to work out but as far as the C++ i think that is done for now thanks David for your help. My C++ was and wasnt the same as your but was able to take mine out and put yours in and then add some extra in it and it works fine for me thanks again for your help.
Trevor
Re: Progamming help with FSBus dll
Hi Trevor,
You are welcome. It's all made to go around.
Do you have any thoughts on Rusdex's problem with the stepper. I haven't even began to look at the coding yet, but when I do, I'm going to need lots of input.
Even Dirk said he would take a look at the code once I've got something done.
David
Re: Progamming help with FSBus dll
I havent messed with the Stepper at all so i dont know Sry
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
sgaert
My Stepper work only in the AdminTool in my C code i nevver had a movement.
Stefan
I have the same problem. You solved it?
Re: Progamming help with FSBus dll
Rusdex,
How did Stefan solve the problem??
I am not far off of starting the code for my stepper board and if you've solved it, I'd love to know how.
David
Re: Progamming help with FSBus dll
Rusdex,
Just stumbled across your videos on Youtube and it does appear as though you have got the stepper card working.
Are you willing to share the code with us so we can see how it is coded.
Thanks
David
Re: Progamming help with FSBus dll
Quote:
Originally Posted by
RobiD
How did Stefan solve the problem??
I never solved the problem, i did test the stepper board a year ago without luck.
Maybe you write a neu Output Funktion they send with the right format.
@rusdex, do you report the results of your search to Dirk?
Stefan
Re: Progamming help with FSBus dll
I've sent Dirk an email with some questions and I have inlcuded your (Rusdex's) code for him to have a look at.
I'll let you know what the outcome is. My hope is that Dirk can put us on the right track and we can all work on it together and come up with a solution that works.
David