Mitsubishi Electric CR800 Series Ethernet Function Instruction Manual page 136

Electric industrial robot
Hide thumbs Also See for CR800 Series:
Table of Contents

Advertisement

4 Appendix
■ Header file strdef.h
//************************************************************************************
// Real-time control sample program
// Communication packet data structure definition header file
//************************************************************************************
// strdef.h
#define VER_H7
/*************************************************************************/
/* Joint coordinate system (Set unused axis to 0)
/* Refer to the instruction manual enclosed
/* with each robot for details on each element.
/************************************************************************/
typedef struct{
float
float
float
float
float
float
float
float
} JOINT;
/*************************************************************************/
/* XYZ coordinate system (Set unused axis to 0)
/* Refer to the instruction manual enclosed
/* with each robot for details on each element.
/************************************************************************/
typedef struct{
float
float
float
float
float
float
float
float
} WORLD;
typedef struct{
WORLD w;
unsigned int sflg1;
unsigned int sflg2;
} POSE;
/*************************************************************************/
/* Pulse coordinate system (Set unused axis to 0)
/* These coordinates express each joint
/* with a motor pulse value.
/*************************************************************************/
typedef struct{
long p1; // Motor 1 axis
long p2; // Motor 2 axis
long p3; // Motor 3 axis
long p4; // Motor 4 axis
long p5; // Motor 5 axis
long p6; // Motor 6 axis
long p7; // Additional axis 1 (Motor 7 axis)
4-16
j1;
// J1 axis angle (radian)
j2;
// J2 axis angle (radian)
j3;
// J3 axis angle (radian)
j4;
// J4 axis angle (radian)
j5;
// J5 axis angle (radian)
j6;
// J6 axis angle (radian)
j7;
// Additional axis 1 (J7 axis angle) (radian)
j8;
// Additional axis 2 (J8 axis angle) (radian)
x;
// X axis coordinate value (mm)
y;
// Y axis coordinate value (mm)
z;
// Z axis coordinate value (mm)
a;
// A axis coordinate value (radian)
b;
// B axis coordinate value (radian)
c;
// C axis coordinate value (radian)
l1;
// Additional axis 1 (mm or radian)
l2;
// Additional axis 2 (mm or radian)
// Structural flag 1
// Structural flag 2
*/
*/
*/
*/
*/
*/
*/
*/
*/

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr751 seriesCr750 series

Table of Contents