In compliance with high industry standards

202011 Raspberry PLC Family Quick User Guide

Public Channel / User Guides

202011 Raspberry PLC Family Quick User Guide

Share on Social Networks

Share Link

Use permanent link to share in social media

Share with a friend

Please login to send this document by email!

Embed in your website

Select page to start with

Average

0

There are no comments for now.

Details

1 stars
0% Remove selection
2 stars
0% Remove selection
3 stars
0% Remove selection
4 stars
0% Remove selection
5 stars
0% Remove selection


8. Rev. 0: 30 - 10 - 2020 7 General Description RASPBERRY PLC FAMILY Product Reference Table

1. RASPBERRY PLC FAMILY RASPBERRY PLC FAMILY

9. Rev. 0: 30 - 10 - 2020 8 Zones Table Measures Table

2. Rev. 0: 30 - 10 - 2020 1

31. Rev. 0: 30 - 10 - 2020 30 10.1.2 Digital I/Os 10.1.3 R elay D evices Analog I/Os

30. Rev. 0: 30 - 10 - 2020 29 Equivalence Table Pin - Out 10.1.1 Analog/Digital D evices Analog I/Os

32. Rev. 0: 30 - 10 - 2020 31 10.1.4 Digital I/Os 10.1.5 Relay

3. Rev. 0: 30 - 10 - 2020 2 RASPBERRY PLC FAMILY Quick User Guide Revised , October 2020

5. Rev. 0: 30 - 10 - 2020 4 • In case of installation or maintenance of the PLC please follow the instructions marked in the Installation and Maintenance section on the User G uide. • Do not disconnect equipment when a flammable or combustible atmosphere is present. • Disconnection of equipment when a flammable or combustible at mosphere is present may cause a fire or explosion which could result in death, serious injury and/or pr operty damage. • Inside the encapsulated, there are supercapacitors if 25F which can be dangerous. Be careful with them.

22. Rev. 0: 30 - 10 - 2020 21 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 Ethern et 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. Then choose Accept button and in the Proprieties of Ethernet also . Finally close the window and the IP w ill have been changed. In order to check it, click on the network details or run the ipconfig on the Windows terminal. If not, repeat the process or check out our website’s blog about changing the IP addresses.

19. Rev. 0: 30 - 10 - 2020 18 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 l ocal network as the Raspberry. You can use the ping comm and with the address 10.10.10.20 as option in the windows terminal. The windows terminal can be found typing cnm on the windows search bar. After having installed PuTTY run the program and the followi ng window should be opened. If it is not the same, click on the top left corner the option Session. For setting up PuTTY the Raspberry IP must be entered on the HostName field and make sure that the p ort 22 is being used and the SSH option is selected on the Connection Type . After all the settings have been d one, click on the Open button to run the program. F or a faster start in subsequent sessions , before run the program, enter a name on Saved Sessions and click on the Save button (a double click on the named configuration will execute the program with the sa ved configurations).

37. Rev. 0: 30 - 10 - 2020 36 Revision Table Revision Number Date Changes 0 30 / 10 /2020 First implementation

20. Rev. 0: 30 - 10 - 2020 19 When you start the connection, the terminal window will be open ed. 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. You hav e to accept the key, as it will be stored i n the register and will be used to contrast it with the one sent by the server on each connection. If for some reason the key changes, PuTTy will generate a new notice in which the authenticity of the received key will be raised, since someone could be pos ing as the server to which we want to connect. Once connected, will be a full access to the Raspberry PLC and the user will be able to control it and set the functions needed. Also new users or the password could be changed as the device IP. The commands f or going through the Raspberry are the same as the Linux terminal. The most useful are the following: • cd: to navigate through the Linux files and directories. • ls: is used to view the contents of a directory. • cat: it is used to list the contents of a file o n the standard output. • mkdir: use mkdir command to make a new directory • rm: is used to delete directories and the contents within them. • touch: allows you to create a blank new file. For closing the connection, jus t type exit in the Raspberry terminal.

