|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_MITSUBISHIR3_H
28 #define RL_HAL_MITSUBISHIR3_H
225 const ::std::string& address,
226 const unsigned short int& port = 10001
248 void doCntl(
const bool& doOn);
261 void doDatinst(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);
277 void doDatinst(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);
300 void doEmdat(const ::std::string& program);
315 void doExec(const ::std::string& instruction);
323 void doHnd(
const bool& doOpen,
const int& handNo);
338 void doInEquals(const ::std::size_t& inNo, const ::std::string& inVal);
345 void doLoad(const ::std::string& programName);
358 void doOutEquals(const ::std::size_t& outNo, const ::std::string& outVal);
376 void doRun(const ::std::string& programName,
const bool& doModeCycle =
false);
393 void doSrv(
const bool& doOn);
414 void loadProgram(const ::std::string& name, const ::std::string& program);
430 #endif // RL_HAL_MITSUBISHIR3_H
void doRun(const ::std::string &programName, const bool &doModeCycle=false)
The program is started.
Definition: MitsubishiR3.cpp:616
bool isTb
T/B (RS-422).
Definition: MitsubishiR3.h:195
void doInEquals(const ::std::size_t &inNo, const ::std::string &inVal)
The input signal is pseudo-input.
Definition: MitsubishiR3.cpp:517
bool isPc
P/C (RS-232C).
Definition: MitsubishiR3.h:197
@ HANDTYPE_NOTUSED
Definition: MitsubishiR3.h:59
bool isDefined
Install status.
Definition: MitsubishiR3.h:155
@ HANDTYPE_DOUBLE
Double-solenoid.
Definition: MitsubishiR3.h:63
StopSignalState doStpsig()
The state of the stop signal is read.
Definition: MitsubishiR3.cpp:872
HandSts handSts
Hand output status.
Definition: MitsubishiR3.h:106
bool isServoOn
Servo OFF / Servo ON.
Definition: MitsubishiR3.h:127
bool isOp
O/P.
Definition: MitsubishiR3.h:201
MechInfo mechInfo
Mech info.
Definition: MitsubishiR3.h:179
int errorNo
Definition: MitsubishiR3.h:98
@ TASKCOND_ERROR
ERROR.
Definition: MitsubishiR3.h:73
char programName[256]
Program name loaded into task slot.
Definition: MitsubishiR3.h:163
void doLoad(const ::std::string &programName)
Open the program for edit.
Definition: MitsubishiR3.cpp:535
void loadProgram(const ::std::string &name, const ::std::string &program)
Definition: MitsubishiR3.cpp:943
HandSts
Definition: MitsubishiR3.h:49
StopSts stopSts
Stop status.
Definition: MitsubishiR3.h:173
void doDatinst(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)
The origin is set by the data input.
Definition: MitsubishiR3.cpp:133
int outputNo
Signal number allocated in hand (-1: not used).
Definition: MitsubishiR3.h:104
@ HANDSTS_CLOSED
Hand closed.
Definition: MitsubishiR3.h:54
MitsubishiR3(const ::std::string &address, const unsigned short int &port=10001)
Definition: MitsubishiR3.cpp:47
bool isChanged
Changed.
Definition: MitsubishiR3.h:83
bool isPseudoInput
Pseudo input.
Definition: MitsubishiR3.h:149
char taskPrgName[256]
Program name of slot table.
Definition: MitsubishiR3.h:181
bool isEditing
Editing.
Definition: MitsubishiR3.h:79
Definition: MitsubishiR3.h:193
bool isOperationEnable
Operation disable / Operation enable.
Definition: MitsubishiR3.h:131
bool isTbEmg
T/B EMG.
Definition: MitsubishiR3.h:207
Definition: MitsubishiR3.h:211
void doRstalrm()
The error is reset.
Definition: MitsubishiR3.cpp:586
int taskPri
Priority of slot table (1 - 31).
Definition: MitsubishiR3.h:187
void startProgram(const ::std::string &name)
Definition: MitsubishiR3.cpp:961
int errorNo
Error number (0: no error).
Definition: MitsubishiR3.h:217
bool isIoEmg
I/O EMG.
Definition: MitsubishiR3.h:203
@ HANDSTS_NOTUSED
Definition: MitsubishiR3.h:50
TaskCond taskCond
Stating conditions of slot table.
Definition: MitsubishiR3.h:185
bool isStop
STOP.
Definition: MitsubishiR3.h:139
void stopProgram()
Definition: MitsubishiR3.cpp:970
::std::array< Hand, 8 > doHndsts()
The setting and the output of the hand are read.
Definition: MitsubishiR3.cpp:429
int getErrorNo() const
Definition: MitsubishiR3.cpp:986
int errorNo
Error number (0: no error).
Definition: MitsubishiR3.h:175
@ HANDSTS_OPEN
Hand open.
Definition: MitsubishiR3.h:52
bool isProgramSelectEnable
Program select enable.
Definition: MitsubishiR3.h:145
bool isRun
STOP / RUN.
Definition: MitsubishiR3.h:129
void doExec(const ::std::string &instruction)
The instruction is executed directly.
Definition: MitsubishiR3.cpp:391
bool isCycleStopOff
Cycle stop ON / Cycle stop OFF.
Definition: MitsubishiR3.h:119
virtual ~Exception()
Definition: MitsubishiR3.cpp:981
bool isEmgStop
EMG STOP.
Definition: MitsubishiR3.h:137
Definition: MitsubishiR3.h:161
RunSts runSts
Run status.
Definition: MitsubishiR3.h:213
::std::string doErrormes(const int &errorNo)
The content of the error is read.
Definition: MitsubishiR3.cpp:371
void doCntl(const bool &doOn)
Operation enable or disable.
Definition: MitsubishiR3.cpp:115
void doEclr()
Clear program contents.
Definition: MitsubishiR3.cpp:273
void doSlotinit()
The program resets all slots.
Definition: MitsubishiR3.cpp:649
void doNew()
The program is closed annulling the content of the edit.
Definition: MitsubishiR3.cpp:553
bool isRunning
Running.
Definition: MitsubishiR3.h:81
int stepNo
Execution step number.
Definition: MitsubishiR3.h:177
TaskCond
Definition: MitsubishiR3.h:67
bool isReserve
(reserve).
Definition: MitsubishiR3.h:147
bool isAxis[8]
Completion axis pattern (J1, J2, J3, J4, J5, J6, J7, J8).
Definition: MitsubishiR3.h:157
@ HANDTYPE_SINGLE
Single-solenoid.
Definition: MitsubishiR3.h:61
bool MechInfo[3]
Mech info (Mech 1, Mech 2, Mech 3).
Definition: MitsubishiR3.h:112
void doEmdat(const ::std::string &program)
More line and position are registered in the program.
Definition: MitsubishiR3.cpp:288
Exception(const int &errorNo, const ::std::string &what_arg)
Definition: MitsubishiR3.cpp:975
EditSts editSts
Edit status.
Definition: MitsubishiR3.h:169
void doSave()
The content of the edit is preserved and the program is closed.
Definition: MitsubishiR3.cpp:634
Socket socket
Definition: MitsubishiR3.h:425
virtual ~MitsubishiR3()
Definition: MitsubishiR3.cpp:56
bool isIo
I/O.
Definition: MitsubishiR3.h:199
@ TASKCOND_START
START.
Definition: MitsubishiR3.h:69
bool isOpEmg
O/P EMG.
Definition: MitsubishiR3.h:205
RunState doState()
The run state is read.
Definition: MitsubishiR3.cpp:682
void doCalib(CalibState &state)
The install status is read.
Definition: MitsubishiR3.cpp:68
HandType handType
Hand type.
Definition: MitsubishiR3.h:108
StopState doDstate()
The stop state is read.
Definition: MitsubishiR3.cpp:169
StopSts stopSts
Stop status.
Definition: MitsubishiR3.h:215
Definition: MitsubishiR3.h:153
void doRstpwr()
Power supply reset (reboot) of the controller is executed.
Definition: MitsubishiR3.cpp:601
bool isRepeat
Cycle / Repeat.
Definition: MitsubishiR3.h:117
Mitsubishi Electric R3 protocol.
Definition: MitsubishiR3.h:46
bool isStopSignalOff
STOP signal ON /OFF.
Definition: MitsubishiR3.h:143
Definition: MitsubishiR3.h:135
void doOutEquals(const ::std::size_t &outNo, const ::std::string &outVal)
The output signal is compelling output.
Definition: MitsubishiR3.cpp:568
void close()
Definition: MitsubishiR3.cpp:61
int mechNo
Mech number under use.
Definition: MitsubishiR3.h:221
bool isMlockOn
MLOCK OFF / MLOCK ON.
Definition: MitsubishiR3.h:121
int stepNo
Execution step number.
Definition: MitsubishiR3.h:219
Definition: MitsubishiR3.h:115
void doSrv(const bool &doOn)
The servo power supply is turned on and off.
Definition: MitsubishiR3.cpp:664
bool isTeachRunning
Running of Teach mode.
Definition: MitsubishiR3.h:125
void doHnd(const bool &doOpen, const int &handNo)
The hand is openend and closed.
Definition: MitsubishiR3.cpp:409
Definition: MitsubishiR3.h:87
void open()
Definition: MitsubishiR3.cpp:953
Definition: MitsubishiR3.h:77
@ TASKCOND_ALWAYS
ALWAYS.
Definition: MitsubishiR3.h:71
int mechNo
Mech number under use.
Definition: MitsubishiR3.h:189
Definition: MitsubishiR3.h:102
RunSts runSts
Run status.
Definition: MitsubishiR3.h:171
bool isTeach
Auto / Teach.
Definition: MitsubishiR3.h:123
bool isWait
WAIT.
Definition: MitsubishiR3.h:141
HandType
Definition: MitsubishiR3.h:58
void doStop()
The start is stopped.
Definition: MitsubishiR3.cpp:857
Definition: ComException.h:37
bool isTaskModeCycle
Operation mode of slot table (REP / CYC).
Definition: MitsubishiR3.h:183
int lineNo
Execution line number.
Definition: MitsubishiR3.h:165
Robotics Library.
Definition: AnalogInput.cpp:30