VisionTech Input and Output variables

  • Hi everybody.

    Kuka Robot, KSS 8.5

    VisionTech V4.0.3

    EthernetKRL V3.0.3

    I need to transfer variables from the robot to ToolBlock. And output the variables from ToolBlock to the robot.

    Input variables I did like this:



    Program code on the robot:


    Output variables I did like this:



    There is no program code because I did not find anything about Output variables in the manual.

    Input variables are not passed to the tool block( VT_SetInputAsReal, 69 and 70 lines of code). How to transfer variables to a tool block and display other variables from there? Thank

    Edited once, last by 12ph ().

  • AD
  • you need to read the manual and apply what it tells you.

    KRC sends trigger to VT. VT takes an image, does some processing, compiles report and sends the result(s) back to KRC.

    if you want additional data to be included in results, you need to add the values yourself. thisi is what UserData is for,

    it is a string so you can put just about anything there (no semicolon, this is used internally as separator).

    manual does not show example how to inject values into UserData but if you are familiar with programming, it should be pretty obvious. if you are familiar with Visual Studio, you will feel at home. just use ToString() method as suggested. this is all in the manual.

    years ago i was using VT to track multiple parts and passing additional values including score, dimensions etc. i think it was VT2.x

    here is an example of using ToString() method:

    double myValue = 123.456f; // some value
    string myValueString = myValue.ToString();

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now