I need to read the Flex Pendant speed and send it out to the PLC.

I need to read out Flex Pendant speed and send it out to the PLC, can anyone share the sample code.

Thanks 

Answers

  • lemster68
    lemster68 ✭✭✭
    VAR num nSpeedOride;

    nSpeedOride:=CSpeedOverride();
    SetGO goSpeedOverride, nSpeedOride;

    You will need to map a group output if you have not already done so.

    Lee Justice
  • Hi,

    Thanks for the reply.

    This is working but need to read the speed continuously as of now getting only when this command read in the loop at that time only getting the speed of flex pendant.  

    need to read the Speed of flex pendant continuously (Background need to run the code), what command need to use?

    Thanks
  • lemster68
    lemster68 ✭✭✭
    You are welcome.  Does this robot even have the mutitasking option?  Even with or without this option you could just make a timed interrupt in the main task.
    Lee Justice
  • Hallo, depending on the complexety of your program you can define an interrupt on your variable (see  IPers) or you use ITimer for a cyclic check.