omron — 4-1-1 Program Structure

4 Implementation Example of Dynamic Pick-and-place Equipment CALL rm.execute3($ip, "/ApplicationManager1/PM_Start", "Execute", 0, $arg s[], 3, status) IF status TYPE "Failed to execute: error code ", status END .END  Program to Call C# Program for Stopping (px.stop) This section describes the program to call the C# program for stopping the Process Manager. An example of a program is provided below. Additional Information You cannot use the program with Sysmac Studio version 1.42. Use the program with Sysmac Studio version 1.43 or higher.

On Sysmac Studio ver.1.42, go online with the IPC Application Controller, select ApplicationManager1 - C# Program - PM_Stop and click the Start button on the Task Status Control pane. .PROGRAM px.stop() GLOBAL $ip AUTO REAL status TYPE "Start PM_Stop" CALL rm.execute3($ip, "/ApplicationManager1/PM_Stop", "Execute", 0, $arg s[], 3, status) IF status TYPE "Failed to execute: error code ", status END .END  Status Monitoring Program (supervisor) The status monitoring program (supervisor) monitors the regular processing program "control" to ensure that the program does not stop abnormally while the sequence control is in RUN mode.

When it detects sequence control going into PROGRAM mode, it stops the regular processing con- trol program "control" and the Application Manager. 4-8 NJ-series Robot Integrated System Startup Guide (O049)