Hi Jone,
Maybe the command you've sent was wrong.
Did you try another commands like "1;1;STATE" or "1;1;OPEN=TEST"?
The answer of controller have to be QoK.
Gabriel.
Hi Jone,
Maybe the command you've sent was wrong.
Did you try another commands like "1;1;STATE" or "1;1;OPEN=TEST"?
The answer of controller have to be QoK.
Gabriel.
Hello,
Based on the troubleshooting manual, this error means:
Gabriel.
Hi Body,
My project was to find a way to control my robot using a machine with Linux. So, a friend sent to me a manual that I didn't find on the internet with a lot of commands that you can send to the robot controller, exemple: 1;1;RUN1A (run program 1A), or 1;1;STATE (get robot status). You can do this after setting a telnet connect with the robot controller.
I'm using Python to do the telnet connection, sending the commands and receiving the output. You can do something like this:
#!/usr/bin/env python3.4
#### IMPORTS ####
import socket, sys, time
#### OPTION MENU ####
def OptionMenu():
print ('\nPossible Options (Exemple: ./RobotCommands.py 1)')
print ('\n1 - Reset Alarm')
print ('2 - Get Errors\n')
#print ('2 - GET Speed')
#print ('3 - Change Speed (Put speed too, ex: ./RobotCommands 2 100')
#### RESET ALARM ####
def ResetAlarm(s):
commands=['1;1;RSTALRM']
for cmd in commands:
s.send(cmd.encode('utf-8'))
while True:
data = s.recv(4096)
if data:
print (data)
break
print('\nDONE!!!\n')
#### GET ERRORS ####
def GetErrors(s):
commands=['1;1;ERROR']
for cmd in commands:
s.send(cmd.encode('utf-8'))
while True:
data = s.recv(4096)
if data:
print (data.decode('utf-8'))
break
print('\nDONE!!!\n')
#### MAIN PROGRAM ####
if __name__ == "__main__":
if len(sys.argv)==1:
OptionMenu()
sys.exit()
else:
Function = float(sys.argv[1])
host = '192.0.0.0' # STRING!!! YOUR ROBOT CONTROLLER IP!!!!
port = 10001 # INT!!! YOU CAN KEEP IT.
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
# connect to remote host
try :
s.connect((host, port))
except :
print ('Unable to connect')
sys.exit()
print ('Connected to remote host')
socket_list = [sys.stdin, s]
if Function == 1:
ResetAlarm(s)
if Function == 2:
GetErrors(s)
Display More
I guess i'm not abble to post the manual with the commands here, 'cause of the Mitsubishi Rights. If you want, send me a private message with your email and I may send it to you.
Hope I've helped.
Regards,
Gabriel.