Classes | Macros | Enumerations | Functions
Controller.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Controller
 

Macros

#define CONTROLLER_STATUS_UPDATE_PERIOD   10
 
#define ERROR_MSG_MAX_SIZE   64
 
#define INVALID_SOCKET   -1
 
#define INVALID_TASK   -1
 
#define IO_FEEDBACK_CONNECTSERVERRUNNING   11123
 
#define IO_FEEDBACK_FAILURE   11127
 
#define IO_FEEDBACK_INITIALIZATION_DONE   11122
 
#define IO_FEEDBACK_IOSERVERCONNECTED   11126
 
#define IO_FEEDBACK_MOTIONSERVERCONNECTED   11124
 
#define IO_FEEDBACK_MP_INCMOVE_DONE   11121
 
#define IO_FEEDBACK_RESERVED_1   11130
 
#define IO_FEEDBACK_RESERVED_2   11131
 
#define IO_FEEDBACK_RESERVED_3   11132
 
#define IO_FEEDBACK_RESERVED_4   11133
 
#define IO_FEEDBACK_RESERVED_5   11134
 
#define IO_FEEDBACK_RESERVED_6   11135
 
#define IO_FEEDBACK_RESERVED_7   11136
 
#define IO_FEEDBACK_RESERVED_8   11137
 
#define IO_FEEDBACK_STATESERVERCONNECTED   11125
 
#define IO_FEEDBACK_WAITING_MP_INCMOVE   11120
 
#define IPPROTO_TCP   6
 
#define MASK_ISALARM_ACTIVEALARM   0x02
 
#define MASK_ISALARM_ACTIVEERROR   0x01
 
#define MAX_CONTROLLABLE_GROUPS   4
 
#define MAX_IO_CONNECTIONS   1
 
#define MAX_MOTION_CONNECTIONS   1
 
#define MAX_STATE_CONNECTIONS   4
 
#define START_MAX_PULSE_DEVIATION   30
 
#define TCP_PORT_IO   50242
 
#define TCP_PORT_MOTION   50240
 
#define TCP_PORT_STATE   50241
 

Enumerations

enum  IoStatusIndex {
  IO_ROBOTSTATUS_ALARM_MAJOR = 0, IO_ROBOTSTATUS_ALARM_MINOR, IO_ROBOTSTATUS_ALARM_SYSTEM, IO_ROBOTSTATUS_ALARM_USER,
  IO_ROBOTSTATUS_ERROR, IO_ROBOTSTATUS_PLAY, IO_ROBOTSTATUS_TEACH, IO_ROBOTSTATUS_REMOTE,
  IO_ROBOTSTATUS_OPERATING, IO_ROBOTSTATUS_HOLD, IO_ROBOTSTATUS_SERVO, IO_ROBOTSTATUS_ESTOP_EX,
  IO_ROBOTSTATUS_ESTOP_PP, IO_ROBOTSTATUS_ESTOP_CTRL, IO_ROBOTSTATUS_WAITING_ROS, IO_ROBOTSTATUS_INECOMODE,
  IO_ROBOTSTATUS_MAX
}
 
enum  ROS_ASSERTION_CODE { SUBCODE_INVALID_AXIS_TYPE }
 

Functions

void Db_Print (char *msgFormat,...)
 
void motoRosAssert (BOOL mustBeTrue, ROS_ASSERTION_CODE subCodeIfFalse, char *msgFmtIfFalse,...)
 
void Ros_Controller_ConnectionServer_Start (Controller *controller)
 
void Ros_Controller_ErrNo_ToString (int errNo, char errMsg[ERROR_MSG_MAX_SIZE], int errMsgSize)
 
BOOL Ros_Controller_GetIOState (ULONG signal)
 
int Ros_Controller_GetNotReadySubcode (Controller *controller)
 
BOOL Ros_Controller_Init (Controller *controller)
 
BOOL Ros_Controller_IsAlarm (Controller *controller)
 
BOOL Ros_Controller_IsEcoMode (Controller *controller)
 
BOOL Ros_Controller_IsError (Controller *controller)
 
BOOL Ros_Controller_IsEStop (Controller *controller)
 
BOOL Ros_Controller_IsHold (Controller *controller)
 
BOOL Ros_Controller_IsMotionReady (Controller *controller)
 
BOOL Ros_Controller_IsOperating (Controller *controller)
 
BOOL Ros_Controller_IsPflActive (Controller *controller)
 
