Skip to content

dcs.data.struct

DataObject dataclass

This moudle is the base data strcture to define the machine and its variables.

var_id (str): variavle Id var_name (str)L variable name var_name_IN (str) variable name from plc, followed by plc naming is_write_value (bool): if the variable can be write to PLC is_read_value (bool): if the variable can be read form PLC data_type (str): data type in PLC, followed by C/C++ type active (bool): if the varible is active and can be read and/or write.

DataParam dataclass

This moudle is a data dictionary, which wraps from DataObject with a machine id and params list.

MachineDataStruct dataclass

This moudle is data structure, representing the machine.