Welcome, Guest

TOPIC: something urgent

something urgent 3 years 8 months ago #1690

  • Jimmy
  • Jimmy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
Cannot establish a link to motors through RS232 after i download a program to the motor。The program is as below。

A=500
V=1000000
P=0
O=0
G
OCHN(RS2,0,N,9600,1,8,D)
PRINT("RP",#13)
C0
IF LEN
a=GETCHR
IF a==13
G
P=0
PRINT("RP",#13)
ELSE
P=P*10
a=a-48
P=P+a
ENDIF
ENDIF
GOTO0
END

I don't know how to establish a new link to the motor。Please help me,thanks in advance,dears。
The administrator has disabled public write access.

Re: something urgent 3 years 8 months ago #1691

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
Hi Jimmy,
You have the OCHN command in the program that has the last parameter D ...this puts the motor in Data Mode(rarely used) and takes it out of Command Mode ...where the OCHN last parameter would be C.
To recover...
Go to the Communications Menu... and select Communication Lockup Wizard. Follow the directions to turn the power off and on and clicking when and where it tells you.
This will let you Clear the EEProm. After doing this you can cycle power and the motor will be back to all factory defaults.
You can call me on our US toll free number 1-888-356-0357 if you need further assistance.
The administrator has disabled public write access.
The following user(s) said Thank You: Jimmy

Re: something urgent 3 years 8 months ago #1692

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The program example you showed above is only for writing a SmartMotor program that accepts commands from a custom host that cannot be replaced, and cannot send normal SmartMotor commands. This means that all of the normal Smartmotor commands will be ignored.
It is best to leave the SmartMotor in Command Mode, though you can still use the OCHN command to change the baud rate, parity, or stop bits. Just be sure the last parameter in the OCHN command is the letter C. This way, all of the normal commands can be used.
The administrator has disabled public write access.

Re: something urgent 3 years 8 months ago #1694

  • Jimmy
  • Jimmy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
Thanks a lot csearcy。I really appreciate it。But now I try to use my own PC to communicate with SmartServo。I have to use Data mode。If I download this code,could I use the blue terminal board in SMI to send information?And thank for giving me your number,but I am sorry to say that it isn't convenient to make a call,please forgive me。Thanks again。
Happy New Year!
The administrator has disabled public write access.

Re: something urgent 3 years 8 months ago #1696

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
Let's make sure you need Data mode first. What development software are you using on your PC? If you can send simple ASCII commands, such as A=100 V=100000 P=2000 G ..then you may not need Data mode.
The administrator has disabled public write access.

Re: something urgent 3 years 8 months ago #1697

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
If you have a host PC application that cannot be changed, then Yes... you can use the Blue Terminal window to send commands. If you need to add any special Hex or other commands, you can open the "nose" icon... which is our Serial Data Analyzer. This will let you mix Hex, Decimal, and Characters as needed... though each one is transmitted immediately. If you only need to send ASCII characters and CR... then the Blue Terminal window should work well.
Please let me know if you need any further assistance.

-Chuck
Last Edit: 3 years 8 months ago by csearcy.
The administrator has disabled public write access.
The following user(s) said Thank You: Jimmy
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.240 seconds
Powered by Kunena Forum