BOOL Ros_Controller_IsPlay (Controller *controller)
 
BOOL Ros_Controller_IsRemote (Controller *controller)
 
BOOL Ros_Controller_IsServoOn (Controller *controller)
 
BOOL Ros_Controller_IsTeach (Controller *controller)
 
BOOL Ros_Controller_IsValidGroupNo (Controller *controller, int groupNo)
 
BOOL Ros_Controller_IsWaitingRos (Controller *controller)
 
void Ros_Controller_SetIOState (ULONG signal, BOOL status)
 
void Ros_Controller_StatusInit (Controller *controller)
 
BOOL Ros_Controller_StatusRead (Controller *controller, USHORT ioStatus[IO_ROBOTSTATUS_MAX])
 
int Ros_Controller_StatusToMsg (Controller *controller, SimpleMsg *sendMsg)
 
BOOL Ros_Controller_StatusUpdate (Controller *controller)
 
void Ros_Sleep (float milliseconds)
 

Macro Definition Documentation

#define CONTROLLER_STATUS_UPDATE_PERIOD   10

Definition at line 78 of file Controller.h.

#define ERROR_MSG_MAX_SIZE   64

Definition at line 74 of file Controller.h.

#define INVALID_SOCKET   -1

Definition at line 67 of file Controller.h.

#define INVALID_TASK   -1

Definition at line 68 of file Controller.h.

#define IO_FEEDBACK_CONNECTSERVERRUNNING   11123

Definition at line 42 of file Controller.h.

#define IO_FEEDBACK_FAILURE   11127

Definition at line 46 of file Controller.h.

#define IO_FEEDBACK_INITIALIZATION_DONE   11122

Definition at line 41 of file Controller.h.

#define IO_FEEDBACK_IOSERVERCONNECTED   11126

Definition at line 45 of file Controller.h.

#define IO_FEEDBACK_MOTIONSERVERCONNECTED   11124

Definition at line 43 of file Controller.h.

#define IO_FEEDBACK_MP_INCMOVE_DONE   11121

Definition at line 40 of file Controller.h.

#define IO_FEEDBACK_RESERVED_1   11130

Definition at line 48 of file Controller.h.

#define IO_FEEDBACK_RESERVED_2   11131

Definition at line 49 of file Controller.h.

#define IO_FEEDBACK_RESERVED_3   11132

Definition at line 50 of file Controller.h.

#define IO_FEEDBACK_RESERVED_4   11133

Definition at line 51 of file Controller.h.

#define IO_FEEDBACK_RESERVED_5   11134

Definition at line 52 of file Controller.h.

#define IO_FEEDBACK_RESERVED_6   11135

Definition at line 53 of file Controller.h.

#define IO_FEEDBACK_RESERVED_7   11136

Definition at line 54 of file Controller.h.

#define IO_FEEDBACK_RESERVED_8   11137

Definition at line 55 of file Controller.h.

#define IO_FEEDBACK_STATESERVERCONNECTED   11125

Definition at line 44 of file Controller.h.

#define IO_FEEDBACK_WAITING_MP_INCMOVE   11120

Definition at line 39 of file Controller.h.

#define IPPROTO_TCP   6

Definition at line 71 of file Controller.h.

#define MASK_ISALARM_ACTIVEALARM   0x02

Definition at line 80 of file Controller.h.

#define MASK_ISALARM_ACTIVEERROR   0x01

Definition at line 81 of file Controller.h.

#define MAX_CONTROLLABLE_GROUPS   4

Definition at line 64 of file Controller.h.

#define MAX_IO_CONNECTIONS   1

Definition at line 57 of file Controller.h.

#define MAX_MOTION_CONNECTIONS   1

Definition at line 58 of file Controller.h.

#define MAX_STATE_CONNECTIONS   4

Definition at line 59 of file Controller.h.

#define START_MAX_PULSE_DEVIATION   30

Definition at line 76 of file Controller.h.

#define TCP_PORT_IO   50242

Definition at line 37 of file Controller.h.

#define TCP_PORT_MOTION   50240

Definition at line 35 of file Controller.h.

#define TCP_PORT_STATE   50241

Definition at line 36 of file Controller.h.

Enumeration Type Documentation

