Posts by miden

    Good day, dear specialists.

    Does anyone have experience using the RSI object ST_VEL?

    I need increase/decrease TCP speed from start to end point. I'm work with profinet between KRC2, KSS5.5 and Siemens S7-1200(CPU1214) in external mode.

    My network and program work good. Additionaly, I using object ST_PATHCORR. It's OK. But when I trying use ST_VEL - system variable $OV_PRO remains unchanged when I send 1-100. But when I send 0 - $OV_PRO takes 66%.

    What am I doing wrong?

    My code:

    Good day.

    For connection with Siemens S7-1200

    To transmit +/- real from Siemens S7-1200 to Kuka KRC2, you need to transmit a dword from Siemens, mirror it(DWORD) and mirror the bits in each byte(in DWORD).

    Example:

    In S7-1200:

    "swapbytes"(real1 := "db1".V9,

    dword1 => "V9ToKuka");

    +Attached image


    In Kuka:

    "Variable = INT_TO_REAL(V9)",

    where "INT_TO_REAL" consists of (thanks to panic mode:frowning_face:


    DEFFCT REAL INT_TO_REAL(n:in)

    decl int n,ofs

    decl char buf[4]

    decl real f

    ofs=0

    cast_to(buf[],ofs,n)

    ofs=0

    cast_from(buf[],ofs,f)

    return f

    ENDFCT

Advertising from our partners