16. Rev. 0: 30 - 10 - 2020 15 H ow to connect PLC to power supply - Raspberry PI Family PLCs are 12 - 24Vdc supp lied. 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 The standard, Part 1 of IEC 6 1010, sets the general safety requirements for the following types of electrical devices and their accessories, regardless of where use of the device is intended. The equipment must be powered from an external power source in accordance with IEC 61010 - 1, whose output is MBTS and is limited in power according to section 9.4 of IEC 61010 - 1. Warning : Once the equipment is installed inside an electrical cabinet, the MTBS cables of the equipment must be separated from the dangerous voltage cables. Compact DIN rail power supply. Assembled on 35mm DIN Rail: - 24Vdc - 10 A - 240 W Industrial Shields power suppli es provide parallel operation, overvoltage protection, and overcurrent protection. There is a LED inductor for power status, the power supply is certified according to UL.

18. Rev. 0: 30 - 10 - 2020 17 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. 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. You have to accept the key, as it will be sto red in the register and will be used to contrast it with the one sent by the server on each connection. If f or some reason the key changes, a new notice is generated in which the authenticity of the received key will be ra ised, since someone could be posin g as the server to which we want to connect. Once connected, will be a full access to the Raspberry PLC and the user will be able to control it and set the functions needed. Also new users or the password could be changed as the device IP. The commands for going through the Raspberry are the same as the Linux terminal. The most useful are the following: • cd: to navigate through the Linux files and directories. • ls: is used to view the contents of a directory. • 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. • touch: allows you to create a blank new file. In order to logout and closing the connect ion, just type exit in the Raspber ry terminal.

17. Rev. 0: 30 - 10 - 2020 16 How to access to the Raspberry PLC Raspberry PLC access T o 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 Raspber ry is given with the local IP address 10.10.10.20/24 , the default user is pi and the password is raspberry . For connecting to it, you must change your local address for b eing in the same local network as the Raspberry. After the first connection you can a dd users or change each user’s password anytime. In order to know if the Raspberry is connected and the Ethernet connection is going on, a ping command can be run on the t erminal (for windows users enter cnm in the windows searching tab to open it): The steps to follow for both Linux and Windows are explained below: 5.1.1 Linux In order to access the Raspberry PLC, Linux users have to enter by SSH protocol, which should have been installed before by the user. As has been said, the Raspberry is given with a lo cal IP address by default for making an easier path for the customer. So , first of all we have to check if our local Ethernet Network is set with the same local IP address as our raspberrian device. In case that you do not know how to set it, check the sec tion 6 of the guide . As have been mentioned before, you can use the ping command with the address 10.10.10.20 as option: $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.

38. Rev. 0: 30 - 10 - 2020 37 About Industrial Shield s: Direction: Fàbrica del Pont, 1 - 11 Zip/Postal Code: 082 72 City: Sant Fruitós de Bage s (Barcelona) Country: Spain Telephone: ( +34 ) 938 760 191 / (+34) 635 693 611 Mail: industrialshields@industrialshields.com

33. Rev. 0: 30 - 10 - 2020 32 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. If we are working as the analo gical option , the value will work in a range from 0 to 100 percent. Otherwise, for the digital option a logical 1 will turn on the pin while a 0 will stop it. In the case that we want to control a relay option , it will work out as a digital option , where a logical 1 will turn on the device and the logical 0 will shutdown it. By default, if not value option is provided it will be initialized as a 1 for the D igital and for the Rel ay or a 50% for the A nalogic. If any other options are chosen, an error code wil l warn us. In order to call the function, we will do the following: ./set - digital - output <output> < value> ./set - analog - output <output> <value> ./set - relay <output> <value>

21. Rev. 0: 30 - 10 - 2020 20 How to change the IP T o 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 conn ection. By default, the computers are given an IP address of the 192.xx x.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 change d. Linux For changing the IP is not necessary to know the actual one th at we have, but it is essential to know the interface name on we are working. For knowing it, we will run a ip command with the option a . $ip a All the PC’s interfaces will be shown an d we will have to look for the one named enp as will be the Ethernet on e. In order to change it, we will use the “ ifconfig ” program, install if not by default in the system . To change your IP address on Linux, use the “ifconfig” command followed by the nam e of your network interface and the new IP address to be changed on you r computer. This command have to be call being administrator, to be able to perform the command below, we need to use su or sudo command. $sudo ifconfig <interface_name> 10.10.10.1 netm ask 255.255.255.0 Now the IP should be changed. In order to check it, run again the ip a command. If not, repeat the process or check out our website’s blog about changing the IP addresses. Windows The first step is to open the Control Panel . The quickes t way to get to it is by clicking on Start and typing it. In the Control Panel, you can click on the Network and Internet category and then click on Network and Sharing Center . If you are in icon view, just click directly on Network and Sharing Center . An Ethernet connection must be shown, if not make sure that the Ethernet wire is connected to the Raspberry PLC.

