Robots KUKA Consulta

  • Buenas,


    ¿Consulta, tengo un robot Kuka KRC-4 y necesito obtener un valor real en coma flotante que me envia el PLC a través de señales digitales, como se resuelve este tema?

    Agradezco cualquier ayuda.

    Edited once, last by Calc_Robot ().

  • single precision REAL is 32-bit value and KRL does not use 64-bit.


    so declare 32-bit signal such as


    Code
    SIGNAL VALUE_RAW $IN[1] TO $IN[32]


    also declare REAL variable (this is also 32-bit) such as

    Code
    DECL REAL VALUE


    then cast the value_raw to value using

    Code
    VALUE = b2r(VALUE_RAW)


    where b2r function is

    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

Advertising from our partners