In this post we will show you
how to import and export Rungs and a Routine in a program on RSLogix5000. This
method can help, for example, during a software update sent by colleagues or
remote vendors. The same principle can also be applied to the Import / Export
of Data-Types, for example a UDT, Add-On Instructions and even Tags and
comments (in Tools> Import).
First we will configure the
simulator in RSLogix5000:
After inserting the modules and configuring IO mapping and
the RPI, which is increased from 5ms to 50ms, we tested the simulator inputs
and outputs to verify that the connection between the CPU and IO card is working:
We created a simple logic as a test that we will export and
import on another CPU. In this example, we wrote the commands and IO addresses
in Excel and Word to replace paragraphs and large spaces (^ p and w) with
single spaces.
sor xic Local:8:I.Data[1].0 ote Local:8:O.Data[0].0
...
sor xic Local:8:I.Data[1].0 ote Local:8:O.Data[0].0
...
We created a Subroutine called IO_Mapping and inserted the
text above. This operation is done with the PLC online, in order to simulate a
software edition when the factory is in production and the PLC is online.
Right-click on the Rung and export. A document with the
extension .L5X will be created, which is an XML format. Also export to Routine
following the same steps.
On the other CPU, right-click on the Rung and Import.
When doing a check of the Program it alerts you that an
error, because the Routine that is being called does not exist yet:
Importing the IO_Mapping Routine, we can see that when it
was exported, the IO chart was at 8.
Therefore, we have to correct the address because on that
CPU the IO card is in slot 6.
Once imported, the PLC is online and awaits confirmation,
which we do after checking the logic and IO addresses by clicking on the Verify Routine button:
No comments:
Post a Comment