Speed Plc

Speed ​​Plc is a complete system that allows you produce a PLC. It consists of Speed ​​Plc editor software (the program that runs in your computer) and firmware (operating system loaded in the chip or board). With Speed ​​Plc editor program you can prepare plc code in ladder language. The code you have prepared will be operated by the firmware. With the Speed ​​Plc editor program you can control all the features of Plc. Firmware is currently only available for Raspberry Pi.  We will prepare the firmware for other boards and integrate it into the Speed ​​Plc system within a short time.

Raspberry Pi PLC:

Raspberry Pi is a complete computer with different models ranging from $10 to $35. With the Speed ​​Plc system, you can turn the Raspberry Pi into a plc in a few minutes.

You must first install the Rasbian operating system to the Raspberry Pi you bought. You can see how the installation is done by expanding the window below.

Raspberry Pi Setup:

Download the Rasbian operating system from Raspberry Pi site. Https://www.raspberrypi.org/downloads/raspbian/

With the Win32 Disk Image program, write your Rasbian image to the SD card.

Make SD card, keyboard, mouse and screen connection and power up the Raspberry Pi.

Make the network connection.

Set the opening password.

If you are using hdmi run the nano program by typing this to command line: sudo nano /boot/config.txt . Find hdmi_safe = 1 line and make it active.

Allow SSH, SPI, I2C and Serial port from Raspberry Pi Preference menu.

Restart Raspberry.

At the command line, run sudo apt-get update.

 

Making the ip address static:

At the command line, run the nano editor: sudo nano /etc/dhcpcd.conf

Find this line: nohook lookup-hostname and add IP addresses to below as following

Interface eth0

Static ip_address = 192.168.0.216 / 24

Static routers = 192.168.0.1

Static domain_name_servers = 192.168.0.1

Interface wlan0

Static ip_address = 192.168.0.11 / 24

Static routers = 192.168.0.1

Static domain_name_servers = 192.168.0.1

 

Serial Port Settings:

Run the nano editor by typing this command to command line: sudo nano /boot/config.txt Add this code to the bottom row: Dtoverlay = pi3-disable-bt

Run the nano editor by typing this command to command line: sudo nano /boot/cmdline.txt Delete this statement: console=serial0,115200

 

Setting up the real time clock:

Add I2C support by typing this command to command line: sudo apt-get install i2c-tools

Run the nano editor by typing this command to command line: sudo nano /boot/config.txt . Add this row to the end of the file: dtoverlay = i2c-rtc, ds1307

Add fake clock by typing this command to command line: sudo apt-get purge fake-hwclock

Run the nano editor by typing this command to command line: sudo nano /etc/rc.local . Add the hwclock -s statement on the exit o command.

Run the nano editor by typing this command to command line: sudo nano /lib/udev/hwclock-set . Comment out the three lines as follows.

#if [-e / run / systemd / system]; Then

# Exit 0

#fi

Restart Raspberry.

To change the time setting: sudo hwclock -set -date = “10/05/2010 12:57:00”

Note: SpeedPlc does not work with an error in the Raspbian operating system. We need to move the Raspbian operating system to the previous version with the following command. Run this command on the command line of Raspberry Pi.

sudo rpi-update 52241088c1da59a359110d39c1875cda56496764

Finally, run the Speed Plc program and load the firmware into Raspberry Pi.

Firmware

Firmware

Once the installation is complete, the firmware must be transferred to the Raspberry Pi with the Speed ​​Plc program. As soon as the transfer is complete, Raspberry Pi will start working as Plc. Raspberryi Pi inputs and outputs are in TTL (3.3v – 25mA) level. For now you can test your PLC by connecting buttons and LEDs. On the Raspberry Pi there are 26 ports that you can use as input / output . Then you should design the IO Shield circuits to protect the Raspberry Pi inputs and outputs. Expand the window below for optocoupler circuit design.

Optocoupler Circuit

