|
Robotics Library
0.6.2
|
Go to the documentation of this file.
27 #ifndef _RL_HAL_MITSUBISHIH7_H_
28 #define _RL_HAL_MITSUBISHIH7_H_
221 const ::std::size_t&
dof,
222 const ::std::string&
server,
223 const ::std::string&
client,
224 const unsigned short int&
tcp = 10001,
225 const unsigned short int&
udp = 10000,
248 void cntlCmd(
const bool& doOn)
const;
260 void datinstCmd(const ::std::string& j1, const ::std::string& j2, const ::std::string& j3, const ::std::string& j4, const ::std::string& j5, const ::std::string& j6, const ::std::string& checksum)
const;
274 void datinstCmd(const ::std::string& j1, const ::std::string& j2, const ::std::string& j3, const ::std::string& j4, const ::std::string& j5, const ::std::string& j6, const ::std::string& j7, const ::std::string& j8, const ::std::string& checksum)
const;
293 void emdatCmd(const ::std::string& program)
const;
300 ::std::string
errormesCmd(
const int& errorNo)
const;
306 void execCmd(const ::std::string& instruction)
const;
320 void getMotorPulse(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 >& p)
const;
329 void hndCmd(
const bool& doOpen,
const int& handNo)
const;
342 void inEqualsCmd(const ::std::size_t& inNo, const ::std::string& inVal)
const;
348 void loadCmd(const ::std::string& programName)
const;
350 void loadProgram(const ::std::string& name, const ::std::string& program)
const;
364 void outEqualsCmd(const ::std::size_t& outNo, const ::std::string& outVal)
const;
383 void runCmd(const ::std::string& programName,
const bool& doModeCycle =
false)
const;
394 void setInput(
const uint16_t& bitTop);
400 void setMotorPulse(const ::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 >& p);
402 void setOutput(
const uint16_t& bitTop,
const uint16_t& bitMask,
const uint16_t& ioData);
415 void srvCmd(
const bool& doOn)
const;
600 #endif // _RL_HAL_MITSUBISHIH7_H_
uint16_t recvType3
Reply data type designation.
Definition: MitsubishiH7.h:564
float c
C axis coordinate value [rad].
Definition: MitsubishiH7.h:458
void shut()
Definition: MitsubishiH7.cpp:998
bool isPseudoInput
Pseudo input.
Definition: MitsubishiH7.h:143
void setMotorPulse(const ::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &p)
Definition: MitsubishiH7.cpp:948
bool isTb
T/B (RS-422).
Definition: MitsubishiH7.h:191
float j6
J6 axis angle [rad].
Definition: MitsubishiH7.h:478
void calibCmd(CalibState &state) const
The install status is read.
Definition: MitsubishiH7.cpp:144
bool isServoOn
Servo OFF / Servo ON.
Definition: MitsubishiH7.h:121
Definition: JointPositionSensor.h:39
void open()
Definition: MitsubishiH7.cpp:776
uint16_t command
Command.
Definition: MitsubishiH7.h:528
Definition: MitsubishiH7.h:129
bool isStop
STOP.
Definition: MitsubishiH7.h:133
@ MODE_JOINT
Definition: MitsubishiH7.h:52
bool isIo
I/O.
Definition: MitsubishiH7.h:195
void outEqualsCmd(const ::std::size_t &outNo, const ::std::string &outVal) const
The output signal is compelling output.
Definition: MitsubishiH7.cpp:784
Mode
Definition: MitsubishiH7.h:51
Definition: MitsubishiH7.h:189
RunSts runSts
Run status.
Definition: MitsubishiH7.h:167
Definition: MitsubishiH7.h:207
uint16_t recvType1
Reply data type designation.
Definition: MitsubishiH7.h:552
float j1
J1 axis angle [rad].
Definition: MitsubishiH7.h:468
@ HANDSTS_NOTUSED
Definition: MitsubishiH7.h:59
bool isMlockOn
MLOCK OFF / MLOCK ON.
Definition: MitsubishiH7.h:115
void startProgram(const ::std::string &name) const
Definition: MitsubishiH7.cpp:1074
@ HANDSTS_OPEN
Hand open.
Definition: MitsubishiH7.h:61
uint16_t haltIoData
Definition: MitsubishiH7.h:578
uint16_t reserve2
Reservation.
Definition: MitsubishiH7.h:560
Definition: MitsubishiH7.h:495
uint32_t cCount
Counter for communication data.
Definition: MitsubishiH7.h:550
@ HANDTYPE_NOTUSED
Definition: MitsubishiH7.h:68
Mode getMode() const
Definition: MitsubishiH7.cpp:571
Definition: MitsubishiH7.h:86
Hand HandState[8]
Definition: MitsubishiH7.h:154
void runCmd(const ::std::string &programName, const bool &doModeCycle=false) const
The program is started.
Definition: MitsubishiH7.cpp:838
void getJointPosition(::rl::math::Vector &q) const
Definition: MitsubishiH7.cpp:543
void step()
Definition: MitsubishiH7.cpp:1255
void dstateCmd(StopState &state) const
The stop state is read.
Definition: MitsubishiH7.cpp:253
bool isWait
WAIT.
Definition: MitsubishiH7.h:135
float j7
Additional axis 1 (J7 axis angle) [mm or rad].
Definition: MitsubishiH7.h:480
void stopCmd() const
The start is stopped.
Definition: MitsubishiH7.cpp:1327
bool isEmgStop
EMG STOP.
Definition: MitsubishiH7.h:131
uint16_t bitTop
Head bit no.
Definition: MitsubishiH7.h:542
HandSts
Definition: MitsubishiH7.h:58
void stateCmd(RunState &state) const
The run state is read.
Definition: MitsubishiH7.cpp:1083
void hndCmd(const bool &doOpen, const int &handNo) const
The hand is openend and closed.
Definition: MitsubishiH7.cpp:611
MxtCommand out
Definition: MitsubishiH7.h:584
float j3
J3 axis angle [rad].
Definition: MitsubishiH7.h:472
void setFilter(const ::std::size_t &filter)
Definition: MitsubishiH7.cpp:888
void halt()
Definition: MitsubishiH7.cpp:605
void saveCmd() const
The content of the edit is preserved and the program is closed.
Definition: MitsubishiH7.cpp:856
bool isPc
P/C (RS-232C).
Definition: MitsubishiH7.h:193
MechInfo mechInfo
Mech info.
Definition: MitsubishiH7.h:175
bool isDefined
Install status.
Definition: MitsubishiH7.h:149
bool isRunning
Running.
Definition: MitsubishiH7.h:90
UdpSocket * udp
Definition: MitsubishiH7.h:595
bool isChanged
Changed.
Definition: MitsubishiH7.h:92
::std::string errormesCmd(const int &errorNo) const
The content of the error is read.
Definition: MitsubishiH7.cpp:451
int errorNo
Error number (0: no error).
Definition: MitsubishiH7.h:171
TaskCond
Definition: MitsubishiH7.h:76
StopSts stopSts
Stop status.
Definition: MitsubishiH7.h:169
int32_t p8
Additional axis 2 (Motor 8 axis).
Definition: MitsubishiH7.h:511
void stpsigCmd(StopSignalState &state) const
The state of the stop signal is read.
Definition: MitsubishiH7.cpp:1348
void newCmd() const
The program is closed annulling the content of the edit.
Definition: MitsubishiH7.cpp:761
Definition: MitsubishiH7.h:486
Definition: CartesianPositionActuator.h:39
MxtData dat
Position data.
Definition: MitsubishiH7.h:536
bool isProgramSelectEnable
Program select enable.
Definition: MitsubishiH7.h:139
float l2
Additional axis 2 [mm or rad].
Definition: MitsubishiH7.h:462
void getCartesianPosition(::rl::math::Transform &x) const
Definition: MitsubishiH7.cpp:489
void hndstsCmd(HandState &state) const
The setting and the output of the hand are read.
Definition: MitsubishiH7.cpp:631
int32_t p4
Motor 4 axis.
Definition: MitsubishiH7.h:503
bool isOperationEnable
Operation disable / Operation enable.
Definition: MitsubishiH7.h:125
virtual ~MitsubishiH7()
Definition: MitsubishiH7.cpp:137
MxtJoint jnt
Joint type [rad].
Definition: MitsubishiH7.h:521
MxtData dat3
Position data.
Definition: MitsubishiH7.h:568
int errorNo
Error number (0: no error).
Definition: MitsubishiH7.h:213
Definition: MitsubishiH7.h:147
int32_t p1
Motor 1 axis.
Definition: MitsubishiH7.h:497
uint16_t recvType2
Reply data type designation.
Definition: MitsubishiH7.h:558
HandSts handSts
Hand output status.
Definition: MitsubishiH7.h:100
float b
B axis coordinate value [rad].
Definition: MitsubishiH7.h:456
::std::size_t dof
Degrees of freedom.
Definition: AxisController.h:53
bool isOpEmg
O/P EMG.
Definition: MitsubishiH7.h:201
bool isTeach
Auto / Teach.
Definition: MitsubishiH7.h:117
float y
Y axis coordinate value [mm].
Definition: MitsubishiH7.h:450
bool isRun
STOP / RUN.
Definition: MitsubishiH7.h:123
Definition: MitsubishiH7.h:157
uint16_t bitMask
Bit mask pattern designation (valid only for commanding) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:544
bool isTaskModeCycle
Operation mode of slot table (REP / CYC).
Definition: MitsubishiH7.h:179
float j2
J2 axis angle [rad].
Definition: MitsubishiH7.h:470
void loadCmd(const ::std::string &programName) const
Open the program for edit.
Definition: MitsubishiH7.cpp:733
@ HANDSTS_CLOSED
Hand closed.
Definition: MitsubishiH7.h:63
int32_t p3
Motor 3 axis.
Definition: MitsubishiH7.h:501
Definition: MitsubishiH7.h:466
uint16_t recvIoType
Reply input/output signal data designation.
Definition: MitsubishiH7.h:540
void setInput(const uint16_t &bitTop)
Definition: MitsubishiH7.cpp:894
StopSts stopSts
Stop status.
Definition: MitsubishiH7.h:211
int mechNo
Mech number under use.
Definition: MitsubishiH7.h:185
void rstalrmCmd() const
The error is reset.
Definition: MitsubishiH7.cpp:808
MxtPose pos
XYZ type [mm or rad].
Definition: MitsubishiH7.h:519
void getMotorPulse(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &p) const
Definition: MitsubishiH7.cpp:577
Definition: TcpSocket.h:37
MxtData dat2
Position data.
Definition: MitsubishiH7.h:562
int taskPri
Priority of slot table (1 - 31).
Definition: MitsubishiH7.h:183
MxtPulse pls
Motor pulse type [the pulse] or current type [%].
Definition: MitsubishiH7.h:523
void loadProgram(const ::std::string &name, const ::std::string &program) const
Definition: MitsubishiH7.cpp:751
void close()
Definition: MitsubishiH7.cpp:191
EditSts editSts
Edit status.
Definition: MitsubishiH7.h:165
int mechNo
Mech number under use.
Definition: MitsubishiH7.h:217
uint16_t shutIoData
Definition: MitsubishiH7.h:591
void rstpwrCmd() const
Power supply reset (reboot) of the controller is executed.
Definition: MitsubishiH7.cpp:823
bool isRepeat
Cycle / Repeat.
Definition: MitsubishiH7.h:111
int32_t p6
Motor 6 axis.
Definition: MitsubishiH7.h:507
uint32_t sflg1
Structural flag 1.
Definition: MitsubishiH7.h:489
uint16_t reserve
Reservation.
Definition: MitsubishiH7.h:534
Definition: MitsubishiH7.h:517
Definition: MitsubishiH7.h:96
uint16_t sendType
Transmission data type designation.
Definition: MitsubishiH7.h:530
@ HANDTYPE_SINGLE
Single-solenoid.
Definition: MitsubishiH7.h:70
float l1
Additional axis 1 [mm or rad].
Definition: MitsubishiH7.h:460
uint16_t tCount
Timeout time counter.
Definition: MitsubishiH7.h:548
MxtWorld w
Definition: MitsubishiH7.h:487
uint32_t sflg2
Structural flag 2.
Definition: MitsubishiH7.h:491
MitsubishiH7(const ::std::size_t &dof, const ::std::string &server, const ::std::string &client, const unsigned short int &tcp=10001, const unsigned short int &udp=10000, const Mode &mode=MODE_JOINT, const uint16_t &haltIoData=0x00AA, const uint16_t &releaseIoData=0x00A6, const uint16_t &shutIoData=0x000A9)
Definition: MitsubishiH7.cpp:103
@ TASKCOND_ERROR
ERROR.
Definition: MitsubishiH7.h:82
HandType handType
Hand type.
Definition: MitsubishiH7.h:102
float j8
Additional axis 2 (J8 axis angle) [mm or rad].
Definition: MitsubishiH7.h:482
int32_t p7
Additional axis 1 (Motor 7 axis).
Definition: MitsubishiH7.h:509
@ MODE_PULSE
Definition: MitsubishiH7.h:54
Definition: UdpSocket.h:37
void setCartesianPosition(const ::rl::math::Transform &x)
Definition: MitsubishiH7.cpp:871
float j5
J5 axis angle [rad].
Definition: MitsubishiH7.h:476
uint16_t reserve1
Reservation.
Definition: MitsubishiH7.h:554
void setOutput(const uint16_t &bitTop, const uint16_t &bitMask, const uint16_t &ioData)
Definition: MitsubishiH7.cpp:988
uint16_t recvType
Reply data type designation.
Definition: MitsubishiH7.h:532
void emdatCmd(const ::std::string &program) const
More line and position are registered in the program.
Definition: MitsubishiH7.cpp:368
bool isCycleStopOff
Cycle stop ON / Cycle stop OFF.
Definition: MitsubishiH7.h:113
void release()
Definition: MitsubishiH7.cpp:802
bool isIoEmg
I/O EMG.
Definition: MitsubishiH7.h:199
int32_t p2
Motor 2 axis.
Definition: MitsubishiH7.h:499
uint16_t ioData
Input or output signal data value (for monitoring) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:546
bool isOp
O/P.
Definition: MitsubishiH7.h:197
void start()
Definition: MitsubishiH7.cpp:1037
@ MODE_POSE
Definition: MitsubishiH7.h:53
char programName[256]
Program name loaded into task slot.
Definition: MitsubishiH7.h:159
uint16_t getIoData() const
Definition: MitsubishiH7.cpp:537
void stop()
Definition: MitsubishiH7.cpp:1291
Definition: MitsubishiH7.h:109
uint16_t sendIoType
Transmission input/output signal data designation.
Definition: MitsubishiH7.h:538
int stepNo
Execution step number.
Definition: MitsubishiH7.h:173
bool isStopSignalOff
STOP signal ON /OFF.
Definition: MitsubishiH7.h:137
@ TASKCOND_START
START.
Definition: MitsubishiH7.h:78
int32_t p5
Motor 5 axis.
Definition: MitsubishiH7.h:505
bool isTeachRunning
Running of Teach mode.
Definition: MitsubishiH7.h:119
bool MechInfo[3]
Mech info (Mech 1, Mech 2, Mech 3).
Definition: MitsubishiH7.h:106
Definition: MitsubishiH7.h:446
::Eigen::Transform< Real, 3, ::Eigen::Affine > Transform
Definition: Transform.h:42
void setMode(const Mode &mode)
Definition: MitsubishiH7.cpp:942
int32_t lng[8]
Integer type [%% / non-unit].
Definition: MitsubishiH7.h:525
bool isAxis[8]
Completion axis pattern (J1, J2, J3, J4, J5, J6, J7, J8).
Definition: MitsubishiH7.h:151
::std::size_t getFilter() const
Definition: MitsubishiH7.cpp:531
HandType
Definition: MitsubishiH7.h:67
float a
A axis coordinate value [rad].
Definition: MitsubishiH7.h:454
MxtCommand in
Definition: MitsubishiH7.h:580
int lineNo
Execution line number.
Definition: MitsubishiH7.h:161
char taskPrgName[256]
Program name of slot table.
Definition: MitsubishiH7.h:177
void execCmd(const ::std::string &instruction) const
The instruction is executed directly.
Definition: MitsubishiH7.cpp:471
Definition: CartesianPositionSensor.h:39
::std::string server
Server ip address or hostname.
Definition: MitsubishiH7.h:589
float j4
J4 axis angle [rad].
Definition: MitsubishiH7.h:474
void setJointPosition(const ::rl::math::Vector &q)
Definition: MitsubishiH7.cpp:902
bool isTbEmg
T/B EMG.
Definition: MitsubishiH7.h:203
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:41
void cntlCmd(const bool &doOn) const
Operation enable or disable.
Definition: MitsubishiH7.cpp:199
void stopProgram() const
Definition: MitsubishiH7.cpp:1342
void getCurrentFeedback(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &c) const
Definition: MitsubishiH7.cpp:503
TcpSocket * tcp
Definition: MitsubishiH7.h:593
bool isReserve
(reserve).
Definition: MitsubishiH7.h:141
void inEqualsCmd(const ::std::size_t &inNo, const ::std::string &inVal) const
The input signal is pseudo-input.
Definition: MitsubishiH7.cpp:715
bool isEditing
Editing.
Definition: MitsubishiH7.h:88
@ HANDTYPE_DOUBLE
Double-solenoid.
Definition: MitsubishiH7.h:72
uint16_t reserve3
Reservation.
Definition: MitsubishiH7.h:566
@ TASKCOND_ALWAYS
ALWAYS.
Definition: MitsubishiH7.h:80
void datinstCmd(const ::std::string &j1, const ::std::string &j2, const ::std::string &j3, const ::std::string &j4, const ::std::string &j5, const ::std::string &j6, const ::std::string &checksum) const
The origin is set by the data input.
Definition: MitsubishiH7.cpp:217
::std::size_t filter
Internal filter value.
Definition: MitsubishiH7.h:576
float z
Z axis coordinate value [mm].
Definition: MitsubishiH7.h:452
void srvCmd(const bool &doOn) const
The servo power supply is turned on and off.
Definition: MitsubishiH7.cpp:1019
::std::string client
Client ip address or hostname.
Definition: MitsubishiH7.h:573
Definition: MitsubishiH7.h:515
int outputNo
Signal number allocated in hand (-1: not used).
Definition: MitsubishiH7.h:98
Mode mode
Definition: MitsubishiH7.h:582
Definition: JointPositionActuator.h:39
void slotinitCmd() const
The program resets all slots.
Definition: MitsubishiH7.cpp:1004
RunSts runSts
Run status.
Definition: MitsubishiH7.h:209
int stepNo
Execution step number.
Definition: MitsubishiH7.h:215
Definition: MitsubishiH7.h:48
TaskCond taskCond
Stating conditions of slot table.
Definition: MitsubishiH7.h:181
uint16_t releaseIoData
Definition: MitsubishiH7.h:586
void eclrCmd() const
Clear program contents.
Definition: MitsubishiH7.cpp:353
float x
X axis coordinate value [mm].
Definition: MitsubishiH7.h:448
MxtData dat1
Position data.
Definition: MitsubishiH7.h:556