December 18, 2018, 11:54:27 PM
Robotforum | Industrial Robots Community

 Syntax for command files (.CM)


Author Topic:  Syntax for command files (.CM)  (Read 24657 times)

0 Members and 1 Guest are viewing this topic.

September 01, 2017, 05:11:59 PM
Reply #25
Offline

bencor21


If the .tp file already exists in the Robot controller, say TEST.tp & the TPLOAD UT1:Test.tp command is given, there will be a message displayed "Program already exists" & you will have it hit F4 (OK), it's the only choice given.  At that point, the .cm file has not completed.  Just to be on the redundant side, on the line before the TPLOAD command, give it the DELTP TEST, & even if that file does not exist in the Robot, all will be fine.

Today at 11:54:27 PM
Reply #26

Advertisement

Guest

September 01, 2017, 05:16:39 PM
Reply #26
Offline

bidzej


great, thanks! This is actually what I was already missing a couple of times, never came to an idea to try that one.

September 06, 2017, 05:52:02 PM
Reply #27
Offline

robotomation


Another way to work around the overwriting problem is to use the Karel equivalent in the CM file:

KCL LOAD TP <FILENAME> <OVERWRITE - OPTIONAL>
KCL LOAD TP ALARM OVERWRITE

Instead of:
TPLOAD ALARM.TP (which will abort the CM if the file already exists)
- - - MH - - -

September 07, 2017, 12:28:00 PM
Reply #28
Offline

bidzej


actually that is how I solved the problem some time ago :)

September 08, 2017, 12:24:36 PM
Reply #29
Offline

mortoch


Will these work in the RJ2?
We have a sh*t load of these dinosaurs they bought from a defunct GM plant for dirt.
 :wallbash:

September 08, 2017, 12:45:34 PM
Reply #30
Offline

bidzej


I'm not sure, I've seen something similar on the R-J2's but these were called .cf files and were actually a set of KCL commands.

September 09, 2017, 01:08:25 PM
Reply #31
Offline

rf103



yes. According to the Karel manual (Chapter: File System): ".CF: KCL command files are ASCII files that contain a sequence of KCL commands for a command procedure."

Today at 11:54:27 PM
Reply #32

Advertisement

Guest

September 13, 2017, 07:54:55 PM
Reply #32
Offline

cliff.knasinski


Do you have example code of how User Frames can be created using a .cm program?  I am able to create User Models and CPC models easily, but having trouble finding the variables needed to create frames in the system for CPC user frame definitions.

October 05, 2017, 12:46:35 PM
Reply #33
Offline

bidzej


try finding the appropriate variables in the system and then editing them in the .CM file.

August 03, 2018, 09:01:36 AM
Reply #34
Offline

Likoli



Does anyone know how to create an image backup on the USB instead of an AOA?

August 21, 2018, 10:29:01 AM
Reply #35
Offline

bidzej


the code that you quoted seems to create both AoA and Image backup.
I've found some other instruction regarding backups, it's called ALL_BKUP, so it probably creates only an AoA.

September 11, 2018, 07:37:07 AM
Reply #36
Offline

bidzej


Added @path:\file.cm instruction to OTHER INSTRUCTIONS section.
It executes another .CM file from within the current .CM.

September 18, 2018, 07:32:22 PM
Reply #37
Offline

Nation


Figured out another command:

DELAY #

Delays execution of the .cm file by that many milliseconds. DELAY 1000 will wait 1 second.
Check out the position converter I wrote here!


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
S controller command syntax

Started by tdevine77 on Kawasaki Robots

4 Replies
2574 Views
Last post September 09, 2015, 10:15:33 AM
by kwakisaki
xx
Syntax problem

Started by zicki_88 on KUKA Robot Forum

3 Replies
270 Views
Last post July 11, 2018, 10:15:21 AM
by Fubini
xx
Syntax of INTERRUPT

Started by rmacumber on KUKA Robot Forum

5 Replies
223 Views
Last post October 22, 2018, 04:04:30 PM
by panic mode
xx
Syntax error

Started by Acapulka on Fanuc Robot Forum

4 Replies
1162 Views
Last post March 13, 2017, 04:48:52 PM
by Acapulka