In order for Raspberry Pi to be a true plc, the inputs and outputs used by the plc system will be needed.

  • Run / Stop button.
  • Run Led.
  • Stop Led.
  • Plc shutdown detection input.  Persistent values ​​should be stored to the disk by the firmware when the plc shutdown. With this signal, shutdown of the plc detected and the values ​​are recorded. Raspberry Pi can be used as plc without any other system inputs. But without this input, data values ​​will never be persistent. However the Plc code is always saved to disk.

Plc shutdown detection circuit

Plc Shutdown Detection Circuit

Plc Shutdown Detection Circuit

 

Advantages of the Speed ​​Plc system:

  • Plc with Raspberry Pi capability is not in the world yet. Imagine a plc with hdmi screen, keyboard, mouse, wifi, ethernet, bluetooth, serial port, Lcd, gigabyte of disk space, cpu with 4 cores and faster than 1 GHz.
  • The cheapest plc is even more expensive than the Raspberry Pi. You can get the plc for just $10
  • You can choose the appropriate equipment yourself. Besides onboard inputs and outputs, you can design IO cards working with SPI. You can reach 16384 input / output capacity.  All IOs can be read and written within only 50 ms. You can produce specific cards. For example; You can create a servo control card and add it as a plc expansion module.
  • The easy, fast and highly capable features of the Speed ​​Plc editor program are an advantage in itself.
  • And you can start working at zero cost. You do not have to buy anything from us. Speed ​​Plc program can be used freely up to 2 kb plc code. You can be a plc manufacturer without buying anything. There is no restriction on the amount of plc you sell or use, and there is no charge for production.
  • The Speed ​​Plc system is produced as a result of long R&D work. It is newly offered to market. We will continue to develop rapidly. We will first upgrade the plc command set and add new commands that are not exist in current PLCs. Then the web interface and the HMI interface will be added to the system.
  • The only disadvantage we can find for now is originating from the Java virtual machine. Speed ​​plc firmware is written in Java for Raspberr Pi. Java occasionally performs garbage collection. For this reason, the cycle time can be extended independently of the plc code. In the tests, 3-5 milliseconds per minute, and 3-5 times per day, 100 millisecond of cycle time extensions were observed. This error is mostly caused when communication with the PLC via ethernet. We are working on this error. For now, you should use the Speed ​​Plc system by accepting this error. Further developments will be announced on this page.

 

You can access our support website here.

 

License and Sales type:

You can use the Speed ​​Plc (Starter) with no charge, except for the restrictions in the table below. Contact us for different usages and designing SPI input and output modules.

  • The Speed ​​Plc system uses the 1 Kb plc code for the system. So 1 Kb code can be written with Starter version.
  • Input / output ports on Raspberry Pi can be used in all models.
  • With the Speed ​​Plc system, you do not have to pay any fees to produce and use plc. However Speed ​​Plc program has to be licensed for the use of additional modules or writing plc code larger than 2 Kb
  • Our support service is provided by Web and Mail. Depending on your license you may benefit from these services. You can access our support website here.
  • The Speed ​​Plc program has a one-year upgrade warranty. You can get the new versions for a year from the date of purchase. At the end of this period you can upgrade by paying 50% of the license fee.
  • The Speed ​​Plc program will store your license code when the license is activated. However, if there is a problem, it can be deleted from the system. For this reason, keep it in different way. When the license code is activated for a computer, it can not be used on a different computer. To make it available again, you can deactivate the license code when the computer you are using is connected to internet. You can activate the same license key on the same computer if you format and re-install the computer on which you are using the licensed Speed ​​Plc program, or if the Speed ​​Plc program is deleted and re-installed. In this case, you have to perform Deactivate License operation with your old computer to activate it on a different computer. When more than one applications running with the license code, which created especially for your name, are detected, your license will be canceled and legal follow-up will be started.our knowledge.

Recommended circuit design for using Raspberry Pi as Plc Cpu Module:

Cpu Board

Cpu Board

 

You can download the electronic schematic here.

You can download the Proteus project here.

You can download Gerber files from here.

Download:

Translate »