Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

RM-16202 serial module

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
2 postsPage 1 of 1
2 postsPage 1 of 1

RM-16202 serial module

Post by criadobot » Wed Feb 06, 2008 4:12 pm

Post by criadobot
Wed Feb 06, 2008 4:12 pm

Hello group, I have recently acquired RM-16202 serial module, not well versed in the instructions and syntax, I encourage testing, looking at the instructions in the manual R1, not well versed in the syntax, I had several mistakes compilation, but one of the attempts to step program microcontroller, and it hung am, I am not allowed to get new programs, after a long time trying to get a new program, the microcontroller, and finally got to be stable, I went back to get another program without using the LCD and all good, until proseguí with the program that I wanted to do to see on the screen LCD value of the position of a servo and again has been left hanging the microcontroller, or the LCD.
The program was something so naive as this.

'== Engine diretion setting ======================
DIR G6A, 1,0,0,1,0,0
DIR G6B, 1,1,1,1,1,1
DIR G6C, 0,0,0,0,0,0
DIR G6D, 0,1,1,0,1,0
'== Engine start position read ===================
GETMOTORSET G6A, 1,1,1,1,1,0
GETMOTORSET G6B, 1,1,1,0,0,0
GETMOTORSET G6C, 1,1,1,0,0,0
GETMOTORSET G6D, 1,1,1,1,1,0
5 SPEED
'== Engine power on =============================
MOTOR G24
MOTOROFF G24
A DIM AS INTEGER
DIM B AS INTEGER
========= This part of the top header I always like to initialize the servos .===
LCDINIT inicializo the LCD
CSON shows the cursor
CONT contrast 20

MOTOR 13 define the Serbo I will use
SERVO 13.63 him to command a pulse Serbo 13

A = AIMOTORIN (13) read the position of the servo and keep it in A
LOCATE 0.1 cursor position
PRINT "A" print A
DELAY 5000 break
CLS clears screen

Start:
A = AIMOTORIN (13) read the position of the servo and keep it in A
LOCATE 0.1 cursor position
PRINT "A" print A
DELAY 5000 break
CLS clears screen
GOTO start

The only possible cause, I think it might be that the compiler, he passed a mistake, and it happens to micro and leave it hanging, did any suggestions on how to use an LCD display? Speak.
Hello group, I have recently acquired RM-16202 serial module, not well versed in the instructions and syntax, I encourage testing, looking at the instructions in the manual R1, not well versed in the syntax, I had several mistakes compilation, but one of the attempts to step program microcontroller, and it hung am, I am not allowed to get new programs, after a long time trying to get a new program, the microcontroller, and finally got to be stable, I went back to get another program without using the LCD and all good, until proseguí with the program that I wanted to do to see on the screen LCD value of the position of a servo and again has been left hanging the microcontroller, or the LCD.
The program was something so naive as this.

'== Engine diretion setting ======================
DIR G6A, 1,0,0,1,0,0
DIR G6B, 1,1,1,1,1,1
DIR G6C, 0,0,0,0,0,0
DIR G6D, 0,1,1,0,1,0
'== Engine start position read ===================
GETMOTORSET G6A, 1,1,1,1,1,0
GETMOTORSET G6B, 1,1,1,0,0,0
GETMOTORSET G6C, 1,1,1,0,0,0
GETMOTORSET G6D, 1,1,1,1,1,0
5 SPEED
'== Engine power on =============================
MOTOR G24
MOTOROFF G24
A DIM AS INTEGER
DIM B AS INTEGER
========= This part of the top header I always like to initialize the servos .===
LCDINIT inicializo the LCD
CSON shows the cursor
CONT contrast 20

MOTOR 13 define the Serbo I will use
SERVO 13.63 him to command a pulse Serbo 13

A = AIMOTORIN (13) read the position of the servo and keep it in A
LOCATE 0.1 cursor position
PRINT "A" print A
DELAY 5000 break
CLS clears screen

Start:
A = AIMOTORIN (13) read the position of the servo and keep it in A
LOCATE 0.1 cursor position
PRINT "A" print A
DELAY 5000 break
CLS clears screen
GOTO start

The only possible cause, I think it might be that the compiler, he passed a mistake, and it happens to micro and leave it hanging, did any suggestions on how to use an LCD display? Speak.
criadobot
Robot Builder
Robot Builder
User avatar
Posts: 20
Joined: Tue Feb 05, 2008 11:28 pm
Location: Spain

I have already solved the problem

Post by criadobot » Thu Feb 07, 2008 2:40 pm

Post by criadobot
Thu Feb 07, 2008 2:40 pm

I answered myself, to say that I have already solved the problem, for reasons still unknown to me, I suppose when running a program with problems of syntax, which skipped to the compiler, to govern a larger LCD screen, entering a microcontroller conflict, and remain locked, without the possibility to introduce a new program or reset the microcontroller, the solution is to be faster than billy child, and put a new program for the microcontroller, we need to do super fast, before that the microcontroller, run the program again, it would come again in conflict.
I answered myself, to say that I have already solved the problem, for reasons still unknown to me, I suppose when running a program with problems of syntax, which skipped to the compiler, to govern a larger LCD screen, entering a microcontroller conflict, and remain locked, without the possibility to introduce a new program or reset the microcontroller, the solution is to be faster than billy child, and put a new program for the microcontroller, we need to do super fast, before that the microcontroller, run the program again, it would come again in conflict.
criadobot
Robot Builder
Robot Builder
User avatar
Posts: 20
Joined: Tue Feb 05, 2008 11:28 pm
Location: Spain


2 postsPage 1 of 1
2 postsPage 1 of 1