Set different states on the controller. Also used to start an active job.
Name | Description |
---|---|
SetServos | Turn servos on or off. |
SetHold | Set Hold on or off. |
SetCycleMode | Switch between Step, Cycle and Auto modes. |
DisplayStringToPendant | Show a string on the pendant screen. |
StartJob | Start the active job at the active line. |
Turn servos on or off. Must be in remote mode or play mode to turn on.
StatusInfo SetServos(SignalStatus signal);
signal
[in] Set On to activate servos and off to deactivate. See SignalStatus.
A StatusInfo object indicating if the operation was successful.
//`c` is a MotomanController object that has been created with ` YMConnect.OpenConnection`
status = c.ControlCommands.SetServos(SignalStatus.ON);
Console.WriteLine(status);
//be sure to close `c` with `YMConnect.CloseConnection` when the application is done
Output
Code (0): OK
Set Hold on or off.
If a hold is turned on by YMConnect, It must be turned off by YMConnect.
StatusInfo SetHold(SignalStatus signal);
signal
[in] Set On to activate Hold and off to deactivate. See SignalStatus.
A StatusInfo object indicating if the operation was successful.
//`c` is a MotomanController object that has been created with ` YMConnect.OpenConnection`
status = c.ControlCommands.SetHold(SignalStatus.ON);
Console.WriteLine(status);
//be sure to close `c` with `YMConnect.CloseConnection` when the application is done
Output
Code (0): OK
Switch between Step, Cycle and Auto modes.
StatusInfo SetCycleMode(CycleMode cycleSelect);
cycleSelect
[in] The cycle mode to switch to. See CycleMode.
A StatusInfo object indicating if the operation was successful.
//`c` is a MotomanController object that has been created with ` YMConnect.OpenConnection`
status = c.ControlCommands.SetCycleMode(CycleMode.Automatic);
Console.WriteLine(status);
//be sure to close `c` with `YMConnect.CloseConnection` when the application is done
Code (0): OK
Show a string on the pendant screen.
StatusInfo DisplayStringToPendant(string message);
message
[in] The string to display on the pendant screen. Maximum length is 30 characters.
A StatusInfo object indicating if the operation was successful.
//`c` is a MotomanController object that has been created with ` YMConnect.OpenConnection`
status = c.ControlCommands.DisplayStringToPendant("Hello World");
Console.WriteLine(status);
//be sure to close `c` with `YMConnect.CloseConnection` when the application is done
Code (0): OK
Start the active job at the active line. This function can also be used to continue a job
that has been paused.
StatusInfo StartJob();
None.
A StatusInfo object indicating if the operation was successful.
//`c` is a MotomanController object that has been created with ` YMConnect.OpenConnection`
status = c.ControlCommands.StartJob();
Console.WriteLine(status);
//be sure to close `c` with `YMConnect.CloseConnection` when the application is done
Code (0): OK