March 20, 2019, 01:25:34 AM
Robotforum | Industrial Robots Community

 Calling Main program

Author Topic:  Calling Main program  (Read 332 times)

0 Members and 1 Guest are viewing this topic.

January 02, 2019, 03:18:00 AM
Read 332 times

Robot freak

 Following is my program

.PROGRAM main_module() #1003
  CALL reset
  CALL home
  CALL m_off
  CALL mac_1
  CALL mac_2

Main_module is my Main program and reset, home,..., Mac_2 are my subprograms. so what happens now is, If operators do manual teaching in some other routines they forget to select the Main_module directory before the auto cycle. So robot starts to execute in the selected directory. Is there any options to call the main program before starting?? In other robots, I configure the dedicated signal to call the main program. If the operator turns to the auto mode I will reset and start from the main program. I believe Kawasaki has this option, but I don't know the option name.  :help:
« Last Edit: January 02, 2019, 03:19:34 AM by Robot freak »

Today at 01:25:34 AM
Reply #1



January 02, 2019, 09:38:26 AM
Reply #1


Global Moderator
A lot of programmers over complicate this process by using background tasks to constantly monitor the stages in the process and automate it via coding it in.

The older generation of Kawasaki Users, used the simplest method with the 'pgxxx' naming convention for programs to use the RPS function.
- This allows for reading in a bitmap of signals and then selecting the relevant program associated with the consecutive 'pgxxx' no.s.
- Check the External I/O Manual for further details.

If you do not wish to use the RPS function to the fullest, but be able to control your main routine in the way you describe, the simplest method is below:

- Rename your main routine to pg0 (if not, you will receive 'Program does not exist' messages).
- Goto dedicated inputs and allocate Ext Program Reset to an electrical input available on the IO board or by software signal to a button on the IF Panel.
- This signal will reset the current selected program to step 1.
- If RPS (system switch) is ON, instead this will re-prime pg0 to step 1 and not the current selected program.

If RPS is ever turned OFF, then it will only reset the current selected program to step 1, so you need to make sure RPS is always ON.

Things to consider:
- A suitable way of making sure RPS is always ON (limit operator access to keyboard/functional change or insert command in PC Task).
- A suitable way of supplying the Ext Program Reset Input.

Hope this helps............
« Last Edit: January 02, 2019, 10:04:09 AM by kwakisaki »

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

Calling Main Program from an Subroutine

Started by canvis on Fanuc Robot Forum

3 Replies
Last post March 14, 2016, 06:51:26 PM
by canvis
Start a Program using STYLE Program calling when not at Home

Started by antoronson05 on Fanuc Robot Forum

1 Replies
Last post March 31, 2018, 01:37:34 AM
by rafahil
sub program calling

Started by ste_605 on KUKA Robot Forum

2 Replies
Last post July 14, 2018, 03:02:04 PM
by NPG92
program calling

Started by Robotdione on Fanuc Robot Forum

2 Replies
Last post March 09, 2017, 10:42:46 AM
by bidzej