Make a user program always run

Example user programs, projects, functions, program code, etc. for performing specific tasks

Make a user program always run

Postby Paul Huumala » Wed Dec 20, 2017 2:56 pm

A user program can be made to always run when in RUN mode. The RMC can be set to startup in RUN mode, so the user program runs at startup. To make a user program always run:

1. Dedicate a task for this user program
    a. Decide which task to run the user program on. Make sure no other programs will be running on this task.
2. Make sure the task does not stop when an axis halts
    a. In the Project View, right-click Programming and select Properties.
    programming.png (15.08 KiB) Viewed 45 times

    b. On the Halts page, select Stop the Following Tasks.
    c. To remove the task from the halt list, click the Task # (example is Task 1) to remove the check mark.
    halts.png (18.98 KiB) Viewed 52 times

3. Start the user program when the RMC enters Run mode
    a. In the Project View, expand Programming and double-click Program Triggers.
    b. Make a condition _FirstScan and in the desired task column, select the desired user program.
    program triggers.png
    program triggers.png (8.83 KiB) Viewed 52 times

4. RMC startup in Run Mode (optional)
    a. In the Project View, right-click Programming and select Properties.
    b. On the RUN/PROGRAM page, select RUN.
    RunProgram Options.png
    RunProgram Options.png (20.51 KiB) Viewed 45 times

5. Download and save
    a. Right-click Programming and select Download Programs to Controller.
    b. Save the project and Update Flash.
Paul Huumala
Posts: 1
Joined: Wed Dec 20, 2017 12:01 pm

Return to Examples

Who is online

Users browsing this forum: No registered users and 1 guest