# How data can be extracted from a PLC

> The data that matters is already in the PLC&#39;s memory. To get it out, a driver has to speak the vendor&#39;s protocol, know the variable&#39;s address and read the right type. Getting the type or the address wrong is the shortest path to a number that looks valid and is wrong.

Source: https://ubivis.ai/en-us/academy/intro-to-industry-4-0/how-to-extract-data-from-a-plc/

Introduction to Industry 4.0 · Module 04: data collection · Lesson

The data that matters is already in the PLC's memory. To get it out, a driver has to speak the vendor's protocol, know the variable's address and read the right type. Getting the type or the address wrong is the shortest path to a number that looks valid and is wrong.

## In this lesson

- Inputs, outputs, internal variables, and the global memory an external system can read
- Bit, Byte, Word, INT, Float and Long: why the variable type matters
- The driver, the IP address and the memory address: request, response and interpretation
- Every vendor with its own architecture, and why collection needs a driver for each one

## Material for this lesson

[**Module 04 workbook: data collection** PDF in Portuguese, made to read and print.](https://ubivis.ai/assets/apostilas/introducao-industria-4-0-modulo-04.pdf) [**See the full course** 5 modules · 22 lessons](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/)

[PLC models](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/plc-models/) [Data collection devices: the Ub-IoT](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/data-collection-devices/)

## Lessons

[Introduction: why going digital changes the bottom line 6 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/introduction/) [What Industry 4.0 is 6 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/what-is-industry-4-0/) [The Ubivis story, with the CEO 9 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/the-ubivis-story/) [The industry of the future 8 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/the-industry-of-the-future/) [How to reach the fourth industrial revolution 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/reaching-the-fourth-revolution/)

[How to digitize a process: sensors or actuators? 9 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/how-to-digitize-a-process/) [What is the difference between digital and analog signals? 8 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/digital-and-analog-signals/) [The Internet of Things 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/internet-of-things/) [IIoT vs. IoT 6 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/iiot-and-iot/) [Business case: Ub-IoT across 20 plants with SENAI 5 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/business-case-senai/)

[The OSI layers 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/osi-layers/) [Communication protocols 6 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/communication-protocols/) [Protocols on the shop floor 8 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/protocols-on-the-shop-floor/) [Business case: communication hurdles on the shop floor 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/business-case-connectivity/)

[The automation hierarchy 9 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/automation-hierarchy/) [PLC models 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/plc-models/) [How data can be extracted from a PLC 9 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/how-to-extract-data-from-a-plc/) [Data collection devices: the Ub-IoT 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/data-collection-devices/)

[Industry protocols: OPC UA and MTConnect 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/opc-ua-and-mtconnect/) [Standard industry protocols: today and tomorrow 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/standard-industry-protocols/) [MQTT 8 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/mqtt/) [AMQP and Kafka 7 min](https://ubivis.ai/en-us/academy/intro-to-industry-4-0/amqp-and-kafka/)
