January 17, 2019, 09:55:43 PM
Robotforum | Industrial Robots Community

 Syntax for command files (.CM)


Author Topic:  Syntax for command files (.CM)  (Read 25337 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.
  • Like    Thanks

Today at 09:55:43 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.
  • Like    Thanks

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)
  • Like    Thanks
- - - MH - - -

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

bidzej


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

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:
  • Like    Thanks

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.
  • Like    Thanks

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."
  • Like    Thanks

Today at 09:55:43 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.
  • Like    Thanks

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.
  • Like    Thanks

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?
  • Like    Thanks

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.
  • Like    Thanks

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.
  • Like    Thanks

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.
  • Like    Thanks
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
2623 Views
Last post September 09, 2015, 10:15:33 AM
by kwakisaki
xx
Syntax Help using LPOS

Started by ovoyevoda on Fanuc Robot Forum

14 Replies
11988 Views
Last post January 23, 2015, 05:58:55 PM
by ovoyevoda
xx
Syntax problem

Started by zicki_88 on KUKA Robot Forum

3 Replies
299 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
270 Views
Last post October 22, 2018, 04:04:30 PM
by panic mode