TMCL on UNIX

TMCL on UNIX

Postby lilya » 10 Jun 2007, 13:55

Hello,

I have some problem:

When I am working with Trinamic Controller using PC(RS232) everything is OK.

When I start to use with Trinamic using Unix,SOLARIS (RS232).
The controller does not recieve the message.

Now I am trying to speak with Trinamic by Kermit(Unix->Trinamic) Same problem :
Controller does not recieve the message.

Do you familiar with this problem? What I need to check? Do you have any idea to solve this problem?
Thank you ,
Lilya.
lilya
User
User
 
Posts: 9
Joined: 10 Jun 2007, 13:45

Please search this forum for Linux and UNIX

Postby Andrew » 11 Jun 2007, 00:02

Please search this forum for Linux and UNIX first. Maybe the answer is there.

You do not specify why you think the controller does not receive any signal. So there's nothing to answer.

Except that Solaris 10 x86 had an outdated serial driver (named "asy"). This driver does not work with serial PCI cards.
It does work however with standard PC ports.
An updated "asy" driver should be available by now on the supplier's web site. I also have a copy of "asy", and can provide. Write me privately.

If you use Solaris 10 SPARC, then the problem is elsewhere.
Andrew
 

Postby bjoern » 25 Jun 2007, 09:47

Hello,
have you found a solution to read from the tmc modules under a unix system now? because i have the same problem...
:wink:
bjoern
User
User
 
Posts: 3
Joined: 25 Jun 2007, 09:35

unix

Postby lilya » 25 Jun 2007, 10:27

You need to check:
1) Your SW and controller need to work with same baud rate.
If not , as I saw you don't have reply message from controller.
2) Your comp. need to work with same flow control like Controller.

I think you need to put here more detailes , and only after it somebody will help you.
lilya
User
User
 
Posts: 9
Joined: 10 Jun 2007, 13:45

Postby bjoern » 25 Jun 2007, 11:49

Yes thats right, i cant receive messages from the controller.
the baudrate is the same. 9600bps
here my configuration:
stty -a </dev/ttyS1

speed 9600 baud; rows 0; columns 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig icanon iexten -echo echoe -echok -echonl noflsh -xcase -tostop -echoprt
echoctl echoke
bjoern
User
User
 
Posts: 3
Joined: 25 Jun 2007, 09:35

Postby lilya » 25 Jun 2007, 14:02

I am working with Solaris , after I config my port to "port service disabled" - I got reply messages.
lilya
User
User
 
Posts: 9
Joined: 10 Jun 2007, 13:45

Postby bjoern » 25 Jun 2007, 14:21

can you post the code, where you access the serial port and read from the module?
or are you using a special tool to get access to the serial port?
bjoern
User
User
 
Posts: 3
Joined: 25 Jun 2007, 09:35

Postby lilya » 25 Jun 2007, 15:37

unsigned char CommandROL[9];

tty1= open(argv[1]/*port name*/, O_RDWR|O_SYNC);

CommandROL[0]= 1;//addr
CommandROL[1]= 2;//com num
CommandROL[2]=0;//type
CommandROL[3]=0;// motor bank
CommandROL[4]=0;// val
CommandROL[5]=0;// val
CommandROL[6]=0;// val
CommandROL[7]=0xFA;// val
CommandROL[8]=0xFD;

write(tty1, CommandROL, 9);
lilya
User
User
 
Posts: 9
Joined: 10 Jun 2007, 13:45


Return to Trinamic Motion Control Language (TMCL)

Who is online

Users browsing this forum: No registered users and 1 guest