Timer Index
- Abaglin
- Topic Author
7 years 9 months ago #29531149
by Abaglin
Timer Index was created by Abaglin
While working with the HBL2360 I have noticed that the 4 different timer indexes preform differently when put into the micro basic scripting. What is the break down and independent function of the different indexes for the controllers?
thanks.
thanks.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29531151
by TechSupport
Replied by TechSupport on topic Timer Index
They shouldn't work differently unless you are using the simulator as noted by the user manual. The timers are 0-3. If you use 4, then it won't work properly.
Page 147 of the manual
SetTimerCount Set number of milliseconds for timer to count.
SetTimerState Set state of a specific timer.
GetTimerCount Read timer count.
GetTimerState Read state of a specific timer.
Page 147 of the manual
SetTimerCount Set number of milliseconds for timer to count.
SetTimerState Set state of a specific timer.
GetTimerCount Read timer count.
GetTimerState Read state of a specific timer.
Please Log in or Create an account to join the conversation.
- Abaglin
- Topic Author
7 years 9 months ago #29531154
by Abaglin
Replied by Abaglin on topic Timer Index
Understand, I was simulating this, so that would explain a bit of the issue. I will try running the program through the AGV.
I also have another unrelated question regarding the hall sensors. I am trying to wright a different program using the position relative mode of the controller, but the hall sensors are coming back with very strange values that are not even close to what is should be returning. Motor one is returning a count of about 600 from one rotation, where as motor two is returning a value of 1700 after one rotation. The motors have been working properly with the AGV that we have been running for a while but I have not had a need to reference the Hall Count until now.
I was wondering if you have heard of this happening before or might have some insight into what the issue might be?
Thanks
I also have another unrelated question regarding the hall sensors. I am trying to wright a different program using the position relative mode of the controller, but the hall sensors are coming back with very strange values that are not even close to what is should be returning. Motor one is returning a count of about 600 from one rotation, where as motor two is returning a value of 1700 after one rotation. The motors have been working properly with the AGV that we have been running for a while but I have not had a need to reference the Hall Count until now.
I was wondering if you have heard of this happening before or might have some insight into what the issue might be?
Thanks
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29531155
by TechSupport
Replied by TechSupport on topic Timer Index
Are you using any type of mixed mode? Or is it still in the default "separate" mixing for both motors?
Please Log in or Create an account to join the conversation.
- Abaglin
- Topic Author
7 years 9 months ago #29531156
by Abaglin
Replied by Abaglin on topic Timer Index
The controller was in Mixed Mode 1 while I was testing the return value of the Hall Counts. Would having the controller in the separate mode influence how the hall count is being returned to the controllers run screen?
Please Log in or Create an account to join the conversation.
7 years 9 months ago - 7 years 9 months ago #29531157
by TechSupport
Replied by TechSupport on topic Timer Index
Mixed mode 1 and the other mixed modes will have a different effect on the motor commands; therefore a different hall count. If you set to separate mixing and apply the same command, the count should be fairly the same.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.093 seconds