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

Test library for testing Timer controller. More...

Inheritance diagram for Timer.Timer:
Device.Device

Public Member Functions

def __init__ (self, server, ns, name, program="MAIN")
 server OPC UA Server url, e.g. More...
 
def ctrl_init (self)
 
def ctrl_enable (self)
 
def ctrl_disable (self)
 
def ctrl_stop (self)
 
def ctrl_reset (self)
 
def get_mode (self)
 
def set_mode_async (self, mode)
 
def set_mode (self, mode)
 
def get_utc (self)
 
def set_time (self, new_time)
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from Device.Device
 server
 

Detailed Description

Test library for testing Timer controller.

Constructor & Destructor Documentation

◆ __init__()

def Timer.Timer.__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 Device.Device.

Member Function Documentation

◆ ctrl_disable()

def Timer.Timer.ctrl_disable (   self)

Reimplemented from Device.Device.

◆ ctrl_enable()

def Timer.Timer.ctrl_enable (   self)

Reimplemented from Device.Device.

◆ ctrl_init()

def Timer.Timer.ctrl_init (   self)

Reimplemented from Device.Device.

◆ ctrl_reset()

def Timer.Timer.ctrl_reset (   self)

Reimplemented from Device.Device.

◆ ctrl_stop()

def Timer.Timer.ctrl_stop (   self)

Reimplemented from Device.Device.

◆ get_mode()

def Timer.Timer.get_mode (   self)

◆ get_utc()

def Timer.Timer.get_utc (   self)

◆ set_mode()

def Timer.Timer.set_mode (   self,
  mode 
)

◆ set_mode_async()

def Timer.Timer.set_mode_async (   self,
  mode 
)

◆ set_time()

def Timer.Timer.set_time (   self,
  new_time 
)

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