RS 232 AC Servo serial comunication
hello guys.
i wonder if has experienced ac servo motor serial communication.
i grateful can provide.
i have 1 servo china and arduino mega.
using serial port mini rs232 ttl converter adaptor module board max3232 arduino.
i made communication driver , can turn on servo motor hire code:
so need write correct parameters hire position,speed , torque.
i red servo manual on 20 times cannot found way how it.
i send email seller 3 times no respond.
hire manual please if know help.thank you!
https://www.cnc.info.pl/files/new_c_164.pdf
i wonder if has experienced ac servo motor serial communication.
i grateful can provide.
i have 1 servo china and arduino mega.
using serial port mini rs232 ttl converter adaptor module board max3232 arduino.
i made communication driver , can turn on servo motor hire code:
code: [select]
#include <modbusmaster.h>
// instantiate modbusmaster object
modbusmaster node;
void setup()
{
// use serial (port 0); initialize modbus communication baud rate
serial.begin(9600);
serial1.begin(9600, serial_8n2);
// communicate modbus slave id 2 on serial (port 0)
node.begin(2, serial1);
}
void loop()
{
static uint32_t i;
uint8_t j, result;
uint16_t data[6];
result = node.writesingleregister(3, 1); //so in code number 3 parameter turning motor on or off.communication working because when upload code 1 motor power.if upload (3,0) motor turn off.and can change parameters via code dont know witch position or turning cw or ccw speed , torque.
}
so need write correct parameters hire position,speed , torque.
i red servo manual on 20 times cannot found way how it.
i send email seller 3 times no respond.
hire manual please if know help.thank you!
https://www.cnc.info.pl/files/new_c_164.pdf
i did read of manual. after studying bit of communications section, i, personally, not consider using arduino of type try communicate , control such device. , have many years of communication programming.
even pc , having control unit set , running machine, programming take 12 months, or so. need realize there more sending commands. need receive feedback messages , handle errors reported.
paul
even pc , having control unit set , running machine, programming take 12 months, or so. need realize there more sending commands. need receive feedback messages , handle errors reported.
paul
Arduino Forum > Using Arduino > Project Guidance > RS 232 AC Servo serial comunication
arduino
Comments
Post a Comment