4. Rev. 0: 30 - 10 - 2020 3 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 unders tanding of the technical data of the signal modules, power supply modules and interface modules. Intended Audience This User Guide is intended for the fo llowing audience: • Persons in charge of introducing automation devices. • Persons who design automation s ystems. • Persons who install or connect automation devices. • Persons who manage working automation installation. Warnings: • Unused pins should not be connected. Ignoring the directive may damage the controller. • Before using this product, it is the re sponsibility of the user to read the product’s User Guide and all accompanying documentation. • Industrial Shields PLCs must be powered between 12Vdc and 2 4Vdc. If a higher voltage is supplied to the equipment can suffer irreversible damage. • Maintenance must be performed by qualified personnel familiarized with the construction, operation, and hazards involved with the control. • Maintenance should be perfor med with the control out of operation and disconnected from all sources of power. • The Industrial Shie lds Family PLCs are Open Type Controllers. It is required that you install the Raspberry PLC in a housing, cabinet, or electric control room. Entry to th e housing, cabinet, or electric control room should be limited to authorized personnel. • Inside the hous ting, cabinet or electric control room, the Industrial Shields PLC must be at a minimum distance from the rest of the components of a minimum of 25 cm, i t can be severely damaged. • Failure to follow these installation requirements could result in severe per sonal injury and/or property damage. Always follow these requirements when installing Raspberry family PLCs.

10. Rev. 0: 30 - 10 - 2020 9 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 shi eld. ● The inputs in the zone A /B/C are na med I X .X, being X any number suitable in the Shield. Outputs are named as Q X .X. Zone Distribution This is the possible zones scheme, whether the zone is Analog/Digital or Relay depends on your device, you can consult it on the Zones Table . The distribution of the different features that provide the Raspberry PLC Family a re described below. 0 ZONE A ZONE B ZONE C ZONE C ZONE B ZONE A ZONE 0 ZO NE C ZONE B ZONE A ZONE 0 ZONE

15. Rev. 0: 30 - 10 - 2020 14 ISO 7000/ Graphical symbols for use on equipment 0434B / Warni ng symbol Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury ISO 7000/ Graphical symbols for use on equipment 5036 / Dangerous Voltage To indicate hazards arising from dangerous voltages Precau tions Read this manual before attempting to use the RASPBERRY PLC FAMILY and follow its descriptions for reference during operation. Raspberry Board The RASPBERRY PLC FAMILY includes a Raspberry Pi 4 Board as controller . Intended Audience This manual is i ntended for technicians, which must have knowledge on electrical systems. General Precautions The user must operate Raspberry PLC according to the performance specifications described in this manual. Before using the RASPBERRY PLC FAMILY under d ifferent co nditions from what has been specified in this manual or integrating in to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment and other systems, machin es, and equ ipment that may have a serious influence on lives and property if used improperly, consult your INDUSTRIAL SHIELDS representative. Ensure that the rating and performance characteristics of the Raspberry PLC are sufficient for the systems, machin es, and equ ipment, and be sure to provide the systems, machines, and equipment double safety mechanisms. This manual provides information for programming and operating the Raspberry PLC .

29. Rev. 0: 30 - 10 - 2020 28 SPI 0 – MISO/MOSI/SCK These pins can only work as a 3.3 V 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 can not happen at the same time as the RS - 485 would not work. These pins are not established with a pull - up or a pull - down configuration by default. The Raspberry board allows th e pins to be set either in a pull - up or pull - down configuration. Otherwise, an ext ernal pull - up or pull - down circuit could be set. 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 voltag e might b e dangerous for th e devi c e. 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 requ ire a pull - up or pull - down configuration for prevention. The Raspberry Pi 4 allows the pin to be set in both configurations; however, it can be set an external pull - up or pull - down circuit in order to correctly work with this pin.

