Downloading the programming – Delta RMC151 User Manual
Page 313
5 Programming
5. In the Task columns, choose the user program you wish to run. You must have
created a user program first.
6. To apply the changes to the RMC, right-click Programming and click Download
Programs.
Starting a User Program when the RMC Powers Up
To automatically start a user program when the RMC powers up:
1. Create a user program that contains the commands you would like to run when the
RMC powers up.
2. In the Program Triggers, create a condition using the _FirstScan bit as described
above. The condition should be "_FirstScan".
3. For the condition you entered in the Program Triggers, choose the user program on a
task.
4. On the RUN/PROGRAM page of the Program Properties dialog, set the RMC to start
up in RUN Mode.
5. Update Flash.
6. Cycle power to the controller. You can view the Event Log Monitor to see if the user
program did start immediately after the RMC powered up.
See the Example: Closed Loop Motion on Startup for a detailed walk-through example.
Running a User Program on Startup Only
If you wish to have the Program Triggers start a user program only when the RMC starts
up, and not each time it enters RUN mode thereafter (such as after you download the
Programming node), do the following:
1. Create a variable called Running, and set the Default Value to 0.
2. Create the following Program Triggers condition:
_FirstScan and Running = 0
3. In the first step of the user program, add an Expression (113) command with the
following expression:
Running := 1
When the RMC starts up in RUN mode, it will run the user program. However, it if exits
and enters RUN mode after that, the user program will not start because the variable
Running is not zero.
Disabling the Program Triggers Task
Sometimes when troubleshooting or setting up the RMC, you may wish to be in RUN Mode
but have the Program Triggers disabled.
To disable the Program Triggers:
1. In the Project pane, expand the desired controller.
2. Right-click Programming and click Properties.
3. On the General page, in the Program Triggers section, set the Program Triggers to
Disabled. Click OK.
4. In the Project pane, right-click Programming and click Download Programs to
apply the changes to the RMC.
Note:
The Program Triggers will never run when the RMC is in PROGRAM Mode.
5.6. Downloading the Programming
deltamotion.com
293