This is the third episode of Yokogawa PLC articles. This time we will create a project or program from scratch from WideField3.
Let’s enjoy FA.
Reference Link
Implementation
Create New Project
Create a new PLC project in WideField3.
Change CPU
When you create a new project in WideField3, it uses the F3SP28-3S CPU on Default. Since we will use F3SP71-4S in this article, let’s change the CPU of the project: click Project>Execute Program <Your Project Name> >F3SP28-3S.
The project setup screen will appear.
Set F3SP71-4S to be used in this article and click OK.
Done! CPU was changed to F3SP71-4S.
Check Installing Module Online
When WideField3 connects to the CPU, the tab in Online lists the modules currently installed in each Slot.
DisplayI/O Configuration
You can also click Online>Display I/O Configuration to see the currently installed modules.
Since there are only 5 slots in the Rack used in this project, the type of module installed in each slot is also shown in the MAIN UNIT section.
Operate IO Module
In fact, from this screen you can see the X (input) and Y (output) assignments for each module.For example, if you want to see the output module for Slot 3, click on Slot 3.
Installed in Slot 3 is a 16-point output module, so the memory address is Y301-Y316.
It is important to note that Yokogawa PLCs do not allow customization of the XY address of the module. So, for a module installed in Slot 3, the XY starts at 301, and for Slot 4, it starts at XY401, and so on.
Also, IO and internal registers start from 1 instead of starting from 0.
To be sure, let’s also check the Ethernet/IP module in Slot 5.
Although not used in this article, this module also has input/output, so let’s check the actual allocation of memory locations.
The picture is a little small, but since this is Slot 5, X501-532 are the input addresses for this module, and Y533 to Y564 are the output addresses.
The point to note here is that if the input uses the first address, the output will be the next number in the sequence. So after X501 to X532, it will be Y533 to Y564.
Create New Program Block
Next, to add a new program block in WideField3, go to Block List>Right click>New.
Select Block, enter a Filename, and confirm with OK.
The Title name can be left blank, so proceed with OK.
Done!A new program block has been added.
Save the project with File>Save Project.
Then I could see the program block I had just added from the Block List!
First Ladder Program!
Now let’s write a simple ladder program.
Click on ICON in LD and pull it into the program.
An Input Field will appear, where you should enter the device to be used for the A contact.
This time we used the internal relay I0001. Next we add OUT (coil) with the same operation.
Done!
Set the Executable Program
The next step is to have the CPU execute the program you just created; click on Execute Program>CPU.
In the Executable Program section, select the program you wish to execute and add it with >Add.
Done!
Setup IP Address
Next, click on CPU Properties to set the IP address of the CPU itself.
Open the CPU Configuration File.
CPU setting items are displayed.
The ETHERNET section contains network settings such as IP address.
Download to PLC
Ok, now I have created a ladder program to turn on Y301.
Download your project to the CPU by going to Online>Download[PC->CPU]>Project.
Donwload completed! Let’s switch the CPU to Run Mode with Yes.
Monitor the Program
Check the program’s processing in Online>Program Monitor.
Select the Block you wish to monitor. In this case, there is only one block, so select PROGRAM1.
Done!The ladder program screen was yellow because we are currently monitoring the ladder program.
Move the Mouse to a contact point to see the current value of the corresponding device.
Bit Set/Bit Reset
To change the current value of a contact, select it and right-click > Bit Set or Bit Reset.
The CPU must be switched to Debug mode in order to manipulate the current values of the device from the tool.
Done!
Of course, Bit Reset can also be done.
Change Bit Data
It is also possible to directly change the corresponding device to 1 or 0 from the Change Bit Data item.
This is how the Enter Data screen appears.
Enter 1.
Done!
Second Ladder Program – Add some Timer
The next ladder program should also use a timer; pull the TIM component into your project.
Done!TIM Block has been added.
In this case, Timer number 1 (T1) is used to set a 500 ms delay.
Done!
Insert Connection Line
Next, we will also add a Connection Line.
The contacts can be connected by Mouse operation as shown in the figure below.
Done!
Here is the program this time: I00002 is turned on>0.5 sec delay>Y301 is turned on.
Fast way to program your Ladder!
Of course, if you are familiar with the ladder, you can program it in a much faster way.
Click on any Key in the empty part of the project and the function entry screen will appear.
Click on the down arrow button to display the function list.
This time we input LD Y301, that is, we use Y301 with an A contact.
Done!
Check your Program
Check the program for errors at Project>Check Program.
Proceed with Yes.
Done!
Result
Programs with timers are also working fine!
Change Display Comment
A readable program needs good comments, and WideField3 allows you to set up multiple comment lists; click on Project>I/O Comment Display Settings.
We are using I/O Comment1 now, but different Comment Lists can be used for different purposes.
Device List
You can check the devices currently used in the project in the Project>Device List.
This is the Device List screen.
Click on the Y TAB to list the Y devices currently used in the project.
In addition, by clicking on the memory address indicated by W・R, you can go to the Point where the corresponding device is used.
Done!
Edit your Tag Name/Comment
In WideField3, to define device comments and Tag names, click on Project>Common Tag Name Definition.
This is the Comment and Tag setting screen for the device.
You will see X (input) on Default, right click>Display Device>change the device you want to display.
Then enter your comments in Y301.
Next, return to the program.
Right-click>Specify Display and click Display I/O Comment.
Done!Device comments were displayed.
Now let’s set the Tag name to Y301.
When creating a program, you can also click on the down arrow to enter the program from the Tag name.
Set Your PLC Time
By setting the exact time on the CPU, you can find the exact cause of trouble when it occurs.
Change Operation Mode
The CPU has three modes: Run, Stop, and Debug. If you want to change the current value of the CPU device memory, you must change the CPU to Debug mode.
Online Edit
To modify a program while Online, right-click on the program>Start Online Editing.
Proceed with Ok.
Done!The background color of the program can be recognized as deep yellow, and Online editing of the program is now possible.
This time, we will make a few simple modifications.
OnlineTo transfer the modified program to the CPU, right-click>Convert(Write to CPU).
Done!
When Online Editing is complete, right click>End Online Editing.
Click Yes.
Done!
Change Module Output Online
When WideField3 is connected to the CPU, you can check module status and change output from the tool.