1. Chapter 1 Let's Write a Program
Let's write a simple program for operating a conveyor.
CAUTION
Click the ladder program area to enable operation. The title bar will turn blue.
Key operations are not enabled when the title bar and menu items are grayed out.
1 Click [Edit Ladder] button on the remote control.
2 Only the 'END' symbol is displayed on the screen.
An 'END' rung at the top of the program signals that no other programming steps exist.
3 Let's input a program.
Place the cursor in the position shown below.
Press the [F5] key.
In the 'Enter symbol' dialog box, enter X24 and click [OK].
Press the [F7] key.
In the 'Enter symbol' dialog box, enter Y1 and click [OK].
The program should look like this. Make sure that yours is correct.
4 Let's convert the program you have written into a form the PLC can recognize.
Press the [F4] key.
The background of the program is changed from gray to white.
The program has been converted.
If the program has not been input properly, a conversion error message is displayed.
Chapter 2 Let's Write Another Program
1 This is how you write the program on the second line.
Place the cursor at the head of the second line.
Press the [F5] key.
1
2. In the 'Enter symbol' dialog box, enter X20 and click [OK].
Press the [F7] key.
In the 'Enter symbol' dialog box, enter Y0 and click [OK].
The program should look like this. Make sure that yours is correct.
2 Next, write the program on the third line.
Place the cursor at the head of the third line.
Press the [F5] key.
In the 'Enter symbol' dialog box, enter X21 and click [OK].
Press the [F7] key.
In the 'Enter symbol' dialog box, enter Y2 and click [OK].
The program should look like this. Make sure that yours is correct.
3 'Convert' this program as you converted the first line.
Press the [F4] key.
The background of the program is changed from gray to white.
The program has been converted.
If the program has not been input properly, a conversion error message is displayed.
Chapter 3 Program Transfer to PLC
2
3. Let's write the program you have created to the PLC.
An actual PLC is not required because a virtual FX Series PLC is already in your computer.
1 The program can be written to the PLC by selecting "Online" - "Write to PLC" in the ladder
program area.
2 When the message 'Write completed. The simulation will start.' is displayed, select [OK].
The PLC starts to operate.
The 'RUN' indicator lamp should be lit in the I/O monitor display area of the PLC.
If it is not lit, the PLC is not operating.
Next, let's simulate the program you have created.
Chapter 4 Machine Operation
Let's use your program to control a virtual machine.
If the guidance window blocks out the machine, click the tutor on the remote control to hide the
window.
Once you have confirmed the movement, click it again to display the guidance.
1 When [PB1] (X20) on the operation panel is pressed, a part is supplied to the conveyor.
(If multiple parts are supplied, they get crushed!)
2 When [SW1] (X24) on the operation panel is turned ON, the conveyor moves forward.
3 Press [PB1] (X20) to supply a part to the moving conveyor.
Chapter 5 Edit the Program
How is the movement of the conveyor and the part?
You see the part falling on the floor. Let's solve the problem as follows.
1 Click [Edit Ladder] button on the remote control.
2 Add this contact to the first program.
Press the [Shift] + [F5] key.
In the 'Enter symbol' dialog box, enter X0 and click [OK].
3
4. 3 Press the [F4] key to convert the program.
4 Write the program to the PLC selecting "Online" - "Write to PLC".
5 Make sure 'RUN' is indicated on the remote control.
6 Press [PB1] (X20) to supply a part to the conveyer.
Turn ON [SW1] (X24) to start the conveyor.
7 Is the part stopped at Sensor (X0)?
• Stopped >> Good! Controlled as planned.
• Does not stop >> Check the program.
• Conveyor does not move >> Check the program.
• Part stops some time after passing the sensor
>> Select "Tools" - "Options" on the simulation window and lower the speed of the
conveyer.
8 After the part stops, press [PB2] (X21) to push it onto the tray.
As you can see, a three-line program can control something practical.
You have learned basic programs in the previous exercises.
As you proceed in the learning software, you will learn how to control more complex operations
using these basic concepts.
4