ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
fcf::devmgr::piezo Namespace Reference

Classes

class  Piezo
 The Piezo class. More...
 
class  PiezoConfig
 piezo Configuration class More...
 
struct  PiezoControllerData
 The piezoControllerData struct. More...
 
class  PiezoLcsIf
 Piezo Local Control System (LCS) Interface (IF) class. More...
 

Enumerations

enum  {
  HW_SUCCESS = 0, HW_ERR_HW_NOT_OP = 1, HW_ERR_WRONG_CMD = 2, HW_ERR_INCONSISTENT = 3,
  HW_ERR_INIT_FAILURE = 4, HW_ERR_ENABLE_FAILURE = 5, HW_ERR_DISABLE_FAILURE = 6
}
 
enum  {
  RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_NOTREADY = -3,
  RPC_ERR_LOCAL = -4
}
 

Functions

 REGISTER_DEVICE (Piezo)
 
 m_pos_user ({0.0, 0.0, 0.0})
 

Variables

constexpr auto CI_MAX_ON = "max_on"
 
constexpr auto CI_NUM_AXIS = "num_axis"
 
constexpr auto CI_FULL_RANGE1 = "full_range1"
 
constexpr auto CI_FULL_RANGE2 = "full_range2"
 
constexpr auto CI_FULL_RANGE3 = "full_range3"
 
constexpr auto CI_HOME1 = "home1"
 
constexpr auto CI_HOME2 = "home2"
 
constexpr auto CI_HOME3 = "home3"
 
constexpr auto CI_LOWER_LIMIT1 = "lower_limit1"
 
constexpr auto CI_LOWER_LIMIT2 = "lower_limit2"
 
constexpr auto CI_LOWER_LIMIT3 = "lower_limit3"
 
constexpr auto CI_UPPER_LIMIT1 = "upper_limit1"
 
constexpr auto CI_UPPER_LIMIT2 = "upper_limit2"
 
constexpr auto CI_UPPER_LIMIT3 = "upper_limit3"
 
constexpr auto CI_USER_TO_BIT_INPUT1 = "user_to_bit_input1"
 
constexpr auto CI_USER_TO_BIT_INPUT2 = "user_to_bit_input2"
 
constexpr auto CI_USER_TO_BIT_INPUT3 = "user_to_bit_input3"
 
constexpr auto CI_USER_OFFSET_INPUT1 = "user_offset_input1"
 
constexpr auto CI_USER_OFFSET_INPUT2 = "user_offset_input2"
 
constexpr auto CI_USER_OFFSET_INPUT3 = "user_offset_input3"
 
constexpr auto CI_USER_TO_BIT_OUTPUT1 = "user_to_bit_output1"
 
constexpr auto CI_USER_TO_BIT_OUTPUT2 = "user_to_bit_output2"
 
constexpr auto CI_USER_TO_BIT_OUTPUT3 = "user_to_bit_output3"
 
constexpr auto CI_USER_OFFSET_OUTPUT1 = "user_offset_output1"
 
constexpr auto CI_USER_OFFSET_OUTPUT2 = "user_offset_output2"
 
constexpr auto CI_USER_OFFSET_OUTPUT3 = "user_offset_output3"
 
constexpr bool DEFAULT_MAX_ON = 0
 
constexpr bool DEFAULT_NUM_AXIS = 2
 
constexpr short DEFAULT_FULL_RANGE = 32767
 
constexpr short DEFAULT_LOWER_LIMIT = 0
 
constexpr short DEFAULT_UPPER_LIMIT = 32767
 
constexpr short DEFAULT_USER_OFFSET = 0
 
constexpr short DEFAULT_HOME = 0
 
constexpr double DEFAULT_USER_TO_BIT = 32767/10.0
 
constexpr auto RPC_AUTO = "rpcAuto"
 
constexpr auto RPC_HOME = "rpcHome"
 
constexpr auto RPC_POS = "rpcPos"
 
constexpr auto RPC_MOVEBITS = "rpcMoveBits"
 