35. Rev. 0: 30 - 10 - 2020 34 Fan Functions 12.3.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 i t. 12.3.2 S top Fan The stop - fan function will deactivate the fan of the Raspberry PLC on the moment that the command is called. Consider that, if there is any fan control system by default, the stop - fan function could disable it. Warning : N ote that calling these func tions can alter the behaviour of the temperature control system in the event of any . A & B Zone Features : Communications & R TC & uSD RS - 485 Raspberry PLC is provided with two RS - 485 channel communications. Both of them are half - duplex and are controlled via the SPI0 bus. I2C The I2C protocol is meant to work in a pull - up configuration. A pull - up configuration means that when the pin is at res t (nothing connected to it) it always reads a HIG H value. In this case it reads 3.3 V when nothing is connected. The pull - up configuration is e stablished by default in these pins. If it is meant to work them as a GPIO at 3.3 V, it has to be considered that they are pull - up inputs. ./stop - fan ./start - fan

11. Rev. 0: 30 - 10 - 2020 10 Zone Features Mechanical dimension These are the possible mechanical dimensions, you can consult the specific measures for your device on the measures table . Shield Zone Characteristics Communication Shield (2 x) Ethernet (4 x) USB (1x) I2C (1 x) TTL (2x) HALF Duplex RS - 485 (1x) SPI external Port (1x) RTC (1x) Bluetooth (1x) Wi - Fi (1x) μ SD Socket (1X) CAN (x1) μ HDMI Analog Shield 13 Inputs: 8 Outputs: 8 Digital Outputs, 3 of which can work as Analog Output 13 Digital inputs, 6 of which can work as Analog Input Relay Shield 6 Inputs : 11 Outputs: 6 Digital Inputs, 4 of which ca n work as Analog Input 8 Relay Outputs 3 Digital Outputs, 3 of which can work a s Analog Output

36. Rev. 0: 30 - 10 - 2020 35 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. Function PLC connection Raspberry board pin MISO 0 SO GPIO 9 MOSI 0 SI GPIO 10 CLOCK 0 SCK GPIO 11 MISO 1 SO GPIO19 MOSI 1 SI GPIO20 CLOCK 1 SCK GPIO21 Reset Reset Reset SS SCL/SDA/RX/TX GPIO2 / GPIO3/GPIO 1 5/GPIO14 TTL Raspberry PLC has one TTL po rts, RX/TX. TTL is accessed with the function Serial (pin s GPIO14 and GPIO15 of the Raspberry PI 4). Ethernet Raspberry PLC has two Ethernet ports, eth1 and eth0. The Ethernet port controller is based on W5500 IC and it generates the eth1 interface, while the eth0 interf ace is automatically generated by the Raspberry PI 4. In the RASPBERRY PLC FAMILY , W5500 IC communicates to the Raspberry PI 4 via SPI 1 bus. RTC Raspberry PLC RTC Module is based on the D S3231 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). uSD The micro SD contains all the configurations to work properly with the Raspberry PLC. Consequently, th e micro SD should not be manipulated because without it the Raspberr y PLC would not work correctly.

13. Rev. 0: 30 - 10 - 2020 12 PWM Isolated Output 8 bits (24 Vcc) 5 to 24 Vdc I max : 70 mA Galvanic Isolation Diode Protected for Relay Expandability I2C : 127 elements – Serial Port RS485 * By using this type of signal can no lon ger use Digital signal (24Vdc) T echnical Specifications: General Specifications: Item RASPBERRY PLC ETHERNET 58 I/Os PLUS Power supply voltage DC power supply 12 to 24Vdc Operating voltage range DC power supply 11.4 to 25.4Vdc Power consumption DC power supply 30 W max. External power supply Power supply voltage 24 Vdc Power supply output c apacity 700 Ma Insulation resistance 20MΩ min.at 500Vdc between the AC terminals and the protective earth terminal. Dielectric strength 2.300 VAC at 50/60 Hz for one minute with a leakage current of 10mA max. Between all the external AC terminals and the protective ground terminal. Shock re sistance 80m/s 2 in the X, Y and Z direction 2 times each. Ambient temperature (operating) 0º to 5 0ºC with Raspberry OS Lite / 0º to 40º with Raspberry OS Desktop Ambient humidity (operating) 10% to 90% (no condensation) Ambient environment (operating) W ith no corrosive gas Ambient temperature (storage) - 20º to 60ºC Power supply holding time 2ms min. Weight Consult the Measure Table section

