Machines Simulator Quick Guide
Machines Simulator Quick Guide
Running Installation.
More
www.nirtec.com
Machines Simulator for EasyPLC.
Machines Simulator
Introduction
The objective of this guide is the user will be able to start using EasyPLC with Machines Simulator in a fast way, without need to read
all the manuals of the entire software suite (EasyPLC User Manual and Machines Simulator Instruction Guide).
Here is explained how to run the first of the available virtual machines: Chain Conveyor, showing all the necessary steps needed to
make run with EasyPLC.
Also a very simple example is showed about how to create a basic installation/machine, how to add components, assign PLC I/O
signals, how to make the logic program with EasyPLC and run the machine.
Machines Simulator
Machine Objective
Two types of boxes will arrive loaded in pallets from the cargo line, some with high boxes and others with small boxes.
Goods with high boxes should be sent to the transporter on the right, small boxes to the left.
Use the reading station with two photocells to make the selection, and the chain conveyor to move the pallets to the appropriate
conveyor.
EasyPLC includes some example programs of the available Machines Simulator systems. The one used to manage this installation, is
called MachinesSimulator3_ChainConveyor.plc, is written in Ladder programming language, now is explained how to make run.
Machines Simulator
Select from EasyPLC Editor menu: Program -> Compile and Transfer:
Machines Simulator
Select from EasyPLC Editor Main Menu -> Launch Virtual PLC CPU:
Set Virtual PLC CPU in Run Mode (right mouse click in the Virtual PLC CPU icon located in the tray windows area, and select from the
pop-up menu Set PLC in Run Mode):
Once you have made this process, then launch Machines Simulator, select Machines Page, and place the mouse over the Chain
Conveyor Machine, then click on START button:
Machines Simulator
If all is ok, you will see the PLC led status in green color, this is, Machines Simulator is connected with VirtualPLC
Now move in front of the small electric cabinet and press the flashing green Push button with mouse, in order to start the machine.
Note when you place the mouse cursor over the button, how the cursor changes, this means is an interactive element can be clicked
Then the machine will start to work in automatic mode managed by Virtual PLC.
Machines Simulator
Machine Objective
Manage the Gantry to pick the metal boxes from the conveyor belt, and place two metal boxes in one wood pallet located in the
conveyor roller.
When the conveyor belt is on, automatically provides boxes, use the inductive switch to stop the belt in order to pick up the box with the
gantry.
Manage the conveyor's stop to place the wood pallets in the download position.
The Gantry is managed with six digital outputs, to move left, right, up, down, close and rotate grips. The Gantry will active 4 inputs in
order to inform about their position (left - right - up - down).
Once the box is picked in longitudinal sense, must to be placed in the pallet in transversal sense. Then the gantry grips must to be
rotated during the movement or before to download it.
EasyPLC includes some example programs; one is used to manage this installation, this is written in Ladder programming language,
now is explained how to make run.
Machines Simulator
Select from EasyPLC Editor menu: Program -> Compile and Transfer:
Set Virtual PLC CPU in Run Mode (right mouse click in the Virtual PLC CPU icon located in the tray windows area, and select from the
pop-up menu Set PLC in Run Mode):
Machines Simulator
Once you have made this process, then launch Machines Simulator, select Machines Page, and search for Gantry Loader machine,
and then click on START button:
If all is ok, you will see the PLC led status in green color, this is, Machines Simulator is connected with VirtualPLC
Now move in front of the electric cabinet and press the flashing green Push button with mouse, in order to start the machine.
Note when you place the mouse cursor over the button, how the cursor changes, this means is an interactive element can be clicked
Machines Simulator
Creating the first Installation
Now, is explained an example about how to create our first machine and how to make the logic program in order to automatize it.
Place the mouse cursor over the Factory 1 Editor and click on the Start Button.
Go to left Tools Library, click on the left arrow on Transports category to expand, and click on the first item ConveyorBelt1. A new
conveyor is added to the machine. Now let’s customize it!
• Rotation = (0, 90 , 0)
Machines Simulator
• PLC_Out_Advance = 1
• PLC_Out_Reverse = 0
Add a Photocell, Select from left Tools Panel Components -> Sensors-> Photocell
By default will be placed in the middle of the factory, change the following properties:
• PLCIN_Signal = 0
• SupportType= Sup2
• Rotation = ( 0, 90 ,0)
• Position
o X = 1.89
Machines Simulator
o Y = 1.2
o Z = 0.74
When the properties will be changed, the photocell will be placed in the same place that is showed in the picture. You can also move it
with the gizmo axis.
Now we need another switch placed in the opposite conveyor side. To do it let’s copy the recent created one. Be sure the switch is
selected, then press Left Control + D key.
Now, a new Photocell is placed on the machine (we have duplicated the previous one). By default, the new element created will be
placed in the same location that Photocell 1, for this reason is not visible. Now change the following properties:
Machines Simulator
Ok, now we have created our simple machine, composed by one conveyor that works in two directions and two Photocells that will
detect the parts when arrive to the sensors position.
Now is time to create the part that will move over the conveyor. To do it make click on the WorkParts Tool panel, then click in the
WorkPart item:
Then a new WorkPart is added to the installation, now change the following properties in order to customize it:
• WorkPartPrefab: Box
• Position
o X = 1.9
o Y = 1.34
o Z=0
Machines Simulator
Now the Installation is finished, let’s try it to see how it works, press Start Simulation from Play Button. Press buttons ConveyorBeltStd0
Reverse or ConveyorBeltStd0 Advance, you will see how the part is moving over the conveyor. In the right panel you will see the signal
activations of the photocells when detects the part.
Now Select Tools -> View/Hide IO Panels, then place in a position the machine will be visible and press F11 Key, then a screen shot of
the machine is created and can be visible for the users in the Machines Simulator Machines Page.
Now Stop the simulation and click on Machine, in Author type your name, in Description type: First Machine.
Now select File -> Save Machine button from Menu, and name it My First Machine:
Machines Simulator
Open EasyPLC Editor and create a new Project, by default is added the Simulated Driver, delete it and add the MachinesSimulator3
driver.
When the MachinesSimulator3 driver is added to the project click in the configure button and type the following configuration:
Then press Apply button, you have configured 32 digital I/O and 8 analogic I/O.
Machines Simulator
Add the following Variables to the Program, making the same linking of elements (see Address column):
Create a new Main Ladder sequence, Clicking right mouse button over Main node of Software tree:
Machines Simulator
and write the following segments:
Launch Machines Simulator, select Machines Page and select My First Machine:
Machines Simulator
You will see how the logic program is managing the installation moving the part from left to right when the part arrives to the switches
positions:
Ok, is not a very exciting machine! but is your first step in the virtual automation world.
More
Please visit often the www.nirtec.com website to check for new information, updates and new content.