Search found 12 matches

by gonzalo
Thu Sep 05, 2019 10:19 am
Forum: C Programs
Topic: StartThread() issue
Replies: 1
Views: 111

StartThread() issue

Hi Tom, I am triggering the Thread 2 from the 1 using the StartThread(2); function but I have the following problem: I save all the theads codes using the the FLASH User Memory Button form the Configuration GUI. Additionally I checked ON before the thread 1 check box in the Launch on Power Up to be ...
by gonzalo
Mon Sep 02, 2019 9:05 am
Forum: C Programs
Topic: invDistPerCycle works?
Replies: 2
Views: 132

Re: invDistPerCycle works?

Many thanks Tom!! :D :D
by gonzalo
Fri Aug 30, 2019 11:29 am
Forum: C Programs
Topic: invDistPerCycle works?
Replies: 2
Views: 132

invDistPerCycle works?

Hi Tom, I am triying to calibrate the movement for my setup and I see in the manual the variable invDistPerCycle to do that. I have a regular 1.8º/step motor with KSTEP and I want my units in degres. Then following the example1 of the manual: Example #1 : A mechanism moves 0.001" for each full step ...
by gonzalo
Fri Aug 30, 2019 8:27 am
Forum: Hardware Interface Issues
Topic: Low current motors and KSTEP
Replies: 2
Views: 80

Re: Low current motors and KSTEP

Hi Tom, Would be a good option in the future if you can add a current reduction pin in the KSTEP as cutting the amplifiers and turning on again for stepper motors produces a small mechanical jump, then is not desired as you loose the real position. I will do a reduction current with additional resis...
by gonzalo
Fri Aug 30, 2019 8:20 am
Forum: C Programs
Topic: Using persist.UserData with doubles?
Replies: 2
Views: 125

Re: Using persist.UserData with doubles?

Great solution Tom, many thanks!!
by gonzalo
Thu Aug 29, 2019 12:01 pm
Forum: C Programs
Topic: Using persist.UserData with doubles?
Replies: 2
Views: 125

Using persist.UserData with doubles?

Hi All, I need to pass data to a thread from the PC and for that I see that we can use the persist.UserData[] array. My problem is that my data is float for example 10.34, and the persist.UserData[] is integer. There is any fast method to do it without using 2 variable positions for each number? man...
by gonzalo
Thu Aug 29, 2019 8:16 am
Forum: Hardware Interface Issues
Topic: Low current motors and KSTEP
Replies: 2
Views: 80

Low current motors and KSTEP

Hi Tom, I have to control motors with a maximum current per phase of 0.6A. In the KSTEP I put the configuration to the mínimum current using the jumpers, but still the current is upper the motor limit (0.63A) and get a lot of heat. My question is, there is any mode to reduce the current for the step...
by gonzalo
Thu Aug 29, 2019 8:09 am
Forum: C Programs
Topic: Using Flash Memory problem
Replies: 4
Views: 136

Re: Using Flash Memory problem

Great Tom!! Many thanks again!!
by gonzalo
Wed Aug 28, 2019 4:51 pm
Forum: C Programs
Topic: Using Flash Memory problem
Replies: 4
Views: 136

Re: Using Flash Memory problem

Hi Tom, Code to save the data into FLASH: #include "KMotionDef.h" #define FLASHD ((volatile double *)0x90100000) double ATT_POS[256]; // variable 1 double ATT_POW[256]; // variable 2 double BET_POS_L1[8]; // variable 3 double BET_POS_L2[8]; // variable 4 double DataToSave[528]; // all variables togu...
by gonzalo
Wed Aug 28, 2019 1:32 pm
Forum: C Programs
Topic: Using Flash Memory problem
Replies: 4
Views: 136

Using Flash Memory problem

Hi Tom, I am trying to save in the non volatile memory data in order to mantain it after turn off the KFLOP. I am using the ProgramFlashNoMessages() from the FLASH_USER possition and is working fine, I can sabe it and reade it in the positions but the problem is that the memory deletes after reboot ...