Advertisement

Quick Links

RASPBERRY PLC FAMILY
RASPBERRY PLC FAMILY

Advertisement

Table of Contents
loading

Summary of Contents for Industrial Shields Raspberry PLC Series

  • Page 1 RASPBERRY PLC FAMILY RASPBERRY PLC FAMILY...
  • Page 2 Rev. 8: 29-04-2021...
  • Page 3 Rev. 8: 29-04-2021 RASPBERRY PLC FAMILY Quick User Guide Revised, February 2021...
  • Page 4 Before using this product, it is the responsibility of the user to read the product’s User Guide and all accompanying documentation. • Industrial Shields PLCs must be powered between 12Vdc and 24Vdc. If a higher voltage is supplied to the equipment can suffer irreversible damage. •...
  • Page 5 Rev. 8: 29-04-2021 • In case of installation or maintenance of the PLC please follow the instructions marked in the Installation and Maintenance section on the User Guide. • Do not disconnect equipment when a flammable or combustible atmosphere is present.
  • Page 6: Table Of Contents

    Rev. 8: 29-04-2021 Table of Contents General Description RASPBERRY PLC FAMILY Product ............8 Reference Table ........................ 8 Zones Table........................9 Measures Table ........................ 9 Zone - Nomenclature ...................... 10 Zone Distribution ......................10 Zone Features ......................... 11 Mechanical dimension ....................12 General Features ......................
  • Page 7 Rev. 8: 29-04-2021 0 Zone connection (Communications) ................27 Analog/Digital Zone connection (I/Os) ................29 Relay Zone connection (I/Os) ..................30 Interrupt equivalence table .................... 31 Switch Configuration ......................31 Analog / Digital Zone ...................... 31 Relay Zone ........................31 I/O RASPBERRY PLC 3.3V pins ....................
  • Page 8 Rev. 8: 29-04-2021 Ethernet .......................... 43 Wi-Fi ..........................44 BLE ..........................44 RTC ..........................46 uSD ..........................46 Additional family features ...................... 48 GPRS Family ........................48 Revision Table ........................50...
  • Page 9: General Description Raspberry Plc Family Product

    Rev. 8: 29-04-2021 General Description RASPBERRY PLC FAMILY Product Reference Table...
  • Page 10: Zones Table

    Rev. 8: 29-04-2021 Zones Table Measures Table...
  • Page 11: Zone - Nomenclature

    Rev. 8: 29-04-2021 Zone - Nomenclature The nomenclature shown in this point will be used in the whole User Guide, so it is important to understand this nomenclature. The nomenclature to differentiate the zones is based on Alphanumeric values, being 0 the internal communication shield and A, B or C the I/Os or Relay shield.
  • Page 12: Zone Features

    Rev. 8: 29-04-2021 Zone Features Shield Zone Characteristics (2x) Ethernet (1x) RTC (4x) USB (1x) Bluetooth (1x) I2C (1x) Wi-Fi Communication Shield μ (1x) TTL (1x) SD Socket (2x) HALF Duplex RS-485 (1X) CAN μ (1x) SPI external Port (x1) HDMI 13 Inputs: 13 Digital inputs, 6 of which can work as Analog Input...
  • Page 13: Mechanical Dimension

    Rev. 8: 29-04-2021 Mechanical dimension These are the possible mechanical dimensions, you can consult the specific measures measures table. for your device on the...
  • Page 14: General Features

    Rev. 8: 29-04-2021 General Features CONNECTABLE PLC RASPBERRY 24 VCC MODEL TYPE Controller General Specifications Information Fuse Protection (2.5 A) Polarity Input Voltage 12 to 24 Vdc protection I max. 1.5 A Size Consult the Measure Table section Clock Speed 1.5 GHz Flash Memory SRAM...
  • Page 15: Technical Specifications

    Rev. 8: 29-04-2021 5 to 24 Vdc I max: 70 mA PWM Isolated Output 8 bits Galvanic Isolation (24 Vcc) Diode Protected for Relay I2C: 127 elements – Serial Port RS485 Expandability * By using this type of signal can no longer use Digital signal (24Vdc) Technical Specifications: General Specifications: Item...
  • Page 16: Performance Specification

    Rev. 8: 29-04-2021 Performance Specification: Raspberry Board Raspberry Pi 4 I/O control method Combination of the cyclic scan and immediate refresh processing methods. Programming language Linux applications : Python, C++, etc. 2 – 4 - 8 GB Program capacity (SRAM) EEPROM 4 MB/512 KB Clock Speed...
  • Page 17: Precautions

    INDUSTRIAL SHIELDS representative. Ensure that the rating and performance characteristics of the Raspberry PLC are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment double safety mechanisms.
  • Page 18: How To Connect Plc To Power Supply

    DIN Rail: - 24Vdc - 10A - 240W Industrial Shields power supplies provide parallel operation, overvoltage protection, and overcurrent protection. There is a LED inductor for power status, the power supply is certified according to UL. The standard, Part 1 of IEC 61010, sets the general safety requirements for the following types of electrical devices and their accessories, regardless of where use of the device is intended.
  • Page 19: How To Access To The Raspberry Plc

    Rev. 8: 29-04-2021 How to access to the Raspberry PLC Raspberry PLC access To facilitate the connection to the Raspberry PLC, our company has set a default IP for it. For the first time of use, an Ethernet connection between the Raspberry PLC and a PC will be necessary.
  • Page 20 Rev. 8: 29-04-2021 $ping 10.10.10.20 If the ping works successfully means that our connection is ready. If not, you can check section 6 again or read our blog about changing the local IP. For accessing to the Raspberry PLC we will run the command ssh shown below: $ssh pi@10.10.10.20 The connection will start, but first the password provided before will be required.
  • Page 21: Windows

    Rev. 8: 29-04-2021 • cat: it is used to list the contents of a file on the standard output. • mkdir: use mkdir command to make a new directory • rm: is used to delete directories and the contents within them. •...
  • Page 22 Rev. 8: 29-04-2021 When you start the connection, the terminal window will be opened. Enter your username pi and press Enter, then enter your password raspberry. If the username and password are correct, you can start the SSH session. When an SSH connection is made for the first time, the server delivers the server's public key to the SSH client.
  • Page 23: How To Change The Ip

    Rev. 8: 29-04-2021 How to change the IP To access to the Raspberry PLC, the PLC must be on the same local network as the computer which we are working with. For changing the IP we must have connected our PC to an Ethernet connection.
  • Page 24 Rev. 8: 29-04-2021 Then we must click on the Ethernet connection and a window about the state of it will be shown, where we can check all the details of the Ethernet connection. For changing the IP click on the Properties button. Then search for Internet Protocol Version 4 (TCP/IPv4) and click again on the Properties button.
  • Page 25: How To Transfer Files From The Pc To The Raspberry Plc

    Rev. 8: 29-04-2021 How to transfer files from the PC to the Raspberry PLC Sometimes it is necessary to transfer files from our computer to the Raspberry PLC. The best way to do it is using the Secure Copy Protocol (SCP), a protocol that allows the secure transfer of files between a local host and a remote host based on the Secure Shell Protocol (SSH).
  • Page 26: Linux

    Rev. 8: 29-04-2021 A new window will be opened, seeing the PC files on the left and the Raspberry Pi PLC on the right of the screen. There you can search on the different directories and files and for coping one file from one host no another, just click and drag from one place to the other.
  • Page 27: Raspberry Plc Family Pinout

    Rev. 8: 29-04-2021 Raspberry PLC Family Pinout I/Os Table...
  • Page 28: Zone Connection (Communications)

    Rev. 8: 29-04-2021 0 Zone connection (Communications) Base (common unit) 0 Zone Communication Pins RS485(2) RS485(2) RS485(1) RS485(2) GPIO2 GPIO3 Power Supply 3.3V Power Supply GPIO25 GPIO25 RASPBERRY Pin Power supply connectors Power Supply (24Vdc – GND) GPIO11 SPI/SS GPIO10 SPI/SS GPIO9 SPI/SS...
  • Page 29 Rev. 8: 29-04-2021 Upper Side...
  • Page 30: Analog/Digital Zone Connection (I/Os)

    Rev. 8: 29-04-2021 Analog/Digital Zone connection (I/Os) Zone IX.12 Analog / Digital In IX.11 Analog / Digital In IX.10 Analog / Digital In IX.9 Analog / Digita In IX.8 Analog / Digital In IX.7 Analog / Digital In (-)IX.6 GND I0.6 Analog / Digital Inputs IX.6/INT Interrupt...
  • Page 31: Relay Zone Connection (I/Os)

    Rev. 8: 29-04-2021 Relay Zone connection (I/Os) Zone RX.8 Relay Out RX.7 Relay Out RX.6 Relay Out RX.5 Relay Out Relay Outputs RX.4 Relay Out AX.2 Analog Out AX.1 Analog Out AX.0 Analog Out QX.2 Digital/PWM Out QX.1 Digital/PWM Out QX.0 Digital/PWM Out GNDCOM...
  • Page 32: Interrupt Equivalence Table

    Rev. 8: 29-04-2021 Interrupt equivalence table See the Reference Table in order to know the specific device details. ZONE ANALOG/DIGITAL RELAY RASPBERRY PIN GPIO13 GPIO12 GPIO27 GPIO4 GPIO17 GPIO16 Switch Configuration Analog / Digital Zone ZONE A ZONE B ZONE C SWITCH SWITCH SWITCH...
  • Page 33: I/O Raspberry Plc 3.3V Pins

    Rev. 8: 29-04-2021 For the Analog Shield if a switch is set to ON, it can only act as Digital Output. If it is set to OFF, it can only act as an Analog Output. If it is desired to use a Digital Output the pin must be set to ON and the pin that will provide this digital output is represented with QX.X, being X any number of the tables above.
  • Page 34: Spi0 - Miso/Mosi/Sck

    Rev. 8: 29-04-2021 SPI0 – MISO/MOSI/SCK These pins can only work as a 3.3V pins if the RS-485 protocol is not going to be used. As the RS-485 protocol uses the SPI to communicate with the Raspberry board, both behaviours cannot happen at the same time as the RS-485 would not work.
  • Page 35: Equivalence Table

    Rev. 8: 29-04-2021 Equivalence Table Pin-Out 11.1.1 Analog/Digital Devices Analog I/Os...
  • Page 36: Digital I/Os

    Rev. 8: 29-04-2021 11.1.2 Digital I/Os 11.1.3 Relay Devices Analog I/Os...
  • Page 37: Digital I/Os

    Rev. 8: 29-04-2021 11.1.4 Digital I/Os 11.1.5 Relay...
  • Page 38: Internal I2C And Spi Connections

    Rev. 8: 29-04-2021 Internal I2C and SPI Connections Input & Output control For the Input & Output control of the device there are two commands for working with both digital and analogic pins. These functions are for setting the value or getting its actual information.
  • Page 39: Set Value

    Rev. 8: 29-04-2021 Set Value The set function will initialize the pin. We will provide the pin with which we are going to work and the value that will be set. If we are working as the analogical option, the value will work in a range from 0 to 4095, being this the maximum possible value (10 Vdc).
  • Page 40 Rev. 8: 29-04-2021 Warning: There are some pins that can work as digital or analogue. In this case, if we have used these pins before in either digital or analogic and we want to switch its mode, we must call the set function providing stop to the value option;...
  • Page 41: Get Value

    Rev. 8: 29-04-2021 Get Value The get-[option]-input function will show the value of the selected input pin. It will only be provided the pin with which we are going to work. For the Digital Option, input pins go from Ix.0 to Ix.6, while the Analogic Option pins go from Ix.7 to Ix.12. The analog function works on a 4096 range, returning a value from 0 (0 Vdc) to 4095 (10 Vdc).
  • Page 42: Fan Functions

    Rev. 8: 29-04-2021 Fan Functions 13.4.1 Start Fan The start-fan function will activate the fan of the Raspberry PLC on the moment that the command is called. Consider that, if there is any temperature control system by default, the start-fan function could disable it. ./start-fan 13.4.2 Stop Fan The stop-fan function will deactivate the fan of the Raspberry PLC on the moment that the...
  • Page 43: A & B Zone Features: Communications & Rtc & Usd

    Rev. 8: 29-04-2021 A & B Zone Features: Communications & RTC & uSD RS-485 Raspberry PLC is provided with two RS-485 channel communications. Both are half-duplex and are controlled via the SPI0 bus. Both RS-485 ports can be configured with the following commands: ➔...
  • Page 44: Spi

    Rev. 8: 29-04-2021 The Raspberry PLC pins used for the SPI bus are summarized in the table below. The MISO, MOSI and CLOCK pins are the same for all the connected devices, while the SS pin, conversely, will be unique for each one. Function PLC connection Raspberry board pin...
  • Page 45: Wi-Fi

    Rev. 8: 29-04-2021 Example: ping -c4 -I eth0 8.8.8.8 If the command exited and the result was: “4 packets transmitted, 4 received, 0% packet loss”, the connection was successful! Wi-Fi Raspberry PLC has Wi-Fi wireless connectivity by default. It uses the two most common frequencies;...
  • Page 46 Rev. 8: 29-04-2021 At the [bluetooth]# prompt, enter the following commands: discoverable on pairable on agent on default-agent scan on Wait for a message to appear showing the Android phone has been found: [NEW] Device 12:23:34:45:56:67 devicename Type pair with the mac address of your Android phone: pair 12:23:34:45:56:67 On your Android phone and Raspberry Pi: Confirm the passcode, then type the following instruction:...
  • Page 47: Rtc

    Rev. 8: 29-04-2021 Raspberry PLC RTC Module is based on the DS3231 Chip. This chip works with the I2C protocol communication, so it is required to have enabled the I2C protocol. It is powered by a button battery (CR1216 or CR1220). There are two types of date-time clocks in a Linux system: The Hardware Clock: This clock is an independent hardware device, with its own power domain (battery, capacitor, etc), that operates when the machine is powered off, or even...
  • Page 48 Rev. 8: 29-04-2021 time is less that 20 seconds. To know more technical specs about this device, you can consult the Raspberry PI UPS and RTC Shield User Manual. NOTE: Do not confuse this UPS with the UPS models of other brands, the behaviour is different.
  • Page 49: Additional Family Features

    Rev. 8: 29-04-2021 Additional family features GPRS Family The GPRS Raspberry Pi PLC family works using the Adafruit SIM800L module, the integrated one for the use of GPRS/GSM in this PLC. The internal connections between the SIM800L and the Raspberry Pi 4 are the following: RASPBERRY PI 4 SIM800L PINOUT 5 VDC...
  • Page 50 Rev. 8: 29-04-2021 The file that would be executing the whole process is the GPRS. On this example, in the GPRS file is called the gprs-connect, if ifferent functions are wished to be implemented, they should be configurated there. In some of these files we must apply some changes in order to work with the SIM. The files have some sections where will be found “YOUR-USER-HERE”, “YOUR-PASSWORD-HERE”...
  • Page 51: Revision Table

    Rev. 8: 29-04-2021 Revision Table Revision Number Date Changes 30/10/2020 First implementation 09/12/20 Change on the IOs table 03/02/21 Change on section 12 05/02/21 Change on the screen printing of section 7.1 10/02/21 Change on the PWM outputs Added Section 14 “Additional Family Features” 11/02/21 Added Section 7 “How to transfer files”...
  • Page 52 Rev. 8: 29-04-2021 About Industrial Shields: Direction: Fàbrica del Pont, 1-11 Zip/Postal Code: 08272 City: Sant Fruitós de Bages (Barcelona) Country: Spain Telephone: (+34) 938 760 191 / (+34) 635 693 611...
  • Page 53 Rev. 8: 29-04-2021 Mail: industrialshields@industrialshields.com...

Table of Contents