KAREL send system var

  • Hello there,

    I have created a socket server (Fanuc robot LR Mate 200iC/5L with R30iA controller) and client on Pc with python.

    $SCR_GRP[1].$m_pos_enb = True

    The server code looks like this:

    I am stuck on the following code below. I am trying to send a system variable to the client.

    -- Write 4 bytes (REAL)
    my_real = get_real('*SYSTEM*','SCR_GRP[1].$MCH_POS_X')    <<               
    WRITE file_var (my_real::9::2)

    Can someone help me, please?

Advertising from our partners