ifw-fcf  5.0.0-pre2
Public Member Functions | List of all members
pylampgui.ualamp.LampClient Class Reference
Inheritance diagram for pylampgui.ualamp.LampClient:

Public Member Functions

def __init__ (self, window, prefix, ns=4, plc="PLC1", program="MAIN")
 
def connect (self, server)
 Connectes to the OPCUA server. More...
 
def start_monitoring (self)
 Start OPCUA subscriptions for lamp device. More...
 
def call_method (self, rpc, *args)
 Executes a remote procedure call for the lamp device. More...
 
def init (self)
 Executes the init RPC of the lamp device. More...
 
def enable (self)
 Executes the enable RPC of the lamp device. More...
 
def disable (self)
 Executes the disable RPC of the lamp device. More...
 
def reset_lamp (self)
 Executes the reset RPC of the lamp device. More...
 
def stop (self)
 Executes the stop RPC of the lamp device. More...
 
def switch_on (self, intensity, time)
 Executes the SwitchOn RPC of the lamp device. More...
 
def switch_off (self)
 Executes the SwitchOff RPC of the lamp device. More...
 

Constructor & Destructor Documentation

◆ __init__()

def pylampgui.ualamp.LampClient.__init__ (   self,
  window,
  prefix,
  ns = 4,
  plc = "PLC1",
  program = "MAIN" 
)

Member Function Documentation

◆ call_method()

def pylampgui.ualamp.LampClient.call_method (   self,
  rpc,
args 
)

Executes a remote procedure call for the lamp device.

Parameters
rpcRemote Procedure Call (RPC) to be executed. argv(variable list): List of RPC parameters.

◆ connect()

def pylampgui.ualamp.LampClient.connect (   self,
  server 
)

Connectes to the OPCUA server.

Parameters
serverendpoint of the server to connect to.

◆ disable()

def pylampgui.ualamp.LampClient.disable (   self)

Executes the disable RPC of the lamp device.

◆ enable()

def pylampgui.ualamp.LampClient.enable (   self)

Executes the enable RPC of the lamp device.

◆ init()

def pylampgui.ualamp.LampClient.init (   self)

Executes the init RPC of the lamp device.

◆ reset_lamp()

def pylampgui.ualamp.LampClient.reset_lamp (   self)

Executes the reset RPC of the lamp device.

◆ start_monitoring()

def pylampgui.ualamp.LampClient.start_monitoring (   self)

Start OPCUA subscriptions for lamp device.

◆ stop()

def pylampgui.ualamp.LampClient.stop (   self)

Executes the stop RPC of the lamp device.

◆ switch_off()

def pylampgui.ualamp.LampClient.switch_off (   self)

Executes the SwitchOff RPC of the lamp device.

◆ switch_on()

def pylampgui.ualamp.LampClient.switch_on (   self,
  intensity,
  time 
)

Executes the SwitchOn RPC of the lamp device.

Parameters
intensityLamp intensity in percentage.
timeLamp timer to automatic switch off in seconds.

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