34. Rev. 0: 30 - 10 - 2020 33 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 necessa ry to do it. The pins which can operate with both Analog/Digital configurations are: • 0.5 • 1. 5 • 2.5 • 0.6 • 1.6 • 2. 6 • 0.7 • 1.7 • 2 . 7 As for the relay option, we can call the function as the following example: 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. In order to call the function, we will do the following: As for t he get - temp function , it will return the actual temperature of the device. Any parameter must be passed, as calling the function itself will return the temperature in milli - degrees. In order to call the function, we will do the following: ./get - digital - input <input> ./get - analog - input <input> ./get - temp ./set - digital - output Q0.5 1 ./set - digital - output Q0.5 stop ./set - analog - output A0.5 50 ./set - analog - output A.05 50 ./set - relay R0.5 1

14. Rev. 0: 30 - 10 - 2020 13 Performance Specification: Raspberry Board Raspberry Pi 4 I/O control me thod Combination of the cyclic scan and immediate refresh processing methods. Programming language Linux applications : Python, C++, etc. Program capacity (SRAM) 2 – 4 - 8 G B EEPROM 4 MB/512 KB Clock Speed 1.5 G Hz CPU Broadcom BCM2711, Quad core Corte x - A72 (ARM v8) 64 - bit SoC @ 1.5GHz Symbology Table that includes all the symbology that is used in the serigraph of the RASPBERRY PLC FAMILY : Symbol Standard No. / Standard Title Standard Reference No. / Symbol Title Symbol Meaning IEC 60417 / Graph ical symbols for use on equipment 5031 / Direct Current Indicates that the equipment is suitable for direct current only; to identify relevant terminals IEC 60417 / Graphical symbols for use on equipment 5032 / Alternating Current Indicates that the eq uipment is suitable for alternating current only; to identify relevant terminals IEC 60417 / Graphical symbols for use on equipment 5130 / Pulse General To identify the control by which a pulse is started. IEC 60417 / Graphical symbols for use on equipment 5017 / Earth, Ground To identify an earth (ground) terminal in cases where neither the symbol 5018 nor 5019 is explicitly required. IEC 60417 / Graphical symbols for use on equipment 5115 / Si gnal lamp To identify the switch by means of whi ch the signal lamp(s) is (are) switched on or off. Medical Devices Directive 93/42/EEC CE Marking CE marking indicates that a product complies with applicable European Union regulations

25. Rev. 0: 30 - 10 - 2020 24 2 See Section 8 to select the correct configuration for outputs. X Zone Raspberry PLC Connector Function GND A X .7 2 A X .6 2 A X .5 2 Q/Vdc COM ( - ) Q X .7 2 Q X .6 2 Q X .5 2 Q X .4 Q X .3 Q X .2 Q X .1 Q X .0 GND Analog Out Analog Out Analog Out External Isolated Out Vdc External Isolated Out GND Dig ital /PWM Out Digital /PWM Out Digital /PWM Out Digital Out Digital Out Digital Out Digital Out Digital Out Led indicator I/Os state Configuration Switch (See Section 8 to select the correct configuration for outputs) Analog Outputs Voltage Supply/Reference for Digital/PWM Outputs (isolated) Digital Outputs Top Zone

