ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
fcfDevsim_piezo.devsim_piezo.DevsimPiezo Class Reference

Device Simulator class for the Standard Piezo Device. More...

Inheritance diagram for fcfDevsim_piezo.devsim_piezo.DevsimPiezo:
fcfDevsim_piezo.DeviceSimulatorPiezo

Public Member Functions

def __init__
 Initialise the Piezo Device simulator class; set the members. More...
 
def initialise
 Initialise various parameters of the simulated device. More...
 
def set_error_attribs
 Set the "stat.nErrorCode"/"stat.sErrorText" node values. More...
 
def set_rpc_error_attribs
 Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values. More...
 
def sim_thr_user
 Simulation Thread managing the piezo status. More...
 
def check_range_user
 Check weather user value is within the AD converter range. More...
 
def get_bits
 Get the bits for a given user value. More...
 
def get_pos
 Get the pos in user units for a given user value in bits. More...
 
def reset_piezo_values
 Reset piezo values. More...
 
def data_change_handler
 Invoked when subscribed "ctrl." and "stat." nodes change value. More...
 
def RPC_Init
 Initiate the initialisation procedure. More...
 
def RPC_Reset
 Reset the Piezo Device (bring it to NotOp/NotReady). More...
 
def RPC_Enable
 Execute SM Enable operation. More...
 
def RPC_Pos
 Execute SM Pos operation. More...
 
def RPC_Auto
 Execute SM Auto operation. More...
 
def RPC_Home
 Execute SM Auto operation. More...
 
def RPC_MoveUser
 Execute MoveUser operation. More...
 
def RPC_MoveBit
 Execute MoveBits operation. More...
 
def RPC_Disable
 Execute SM Disable operation. More...
 
def RPC_Stop
 Execute SM Disable operation. More...
 

Public Attributes

 initialised
 
 sim_init_time
 

Static Public Attributes

string CFG_TODO = "TODO"
 OPC UA Namespace Node IDs: More...
 
string CTRL_TODO = "TODO"
 
string STAT_COUNTER = "stat.nCycleCounter"
 

Detailed Description

Device Simulator class for the Standard Piezo Device.

Constructor & Destructor Documentation

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.__init__ (   self)

Initialise the Piezo Device simulator class; set the members.

Member Function Documentation

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.check_range_user (   self,
  index,
  value 
)

Check weather user value is within the AD converter range.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.data_change_handler (   self,
  node,
  value,
  data 
)

Invoked when subscribed "ctrl." and "stat." nodes change value.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.get_bits (   self,
  index,
  user_value 
)

Get the bits for a given user value.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.get_pos (   self,
  index,
  bit_value 
)

Get the pos in user units for a given user value in bits.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.initialise (   self)

Initialise various parameters of the simulated device.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.reset_piezo_values (   self)

Reset piezo values.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Auto (   self,
  parent 
)

Execute SM Auto operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Disable (   self,
  parent 
)

Execute SM Disable operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Enable (   self,
  parent 
)

Execute SM Enable operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Home (   self,
  parent 
)

Execute SM Auto operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Init (   self,
  parent 
)

Initiate the initialisation procedure.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_MoveBit (   self,
  parent,
  in_nPos1,
  in_nPos2,
  in_nPos3 
)

Execute MoveBits operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_MoveUser (   self,
  parent,
  in_lrPos1,
  in_lrPos2,
  in_lrPos3 
)

Execute MoveUser operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Pos (   self,
  parent 
)

Execute SM Pos operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Reset (   self,
  parent 
)

Reset the Piezo Device (bring it to NotOp/NotReady).

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.RPC_Stop (   self,
  parent 
)

Execute SM Disable operation.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.set_error_attribs (   self,
  error_code 
)

Set the "stat.nErrorCode"/"stat.sErrorText" node values.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.set_rpc_error_attribs (   self,
  rpc_error_code 
)

Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values.

def fcfDevsim_piezo.devsim_piezo.DevsimPiezo.sim_thr_user (   self)

Simulation Thread managing the piezo status.

Member Data Documentation

string fcfDevsim_piezo.devsim_piezo.DevsimPiezo.CFG_TODO = "TODO"
static

OPC UA Namespace Node IDs:


Configuration Node IDs:

string fcfDevsim_piezo.devsim_piezo.DevsimPiezo.CTRL_TODO = "TODO"
static
fcfDevsim_piezo.devsim_piezo.DevsimPiezo.initialised
fcfDevsim_piezo.devsim_piezo.DevsimPiezo.sim_init_time
string fcfDevsim_piezo.devsim_piezo.DevsimPiezo.STAT_COUNTER = "stat.nCycleCounter"
static

The documentation for this class was generated from the following file: