Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Reference to unknown function StrFormat

hcostelha
hcostelha
edited February 2023 in RAPID Programming
Hi,

The code snippet below (ignore what it does, it is just to give an example) works well if using an Omnicore controller in RobotStudio, but it gives the error "Reference error(129):  Reference to unknown function StrFormat." if using IRC5 with RobotWare 6.10.02.

According to the RAPID reference manual, the functions is supported in both IRC5 and Omnicore. The example below is the one provided in the documentation.

    PROC main()
        TPWrite StrFormat(text1 \Arg1:="robot" \Arg2:="fast");
    ENDPROC
Is this a bug in RobotStudio or in the documentation, or am I doing something wrong here?

Thanks and best regards,
Hugo Costelha

Answers

  • It may be that it is available only in a higher version of RW6.xx.
    Lee Justice