28. Rev. 0: 30 - 10 - 2020 27 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 Outp ut 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. If it is desired to use an Analog Output the pin must be set to OFF and t he pin that will provide this analog o utput is represented with AX.X, being X any number of the tables above. I/O RASPBERRY PLC 3.3 V pins The RASPBERRY PLC FAMILY has some of the Raspberry PI 4 board pins available . Th ese pins can be programmed according to Raspberry feat ures such as I/O ’ s o perating at 3.3 V or any additional features present in the pins (for example I2C communication in pins SCL and SDA). As the s e pins are directly connected to the Raspberry PI 4 board , they are not as well protect ed as the normal inputs. These pins are mainl y meant to be used as prototyping. The Raspberry board available pins are summarized in the table below. In or der to access to these pins some extra considerations must be taken in consideration . * IMPORTANT: Do not connect the terminals in the chart above to voltages higher than 3.3 V. These terminals p rovide direct access to the Raspberry board. T here are some special conditions depending o n these 3.3 V. Now it is going to be shown the considerations to operate with these pins. Serial – RX /TX The Serial protocol can work also as a 3.3 V pin. These pins should be used only in case that all the 3.3 V pins are already performing a function. If us ing both interfaces at the same time the Raspberry board will get blocked. These pins are not established with a pull - up or a pull - down configuration by default. The Arduino board allows the pins t o be set in a pull - up configuration. Otherwise, an externa l pull - up or pull - down circuit could be set. PLC terminal Rasp berry pin T X GPIO 1 4 R X GPIO 1 5 MISO 0 G PIO 9 MOSI 0 GPIO 10 SC L K 0 GPIO 11 GPIO25 GPIO 25

23. Rev. 0: 30 - 10 - 2020 22 Raspberry PLC Family Pinout 0 Zone connection (Communications) SS: Chip Select pins. These pins can act as TTL, so they can work for the Chip Select pin of any device. Right Side Upper Side Left Side Base (common unit) 0 Zone PLC Connector Raspber ry Pin Function A+ B - GND B - A+ GND SDA SCL 5V 3.3V GND GPIO25 5V GND SCK SI SO NC RX TX Vdc GND - - - - - - GPIO2 GPIO3 - - - GPIO25 - - GPIO11 GPIO10 GPIO9 - GPIO15 GPIO14 - - RS485(2) RS485(2) GND RS485(1) RS485(2) GND I2C I2C Power Supply Power Supply GND RASPBERRY Pin Power Supply GND SPI /SS SPI /SS SPI /SS Not Connected RX TX Power Supply GND Communication Pins Power supply connectors (24Vdc – GND )

24. Rev. 0: 30 - 10 - 2020 23 Analog/Digital Zone connection (I/Os) 1 See the Interrupt Equivalence Table in Section 7.4 X Zone Raspberry PLC Connector Function I X .12 I X .11 I X .10 I X .9 I X .8 I X .7 ( - )I X .6 I X .6/INT 1 ( - )I X .5 I X .5/INT 1 ( - )I X .4 I X .4 ( - )I X .3 I X .3 ( - )I X .2 I X .2 ( - )I X .1 I X .1 ( - )I X .0 I X .0 Analog / Digital In A nalog / Digital In Analog / Digital In Analog / Digita In Analog / Digital In Analog / Digital In GND I0.6 Interrupt X In GND I0.5 Interrupt X In GND I0.4 Digital Input GND I0.3 Digital Input GND I0.2 Digital Input GND I0.1 Digital Input GND I0.0 Digital I nput Analog / Digital Inputs Digital / Interrupt Inputs (isolated) Digital Inputs (isolated) POWER INDICATOR RTC BATTERY CAN BUS ETHE RNET2 CONNECTOR

