Here is a new series of articles, in which we will develop various tests using a Software PLC called Straton.We will begin by setting up the tool and creating a simple program.
Come on, let’s enjoy FA.
Foreword
Foreword
Thank you from the bottom of my heart for visiting my technical blog and YouTube channel.
We are currently running the “Takahashi Chris” radio show with Full-san (full@桜 八重 (@fulhause) / X) which I deliver every Wednesday night.
Currently, our activities continue almost free of charge, and your warm support is very important for us to provide more content.If you are able, we would be very happy if you could support us by clicking on the links below.
Membership of Takahashi Chris
You can sign up for a membership to the radio we are doing with MR.Full (full@桜 八重 (@fulhause) / X from here.
https://note.com/fulhause/membership/join
AMAZON Gift List
This will be of great use to me in creating content for my blog and improving my facilities.
https://www.amazon.co.jp/hz/wishlist/ls/H7W3RRD7C5QG?ref_=wl_share
Patreon
Here is a small Patreon of support for the creation of content and equipment for my blog.
https://www.patreon.com/user?u=84249391
Your support will help us to enhance our activities.
Thank you in advance for your support.
Email Address(*=@)
X
Straton?
Straton Software covers all areas of industrial and automation control, from embedded solutions to software PLCs. We primarily serve original equipment manufacturers (OEMs) and hardware and software manufacturers.
The IEC61131-3 editor at Straton Software is an intuitive development environment that makes developing applications as easy and efficient as possible. The low-footprint runtime is designed to run this application on the end user’s device. Straton also includes communication stacks such as Modbus, Profinet, BACnet, CANopen, Powerlink, IEC 61850, and IEC 60870.
What is Software PLC?
A software PLC is a software version of a programmable logic controller (PLC). It combines the functionality of a traditional PLC with elements such as data loggers, communication gateways, human-machine interfaces (HMI) and web servers. In the early days of SoftPLCs, industrial PC hardware was commonly used as the platform, initially Windows.Today, most installations use a real-time OS (Linux, VX Works, FreeRTOS, QNX…)are in use.
Download
You can download the software by registering as a member at the following site.
https://straton-plc.com/en/downloads/
install
Start the Setup File downloaded earlier.
Select the required Options and proceed with Next>.
Start setup with Install.
Agree with the license.
Proceed with Next>.
Proceed with Next>.
Proceed with Next>.
Start Install.
Please wait a moment…
Select Full and proceed with Done.
After that, COPA-DATA Driver is also installed.
Finally, the installation success screen is displayed.
Registry Host is also set up.
WibKey license management software is also installed along the way.
After all software setup is complete, restart your PC.
Let’s make a program!
Now let’s start STRATON.
The first startup allows the user to select the language of the software.In this case, we will select English.
Done!The STRATON tool has been activated.
Create New Project
Click “Create a new project” on the Start Page to create a new project.
The Project Wizard will appear.
First select From Template, enter a project name in Name, and press Next to proceed.
Select Template for project creation.
You can select the Template to be used from the Drop-List.
This article will use LD Project (ladder).
Done!A new project has been created.
program creation
The Folder of Programs contains a program named Main by default.
Since we have just created a program using LD Template, the Main program will be a ladder system.
Add global variables
To the right of the Editor is a list of variables, and new global variables can be added by right-clicking Global Variables>Add Variable.
Done!We declared global variables of type BOOL.
Now let’s add the two BOOL variables we will use in this article.
NO contact added
Add NO settings from the toolbar to the left of the Editor.
Done!
Double-click the NO contact you just added and assign the variable.
In this example, we will use mySw defined earlier.
Coils are also added and assigned to Mysw2.
Options
Click Tools>Options for a clean view of the ladder circuit.
Set Character Fonts>Graphical Font>Fix LD font size to -1.
Rung Comments
The letters displayed in green in the Ladder Editor are Rung comments.
STRATON allows comments in Japanese as well as English.
compile
Now, to compile the created project, go to Project>Build All Projects.
Done!There are no errors in this project.
Simulation
Since we will not be using an actual device for the first article, we will use STRATON’s simulator: click on Project>Simulate.
Select Cold start and start the simulation with Start.
Done!The simulation is now in RUN mode.
The ladder circuit we created earlier is also working properly.
To change the status of mySw, double-click the appropriate contact.
The control screen for the corresponding contact is displayed.
If mySw is set to TRUE, mySw2 will also be TRUE.
Simulation pause
To pause the STRATON simulation, click the Pause button.
Done!The simulation is now STOP.
Variables Tabにもすべての変数の現在値を確認できます。