Menu

Topic-icon MagSensor Control Utility indicates Sensor Failure whenever script is run

More
1 year 3 months ago #29533711 by avinash_sprw
I'm using MGS1600GY Magnetic sensor with the pc utility. I'm trying to use the example program of printing all the data the from the sensor in a single line. I download the script to the device and click on Run script. Once I click run script, the sensor failure indication glows red and once I pause the script, the indication goes off. Also I dont get any output through the serial.

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

More
1 year 3 months ago #29533716 by Gabriel_Isko
Do you think you can post the script running on your sensor? You mention that it is an example script, however I can double check that something isn't getting pasted in wrong, or needs to changed in the sensor configuration by examining your settings.

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

More
1 year 3 months ago #29533718 by avinash_sprw
Here is the script,
' This script is provided "as-is", without warranty of any kind,
' expressed or implied, including but not limited to the warranties of
' merchatability, fitness for a particular purpose and
' noninfringemement. In no event shall Roboteq be liable for any claim,
' damages or other liability, arising from the use of the software."
'
' Script runs in MGS1600 Magnetic Guide sensor. Formats the sensor data into
' a customized string that is easy to parse by a PLC

print("starting ... \r")

top: ' label header

TapeLeft = getvalue(_TS, 1) ' queries the tape data
TapeRight = getvalue(_TS, 2)
TapeDetect = getvalue(_D)
LeftMarker = getvalue(_M, 1)
RightMarker = getvalue(_M, 2)

print(TapeDetect,"$",TapeLeft,"$",TapeRight,"$",LeftMarker,"$",RightMarker,"\r") ' prints back the queried data
wait(10) ' pause 10 mS
goto top ' return to label header

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

More
1 year 3 months ago #29533722 by Gabriel_Isko
Thanks! I am currently out of the office, but I will test a sensor with your script and try to replicate when I return on Friday and get back to you. It would also help if I can get the configuration settings that are on the sensor.

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

More
1 year 3 months ago #29533725 by avinash_sprw
Sure, I have attached the configuration as a txt file.
Attachments:

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

More
1 year 2 months ago #29533744 by Gabriel_Isko
Which version of the firmware are you using? I have had trouble recreating the error on V3.0beta.

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

More
1 year 2 months ago #29533745 by avinash_sprw
Firmware version: Roboteq v1.0 MGS1600 04/24/2014

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

More
1 year 2 months ago #29533749 by Gabriel_Isko
Yes, the scripting issue should be fixed in the 3.0 firmware. Please find it on our Files Download Page .

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

More
1 year 2 months ago #29533750 by avinash_sprw

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

Moderators: tonysantoni
Time to create page: 0.102 seconds
Go to top