12. Rev. 0: 30 - 10 - 2020 11 General Features CONECTABLE PLC RASPBERRY 24 VCC MODEL TYPE Controller General Specifications Information Input Voltage 12 to 24 Vdc Fuse Protection (2.5 A) Polarity protection I max. 1.5 A Size Con sult the Measure Table section Clock Speed 1 .5 G Hz Flash Memory - SRAM 2 - 4 - 8 G B Communications I2 C – Ethernet (x2) – USB (x4) – (x2) RS485 – SPI – WiFi – Bluetooth - Serial TTL – CAN - μ SD - RTC MAX485 – W550 0 Dig ital GPIO25 (3.3 V ) 3.3 V An/Dig Input 10bit (0 - 10Vcc) 0 to 10V ac Rated Voltage: 10Vac 5 to 24Vdc I min: 2 to 12 mA Galvanic Isolation Rated Voltage: 24 Vdc Digital Isolated Input (24Vcc) 5 to 24Vdc I min: 2 to 12 mA Galvanic Isolation Rat ed Voltage: 24 Vdc * Interrupt isolated Input HS (24Vcc) 5 to 24Vdc I min: 2 to 12 mA Galvanic Isolation Rated Voltage: 24Vdc Analog Output 8 bits (0 - 10 Vcc) 0 to 10 Vdc I max: 20 mA Separated PCB Ground Digital Isolated Output (24 Vcc) 5 to 24 Vdc I max: 70 mA Galvanic Isolation Diode Protected for Relay I max 24 Vdc: 410 mA Relay Output ( 220 Vac ) 24 VDC / 220 VAC I max: 5 A Galvanic Isolation Diode Protected for Relay

6. Rev. 0: 30 - 10 - 2020 5 Table of Contents General Description RASPBERRY PLC FAMILY Product ................................ .................... 7 Reference Table ................................ ................................ ................................ ................. 7 Zones Table ................................ ................................ ................................ ....................... 8 Measures Table ................................ ................................ ................................ ................. 8 Zone - Nomenclature ................................ ................................ ................................ ........ 9 Zone Distribution ................................ ................................ ................................ ............... 9 Zone Features ................................ ................................ ................................ .................. 10 Mechanical dimension ................................ ................................ ................................ .... 10 General Features ................................ ................................ ................................ ............. 11 Technical Specifications: ................................ ................................ ................................ ..... 12 General Specifications: ................................ ................................ ................................ .... 12 Performance Specification: ................................ ................................ ............................. 13 Symbology ................................ ................................ ................................ ....................... 13 Precautions ................................ ................................ ................................ .......................... 14 Raspberry Board ................................ ................................ ................................ .............. 14 Intended Audience ................................ ................................ ................................ .......... 14 General Precautions ................................ ................................ ................................ ........ 14 How to connect PLC to power supply ................................ ................................ ................. 15 How to access to the Raspberry PLC ................................ ................................ ................... 16 Raspberry PLC ac cess ................................ ................................ ................................ ...... 16 5.1.1 Linux ................................ ................................ ................................ .................... 16 5.1.2 Windows ................................ ................................ ................................ .............. 18 How to change the IP ................................ ................................ ................................ .......... 20 Linux ................................ ................................ ................................ ................................ 20 Windows ................................ ................................ ................................ .......................... 20 Raspberry PLC Family Pinout ................................ ................................ ............................... 22 0 Zone connection (Communications) ................................ ................................ ............ 22 Analog/Digital Zone connection (I/Os) ................................ ................................ ............ 23 Relay Zone connection (I/Os) ................................ ................................ .......................... 25 Interrupt equivalenc e table ................................ ................................ ............................. 26

26. Rev. 0: 30 - 10 - 2020 25 Relay Zone connection (I/Os) 3 See Section 8 to select the correct config uration for outputs. 4 See the Interrupt Equivalence Table in Section 7.4 X Zone M - Duino Connector Functio n R X .8 R X .7 R X .6 R X .5 R X .4 A X . 2 3 A X .1 3 A X .0 3 GND Q X .2 3 Q X .1 3 Q X .0 3 GNDCOM 24VCOM Relay Out Relay Out Relay Out Relay Out Relay Out Analog Out Analog Out Analog Out GND Digital/PWM Out Digital/PWM Out Digital/PWM Out External Isolated Out GND External Isolated Out Vdc C Zone M - Duino Connector Function R X .3 R X .2 R X .1 GND I X .5 I X .4 I X .3 I X .2 I X .1 /INT 4 ( - )I X .1 I X .0 /INT 4 ( - )I X .0 Relay Out Relay Out Relay Out GND Analog/Digital Input Analog/Digital Input Analog/Digital Input Analog/Digital Input Interrupt X In GND I0.1 Interrupt X In GND I0.0 Led indicator I/Os state Relay Outputs Analog Inputs Interrupts/Digital Inputs (Isolated) Configuration Switch (See Section 8 to select the correct configurati on for outputs) Top Zone Relay Outputs Analog O utputs PWM/Digital Outputs NC NC

