An Introduction to Mitsubishi GxWorks 2 and How to Create your First Project!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's going on everybody and welcome back today we're gonna take a brief break from Siemens PLC's and we're gonna take a look at Mitsubishi PLC's more so working with Mitsubishi GX works too we're gonna learn how to create a brand new project in GX works to set up our communications write a small program using compact coils and even timers and then we're gonna compile a project download that to a PLC and Mitsubishi FX PLC that I've got behind me there and we're gonna test it out and see how this works life now if you guys don't know this about me already I'm 27 years old I've been working with PLC's since I was 15 years old and the very first PLC that I was taught on was Mitsubishi and what I used to program a PLC was GX developer today we're gonna be able to look at some of the newer software that's out there using GX works too now just a brief history about Mitsubishi PLC's back in the early nineties before Windows 95 Mitsubishi used what we call medoc which was a DOS based system to program its PLC's and then after Murdock was Jack's developed and that there was Mitsubishi the first platform on a Windows system after Jack's developed became GX IEC developer and that there was to adhere to the new IEC standards that was starting to be pushed out into the industry following from GX is a developer we then had Jack's works to which we're gonna have a look at today and then you've got GX wix3 which is the newest software today however that only programs certain PLC's looking at the i Series and the our series PLC's as well as the fx5 PLC's today we're gonna be working with a Mitsubishi FX 2n PLC and for that we're gonna need GX works too now if you guys do hear any background noise that there is from our fan that we have in the training room currently it's about 27 28 degrees outside at the moment and for a guy up north that there is hot an I am sweating so please forgive me for any sort of background noise there if you can hear that now before we get started what I'd like you to do to help us out is hit the like button comment below just comment anything you can comment hello or what you would like to see on our next video just comment something just so I know that you're watching and then also if you're watching us on YouTube hit that subscribe button so you stay up to date with all sorts of scam phone use right let's get started guys so on my desktop at the moment what I've got here is I've got GX works too if we just open up GX works too and what you'll see is a blank project become available now what we're gonna do here is we're gonna go to project and we're gonna select new project now the first thing that's gonna ask us to do is to set up the series of the plc now because we're working with the mitsubishi FX 2n PLC what I want to do here is make sure I've got the series selected as FX CPU if you do drop down this menu you will see several other types of Mitsubishi PLC's available but as well working with the FX we're gonna select FX CPU and then once we selected the series then what we want to do is just drop down on type menu and then select our PLC from this drop-down list as I mentioned if you work with the FX 5 series you will be using GX works 3 so looking down this list there's my FX 2 n 2 MC of just select ok of that and then the next thing is going to ask us to do is to select the project type now the first thing you've got here is a simple project and then we've also got structured project what we'll do guys we'll have a look at a simple project verse and just see exactly what a simple project is inside the GX works to the language we're gonna leave as a ladder and not use SFC just see ok to that and then what we should see is our simple project to open up here don't show this message again and then just say yes to that now if anybody has ever used GX developer you'll probably recognize this very quickly this effectively is Jake's developer in a new shell it's using the whole GX Works to branding but it's effectively a GS developed project this is what they mean by a simple project again you have your components exactly the same way as you did inside the GX developer and your programming area is also exactly the same way as it was inside the GX developer if I want to add a contact in here I give it the address X 0 for example I tie that to a coil I tie that to y 0 that there is our GX developer hit f4 and issue compare my project Jax developer guys what we're going to do here though is we're gonna work with a structured project and a structured project is what's new with GX works - a structured project allows us to create what we call P you use and function blocks and functions very similar than what we use inside of Siemens and it more so works alongside the whole IEC standards so what we're gonna do here is we're going to go back the project to go back to new FX CPU FX to N and we're going to change the project type to a structured project select ok to that and you'll see now you got structure gladder and FBD you've also got structured text and instruction list we're gonna stick with the ladder here and then we're just gonna say it okay to that I'm not gonna bother saving that project and here we go this right here is your new structured project inside the GX works - you don't get this sort of design inside the GX developer now what you'll notice straight off the bat is we no longer have a main program what we have now is a p uu u and a PLU stands for programmable organization unit and this is where we write our main program inside of this is where we structure our program similar to Obie's and say the seamen's and then we also have a folder for fbiís your function blocks and your functions as well like I say to go alongside that IEC standard now what we're gonna do first of all is we're going to set up the communications board this project we're currently connected to this FX 2 n PLC behind me via its SCO 9 lead and it comes to our laptop as a USB now the fame of that USB is connected to all we need to do is go to our Start menu go to control panel select system and then go to Device Manager and then inside the device manager if we scroll down you'll see ports and if you open a ports there is our USB if I just disconnect that USB from my laptop I should see comm 5 disappear which I do if I connect that back up again we should then see come five become enabled that there is our programming comms port for this PLC so we need to keep that in mind let's close down to device manager let's close down our control panel and then what we want to do is we want to go to the communications window now to see the communications window what I'll need to do is I'll just need to remove this bottom banner for now and at the very bottom here you will see our communications window it looks like a PC with sort of like a green line around it if we just select ok on that you'll then see your current connections pop up here if we open up all connections connection one here is our transfer setup and again if you've used GX developer it's pretty much an exact copy of GX development now what we're gonna do here is we're going to set this up for comm 5 you can see it's already set up there as con 5 but we'll show you how to do it again just double click serial USB and then where we have rs-232 see there's your comm port and there it is comm 5 and you've got a whole selection here of different compost we can use make sure it's using the one that we've selected which is comm 5 you can also set the transmission speed from here as well and you can see here this one here is set up to 19 point to kill aboard now you can set this all the way up to 1 1 5 kill aboard I believe it is however this PLC here is restricted to 19 point to kill aboard anything higher and possibly the PLC wouldn't be able to communicate with that just select 19 point to select ok and then what we want to do from here is nothing else but do a connection test select connection test and then it should come back and say successfully connected with the FX 2 n FX 2 NC CPU that there tells us we now have a link between our laptop and there were PLC behind me let's just say ok that um let's just say ok to that to go back to our project tree next to our communications window and next to the user library is our project window if I just click on that icon there and then opens up our project library and that there is where we can access order the blocks most of the tags inside of our program now what I'm gonna do is I'm just gonna bring my ticket back there we go and now what we're gonna do is we're gonna set up our program in terms of setting up its tags now when we set up tags or what Mitsubishi call labels this just allows us to write our program easier instead of us having to constantly refer to the addressing X 0 X 1 X 2 y 0 Y 1 y 2 etc now what we're gonna do here is we're gonna set up our global tags now our global tags tend to be used for X's which are our inputs Y's which are our outputs M's which are our internal bits and then these which are our internal registers anything else like our symbolic addressing tends to be used inside of our local labels open up global labels and then you'll see their global one open that up don't display this message again and here is our global label settings and what we can now do is we can now address all of our inputs and all of our outputs from this PLC into our global labels giving them some sort of symbolic name that means something to us like start push born stop push born lambic cetera so what I'm gonna do here is I'm gonna drop down our class and I'm gonna select class as bar global I'm not gonna selective our global constant that there is for a value and for the label name what I'm gonna do is I'm going to call the very first label start PB for start push button it's then gonna ask you for a date a tape just click the three dots and then select a bit because it's just gonna be an on-off signal and then what its gonna do is gonna ask us for the device and that there is the Mitsubishi address so we're gonna select X 0 and X 0 is our very first input on our PLC and you'll notice next to that device is another column labeled address and you'll actually see in there the percentage sign I x 0 that there is your IEC addressing I spoke a little bit about this last week in terms of system function blocks with Siemens and this is all to do with the is a standard and this allows us to write a program inside the Mitsubishi and we can actually move this to another PLC and it will use this IEC addressing and not the actual Mitsubishi addressing to convert the program across now what we're gonna do is going to create another global and we're gonna call this one stop PB for our project and again this is gonna be a bit and we're gonna use x1 this time and this is gonna be our next input so this is how we can actually set up input addressing inside of our PLC next what we'll do is we'll create some output addressing so another var global and we'll just call this one lamp one and we'll just create this as a bit again and this one will be Y zero and if we just select okay okay and see now the addressing is qx0 isin queues are your IEC inputs and outputs and then we'll just create another var global as well and we'll just create this as a lamp two-bit Y and what we would do in an actual project is we would go through all of the plc inputs and outputs that are gonna be wired and we'll create the actual global addressing for this from here now what you can also do which is just jumping ahead is we have to create CSV files for this addressing you'll notice up here we've got read from CSV in write to CSV what we can do is we can export all of this dressing to a CSV file say yes to that and we can just call this global one inside of our documents and then if we go to our documents folder inside of there is our global one CSV file and that will contain all of the addressing for this project that then can be accessed by anybody else on another laptop which doesn't have Jack's works too on it and they can alter the addressing should they see fit they can then send back a revised version and then all we would do is we would then read from that CSV file and import that in and then it would reflect inside of our GX works 2 project that's pretty neat in handy now what we're gonna do as well as we're gonna create some embitter dressing and we're gonna use this ember addressing to actually toggle our program we're not going to use the actual inputs here because I've got no push buttons wired I'm gonna use em bits I'm just gonna all the elements from inside of the program so again just got a valve global and then what we'll do is we'll call this start PB em and we'll leave this as a bit and this will be assigned to M zero and then again we'll just create another one and this will be stopped PB M and this will be a bit and again we'll tie this to m1 to actually use these two inside of the program instead of using the physical input addressing as we don't have any push buttons to press here now once our global labels are set up we actually get into our program and start writing the program to do this open up your pou on folder go to program and then inside of here you'll already have your very first network created and we can resize this by dragging it up and down and what we're gonna do now is we're gonna create a standard start/stop latch using the components that makes we should give us so the first thing we're gonna do is click on the open contact which is just up here select the open contact or actually select number one in a law so create an open contact for you as well and you'll notice we can drag this anywhere we want in this network here it's not like Mitsubishi GX developer or Siemens CIA portal or step 7 where you click your contact and it inserts into the network in a fixed position you can add this anywhere now this could be a good thing and a bad thing a good thing because it gives you flexibility but also a bad thing if you don't have any sort of OCD because what you could then do effectively is you could place your start/stop latch any which way you want it to and you can make it look any which way you want and this here would still work just like a start/stop watch would and if I add in our latching bit here I can then connect up to there and that effectively is a start/stop left but obviously that's not how you would want to design it so you gotta be a bit more strict with yourself in terms of how you're designing your program because like I say because it's completely flexible you can design this any which way you want so what I'm gonna do here is I want to delete this from the program and we're gonna create the start-stop latter probably and with some sort of structure so what I'm going to do is we're going to click on the normally open contact or just press one and there's our normally open contact then I'm just gonna place this inside of the network here I'm then gonna get my normally closed contact number two and I'm gonna add this shortly after we're trying to keep the spacing somewhat the same like so and then I'm gonna get my output coil and I'll place my output coil over here again just keeping everything in line keeping it all uniform what I'll then do is I'll get another input another normally open contact and I'll tie that just underneath the first normally open contact keeping it in line I don't want to do over here just doesn't look right I want it in line so it keeps everything looking nice and then what I want to do is I want to branch up to this room here from this room to do this you'll notice when I hover my mouse over this node on the right-hand side of the contact it changes to a pencil what I want to do here is I just want to click once when you click once you then create this line and then all you need to do after this is just move this line to wherever you want to place it and then click once again so what I'll do here is I'll just click once here and then that they will tie it to the top room so again it's a little bit more flexible than what we're used to using and say the seamen's aren't like that but you do have to be a bit more strict with yourself when you're designing the program personally I'm not a fan of designing programs this way because like I say it becomes a little bit messy later on when you start designing many networks and network different-sized you start have coils in line here then coils over here depending on the size of the network and then you have to go back to remove everything across to keep everything in line but to each their own I don't prefer it myself now what I want to do next is and then what were saying these contacts and coils to addressing and to do that click on the very first normally if we contact where the first remark is and we'll just type in start and as we start doing that you can start to see all of the global labels pop up here and remember I do want the star P because I've actually wired to the input I want the star PB n which is the M bit select that and there we go and you'll see it turned pink when it turns pink back there tells you it's the same as a label and if you hover over that label you'll then see m0 pop up that that tells you the address that you're wearing that to go to the next one and then select stuff a PB m and then that there creates our m1 now what I want to do is I want to latch on a lamp and I'll latch on lamp one and create my latching bit yeah so everybody knows how to create a lateral they should do by now the amount in terms of design them in different sorts of programmers we have our start PB as a normally open contact that was stock PB is normally closed going to our lamp coil when our start PB closes curtain flew to our lamp the lamp contact will then energize creating current flow across the start PB medium we can let go over the start PB and still have the lamp energized from itself the only weight and then reset the lamp is to then trigger our stock PB which opens a contact resets the latch next what I want to do is I'm just gonna resize this network and I'm gonna create a new network a new ladder block after now what I want to do here is I'm gonna tie this lamp lamp 1/2 a timer now to get our timers all we can do is we can select our element selection window icon from the top toolbar here which is number 8 it looks like a lure microchip select that and out pops our element selection or just our instructions window if you ever use Siemens before and what we want to do is we want to open up our function blocks folder and inside of your function blocks folder is where all of our timers counters rising pulses falling pulse triggers are all located so you can see here there's our c2 you there's our CTD and our CT UD and we also have our TIA when our tof and our TP these what we were using inside of our Siemens Ti a portal and also our siemens step7 professional system function blocks if you have seen that from our last video these here are the IEC function blocks now you'll notice next to some of these instructions our underscore Ian identify us these underscore a identify is referred to and labeled signals so what this means is if I drag in let's say at EO n E and then just say close to that I'll come on that later it has an enable and an enable output signal by the t o n doesn't ok so what we can do here is we can enable this timer and then control it when the input signal turns on so it'll only run when the enable signal is on and the input signal is on this timer will only run when the input signal is on so this one doesn't require an enable signal so I'll do is I'll just delete that and I'm gonna go through that again now we're going to use just the standard t o n timer exactly what would be using on TI a portal and siemens step7 system function blocks to do this just drag and drop in your tia when timer and when you do this it's gonna ask you to assign this timer to a register and this register is very similar to a date a block inside of Siemens and instance data block and you'll see here it's asking you to give it a name and we can give it any name we won so I could call this for example Chris timer and it's seeing where do you want to register it and you can see here it's assigning it to its local label inside of P ooh you warned that there is this section here not inside of the global labels global labels can be accessed from any part of the program while local labels could only be accessed from the block it's a part of so we're just going to leave it as a local label the class is gonna be a bar which is a variable and the data type is gonna be our tio and data block effectively well then what to do is I then want to select apply and then close and you'll see just above my timer now is Chris timer in pink meaning that it has been assigned to a label and if we open up my local label folder there is the timer and that there is effectively the instance data block for that timer so when this time of rooms in our program it stores all of its data in this section here in our local labels now with this being a local label if I create another pou let's say I create a peer you - I could then use the name crisp timer again because that there is another local label in another block it's its own entity so it doesn't fall on the duplication because Chris timer in this block is part of peer you want where's Chris timer and pou to is a part of pou - it's separated if I used it in my global labels however I could only use that label once otherwise it's duplication because global labels can be accessed from anywhere in the program let's go back to my peer you and when you have your pou you can see there we have our input our PT our Q in there were 18 just like we do inside of Siemens now what I want to do here is I want to tie this input to my lamp condition to do this again all we need to do is just hover along this nude until you see the pencil icon click once move to the contact and then click again and that their ties our lamp contact up to this timer next I want to give this timer a time value and I want to run this for 10 seconds and just like in Siemens T ia or siemens step7 system function blocks all we do is we type in T hash 10s and that there is the identifier for time inside of an IEC timer our Q is our output coil and we'll tie this to our next output coil which is our lamp 2 and then finally we've got our 80 and the 80 is the elapsed time now you don't necessarily have to have the 18 if you don't want to use the et just select the horizontal line and then select delete and what that does there is it removes that ETA from that timer and it will download it to the plc without fit that's fine now if I want to monitor how long this time has been running for I need to give this a variable now I've already deleted the variables so that are the variable back to it next to our element selection window is all of our inputs and all of our outputs number name and number 0 on our keyboard if I select our VAR output number 0 this there allows me to then select on et and create a tag for that now what I'm going to tie this to is I'm going to tie this to a local label I'm not gonna use this in my main program I'm just gonna use this inside of the block just so I can see how long this timer has been running for so for me to create this as a local label I can just give this any name so I can call this Chris elapsed time and then press enter and what will then ask me to do is again assign this to a register inside of our local labels register if I what was saying to my Global's all I do is I just drop this down I select global but I want to assign this to the local label because it's only gonna be using site appeal you want only select local label leave it as a var which is an internal register to this block and then you can see there the data type is labeled as select apply to that I mean close that down and now we have our Chris elapsed time label and if we just go back to our Pew you want local labels there is our Chris elapsed time and there is our Chris timer once again if I created another pou I could then create these tags again with Matt P or use local label if I create this inside of the global however it can only be used once let's go back to the program so here I've got my program Priya it's simply just a start/stop latch controlling a timer after 10 seconds the time will then turn on lamp 2 when the time elusive signal the time will reset just like it does in any other PLC now if you look on the left hand side where my project tree is you'll see that some of the folders and files are indicated as red this tells me that these haven't been compiled yet now to compile the project you can go to the compiled menu at the top and then select build or you can go and do rebuild all build will simply just build this block only whilst rebuild all rebuilds everything inside of the project now because I've got several areas labeled as red that there tells me that my project needs a rebuild so you can press shift alt f4 or you can just select rebuild all select rebuild all select yes to that and it then should pop up at the bottom with an output window and I should tell us that we got zero errors zero warnings and zero check warnings I can then just close that down there and you'll now see that on the left hand side everything is black telling me that everything's been accepted in my project next just saved my project and I'm just going to call this Chris test say save to that and then what I'm gonna do is I'm gonna download this to the PLC so select online and then select right to PLC next is gonna ask you what do you want the download to the PLC so what I'm going to do first of all is I want to select a program and what I'll do is I'll highlight the main program and you'll see there that it pops up at the bottom program size 63 steps now if you're not aware a step inside of a program as a contact or coil and you might be saying well hang on Chris we've only got one two three four five five contacts and coils and one timer how will the heck is there sixty-three steps well that's because inside of this timer function block is more Lara logic and that's what makes up the other steps in this program so you can see here are 63 steps in use out of 8,000 steps for my PLC next what we could do is we could then download the PLC parameters now because we haven't changed any of the PLC parameters which is in the top left hand side of my project tree I'm not going to download the project parameters if we did make any changes to the parameters we would then have to check that box and then download that and then what we can then download is our global device comments and the device comments are things like start PBM stop PBM Lambourne lam - all of those are comments the problem is if I select that and tell that to download to the PLC it'll come up with a warning message saying there's not enough memory in the PLC and this is because this is an old FX PLC and it doesn't know how to handle comments inside of its program well without taking up a whole bunch of memory inside of the PLC so what we tend to do is we tend to leave that unchecked means if we ever do it upload from this PLC we're gonna have no comments just the addressing and we're gonna leave device memory unchecked as well because again this is just a blank project everything's going to be set to 0 there are no device memory settings that we've uploaded or anything like that so we're just gonna leave this unchecked to next what we want to do is then select execute it'll then say that the PLC is then gonna be switched to stop murder you sure you want to do this say yes to that and it's gonna begin right into the PLC now once this is finished right into the PLC what I'll then ask us to do is to switch the PLC back to run mode and there we go so now it's asking us to cpu States is currently and stopped you want to switch it back to remote run yes I do miss the Machine and now what we can do is we can then select close close and we're ready to go live to go live in to monitor our program we have two ways we can do this one way is to select this icon here which is to start monitoring and what this allows us to do is to monitor this window only however if I want to monitor everything in my project I would then just let's start monitoring all windows and by a force of habit I always just select start monitoring all windows so select there start monitoring all windows say yes to that and we should then see our PLC go alive and you can see here that our normally closed contact has this blue square inside of it that tells us that it's currently closed everything else has these white squares inside of it that there tells us that they are currently off or open we then have our timer down here and you can see the current elapsed time is T hash zero milliseconds so what I want to do is I want to run this project is to do this what I'm gonna do is right-click my star key B and select modify value inside of our modify value you then see our start PBM and you'll then be given the option to switch it on or switch it off and what I'm going to do here is switch it on when I select this is on its st. gonna turn on the lamp our lamp will then latch on so I can switch this off again and the lamp will remain on and then our timer will begin running after 10 seconds at what time and then turns on lamp - so three two one switch it on switch it off and there we go our latch is currently enabled our lamp one is currently on our timer is now currently running ten seconds later our lab 2 now turns on if I then select my stop and then select that as on it then resets my latch and then resets my timer back to zero if I then trigger the start once again it'll begin counting once again if I stop this at any point the timer will then reset back to zero just like it does with any other PLC just close that down there and that there is creating a very basic program inside a Mitsubishi GX works too so what we've done there is we've created a brand new project we've set up communications we've then create some local labels for our Hardware addressing and our internal addressing like our M bits and then what we've done is we went inside of our very first pou and we've created a program we've created a program using contacts and coils as well as the IEC function block T or n or we've also created the local labels for the timer and the elapsed time for that timer as well inside the peel you want we then compiled it downloaded it to the PLC and then tested it out by modifying the actual M bits there and that there is a brief introduction to Mitsubishi GX works too as I mentioned there are some downsides to it I'm personally not a fan of the flexible ladder logic design I prefer being more fixed like guineas and Siemens but there are some positives to it as well it is a very simple and easy to understand program I just to get straight into and learn with and like I say this is the very first PLC that I was taught on it wasn't Jack's works - it was GX develop but which in my opinion is even more easier than GX works - but it still is a very easy to work with easy to understand programming not as complex as some other programmers that are out there I hope you guys have enjoyed the video once again just give the video like if you haven't already done so comment to what you like to see next week and if you're watching us on YouTube don't forget to hit the subscribe button so you can stay up to date with every new video that we put out thanks for watching guys I look forward to seeing you again next week have a good one
Info
Channel: Scantime Automation & Training
Views: 2,332
Rating: undefined out of 5
Keywords: scantime, plc, programmable logic controllers, gxworks 2, gxworks 3, gxdeveloper, medoc, mitsubishi, automation, plc training, plc tutorials
Id: w91Is6Dhil8
Channel Id: undefined
Length: 33min 29sec (2009 seconds)
Published: Fri Jun 26 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.