05_connect_to_a_plc

Views:
 
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Connecting to a PLC : 

The following slides show how to take an existing conveyor component and connect it to a PLC running an existing PLC program The components required for this exercise were included with V-Sim when it was installed on your computer. Connecting to a PLC

Connecting to a PLC : 

There are seven steps in this process Create Module in SoftLogix Start/Load PLC Program Add Topic to RSLinx Use Components to Create Layout Connect Layout to PLC Load I/O Map into V-Sim Run & Manipulate Layout Connected to PLC Connecting to a PLC

Connecting to a PLC (SoftLogix) : 

Once you start SoftLogix, right-click on Slot 4 and choose “Create” Pick the first choice on the “Select Module” dialog that appears. Accept the defaults on any additional dialogs that come up. Connecting to a PLC (SoftLogix)

Connecting to a PLC (RSLogix) : 

Open the PLC program called Basic_01.ACD located in the PLC\Basic\Ladders folder where you installed V-Sim Go to the Conv01 area under tasks. Then click on the pulldown next to the word “Offline” to download the program to the module you just created in SoftLogix. Connecting to a PLC (RSLogix)

Connecting to a PLC (RSLinx) : 

Create a New Topic by clicking on the icon in the red box Name the topic “PLC” Set the topic to match the module as shown by the red arrow. RSLinx is the pipe that our information passes through when going between the PLC and V-Sim. Connecting to a PLC (RSLinx)

Connecting to a PLC (V-Sim) : 

Open V-Sim and load the layout located in the Distribution/Layouts/Webinar folder. Connecting to a PLC (V-Sim)

Connecting to a PLC (V-Sim) : 

Once the layout is loaded. Go to the PLC tab and click the “Connect” button. If no local servers are listed you may need to hit a “Get Servers” button Once you can see an “RSLinx OPC Server”, highlight it and hit Connect. Close the OPC Server Browser window after you are connected. Connecting to a PLC (V-Sim)

Connecting to a PLC (V-Sim) : 

The next step is to load the I/O map. Click the Load button and select the file Basic01Map.csv from the Distribution/PLC/Basic01/CSV-Files folder. If the Load button is not highlighted, select the Kin tab and reselect the PLC tab. Connecting to a PLC (V-Sim)

Connecting to a PLC (V-Sim) : 

The images above show the I/O map and how the IO appears inside V-Sim. As the emulation runs, watch these values change. Connecting to a PLC (V-Sim)

Connecting to a PLC (V-Sim) : 

The images above show the I/O map and how the IO appears inside V-Sim. As the emulation runs, watch these values change. Connecting to a PLC (V-Sim)

Connecting to a PLC (V-Sim) : 

While the emulation is running, you can go to RSLogix (above) and toggle the bits that run the motor (Basic01.MR) and make it run in reverse (Basic01.MRRV). To toggle, right-click on the bit and choose Toggle Bit from the menu You should see the PX values on the second row change as the part moves down the conveyor. Connecting to a PLC (V-Sim)