constexpr auto RPC_MOVEUSER = "rpcMoveUser"
 
constexpr short SUBSTATE_OP_POS = 203
 
constexpr short SUBSTATE_OP_AUTO = 204
 
constexpr auto SUBSTATE_OP_POS_STR = "Pos"
 
constexpr auto SUBSTATE_OP_AUTO_STR = "Auto"
 
const std::unordered_map
< short, std::string > 
SubstateMap
 
constexpr auto CI_STAT_ACTUAL_POS_BIT = "actual_pos_bit"
 
constexpr auto CI_STAT_ACTUAL_POS_BIT1 = "actual_pos_bit1"
 
constexpr auto CI_STAT_ACTUAL_POS_BIT2 = "actual_pos_bit2"
 
constexpr auto CI_STAT_ACTUAL_POS_BIT3 = "actual_pos_bit3"
 
constexpr auto CI_STAT_ACTUAL_POS_USER = "actual_pos_user"
 
constexpr auto CI_STAT_ACTUAL_POS_USER1 = "actual_pos_user1"
 
constexpr auto CI_STAT_ACTUAL_POS_USER2 = "actual_pos_user2"
 
constexpr auto CI_STAT_ACTUAL_POS_USER3 = "actual_pos_user3"
 
constexpr auto CI_STAT_MON_ACT_POS_BIT = "mon_act_pos_bit"
 
constexpr auto CI_STAT_MON_ACT_POS_BIT1 = "mon_act_pos_bit1"
 
constexpr auto CI_STAT_MON_ACT_POS_BIT2 = "mon_act_pos_bit2"
 
constexpr auto CI_STAT_MON_ACT_POS_BIT3 = "mon_act_pos_bit3"
 
constexpr auto CI_STAT_MON_ACT_POS_USR = "mon_act_pos_usr"
 
constexpr auto CI_STAT_MON_ACT_POS_USR1 = "mon_act_pos_usr1"
 
constexpr auto CI_STAT_MON_ACT_POS_USR2 = "mon_act_pos_usr2"
 
constexpr auto CI_STAT_MON_ACT_POS_USR3 = "mon_act_pos_usr3"
 
const std::vector< std::string > cfgMapping
 
const std::vector< std::string > statMapping
 
const std::vector< std::string > rpcMapping
 
const std::unordered_map
< short, std::string > 
hw_errors
 
const std::unordered_map
< short, std::string > 
rpc_errors
 

Enumeration Type Documentation

anonymous enum
Enumerator
HW_SUCCESS 
HW_ERR_HW_NOT_OP 
HW_ERR_WRONG_CMD 
HW_ERR_INCONSISTENT 
HW_ERR_INIT_FAILURE 
HW_ERR_ENABLE_FAILURE 
HW_ERR_DISABLE_FAILURE 
anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 
RPC_ERR_LOCAL 

Function Documentation

fcf::devmgr::piezo::m_pos_user ( {0.0, 0.0, 0.0}  )
fcf::devmgr::piezo::REGISTER_DEVICE ( Piezo  )

Variable Documentation

