RASPBERRY PLC ETHERNET 21 I/Os ANALOG/DIGITAL PLUS RASPBERRY PLC ETHERNET I/Os ANALOG DIGITAL PLUS
Ref. 012002000200 Rev.
Ref. 012002000200 Rev.
Ref. 012002000200 Rev. 0: 02-09-2020 Preface This User Guide is been implemented by Boot & Work, S.L. working under the name Industrial Shields. Purpose of the manual The information contained in this manual can be used as a reference to operate and get a better understanding of the technical data of the signal modules, power supply modules and interface modules. Intended Audience This User Guide is intended for the following audience: • • • • Persons in charge of introducing automation devices.
Ref. 012002000200 • • • • Rev. 0: 02-09-2020 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. Disconnection of equipment when a flammable or combustible atmosphere is present may cause a fire or explosion which could result in death, serious injury and/or property damage.
Ref. 012002000200 Rev. 0: 02-09-2020 Table of Contents General Description RASPBERRY PLC ETHERNET I/OS ANALOG/DIGITAL PLUS Product ............................................................................................................................... 7 Zone - Nomenclature ........................................................................................................ 7 Zone Distribution.........................................................................................................
Ref. 012002000200 Rev. 0: 02-09-2020 Serial – RX/TX .................................................................................................................... 3 SPI0 – MISO/MOSI/SCK ..................................................................................................... 3 GPIO25 .............................................................................................................................. 4 Equivalence Table.............................................................
Ref. 012002000200 Rev. 0: 02-09-2020 General Description RASPBERRY PLC ETHERNET I/OS ANALOG/DIGITAL PLUS Product Zone - Nomenclature The nomenclature shown in this point will be used in the whole User Guide, so it is important to understand this nomenclature. A ZONE 0 ZONE 0 ZONE A ZONE The nomenclature to differentiate the zones is based on Alphanumeric values, being 0 the internal communication shield and A the I/Os shield. A ZONE 0 ZONE ● The inputs in the zone A are named I0.
Ref. 012002000200 Rev. 0: 02-09-2020 Zone Distribution The distribution of the different features that provide the Raspberry Ethernet 21 I/Os PLUS are described below.
Ref. 012002000200 Rev.
Ref. 012002000200 Rev. 0: 02-09-2020 General Features CONECTABLE PLC ARDUINO 24 VCC M-DUINO MODEL TYPE GRPS/GSM Controller General Specifications Information Input Voltage 12 to 24 Vdc Fuse Protection (2.5 A) Polarity protection I max. 1.5 A Size 101x70.1x119.5 Clock Speed 1.5 GHz Flash Memory - SRAM 2 - 4 - 8 GB Communications I2C – Ethernet (x2) – USB (x4) – (x2) RS485 – SPI – WiFi – Bluetooth - Serial TTL – CAN - μSD - RTC Digital GPIO25 (3.3 V) MAX485 – W5500 3.
Ref. 012002000200 Rev. 0: 02-09-2020 Technical Specifications: General Specifications: Item RASPBERRY PLC ETHERNET 21 I/Os PLUS Power supply voltage DC power supply Operating voltage range DC power supply 11.4 to 25.4Vdc Power consumption DC power supply 30 W max. External power supply 12 to 24Vdc Power supply voltage 24 Vdc Power supply output capacity 700 Ma Insulation resistance 20MΩ min.at 500Vdc between the AC terminals and the protective earth terminal. Dielectric strength 2.
Ref. 012002000200 Rev. 0: 02-09-2020 Symbology Table that includes all the symbology that is used in the serigraph of the RASPBERRY PLC ETHERNET I/OS ANALOG/DIGITAL PLUS: Symbol Standard No.
Ref. 012002000200 Rev. 0: 02-09-2020 Precautions Read this manual before attempting to use the RASPBERRY PLC ETHERNET I/OS ANALOG/DIGITAL PLUS and follow its descriptions for reference during operation. Raspberry Board The RASPBERRY PLC ETHERNET 21 I/Os ANALOG/DIGITAL PLUS includes a Raspberry Pi 4 Board as controller. Intended Audience This manual is intended for technicians, which must have knowledge on electrical systems.
Ref. 012002000200 Rev. 0: 02-09-2020 How to connect PLC to power supply - Raspberry PI Family PLCs are 12-24Vdc supplied. IMPORTANT: The polarity IS NOT REVERSAL! - Make sure that the live and GND connector of the power supply match the PLC. - Make sure that the power supply mains output is not higher than 24Vdc. - Suggested power suppliers Compact DIN rail power supply.
Ref. 012002000200 Rev. 0: 02-09-2020 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. The Raspberry is given with the local IP address 10.10.10.20/24, the default user is pi and the password is raspberry.
Ref. 012002000200 Rev. 0: 02-09-2020 $ssh pi@10.10.10.20 The connection will start, but first the password provided before will be required. 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. The system will alert you to this and offer you the option of accepting the key or rejecting it.
Ref. 012002000200 Rev. 0: 02-09-2020 5.1.2 Windows For the Windows users, we recommend using the open-source terminal emulator PuTTy ssh client. The latest release of PuTTY can be downloaded from the official web which contains download links for the latest released version of PuTTY. https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html For connecting to it, you must change your local address for being in the same local network as the Raspberry. You can use the ping command with the address 10.
Ref. 012002000200 Rev. 0: 02-09-2020 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. PuTTy will alert you to this and offer you the option of accepting the key or rejecting it.
Ref. 012002000200 Rev. 0: 02-09-2020 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. By default, the computers are given an IP address of the 192.xxx.xxx.xxx or 172.xxx.xxx.xxx type but will be necessary to change it to the 10.10.10.xxx as the PLC. As we will work with an Ethernet interface, the WiFi interface IP must not be changed.
Ref. 012002000200 Rev. 0: 02-09-2020 Then we have to 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. Finally a window will be displayed where we will be able to change the IP address. Choose the second option and enter the following IP as the following image.
Ref. 012002000200 Rev. 0: 02-09-2020 Raspberry PLC Family Pinout 0 Zone connection (Communications) Base (common unit) Raspberry Pin A+ BGND BA+ GND SDA SCL 5V 3.
ETHERNET2 CONNECTOR RTC BATTERY CAN BUS Rev. 0: 02-09-2020 POWER INDICATOR Ref. 012002000200 A Zone connection (I/Os) I0.12 I0.11 I0.10 I0.9 I0.8 I0.7 (-)I0.6/INT1 I0.6/INT11 (-)I0.5/INT0 I0.5/INT01 (-)I0.4 I0.4 (-)I0.3 I0.3 (-)I0.2 I0.2 (-)I0.1 I0.1 (-)I0.0 I0.0 1 GPIO12 GPIO12 GPIO13 GPIO13 - Function I/Os I2C1 Raspberry PLC Connector A Zone Analog/ Digital In Analog/ Digital In Analog/ Digital In Analog/ Digital In Analog/ Digital In Analog/ Digital In GND I0.6 Interrupt 1 In GND I0.
Ref. 012002000200 Rev. 0: 02-09-2020 Top Zone Led indicator I/Os state Configuration Switch* (See section 7 to select the correct configuration for outputs). GND A0.71 A0.61 A0.51 Q/Vdc COM(-) Q0.71 Q0.61 Q0.51 Q0.4 Q0.3 Q0.2 Q0.1 Q0.
Ref. 012002000200 Rev. 0: 02-09-2020 I/O RASPBERRY PLC 3.3V pins The RASPBERRY PLC ETHERNET I/OS ANALOG/DIGITAL PLUS has some of the Raspberry PI 4 board pins available. These pins can be programmed according to Raspberry features such as I/O’s operating at 3.3V or any additional features present in the pins (for example I2C communication in pins SCL and SDA). As these pins are directly connected to the Raspberry PI 4 board, they are not as well protected as the normal inputs.
Ref. 012002000200 Rev. 0: 02-09-2020 GPIO25 GPIO25 is a Raspberry PI 4 GPIO pin that can be set as an input or output. It does not have any default function, so it can be configured without any restrictions. The pin is powered at 3.3 volts; a higher voltage might be dangerous for the device. This pin is not established with a pull-up or a pull-down configuration by default. If the pin has to be used, it might require a pull-up or pull-down configuration for prevention.
Ref. 012002000200 Rev.
Ref. 012002000200 Rev. 0: 02-09-2020 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. 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.
Ref. 012002000200 Rev. 0: 02-09-2020 Warning: There are some pins that both 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; otherwise there will be a system error. If a reboot is done, it is not necessary to do it. The pins which can operate with both configurations are: • • 0.5 0.6 • 0.7 ./set-digital-output Q.05 1 ./set-digital-output Q.
Ref. 012002000200 Rev. 0: 02-09-2020 SPI 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.
Ref. 012002000200 Rev.
Ref. 012002000200 Rev. 0: 02-09-2020 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 Mail: industrialshields@industrialshields.