12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReadCfgDataAdvanced <strong>RAPID</strong>InstructionLimitationsThe conversion from system parameter units (m, radian, second etc.) to <strong>RAPID</strong> programunits (mm, degree, second etc.) for CfgData of data type num must be done bythe user in the <strong>RAPID</strong> program.Only named parameters can be accessed, i.e. parameters where the first attribute is‘name’, ‘Name’, or ‘NAME’.<strong>RAPID</strong> strings are limited to 80 characters. In some cases, this can be in theory toosmall for the definition InstancePath, Attribute, or CfgData.Error handlingIf it is not possible to find the data specified with “InstancePath + Attribute” in the configurationdatabase, the system variable ERRNO is set to ERR_CFG_NOTFND.If the data type for parameter CfgData is not equal to the real data type for the founddata specified with “InstancePath + Attribute” in the configuration database, the systemvariable ERRNO is set to ERR_CFG_ILLTYPE.If trying to read internal data, the system variable ERRNO is set toERR_CFG_INTERNAL.These errors can then be handled in the error handler.SyntaxReadCfgData[ InstancePath ’:=’ ] < expression (IN) of string >’,’[ Attribute ’:=’ ] < expression (IN) of string > ’,’[ CfgData ’:=’ ] < variable (VAR) of anytype > ’;’Related informationDescribed in:Definition of stringWrite attribute of a system parameterGet robot name in current taskConfigurationData types- stringInstructions - WriteCfgDataFunction - RobNameSystem Parameters382 <strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!