RobotStudio event

Read/Write variable from PLC

Options
Hello,
       It's possible to read a numeric variable (integer) from Rapid using a PLC Siemens? And to send from PLC back to Rapid. I have IRC5 controller.
Thank you!
Modify message

Comments

  • bwinter714
    Options
    Hi, if it is just an integer, I have found that mapping the integer required (both In and Out) to a group input/output on the robot-side works just fine for me. I do this all the time, albeit it is an Allen-Bradley PLC communicating over Ethernet IP, but it's 6 of one, half-dozen of the other! You should be able to get that to work no problem.

    Simple Syntax:

            VAR dnum dnIntegerRequired;
            dnIntegerRequired := GInputDnum(gi_IntegerFromPLCyouWant);
            SetGO SignalGOToPLC, DnumToNum(dnIntegerYouWantToPass);
            

    -Brian
  • Casius
    Options
    Hello,
    Thank you Brian, this is a helpfully. I did like this and is working.