Go to the documentation of this file.
9 #ifndef FCF_DEVMGR_DEVICE_MOTOR_IF_HPP
10 #define FCF_DEVMGR_DEVICE_MOTOR_IF_HPP
13 #include <unordered_map>
16 #include <yaml-cpp/yaml.h>
23 #include <rad/mal/publisher.hpp>
133 MotorLcsIf(std::shared_ptr<fcf::devmgr::common::IDeviceConfig> config,
174 void Listener(fcf::common::VectorVariant& params);
181 virtual std::string
GetRpcError(
const short error_code)
const;
218 log4cplus::Logger m_logger;
225 #include "motorLcsIf.ipp"
227 #endif //FCF_DEVMGR_DEVICE_MOTOR_IF_HPP
void SetEnableFlag(bool flag)
short GetInfoData2() const
bool m_mot_axis_ready
Definition: motorLcsIf.hpp:205
@ STAT_AXIS_LOCK
Definition: motorLcsIf.hpp:105
DataContext class header file.
@ STAT_INIT_STEP
Definition: motorLcsIf.hpp:111
void SetLockFlag(bool flag)
short GetInfoData1() const
@ STAT_AXIS_INFO1
Definition: motorLcsIf.hpp:109
int m_mot_mode
Definition: motorLcsIf.hpp:202
void SetScaleFactor(double scale)
virtual void ReadStatus(MotorControllerData &status)
Read status from the controller.
Definition: motorLcsIf.cpp:80
bool m_brake
Definition: motorLcsIf.hpp:75
short m_mot_axis_info2
Definition: motorLcsIf.hpp:204
bool m_ready
Definition: motorLcsIf.hpp:79
virtual std::string GetErrorText() const
bool GetSignalFlag(Signal signal) const
bool m_mot_axis_inpos
Definition: motorLcsIf.hpp:209
@ STAT_MODE
Definition: motorLcsIf.hpp:106
ShutterLcsIf class header file.
@ STAT_SIGNAL_LHW
Definition: motorLcsIf.hpp:114
@ STAT_SIGNAL_LSTOP
Definition: motorLcsIf.hpp:113
@ STAT_SIGNAL_REF
Definition: motorLcsIf.hpp:115
bool m_locked
Definition: motorLcsIf.hpp:77
@ STAT_SIGNAL_USTOP
Definition: motorLcsIf.hpp:118
Signal
Definition: motorConfig.hpp:128
@ STAT_INIT_ACTION
Definition: motorLcsIf.hpp:112
MotorLcsIf(std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config, fcf::devmgr::common::DataContext &data_ctx)
MotorLcsIf constructor.
Definition: motorLcsIf.cpp:28
bool GetInPositionFlag() const
bool GetBrakeFlag() const
int m_info_data2
Definition: motorLcsIf.hpp:82
@ STAT_MOTOR_BASE_END
Definition: motorBaseLcsIf.hpp:89
virtual void InitObject()
Initialize object.
Definition: motorLcsIf.cpp:38
void SetInPositionFlag(bool flag)
@ STAT_AXIS_ENABLE
Definition: motorLcsIf.hpp:104
std::vector< bool > m_signals
Definition: motorLcsIf.hpp:83
@ STAT_AXIS_INFO2
Definition: motorLcsIf.hpp:110
MotorControllerData()
Definition: motorLcsIf.cpp:4
virtual ~MotorLcsIf()
Default destructor.
Definition: motorLcsIf.hpp:139
bool m_mot_axis_enable
Definition: motorLcsIf.hpp:206
@ STAT_MOTOR_END
Definition: motorLcsIf.hpp:120
void Listener(fcf::common::VectorVariant ¶ms)
Callback to manage changes on the monitored items.
Definition: motorLcsIf.cpp:98
@ STAT_AXIS_INPOS
Definition: motorLcsIf.hpp:108
bool m_mot_axis_lock
Definition: motorLcsIf.hpp:208
void StorePosition(const fcf::common::Variant &value, int attribute)
Store Position.
Definition: motorLcsIf.cpp:322
int m_mode
Definition: motorLcsIf.hpp:78
@ STAT_SIGNAL_UHW
Definition: motorLcsIf.hpp:117
Definition: dataContext.hpp:90
short m_mot_axis_info1
Definition: motorLcsIf.hpp:203
bool m_in_position
Definition: motorLcsIf.hpp:80
int m_mot_init_action
Definition: motorLcsIf.hpp:201
bool m_mot_signal_ref
Definition: motorLcsIf.hpp:212
void SetReadyFlag(bool flag)
void SetInfoData1(short info)
The MotorBaseControllerData struct.
Definition: motorBaseLcsIf.hpp:34
virtual ~MotorControllerData()
Definition: motorLcsIf.cpp:20
bool m_mot_signal_ustop
Definition: motorLcsIf.hpp:215
Motor Local Control System (LCS) Interface (IF) class.
Definition: motorBaseLcsIf.hpp:75
bool m_mot_signal_index
Definition: motorLcsIf.hpp:213
void SetBrakeFlag(bool flag)
double m_scale_factor
Definition: motorLcsIf.hpp:74
virtual std::string GetRpcError(const short error_code) const
Definition: motorLcsIf.cpp:289
bool GetEnableFlag() const
void SetSignalFlag(Signal signal, bool flag)
@ STAT_SIGNAL_INDEX
Definition: motorLcsIf.hpp:116
bool GetReadyFlag() const
bool m_mot_signal_lstop
Definition: motorLcsIf.hpp:210
bool m_mot_signal_lhw
Definition: motorLcsIf.hpp:211
@ STAT_SCALE_FACTOR
Definition: motorLcsIf.hpp:119
double GetScaleFactor() const
bool m_mot_signal_uhw
Definition: motorLcsIf.hpp:214
int m_info_data1
Definition: motorLcsIf.hpp:81
void SetInfoData2(short info)
bool m_enabled
Definition: motorLcsIf.hpp:76
@ STAT_AXIS_READY
Definition: motorLcsIf.hpp:107
MotorConfig class header file.
void SetData(const MotorControllerData &data)
Definition: motorLcsIf.cpp:23
int m_mot_init_step
Definition: motorLcsIf.hpp:200
@ STAT_AXIS_BRAKE
Definition: motorLcsIf.hpp:103
bool m_mot_axis_brake
Definition: motorLcsIf.hpp:207
Motor Local Control System (LCS) Interface (IF) class.
Definition: motorLcsIf.hpp:100
The MotorControllerData struct.
Definition: motorLcsIf.hpp:34