const std::vector<std::string> fcf::devmgr::piezo::cfgMapping
Initial value:
= {
}
constexpr auto fcf::devmgr::piezo::CI_FULL_RANGE1 = "full_range1"
constexpr auto fcf::devmgr::piezo::CI_FULL_RANGE2 = "full_range2"
constexpr auto fcf::devmgr::piezo::CI_FULL_RANGE3 = "full_range3"
constexpr auto fcf::devmgr::piezo::CI_HOME1 = "home1"
constexpr auto fcf::devmgr::piezo::CI_HOME2 = "home2"
constexpr auto fcf::devmgr::piezo::CI_HOME3 = "home3"
constexpr auto fcf::devmgr::piezo::CI_LOWER_LIMIT1 = "lower_limit1"
constexpr auto fcf::devmgr::piezo::CI_LOWER_LIMIT2 = "lower_limit2"
constexpr auto fcf::devmgr::piezo::CI_LOWER_LIMIT3 = "lower_limit3"
constexpr auto fcf::devmgr::piezo::CI_MAX_ON = "max_on"
constexpr auto fcf::devmgr::piezo::CI_NUM_AXIS = "num_axis"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_BIT = "actual_pos_bit"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_BIT1 = "actual_pos_bit1"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_BIT2 = "actual_pos_bit2"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_BIT3 = "actual_pos_bit3"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_USER = "actual_pos_user"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_USER1 = "actual_pos_user1"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_USER2 = "actual_pos_user2"
constexpr auto fcf::devmgr::piezo::CI_STAT_ACTUAL_POS_USER3 = "actual_pos_user3"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_BIT = "mon_act_pos_bit"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_BIT1 = "mon_act_pos_bit1"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_BIT2 = "mon_act_pos_bit2"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_BIT3 = "mon_act_pos_bit3"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_USR = "mon_act_pos_usr"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_USR1 = "mon_act_pos_usr1"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_USR2 = "mon_act_pos_usr2"
constexpr auto fcf::devmgr::piezo::CI_STAT_MON_ACT_POS_USR3 = "mon_act_pos_usr3"
constexpr auto fcf::devmgr::piezo::CI_UPPER_LIMIT1 = "upper_limit1"
constexpr auto fcf::devmgr::piezo::CI_UPPER_LIMIT2 = "upper_limit2"
constexpr auto fcf::devmgr::piezo::CI_UPPER_LIMIT3 = "upper_limit3"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_INPUT1 = "user_offset_input1"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_INPUT2 = "user_offset_input2"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_INPUT3 = "user_offset_input3"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_OUTPUT1 = "user_offset_output1"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_OUTPUT2 = "user_offset_output2"
constexpr auto fcf::devmgr::piezo::CI_USER_OFFSET_OUTPUT3 = "user_offset_output3"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_INPUT1 = "user_to_bit_input1"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_INPUT2 = "user_to_bit_input2"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_INPUT3 = "user_to_bit_input3"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_OUTPUT1 = "user_to_bit_output1"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_OUTPUT2 = "user_to_bit_output2"
constexpr auto fcf::devmgr::piezo::CI_USER_TO_BIT_OUTPUT3 = "user_to_bit_output3"
constexpr short fcf::devmgr::piezo::DEFAULT_FULL_RANGE = 32767
constexpr short fcf::devmgr::piezo::DEFAULT_HOME = 0
constexpr short fcf::devmgr::piezo::DEFAULT_LOWER_LIMIT = 0
constexpr bool fcf::devmgr::piezo::DEFAULT_MAX_ON = 0
constexpr bool fcf::devmgr::piezo::DEFAULT_NUM_AXIS = 2
constexpr short fcf::devmgr::piezo::DEFAULT_UPPER_LIMIT = 32767
constexpr short fcf::devmgr::piezo::DEFAULT_USER_OFFSET = 0
constexpr double fcf::devmgr::piezo::DEFAULT_USER_TO_BIT = 32767/10.0
const std::unordered_map<short, std::string> fcf::devmgr::piezo::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
{HW_ERR_WRONG_CMD, "Piezo unknown command"},
{HW_ERR_INCONSISTENT, "Piezo inconsistent hardware signals"},
{HW_ERR_INIT_FAILURE, "Piezo init failure"},
{HW_ERR_ENABLE_FAILURE, "Piezo enable failure"},
{HW_ERR_DISABLE_FAILURE, "Piezo disable failure"},
}
Definition: actuatorHwErrors.hpp:24
Definition: actuatorHwErrors.hpp:22
Definition: actuatorHwErrors.hpp:23
Definition: actuatorHwErrors.hpp:26
Definition: actuatorHwErrors.hpp:25
Definition: actuatorHwErrors.hpp:21
constexpr auto fcf::devmgr::piezo::RPC_AUTO = "rpcAuto"
const std::unordered_map<short, std::string> fcf::devmgr::piezo::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable Piezo. Not in OP state"},
{RPC_ERR_NOT_STANDBY_READY, "Cannot enable Piezo. Not in STANDBY_READY."},
{RPC_ERR_NOT_STANDBY_NOTREADY, "Cannot init Piezo. Not in STANDBY_NOTREADY or FAILURE."},
{RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"}
}
Definition: actuatorRpcErrors.hpp:23
Definition: actuatorRpcErrors.hpp:22
Definition: actuatorRpcErrors.hpp:21
Definition: actuatorRpcErrors.hpp:26
constexpr auto fcf::devmgr::piezo::RPC_HOME = "rpcHome"
constexpr auto fcf::devmgr::piezo::RPC_MOVEBITS = "rpcMoveBits"
constexpr auto fcf::devmgr::piezo::RPC_MOVEUSER = "rpcMoveUser"
constexpr auto fcf::devmgr::piezo::RPC_POS = "rpcPos"
const std::vector<std::string> fcf::devmgr::piezo::rpcMapping
Initial value:
= {
}
constexpr auto RPC_POS
Definition: piezoConfig.hpp:73
constexpr auto RPC_INIT
Definition: deviceConfig.hpp:43
constexpr auto RPC_MOVEUSER
Definition: piezoConfig.hpp:75
constexpr auto RPC_DISABLE
Definition: deviceConfig.hpp:45
constexpr auto RPC_HOME
Definition: piezoConfig.hpp:72
constexpr auto RPC_STOP
Definition: deviceConfig.hpp:46
constexpr auto RPC_AUTO
Definition: piezoConfig.hpp:71
constexpr auto RPC_RESET
Definition: deviceConfig.hpp:47
constexpr auto RPC_MOVEBITS
Definition: piezoConfig.hpp:74
constexpr auto RPC_ENABLE
Definition: deviceConfig.hpp:44
const std::vector<std::string> fcf::devmgr::piezo::statMapping
Initial value:
= {
}
constexpr auto CI_STAT_LOCAL
Definition: deviceConfig.hpp:53
constexpr auto CI_STAT_ACTUAL_POS_USER2
Definition: piezoConfig.hpp:102
constexpr auto CI_STAT_ACTUAL_POS_BIT1
Definition: piezoConfig.hpp:96
constexpr auto CI_STAT_ACTUAL_POS_USER3
Definition: piezoConfig.hpp:103
constexpr auto CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:50
constexpr auto CI_STAT_ACTUAL_POS_BIT3
Definition: piezoConfig.hpp:98
constexpr auto CI_STAT_STATE
Definition: deviceConfig.hpp:51
constexpr auto CI_STAT_ACTUAL_POS_BIT2
Definition: piezoConfig.hpp:97
constexpr auto CI_STAT_ERROR_CODE
Definition: deviceConfig.hpp:54
constexpr auto CI_STAT_ACTUAL_POS_USER1
Definition: piezoConfig.hpp:101
constexpr short fcf::devmgr::piezo::SUBSTATE_OP_AUTO = 204
constexpr auto fcf::devmgr::piezo::SUBSTATE_OP_AUTO_STR = "Auto"
constexpr short fcf::devmgr::piezo::SUBSTATE_OP_POS = 203
constexpr auto fcf::devmgr::piezo::SUBSTATE_OP_POS_STR = "Pos"
const std::unordered_map<short, std::string> fcf::devmgr::piezo::SubstateMap
Initial value:
= {
}
constexpr int SUBSTATE_INITIALISING
Definition: deviceConfig.hpp:84
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:87
constexpr short SUBSTATE_OP_POS
Definition: piezoConfig.hpp:79
constexpr auto SUBSTATE_OP_POS_STR
Definition: piezoConfig.hpp:82
constexpr auto SUBSTATE_OP_AUTO_STR
Definition: piezoConfig.hpp:83
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:82
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:96
constexpr auto SUBSTATE_INITIALISING_STR
Definition: deviceConfig.hpp:88
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:93
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:85
constexpr short SUBSTATE_OP_AUTO
Definition: piezoConfig.hpp:80
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:90