Shop OBEX P1 Docs P2 Docs Learn Events
i have some problem about VC++ to control ZX-SERVO16 — Parallax Forums

i have some problem about VC++ to control ZX-SERVO16

ArchyArchy Posts: 5
edited 2006-12-19 01:27 in Robotics
I·use MFC to make ROBOT but i have problem about syntax command.
I hope someone can help me!
this link to my project
http://members.thai.net/goengine/ROBOT.rar

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-14 01:34
    Can you provide a link to the Parallax product you are refering to?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • ArchyArchy Posts: 5
    edited 2006-12-15 13:50
    My Robot use NX-ZX-SERVO16 to control
    that link include my project i want sending command for control servo, but it doesn't work.

    void CROBOTDlg::SendServoPos(CString cServo, int iPosition, int iSpeed=0)
    // Move a servo to a specified position at a specified speed
    // by sending the adecuate information via RS232 to NX-ZX-SERVO16
    {
    if (num_switch)
    {
    if (iSpeed==0) iSpeed=1;
    //send "!SC" ch ra pw.L pw.H $0D
    port.Write("!SC", 3);
    port.Write(cServo,strlen(cServo)); //ch
    DecToHex(iSpeed, cHex); //ra
    SendCommand(cHex);
    DecToHex(iPosition, cHex); //pw 250-2500
    port.Write(cHex, 3); //change data int to hex
    port.Write("$0D", 3);
    }
    }

    this function mean i want to send command code in VC++ from stamp code :
    stamp.JPG

    i think it doesn't work because i send wrong "syntax"
    can you help me!!

    sincerely
    Archy

    p.m. sorry my word it not excellent.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-15 21:42
    Archy, what Im trying to say is, I don't know of any NX-ZX-SERVO16 that we sell, I can't find it anywhere. Where did you buy the NX-ZX-SERVO16?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • ArchyArchy Posts: 5
    edited 2006-12-16 18:41
    sorry this is circuit board in my project.

    link :· http://www.parallax.com/detail.asp?product_id=28023

    Post Edited (Archy) : 12/16/2006 6:52:16 PM GMT
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-19 00:11
    Im sorry Archy, we don't provide support for PC connections to the Servo Controller. We just don't have a working example to provide for our customers. I have looked up the product name in Google that you originally supplied, and it is made by INEX in Thailand who has liscenced the firmware from us. Perhaps they can provide you with assistance. Sorry I can't be more of help to you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-12-19 00:40
    Here is a C# interface that may give you some ideas:

    http://forums.parallax.com/showthread.php?p=611904
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-12-19 01:27
    Thank you Kevin, I was unaware of that program.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
Sign In or Register to comment.