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:

    ToolBlock:

    69464b499d468be3865bd66bba50284b.pnga706bfd92059a57ee8f499024027d4cc.png




    Program code on the robot:

    image.png?_uid=1130000032848975&hid=1.1.2&ids=173107110677053836&name=image.png&yandex_class=yandex_inline_content_320.mail:1130000032848975.E3267840:115896982130411854123859795614_1.1.2_173107110677053836


    Output variables I did like this:

    ToolBlock:

    image.png?_uid=1130000032848975&hid=1.1.4&ids=173107110677053836&name=image.png&yandex_class=yandex_inline_content_320.mail:1130000032848975.E3267840:115896982130411854123859795614_1.1.4_173107110677053836image.png?_uid=1130000032848975&hid=1.1.3&ids=173107110677053836&name=image.png&yandex_class=yandex_inline_content_320.mail:1130000032848975.E3267840:115896982130411854123859795614_1.1.3_173107110677053836



    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:

    Code
    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