Enumerator
IO_ROBOTSTATUS_ALARM_MAJOR 
IO_ROBOTSTATUS_ALARM_MINOR 
IO_ROBOTSTATUS_ALARM_SYSTEM 
IO_ROBOTSTATUS_ALARM_USER 
IO_ROBOTSTATUS_ERROR 
IO_ROBOTSTATUS_PLAY 
IO_ROBOTSTATUS_TEACH 
IO_ROBOTSTATUS_REMOTE 
IO_ROBOTSTATUS_OPERATING 
IO_ROBOTSTATUS_HOLD 
IO_ROBOTSTATUS_SERVO 
IO_ROBOTSTATUS_ESTOP_EX 
IO_ROBOTSTATUS_ESTOP_PP 
IO_ROBOTSTATUS_ESTOP_CTRL 
IO_ROBOTSTATUS_WAITING_ROS 
IO_ROBOTSTATUS_INECOMODE 
IO_ROBOTSTATUS_MAX 

Definition at line 83 of file Controller.h.

Enumerator
SUBCODE_INVALID_AXIS_TYPE 

Definition at line 181 of file Controller.h.

Function Documentation

void Db_Print ( char *  msgFormat,
  ... 
)

Definition at line 982 of file Controller.c.

void motoRosAssert ( BOOL  mustBeTrue,
ROS_ASSERTION_CODE  subCodeIfFalse,
char *  msgFmtIfFalse,
  ... 
)

Definition at line 951 of file Controller.c.

void Ros_Controller_ConnectionServer_Start ( Controller controller)

Definition at line 314 of file Controller.c.

void Ros_Controller_ErrNo_ToString ( int  errNo,
char  errMsg[ERROR_MSG_MAX_SIZE],
int  errMsgSize 
)

Definition at line 828 of file Controller.c.

BOOL Ros_Controller_GetIOState ( ULONG  signal)

Definition at line 774 of file Controller.c.

int Ros_Controller_GetNotReadySubcode ( Controller controller)

Definition at line 558 of file Controller.c.

BOOL Ros_Controller_Init ( Controller controller)

Definition at line 99 of file Controller.c.

BOOL Ros_Controller_IsAlarm ( Controller controller)

Definition at line 460 of file Controller.c.

BOOL Ros_Controller_IsEcoMode ( Controller controller)

Definition at line 503 of file Controller.c.

BOOL Ros_Controller_IsError ( Controller controller)

Definition at line 468 of file Controller.c.

BOOL Ros_Controller_IsEStop ( Controller controller)

Definition at line 508 of file Controller.c.

BOOL Ros_Controller_IsHold ( Controller controller)

Definition at line 493 of file Controller.c.

BOOL Ros_Controller_IsMotionReady ( Controller controller)

Definition at line 520 of file Controller.c.

BOOL Ros_Controller_IsOperating ( Controller controller)

Definition at line 488 of file Controller.c.

BOOL Ros_Controller_IsPflActive ( Controller controller)

Definition at line 543 of file Controller.c.

BOOL Ros_Controller_IsPlay ( Controller controller)

Definition at line 473 of file Controller.c.

BOOL Ros_Controller_IsRemote ( Controller controller)

Definition at line 483 of file Controller.c.

BOOL Ros_Controller_IsServoOn ( Controller controller)

Definition at line 498 of file Controller.c.

BOOL Ros_Controller_IsTeach ( Controller controller)

Definition at line 478 of file Controller.c.

BOOL Ros_Controller_IsValidGroupNo ( Controller controller,
int  groupNo 
)

Definition at line 255 of file Controller.c.

BOOL Ros_Controller_IsWaitingRos ( Controller controller)

Definition at line 515 of file Controller.c.

void Ros_Controller_SetIOState ( ULONG  signal,
BOOL  status 
)

Definition at line 793 of file Controller.c.

void Ros_Controller_StatusInit ( Controller controller)

Definition at line 431 of file Controller.c.

BOOL Ros_Controller_StatusRead ( Controller controller,
USHORT  ioStatus[IO_ROBOTSTATUS_MAX] 
)

Definition at line 687 of file Controller.c.

int Ros_Controller_StatusToMsg ( Controller controller,
SimpleMsg sendMsg 
)

Definition at line 656 of file Controller.c.

BOOL Ros_Controller_StatusUpdate ( Controller controller)

Definition at line 695 of file Controller.c.

void Ros_Sleep ( float  milliseconds)

Definition at line 999 of file Controller.c.



motoman_driver
Author(s): Jeremy Zoss (Southwest Research Institute), Ted Miller (MotoROS) (Yaskawa Motoman), Eric Marcil (MotoROS) (Yaskawa Motoman)
autogenerated on Sat May 8 2021 02:27:44