# reading PLC integer/binary with rapid

**URL:** <https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024>\
**Category:** RAPID Programming\
**Created:** [March 1, 2016, 5:36pm UTC](https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024 "2016-03-01T17:36:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://tech-community.robotics.abb.com/u/blueberry)\
**Post date:** [March 1, 2016, 5:36pm UTC](https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024/1 "2016-03-01T17:36:24Z")

</div>

Hi,

Could someone help me out with a simple program using rapid to read value of an integer or a binary word from PLC through ethernet connection?

I’m using IRC5, DeviceNet SLC500.

Thank you,

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [March 2, 2016, 3:31am UTC](https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024/2 "2016-03-02T03:31:32Z")

</div>

Hi,

All the communications setups I have seen uses the I/O.

So you need to setup group inputs and outputs in the EIO configuration file for the IRC5 (the bit mapping must be correct to what the PLC is setting).

The value of the input changes as soon as the PLC changes the output bits at its end so you just have to write logic code that performs actions based on the number sent from the PLC, then send back a number (via a group output at the IRC5 end) to give the status to the PLC of what it has been done by the robot.

Regards

Graeme

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://tech-community.robotics.abb.com/u/blueberry)\
**Post date:** [March 2, 2016, 5:55pm UTC](https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024/3 "2016-03-02T17:55:45Z")

</div>

I am not looking for direct IO mapping, I’m interested in communication via the ethernet connection to read value from the PLC. Our scanner card is already full to map more IO’s.

Any tutorials or samples program would be appreciated!

Thanks,

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [March 2, 2016, 7:13pm UTC](https://tech-community.robotics.abb.com/t/reading-plc-integer-binary-with-rapid/7024/4 "2016-03-02T19:13:01Z")

</div>

OK sorry you mentioned DeviceNet SLC500.

A local integrator used socket messaging in similar circumstances, sorry do not have any code but the manual does have a example.

This is a RobotWare option (Part of the PC Interface option) that you would need to purchase if you do not already have it.
