OtterSpectrum
Member
Greetings All.
I am attempting to use a Trio Motion MC403 controller (with code written in TrioBASIC) to talk to a Linmot E1100 drive the via LinRS protocol.My Trio program creates a custom curve and downloads it to the Linmot, storing it in RAM with curve ID 1.
If I store this curve in FLASH, I am able to use Linmot Talk to run the curve, so I know that it has been formatted properly.
The problem is that if I attempt to run the curve from the Trio program, nothing happens. The command I am sending the Linmot is "time curve with default parameters (040xh)", and the relevent code is:
I am convinced the problem lies with the time curve command, as if I replace it with a predef VAI command, the acutator moves as expected. Is anyone familiar enough with Linmot drives to tell me what I am missing?
I am attempting to use a Trio Motion MC403 controller (with code written in TrioBASIC) to talk to a Linmot E1100 drive the via LinRS protocol.My Trio program creates a custom curve and downloads it to the Linmot, storing it in RAM with curve ID 1.
If I store this curve in FLASH, I am able to use Linmot Talk to run the curve, so I know that it has been formatted properly.
The problem is that if I attempt to run the curve from the Trio program, nothing happens. The command I am sending the Linmot is "time curve with default parameters (040xh)", and the relevent code is:
Code:
[COLOR=#800000]PRINT[/COLOR] [COLOR=#0000ff]"--- home linmot ---"[/COLOR]
[COLOR=#800000]SETCOM[/COLOR]([COLOR=#000080]57600[/COLOR], [COLOR=#000080]8[/COLOR], [COLOR=#000080]1[/COLOR], [COLOR=#000080]0[/COLOR], [COLOR=#000080]1[/COLOR], [COLOR=#000080]0[/COLOR])
[COLOR=#008000]' Error acknowledge.[/COLOR]
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]5[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]191[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]);
[COLOR=#008000]' Request default response.[/COLOR]
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]3[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]);
[COLOR=#008000]' Clear lock state.[/COLOR]
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]5[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]);
[COLOR=#008000]' Enable and home.[/COLOR]
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]5[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]63[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]8[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]);
[COLOR=#800000]WA[/COLOR]([COLOR=#000080]5000[/COLOR])
[COLOR=#008000]' Normal operation.[/COLOR]
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]5[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]63[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]);[COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]);
[COLOR=#800000]PRINT[/COLOR] [COLOR=#0000ff]"--- play curve ---"[/COLOR]
[COLOR=#008000]' Time curve with default parameters.[/COLOR]
linmot_telegram = [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]5[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]2[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]1[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]0[/COLOR]) + [COLOR=#800000]CHR[/COLOR]([COLOR=#000080]4[/COLOR])
[COLOR=#800000]PRINT[/COLOR] #[COLOR=#000080]1[/COLOR], linmot_telegram;
I am convinced the problem lies with the time curve command, as if I replace it with a predef VAI command, the acutator moves as expected. Is anyone familiar enough with Linmot drives to tell me what I am missing?