Hallo Mod-poser,
mit der Softwareoption "Developer Function" ist es möglich das Systemparameter ausgelesen bzw. wieder beschrieben werden können.
Hierzu werden die beiden Instruktionen ReadCfgData und WriteCfgData verwendet.
Beispiele:
ReadCfgData “/MOC/MOTOR_CALIB/irb_1”,”cal_offset”,offset1;
Reads the value of the calibration offset for axis irb_1 into the num variable
ReadCfgData “/EIO/EIO_USER_SIGNAL/process_error”,”Unit”,io_unit;
Reads the name of the I/O unit where the signal process_error is defined, into
the string variable io_unit.
WriteCfgData “/MOC/MOTOR_CALIB/irb_1”,”cal_offset”,offset1;
Writes the value of the num variable offset1 as calibration offset for axis irb_1.
WriteCfgData “/EIO/EIO_USER_SIGNAL/process_error”,”Unit”,io_unit;
Writes the value of the string variable io_unit as the name of the I/O unit where
the signal process_error is defined.
Limitations
You must manual restart the controller in order for the change to have effect.
Only named parameters can be accessed, i.e. parameters where the first attribute is
‘name’, ‘Name’, or ‘NAME’.
RAPID strings are limited to 80 characters. In some cases, this can be in theory too
small for the definition of InstancePath, Attribute, or CfgData.
offset1.
Gruß Micky