ifw-core  5.0.0-pre2
Public Member Functions | List of all members
test_srv.TestSrv Class Reference

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

Inheritance diagram for test_srv.TestSrv:

Public Member Functions

def __init__ (self)
 Initialise the test application. More...
 
def initialise (self)
 Initialise various parameters of the simulated device. More...
 
def data_change_handler (self, node, value, data)
 Invoked when subscribed "ctrl." and "stat." nodes change value. More...
 
def RPC_Init (self, parent)
 Initiate the initialisation procedure. More...
 
def RPC_Reset (self, parent)
 Reset the motor device (bring it to NotOp/NotReady). More...
 
def check_move_conditions_ (self, new_pos=None)
 Check if the conditions are fulfilled to execute new move. More...
 
def RPC_MoveAbs (self, parent, pos, vel)
 Request an absolute offset. More...
 
def RPC_SetDebug (self, parent)
 Change debug level. More...
 
def RPC_SetLog (self, parent)
 Set log level. More...
 
def RPC_Disable (self, parent)
 Execute SM Disable operation. More...
 
def RPC_Off (self, parent)
 Power off Device Simulator. More...
 
def RPC_State (self, parent)
 Request state of Device Simulator. More...
 
def RPC_Enable (self, parent)
 DeviceSimulatorBase Execute SM Enable operation. More...
 
def RPC_ReadNode (self, parent, node_id)
 Read a node from the Device Simulator namespace. More...
 
def RPC_WriteNode (self, parent, node_id, value)
 Write a node in the Device Simulator namespace. More...
 
def RPC_Stop (self, parent)
 Stop an ob-going operation. More...
 

Detailed Description

Device Simulator class for the Standard Motor Device.

Constructor & Destructor Documentation

◆ __init__()

def test_srv.TestSrv.__init__ (   self)

Initialise the test application.

Member Function Documentation

◆ check_move_conditions_()

def test_srv.TestSrv.check_move_conditions_ (   self,
  new_pos = None 
)

Check if the conditions are fulfilled to execute new move.

Returns PLC error code.

◆ data_change_handler()

def test_srv.TestSrv.data_change_handler (   self,
  node,
  value,
  data 
)

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

◆ initialise()

def test_srv.TestSrv.initialise (   self)

Initialise various parameters of the simulated device.

◆ RPC_Disable()

def test_srv.TestSrv.RPC_Disable (   self,
  parent 
)

Execute SM Disable operation.

◆ RPC_Enable()

def test_srv.TestSrv.RPC_Enable (   self,
  parent 
)

DeviceSimulatorBase Execute SM Enable operation.

◆ RPC_Init()

def test_srv.TestSrv.RPC_Init (   self,
  parent 
)

Initiate the initialisation procedure.

◆ RPC_MoveAbs()

def test_srv.TestSrv.RPC_MoveAbs (   self,
  parent,
  pos,
  vel 
)

Request an absolute offset.

◆ RPC_Off()

def test_srv.TestSrv.RPC_Off (   self,
  parent 
)

Power off Device Simulator.

◆ RPC_ReadNode()

def test_srv.TestSrv.RPC_ReadNode (   self,
  parent,
  node_id 
)

Read a node from the Device Simulator namespace.

◆ RPC_Reset()

def test_srv.TestSrv.RPC_Reset (   self,
  parent 
)

Reset the motor device (bring it to NotOp/NotReady).

◆ RPC_SetDebug()

def test_srv.TestSrv.RPC_SetDebug (   self,
  parent 
)

Change debug level.

◆ RPC_SetLog()

def test_srv.TestSrv.RPC_SetLog (   self,
  parent 
)

Set log level.

◆ RPC_State()

def test_srv.TestSrv.RPC_State (   self,
  parent 
)

Request state of Device Simulator.

◆ RPC_Stop()

def test_srv.TestSrv.RPC_Stop (   self,
  parent 
)

Stop an ob-going operation.

◆ RPC_WriteNode()

def test_srv.TestSrv.RPC_WriteNode (   self,
  parent,
  node_id,
  value 
)

Write a node in the Device Simulator namespace.


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