T834 changing settings in Arduino code cont

Still having problems with the settings; nothing changes on the T834.
Our code is like this:

TicSerial tic[] = {
TicSerial(ticSerial, 14),
TicSerial(ticSerial, 15),
TicSerial(ticSerial, 16),
...
};
TicStepMode sm[]{
  TicStepMode::Microstep1,
   TicStepMode::Microstep2,
   TicStepMode::Microstep4,
   TicStepMode::Microstep8,
   TicStepMode::Microstep16,
   TicStepMode::Microstep32
};

to change the stepmode for tic with nr 15 to ‘half’:

tic[1].setStepMode(sm[1]);

also other commands like:

uint32_t c_speed = 2500;
tic[0].setMaxSpeed(c_speed);

do not give any result.
Is it maybe necessary to follow some kind of sequence of reset, enter safestart, exit safestart for example?

rolf

Hello.

How are you verifying that the step mode is not changing? Are your Tic controllers indicating an error with the red LED? It is possible that the controllers are in safe start mode (which would cause the red LED to light and a “safe start violation” error). In the “Serial / I²C / USB” control mode, the Tic will generally set the “Safe start violation” error bit whenever the Tic is not in the normal operation state. You can send an “Exit safe start” command to clear the error.

Additionally, note that if you have the “Command timeout” feature enabled the “Command timeout” error will be triggered if the Tic does not receive a command for the specified length of time (default is 1 second). This feature can be configured in the “Input and motor settings” tab of the Tic Control Center.

If you check those settings and are still having problems, could you post your entire Arduino code as well as the settings files for each of your Tic controllers? You can save your settings file by selecting the “Save settings file…” option within the “File” drop-down menu of the Tic Control Center while the desired Tic is connected. Also, could you post some pictures of your setup that show all of your connections?

Brandon

BrandonM via Pololu Forum schreef op 27-06-2019 22:08:

BrandonM Pololu Employee
June 27
Hello.

How are you verifying that the step mode is not changing? Are your Tic controllers indicating an error with the red LED? It is possible that the controllers are in safe start mode (which would cause the red LED to light and a “safe start violation” error). In the “Serial / I²C / USB” control mode, the Tic will generally set the “Safe start violation” error bit whenever the Tic is not in the normal operation state. You can send an “Exit safe start” command to clear the error.

Additionally, note that if you have the “Command timeout” feature enabled the “Command timeout” error will be triggered if the Tic does not receive a command for the specified length of time (default is 1 second). This feature can be configured in the “Input and motor settings” tab of the Tic Control Center.

If you check those settings and are still having problems, could you post your entire Arduino code as well as the settings files for each of your Tic controllers? You can save your settings file by selecting the “Save settings file…” option within the “File” drop-down menu of the Tic Control Center while the desired Tic is connected. Also, could you post some pictures of your setup that show all of your connections?

Brandon


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

thanks Brandon for answering so quickly.

First we were working with a whole set-up with 12 steppers and one serial line.

Running the steppers goes well; we’re using position control.

But no luck with the settings.

Then we tried with a simple sketch with 1 T834.

Again no luck.

i’m checking the settings with the Tic Control app on my computer, which is refreshing it’s readings every second (i believe).

there’s no red light or an error message. the Command timeout feature is turned off.

The last tries were with this arduino sketch:

#include <Tic.h>

#include <SoftwareSerial.h>
SoftwareSerial ticSerial(4,5);
#define ledpin 8
int led = 1;
TicSerial tic(ticSerial, 14);

TicStepMode sm[]{
  TicStepMode::Microstep1,
   TicStepMode::Microstep2,
   TicStepMode::Microstep4,
   TicStepMode::Microstep8,
   TicStepMode::Microstep16,
   TicStepMode::Microstep32
};

void setup()
{
  ticSerial.begin(57600);
  delay(20);
  tic.enterSafeStart();
  delay(20);
  tic.setMaxAccel(3333); //just a test

*//tic.setStepMode(sm[3]);  //another test*

  delay(20);
  tic.exitSafeStart();
}

void loop()
{
}

Because i’m away from the lab i cannot send you a picture of the test set-up.

The SoftwareSerial TX pin (5) was connected to the Rx pin on the T834.

And the grounds were connected.(The power for the T834 and the Arduino came from the same source).

Hoping you can give us a hint to make it work.

rolf

The values shown for configuration settings like step mode and max acceleration in the Tic Control Center are the values stored in EEPROM, whereas serial commands like “Set step mode” or “Set max acceleration” are temporarily changing the setting the Tic is using in RAM.

One way to test whether your Arduino commands are working is to run ticcmd --status --full in a Command Prompt.

Brandon

BrandonM via Pololu Forum schreef op 01-07-2019 20:58:

BrandonM Pololu Employee
July 1
The values shown for configuration settings like step mode and max acceleration in the Tic Control Center are the values stored in EEPROM, whereas serial commands like “Set step mode” or “Set max acceleration” are temporarily changing the setting the Tic is using in RAM.

One way to test whether your Arduino commands are working is to run ticcmd --status --full in a Command Prompt.

Brandon


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

thanks Brandon, until now we did not come across this information.

Because of the deadline we have for a performance with the installation, we will continue with the ‘problem’ of the settings not before next week.

We’ll keep you posted.

rolf

1 Like