Testing of Supercube (new version) functions with real system
There are several functions in dev.supercube
that are implemented and unit-tested, but not tested with the physical real device in the lab, since these functions are not available yet in the Supercube PLC code Fabian is working on. Once they are available, the functions should be tested.
The tasks are also noted in code using TODO comments.
SupercubeBase
class
-
Setting remote control mode (in start
andstop
, as well as methodset_remote_control
itself), variable is not available yet. Also set correct variable NodeID string inconstants.OpcControl.active
. -
Getting the measurement ratio of an analog input port (method get_measurement_ratio
) as well as the correct variable NodeID string inconstants.MeasurementsDividerRatio
. -
Getting the measurement voltage of an analog input port (method get_measurement_voltage
) as well as the correct variable NodeID string inconstants.MeasurementsScaledInput
. Also make sure that the correct values are returned, already scaled with ratio or not. -
Get manual status of an automatic earthing stick: Method get_earthing_manual
-
Set manual status of an automatic earthing stick: Method set_earthing_manual
SupercubeWithFU
class
All methods in this class are untested, since there is not yet a hardware version with frequency converter and the new PLC design available.
Also make sure the correct variable NodeID strings are stored in constants.py
.
-
set_target_voltage
-
get_target_voltage
-
get_max_voltage
-
set_slope
-
get_primary_voltage
-
get_primary_current
-
get_frequency
-
get_power_setup
-
get_fso_active
-
fso_reset
General remarks
To get the correct NodeID for the OPC variable you want to read or write, simply connect to the OPC server of the Siemens PLC using the Prosys OPC UA client. Navigate to the variable there and copy the NodeID identifier of the variable (only the identifier is needed, namespace etc. is constructed automatically in the read/write functions).