27. Rev. 0: 30 - 10 - 2020 26 Interrupt equivalence table See the Reference Table in order to know the specific device details. ZONE ANALOG/DIGITAL RELAY RASPBERRY PIN A 0.5 0.0 GPIO13 0.6 0.1 GPIO12 B 1.5 1.0 G PIO27 1.6 1.1 GPIO4 C 2.5 2.0 GPIO17 2.6 2.1 GPIO16 Switch Configuration Analog / Digital Zone ZONE A ZONE B ZONE C SWITCH ON OFF SWITCH ON OFF SWITCH ON OFF NC - - NC - - NC - - Q0.7 Q0.7 A0.7 Q1.7 Q1.7 A 1 .7 Q 2 .7 Q 2 .7 A 2 .7 Q0.6 Q0.6 A0 .6 Q1.6 Q1.6 A 1 .6 Q 2 .6 Q 2 .6 A 2 .6 Q0.5 Q0.5 A0.5 Q1.5 Q1.5 A 1 .5 Q 2 .5 Q 2 .5 A 2 .5 Relay Zone ZONE A ZONE B ZONE C SWITCH ON OFF SWITCH ON OFF SWITCH ON OFF NC - - NC - - NC - - Q0.2 Q0.2 A0.2 Q1.2 Q1.2 A1.2 Q2.2 Q2.2 A2.2 Q0.1 Q0.1 A0.1 Q1 .1 Q1.1 A1.1 Q2.1 Q2.1 A2.1 Q0.0 Q0.0 A0.0 Q1.0 Q1.0 A1.0 Q2.0 Q2.0 A2.0

7. Rev. 0: 30 - 10 - 2020 6 Switch Configuration ................................ ................................ ................................ ........... 26 Analog / Digital Zone ................................ ................................ ................................ ....... 26 Relay Zone ................................ ................................ ................................ ....................... 26 I/O RASPBERRY PLC 3.3V pins ................................ ................................ ............................. 27 Serial – RX/TX ................................ ................................ ................................ .................. 27 SPI0 – MISO/MOSI/SCK ................................ ................................ ................................ ... 28 GPIO25 ................................ ................................ ................................ ............................ 28 Equivalence Table ................................ ................................ ................................ ................ 29 Pin - Out ................................ ................................ ................................ ............................ 29 10.1.1 Analog/ Digital DevicesAnalog I/Os ................................ ................................ ...... 29 10.1.2 Digital I/Os ................................ ................................ ................................ ........... 30 10.1.3 Relay DevicesAnalog I/Os ................................ ................................ .................... 30 10.1.4 Digital I/Os ................................ ................................ ................................ ........... 31 10.1.5 Relay ................................ ................................ ................................ .................... 31 Internal I2C and SPI Connections ................................ ................................ ........................ 32 Input & Output control ................................ ................................ ................................ ....... 32 Set Value ................................ ................................ ................................ .......................... 32 Get Value ................................ ................................ ................................ ......................... 33 Fan Functions ................................ ................................ ................................ .................. 34 12.3.1 Start Fan ................................ ................................ ................................ .............. 34 12.3.2 Stop Fan ................................ ................................ ................................ ............... 34 A & B Zone Features: Communications & RTC & uSD ................................ ......................... 34 RS - 485 ................................ ................................ ................................ ............................. 34 I2C ................................ ................................ ................................ ................................ .... 34 SPI ................................ ................................ ................................ ................................ .... 35 TTL ................................ ................................ ................................ ................................ ... 35 Ethernet ................................ ................................ ................................ ........................... 35 RTC ................................ ................................ ................................ ................................ ... 35 uSD ................................ ................................ ................................ ................................ .. 35 Revision Table ................................ ................................ ................................ ..................... 36

Views

  • 380 Total Views
  • 266 Website Views
  • 114 Embeded Views

Actions

  • 0 Social Shares
  • 1 Likes
  • 0 Dislikes
  • 0 Comments

Share count

  • 0 Facebook
  • 0 Twitter
  • 0 LinkedIn
  • 0 Google+

Embeds 2

  • 1
  • 1 www.industrialshields.com