- Forum
- Roboteq Motor Controllers
- Troubleshooting
- MagSensor Control Utility indicates Sensor Failure whenever script is run
MagSensor Control Utility indicates Sensor Failure whenever script is run
- avinash_sprw
- Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
2 years 9 months ago #29533711
by avinash_sprw
MagSensor Control Utility indicates Sensor Failure whenever script is run was created 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.
- Gabriel_Isko
2 years 9 months ago #29533716
by Gabriel_Isko
Replied by Gabriel_Isko on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
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.
- avinash_sprw
- Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
2 years 9 months ago #29533718
by avinash_sprw
Replied by avinash_sprw on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
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.
- Gabriel_Isko
2 years 9 months ago #29533722
by Gabriel_Isko
Replied by Gabriel_Isko on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
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.
- avinash_sprw
- Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
2 years 9 months ago #29533725
by avinash_sprw
Replied by avinash_sprw on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
Sure, I have attached the configuration as a txt file.
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
2 years 9 months ago #29533744
by Gabriel_Isko
Replied by Gabriel_Isko on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
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.
- avinash_sprw
- Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
2 years 9 months ago #29533745
by avinash_sprw
Replied by avinash_sprw on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
Firmware version: Roboteq v1.0 MGS1600 04/24/2014
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
2 years 9 months ago #29533749
by Gabriel_Isko
Replied by Gabriel_Isko on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
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.
- avinash_sprw
- Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
2 years 9 months ago #29533750
by avinash_sprw
Replied by avinash_sprw on topic MagSensor Control Utility indicates Sensor Failure whenever script is run
Okay, I will check
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Troubleshooting
- MagSensor Control Utility indicates Sensor Failure whenever script is run
Time to create page: 0.107 seconds