PLCnext Tutorial for Beginners - Part 4 | How to Easily Create Ladder Logic Programs

PLCnext Tutorial for Beginners - Part 4 | How to Easily Create Ladder Logic Programs

41.953 Lượt nghe
PLCnext Tutorial for Beginners - Part 4 | How to Easily Create Ladder Logic Programs
▶ C'mon over to https://bit.ly/44Vf06I where you can order this PLCnext Technology Starterkit directly from @phoenixcontact1923 . ============================= ▶ Check out the full blog post over at https://realpars.com/plcnext-ladder-logic ============================= ⌚Timestamps: 00:00 - Intro 01:35 - Create ladder logic sheet 02:59 - PLC Tags 05:23 - Ladder logic programming 06:57 - Download the program 07:47 - Debug On 08:22 - Test the program ============================= This is the fourth of a series of videos about the Phoenix PLCnext Starterkit. In this video, we’re going to show you how to create a simple PLCnext ladder logic program, download and test it on the PLCnext Starterkit. First of all, start PLCnext Engineer and open the New Project that has the Starterkit I/O configured. As a reminder, double-clicking on Axioline F (4) will show you details about your configured I/O modules. We want to start a new program using Ladder Logic. Under the COMPONENTS column, Right-click on Programs, then choose "Add Program". The Default name for your program is "New Program". That name can be changed at any time. Double-click on NewProgram and choose the ladder logic program Network (1). Now we need to associate our New Program with the PLCnext Plant. Double click on PLCnext (2) under the PLANT column. Under ESM1(1), enter the task name Main_Task. Click Select Program type here and choose NewProgram from the drop-down window. PLCnext Engineer programs are developed using variables assigned to I/O modules instead of directly addressing inputs/outputs. S1 and S2 are our input variables. LED01 and LED02 are our output variables. Let’s create them. If your ladder logic worksheet is not on the screen, double-click on NewProgram under the COMPONENTS area. From the current worksheet, click on Variables. Create all four of your BOOL variables. Be sure to select External usage for each variable. That allows you to assign each of these variables to the External I/O modules on the Starterkit. Once the variables have been created, they need to be assigned to specific I/O modules. We’ve got four variables to create and assign. – S1 and S2 are inputs and will be assigned to the Digital input module – LED01 and LED02 are outputs and will be assigned to the digital output module Double-clicking on do-1, and di-1 under Axioline F (4) will open windows allowing you to assign the variables to respective I/O modules. Let’s start with the inputs S1 and S2 that will be assigned to the input module in Slot 2. Choose Data List under the di-1 icon. We will assign S1 and S2 to Input 01 and Input 02 respectively. We will repeat the process for the outputs LED01 and LED02 and assign them to the output module in Sot 1. There are several ways to build the program. Once you become familiar with PLCnext Engineer, you will likely develop your own preferred method. As you build your program, you will notice that PLCnext Engineer automatically assigns variables to each ladder logic instruction. Once your two-rung program is complete, we need to proceed with changing the automatically assigned variables to S1, S2, LED01, and LED02. Double-clicking on the automatically assigned variable will open a dropdown window. Scanning through the dropdown window will take you to your created variables. For each of the automatically assigned variables, proceed with tagging each of the automatically assigned variables with your created variable names. Don’t forget to change S2 to a normally closed symbol! We’ve constructed the ladder logic program, now let’s download it to the Starterkit PLC and test it. Right-click on AXC F 2152 under the PLANT column. From the dropdown menu, choose Write and Start Project... ============================= PLCnext Tutorial for Beginners - Part 1 | What’s in the Starterkit Box? https://realpars.com/plcnext-starterkit PLCnext Tutorial for Beginners - Part 2 | Create a New Project and Configure Ethernet Port https://realpars.com/plcnext-engineer PLCnext Tutorial for Beginners - Part 3 | Configure the I/O Modules https://realpars.com/phoenix-contact-plcnext ============================= Missed our most recent videos? Watch them here: https://realpars.com/factory-acceptance-test https://realpars.com/boolean-logic ============================= Follow us on Facebook: https://www.facebook.com/therealpars Follow us on Twitter: https://twitter.com/realpars Follow us on LinkedIn https://www.linkedin.com/company/realpars Follow us on Instagram https://www.instagram.com/realparsdotcom #RealPars #PLCprogramming #PLCnext