ifw-fcf  5.0.0-pre2
Public Member Functions | List of all members
Adc.Adc Class Reference

Test library for testing Adc RPC interface. More...

Inheritance diagram for Adc.Adc:
Motor.Motor Device.Device

Public Member Functions

def __init__ (self, server, ns, name, program="MAIN")
 server OPC UA Server url, e.g. More...
 
def ctrl_move_abs_async (self, axis, pos, vel)
 
def ctrl_move_abs (self, axis, pos, vel)
 
def ctrl_move_rel_async (self, axis, pos, vel)
 
def ctrl_move_rel (self, axis, pos, vel)
 
def ctrl_start_track (self, angle)
 
def ctrl_stop_track (self)
 
def ctrl_move_angle (self, angle)
 
- Public Member Functions inherited from Motor.Motor
def ctrl_move_abs (self, pos, vel)
 
def ctrl_move_rel (self, pos, vel)
 
def ctrl_move_vel (self, vel)
 
- Public Member Functions inherited from Device.Device
def debug (self, msg)
 
def call_rpc_async (self, rpc, *args)
 Function used to connect, execute RPC call and then disconnect. More...
 
def call_rpc (self, rpc, *args)
 
def ctrl_reset (self)
 
def ctrl_reset (self)
 
def ctrl_init (self)
 
def ctrl_init (self)
 
def ctrl_enable (self)
 
def ctrl_disable (self)
 
def ctrl_stop (self)
 

Additional Inherited Members

- Public Attributes inherited from Device.Device
 server
 

Detailed Description

Test library for testing Adc RPC interface.

Methods common to all device, e.g. reset, init, enable, etc are defined in the base class Device. Methods related to Motor device are defined in base class Motor. Here we define only the Adc specific methods.

Constructor & Destructor Documentation

◆ __init__()

def Adc.Adc.__init__ (   self,
  server,
  ns,
  name,
  program = "MAIN" 
)

server OPC UA Server url, e.g.

'opc.tcp://134.171.12.217:4840' ns OPC UA Name Space of the device, for Beckhoff it is currently 4 name Device Name, e.g. 'Lamp1' Example of Node Id: ns=4;s=Objects.PLC1.MAIN.Lamp1

Reimplemented from Motor.Motor.

Member Function Documentation

◆ ctrl_move_abs()

def Adc.Adc.ctrl_move_abs (   self,
  axis,
  pos,
  vel 
)

◆ ctrl_move_abs_async()

def Adc.Adc.ctrl_move_abs_async (   self,
  axis,
  pos,
  vel 
)

◆ ctrl_move_angle()

def Adc.Adc.ctrl_move_angle (   self,
  angle 
)

◆ ctrl_move_rel()

def Adc.Adc.ctrl_move_rel (   self,
  axis,
  pos,
  vel 
)

◆ ctrl_move_rel_async()

def Adc.Adc.ctrl_move_rel_async (   self,
  axis,
  pos,
  vel 
)

◆ ctrl_start_track()

def Adc.Adc.ctrl_start_track (   self,
  angle 
)

◆ ctrl_stop_track()

def Adc.Adc.ctrl_stop_track (   self)

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