MGS1600 re-starts with roboCan scripts

6 years 10 months ago #29532136 by cory944
Dear Roboteq Technical support,

I'm having some trouble with MGS1600 and RoboCan scripting commands. When I use any roboCan command in a script, MGS1600 just re-starts and script doesn't run but when I delete RoboCan commands then MGS1600 starts to work perfectly and script runs normally. This happens with any RoboCan command. I'm using rs232 connection to check some functionalities because I know we can't use CAN and USB communications at the same time.

My MGS1600 hardware version is 3.1 and my firmware version is 2.0

Can you give me some advice to overcome this problem.

Thanks in advance.

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532137 by roboteq
Replied by roboteq on topic MGS1600 re-starts with roboCan scripts
pls send a copy of your script

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532138 by cory944
Hi,

Thanks for your reply.
Actually I have tried several scripts with roboCan commands, a short one based on your examples is the following:

option explicit
ScanCANValue(2,_var,1,100,0)
dim selectedTrack as integer
selectedTrack = 0
top:
wait(10)
if (IsScannedCANReady(0)) then
SelectedTrack = ReadScannedCANValue(0)
end if

if (selectedTrack = 1) then
setCommand(_TV,1)
else
setCommand(_TX,1)
end if
goto top


I'm trying to communicate with FBL2360, my roboCan configuration for MGS1600 is:

*CAN Mode: RoboCAN
*Bit Rate: 250
*Node ID: 1
*Listen Node ID: 2
*Heartbeat (ms): 128

Thanks in advance.

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532139 by cory944
Hi,

I was wondering if you can help me with my problem.
I'm sorry to be so insistent.
I hope you can answer.

Regards.
Victor.

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532140 by roboteq
Replied by roboteq on topic MGS1600 re-starts with roboCan scripts
What is the firmware revision in your sensor?

What is the date code on the sticker?

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532142 by cory944
hi,

Just as I stated in my first post, the firmware version is 2.0 and my hardware version is 3.1.
My Sticker doesn't have a date on it.

I hope you can help me.

Thanks.

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532144 by roboteq
Replied by roboteq on topic MGS1600 re-starts with roboCan scripts
RoboCAN is supported in that version of the magsensor firmware. It is also in the FBL

Try first to establish and test RoboCAN communicaton using console commands.

After setting the node id and enable robocan, from each of the device, try accessing the other by sending

@01?t (replace 01 by the destination node id)

?t will return temperature from the controller and track position from the sensor

if you get at * as a reply this means that the other node is not visible or alive

send ?CL from each device and let us know what the reply is when sent from the controller and from the sensor

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532145 by cory944
Hello,
Thanks for your reply.

MGS1600 nodeID = 1
FBL2360 nodeID = 2

From MGS1600:
Command = @02?t
Answer = @02 T=26

Command = @02?CL
Answer = @02 CL=305


From FBL2360:
Command = @01?t //with magnetic tape under the sensor
Answer = @01 T=-62

Command = @01?CL
Answer = @01 CL=305

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532147 by roboteq
Replied by roboteq on topic MGS1600 re-starts with roboCan scripts
From the console we see that both the mgs and the fbl respond to robocan queries. The network and communication is therefore ok.

Is the script running in the sensor or in the the controller? It looks like it runs in the sensor. Best would be to run in the controller.

Please Log in or Create an account to join the conversation.

6 years 10 months ago #29532150 by cory944
hi,

Thanks for your reply.

I thought we can run roboCan commands script from sensor.

Ok, I will do everything from controller.

Thanks for your time. Excellent customer support.

Regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds