K-IDE support forum
Find all information about Kawasaki's Integrated Development Environment

Command ONE

#1 by Lomba1986 , Mon Dec 09, 2024 2:17 pm

Dear all,
I don't know if here is the right place to ask or not.

Do someone ever use command ONE? Is a command that launch a task if one error occured but on the documentation there is no example.
Do someone has an example?

Thanks in advance


 
Lomba1986
Posts: 29
Date registered 06.21.2024


RE: Command ONE

#2 by cquante , Tue Dec 17, 2024 4:14 pm

I didn't ever used "ONE", but I guess you have to place the command in one of the first lines of your PROGRAM to tell the controller what to if an error occured:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 

.PROGRAM Main ()
;
;
ONE PrintErr
;
; other commands here
:
.END
 

.PROGRAM PrintErr ()
PRINT "Error!"
RETURNE
.END
 
 


Christian Quante
Technical Sales
Sales Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany


 
cquante
Posts: 326
Date registered 12.20.2019


RE: Command ONE

#3 by Lomba1986 , Mon Jan 20, 2025 10:02 pm

Thanks,
I already tried to do this, but the controller seemes ignore the command...


 
Lomba1986
Posts: 29
Date registered 06.21.2024


RE: Command ONE

#4 by cquante , Tue Jan 21, 2025 2:02 pm

I don't think the control unit simply ignores it. My colleague sent me a little test program that does exactly what you expect. These are the inputs and outputs of the terminal:

ONE terminal.png - Bild entfernt (keine Rechte)


Christian Quante
Technical Sales
Sales Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany

Attachment:
No rights to view attachments. Only file names are shown. Register now!
sample_one.txt

 
cquante
Posts: 326
Date registered 12.20.2019


   

Sourcecode inspection



Xobor Xobor Community Software
Datenschutz