An Introduction to Omron CxProgrammer, Timers and Counters!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
how's it going everybody and welcome back to another PLC programming tutorial today we're gonna be having a look at the omron PLC more specifically the CPM to aid processor and CX programmer and what we're going to do in this video is we're gonna show you how to create a basic project using CX programmer set it up for the CPM to a processor PLC and then what we're gonna do is show you how to use contacts coils the omron addressing as well as timers and the counters and show you how they work inside of Omron now before we get started there's video what I'd like you to do is give the video a like comment below just to let me know that you're watching and then if you're watching us on youtube hit the subscribe button so you can stay up to date on all scan time videos that get released now so far in our scan time live series of taking a look at the Siemens PLC using Ti a portal and step seven we've had a look at Alan Bradley using rslogix 5000 Mitsubishi using GX works too and now we're having a look at Omron CX programmer and you might be thinking why are we covering so many different PLC's on these scan time Live series and what we want to do first of all with the series is try to reach as many people as we can we know that on the shop floor you don't just have Siemens PLC zoil and Bradley PLC's you do have other PLC's as well namely Mitsubishi online we also say Schneider GE fanuc etcetera but not only that we want to also give you the experience in being able to work with other PLC's and just show you what other plc programmers are like to work with as a PLC programmer or as somebody who works for PLC's you've got to be able to adapt to the environment that you're working in you might be working with a company at the moment to predominantly use Siemens PLC's or predominantly use Allen Bradley PLC s but that's not to say that you'll be working with Siemens PLC's and Allen Bradley PLC s for the rest of time you might leave that company good to another company they might be with Mitsubishi PLC's or they might have a variety of PLC's in the shop floor we working with a copy at the moment who work with Allen Bradley Siemens Mitsubishi Omron Schneider GE fanuc and Bekoff PLC's so what you've got to be able to do with your skill set is make sure that you're able to adapt to any PLC that you might have to work in the future with myself I don't just work with one PLC as you've seen already I work with the whole variety of PLC's when I first started when I was 15 years old I learned on Mitsubishi PLC's I mean I learnt the Mitsubishi PLC's because it was very straightforward to learn after Mitsubishi I then branched out with the omron another eazy-e used PLC and easy to understand PLC to get the grasps with next after that it was learning siemens and allen bradley and gradually over the 12 years I've been working with PLC's I've been able to branch out and work with many other PLC's as well as many other different types of models within the PLC manufacturing brand you need to be able to be flexible when you're working on the shop floor because you never know what you're going to encounter and the quicker that you start to have a variety in your skill set of working with PLC's the better your career will be in the future so remember guys don't just stick with one PLC make sure you're always trying to better yourself by learning more and more to do with the PLC in automation world let's get into today's video working with Omron so at the moment I have um Ron CX programmer open and what I'm gonna do is I'm just gonna create a brand new project and but do you are again there's two ways just like with every PLC you can go to file and select new or I can just click the new file icon and then it's gonna ask me to set up my project just like Mitsubishi GX works to date now it's gonna be asking me to give my device a name and I'm just gonna call it Chris and it's then gonna ask me for the device type so what I'm gonna do is I'm just gonna drop down this list and I'm gonna look for the cp/m two asterisks and that's this guy right here this is the seat for um two series PLC's hours of the CPM to a series I'm just gonna select this guy right here and then it's gonna ask me the network type and my network type of cyst mac away and if I go to settings and I got a driver this is where we actually all to set up the coms port that I'm using so again if you're not too sure I hope to figure out what comps port you're using all you need to do is just good your windows go to control panel inside of control panel you want to go to hardware and sound select Device Manager and then inside of Device Manager open up ports and then inside of there's your serial port there and that there's my comm form so what I'm gonna do is just close this down close down control panel and change comm three to comm for and then okay know that it's very similar to GX works too in a respect as I mentioned they're both very easy to use program is very easy to just pick up and play with next just say okay and that's it my project is ready to go and it's being created now if I go do symbols on the top left here my very first port O'Call I'm just gonna open up my symbols full they're inside of here you'll already see several symbols that have been created for me and this is the and this is the general addressing that Omron is set up that we can then use later on in my program if we need to and you'll see several different things here you actually see clock pulses you've got the 0.02 second clock pulse the 0.1 0.2 one minute and then the most common one the 1 second clock pulse and map there is addressed to 5 5.02 we have our carry flag which tells us if we're working with negative values or positive values we have our comparator flags over here further on down we've also got our always off and there were always on flags if you've ever worked with Siemens you have to set this up inside of the hardware configuration with this PLC the CPM 2 series it's already been created for us now what I'm gonna do here is actually gonna add to my symbols and what I'm gonna do is I'm gonna add a start push button a stop push button and tie these to the first two inputs on my PLC and I'm also gonna create a lamp and Tyler's to the first output on the PLC to do that where you see the empty cell right here right click and then say insert symbol it's gonna ask me for a name I'm just gonna call this start P B and then it's gonna ask me for an address now the way that Omron addressing works in the CPM series is we don't work with eyes cues or X's and Y's like we do with Siemens and Mitsubishi we work with just the standard numerical addressing so the very first address on my input side is 0.001 syv done this I'm just gonna go and select and there it is it's out of my star PB in there again just clicking the blank right click and then say insert symbol and then let's add in our stuff and PB this is gonna be my next input address which is just gonna be 0.01 select ok to that next I'm gonna add in an output address now the workout with your output addressing is on the CPM to Sears PLC just have a look at the actual CPU itself when you have a look at the CPU itself on the input and output terminals it actually has on there the bits that you're using as well as the channels that you're using the channels refer to the words that are being used so my PLC over here it's actually splitting it's addressing channels into 12 bits so my addressing channels go from 0 0 0 2 0.11 and then the next channel is 1.0 at the 1.11 2.0 to 2.11 that there is my input addressing and i can see that at the top of the plc my output address e however starts from 10.0 to 10.11 11.0 to 11.11 and 12.0 to 1211 so my very first output address is gonna be 10.0 or my plc right click that here insert symbol and I'm just gonna call this lamp my address is gonna be 10.00 say ok a lot and that there is my addressing setup for this program so far if I our general bit addressing I can add that as by going on but I'm only gonna use those 2 inputs and that one output lamp next what I'm gonna do is I'm going to open up my program block section 1 on the left hand side here double click that and it opens up our program in the middle screen similar to all PLC programmers so the first thing I'm going to do and I'm sure you guys can all guess it we're gonna design our start/stop latch to control this process card I don't want to have my start push button enabled all the time so here what we're gonna do is just add in the normally open contact and I'm going to tie this 20.00 select ok to that and there is my start a B next grab my normally closed contact from my components tab select next to the star PB and now I'm going to type in 0 zero-one fly stop PB and there it is there stop PB after this we need to add in our coil and our coil is just gonna get tied directly after the stop PB on one will ought to arrange this correctly now what I'm gonna address this to is not directly to the lamp I want the lamp to turn on after another operation which we're going to cover shortly what I want to do is I want to tie this to a general bit inside of the PLC similar to addressing and SATA Siemens so this general bit addressing for this PLC starts from 200.000 1 v 2 o 1.00 2 1.15 and it just keeps on going from there so my very first general bit address is going to be 200 0 0 is gonna say ok to that where it says edit comment what I'm gonna just call this as I'm gonna call this the run signal and there it is there my run signal I'm then gonna add in a normally open contact here and tie this to my 200.000 there next what I want to do is I'm going to click on my vertical line and then just select in between the two contacts if you click just towards the first contact here what it will do is let you put the vertical line before the first contact so what I want to do is make sure that I click just after the first contact in this cell over here it can be a bit finicky to get started with but the more you do it you tend to get used to it and that there's my start/stop that's created next one I'm gonna do is I'm gonna have this start/stop latch this 200.000 control a timer and what I want that time like to do is I want that time at the pulse and just turn on a bit every one second and that's all I wanted to do whenever this process is running run a timer for one second and then turn on a bit for one PLC scan so to do that I'm going to work in my next network over here and I'm gonna get a normally open contact just selected inside a network 1 or wrong one or whatever you like to call it and I'm just gonna tie this to 200.000 k to that and that's gonna be tied to our run flag over here and then what I'm gonna do is I'm gonna select the new PLC instruction button which is just after this negated Coyle here do it using the gated coils absent pain anyways that's for another video so what I'm gonna do here is I'm just going to select the PLC instruction and I'm gonna add this right after my run signal and I'm then gonna type in the code for a timer now the code for a timer is TI M for your timer space and then the timer number that we want to start with now our time a number starts from zero so I'm just gonna type in there zero and then space hash and then how long we want this time up to run for now the way that timer's a nom Ron work as they work in tenths of a second so if I wanted one second it would be hash ten if I wanted ten seconds it would be hash 100 all right there works in tenths of a second all the way up to 9999 so that there is nine hundred ninety-nine point nine seconds now because I want this timer to run for one second and then turn on and then repeat it cycle over and over again I just want this to be on four hash ten select okay and then I'm just gonna call this one second false and then select ok on that and there's my timer created it's got three sections to it just as we created so it's got the instruction label which is t IM which is for the timer you've then got your time a number to just under that and then under that you've then got the set value which is ten or one second now to create a pulse stream with this timer all we need to do is just tie a normally closed contact before the timer to itself so tie this to timer zero select okay there it's like okay there and the way this will work if you watched our very first video in TI a portal is when the run signal is on initially the time is going to be off so that contact there is gonna be closed the timer is then gonna run for one second after one second timer zero will turn on and what will happen is that contact their timer zero will open what happens to a timer when it loses its enabled signal well the timer resets so that timer here turns off which therefore turns off this contact which closes it again allowing that time run again for another second and it repeats that cycle one second off one PLC scan on one second off one PLC scan on whenever that runs signal is on so this is creating like a one-second pulse and that's all it's doing just pulsing a bit for one PLC scan every one second now what I want to do next is I want to have my timer driving a counter and I want my counter to count ten counts of one second and what this is gonna do it's gonna act like a retentive timer as this is just a standard on delay timer and I just mentioned before when it loses its signal it reset its going to lose its time value so what I'm gonna do is I'm gonna have the counter which will retain its value store the initial one second counts it's then gonna count to ten and when it's seen it count to ten aka ten seconds that then will turn on my lamp after that so to do that all we need to do is grab my normally open contact here select a network - or wrong - and then tie this to our 200.000 run signal and then I'm also gonna tie you to my TI M 0 signal as a normally open contact so this will drive the timer when the timer turns on this contact will close and it's going to trigger a counter now for me to trigger the counter all I want to do here is select new PLC instruction once again select it just after my timer 0 normally open contact and I'm gonna type in CNT for counter I can't use 0 this time because the timer's using that and in Omron they share a dressing so timers and counter share a dressing you can't use 0 twice so I'm just gonna choose this as a counter 1 and I wanted to count to 10 so I'm just gonna type in their hash 10 and then say ok to that I'm just gonna call this retentive counter and there we go now when that count has finished count one what I'm then gonna do is tie this to my lamp signal 1000 now if you remember how a counter works account it doesn't lose its value when the input signal turns off to reset the value on the counter you actually need a reset signal driving that counter so what I'm gonna do here is I'm actually gonna tie this to another input to the PLC so what I'm gonna do is I'm just gonna go back to my symbols and I'm gonna right click inside of here go to insert symbol and call this reset and the address is gonna be 0.02 C okay to that open up my section 1 again and you can see inside of this network it's highlighted red and that's because my accountant doesn't have a reset at the moment I'm then gonna get a normally open contact selected just below the run signal here and tie this to 0.02 select ok with that and then grab your horizontal line and just add that to your reset line which is right there on the counter and as soon as I do that the network then fixes itself and no longer has an error inside of it next I'm just gonna click the mouse and then I'm just gonna save my work I'll call this test says it's already existing that's fine I'll just replace that yes ok so that there is my program created and this is like a retentive timer inside of the PLC so when I trigger my start push button the run flag will latch on beating my start push button can be let go the run flag will then turn on and what it will do is will drive a timer for one second that time all then reset itself so it's only on from one PLC scan and it will repeat that cycle so long as the run flag is on when the run flag is on and the timer turns on after one second it's then gonna trigger my counter and it's gonna count one two three four all the way up to ten when it hits ten the lamp is then going to turn on if at any point the stop push button is pressed inside of my start/stop latch the run flag will then turn off the timer will stop running and reset back to zero but the counter will still retain its value allowing us to pick up from where we last left off this gives us the retentive payment so now what I want to do is I want to download this to the PLC in the download this to the PLC I must first of all connect to the PLC and to do that I just clicked this little warning same with like a lightning bolt inside of it this is work on Lane it's then gonna ask us to you what they connect to the PLC yes I do see a key to that and now what it's going to do is now I'm gonna get me a connection to the PLC I've got a serial to USB converter over here and the lights are beginning to flash telling me that that there is communicating next what I want to do is then download this to the PLC I wanna write this program to the PLC and that button there is here transferred to PLC select that icon and what it will then do is ask me what do I want the transfer it'll ask me down what the transfer the program's the expansion function settings and symbols all I want to do is just transfer over the programs select okay there and now it'll begin to download it's gonna say the command will affect the state of the PLC remember when you download to a PLC it moves it from a run mode to a stop mode so if you're ever going to be doing that and sure that the process is stopped and it's safe to do so select yes it's gonna just give you another warning to make sure that it's okay to stop the PLC I'm just gonna say yes to that and there we go the PLC behind me is now stopped and it's now downloaded that program to the PLC a lot quicker than Mitsubishi does say okay to that it's then gonna ask us to make sure there's gonna be no problems if we start the PLC look there's not just say yes to that and now we are running inside of the program now up here you've then got your three control modes up here your first of all the program mode and what program will it allows you to do is it allows you modify the program you've then got monitor mode which is what we are currently doing we are monitoring the program and it also allows us to edit the program and then we've also got run mode run mode won't allow us to edit the program but we can monitor it live so I'm just gonna stay inside of monitor mode and what I'm gonna do is I'm gonna right click the start push button and I'm gonna select force and I'm gonna force that input on when I do that that contact will close trigger our two hundred zero zero and then that will begin to run the timer for one second and trigger our counter every one second until it gets to ten so if I then just say force on and then just cancel the forces you can then see our counter is begin if they count down from ten our timer is running and after ten seconds the lamp then turns on if I stop this latch at any point and then just cancel the forces there the counter is still enabled because I can say it's not like a timer where it loses its value and the lamp is still on the only way that lamp will then turn off is if I trigger the reset so if I then go to force and then force this on there we go that reset my counter which reset the CMT zero zero one signal which then turned off the lamp so if I run this again if I just start the process and then stop the process shortly afterwards you actually see the counter retain its value and then when we started again it lets you pick up from where at last left off so here if I just right click the start push button and select on and then turn that off and then if I right click the stop push button and turn that on there we go our process is now stopped the timer is now reset back to zero or in this case 10 and the counter retains its value at 5 so I've now got five seconds retained when I start this back up again it's then going to start up from the five seconds and then camp down to zero which is then gonna be our full ten seconds if I just cancel that reset the latch and then reset the counter signal and that's it a quick 20 minutes they're creating a small program inside a CX program connecting it to a live online CPM to PLC downloading it and testing and I've shown you how to work with timers and countless insane to bomb run like I mentioned at the start of the video it's very important that you don't just restrict yourself to just one PLC because like I say if you then change careers or you move to a different company and they're using a different PLC that their puts you at a disadvantage if somebody else who is applying for the same job has experience in that PLC on the shop floor whilst you just have experience in just the one PLC okay so make sure that you do try and branch out and learn as many PLC's as possible it gives you a lot more flexibility to your career if you do want to learn about PLC programming if you want to learn about Siemens PLC s Allen Bradley PLC s Omron Mitsubishi Schneider etc we cover all of these PLC's at our training center with our AAL PLC Industrial Maintenance of fault-finding Pro courses which is where we teach you not only how to program those PLC's but how to work with those PLC's on the shop floor safely and efficiently just go to our website www.jfn.co.jp/toho or TSA's and you'll see them and you'll see the selection of hands-on courses below there otherwise if you want to learn online if you can't attend our training center in the UK what are then recommended doing is I'm going to www.cnn.com it you K going to our online courses and there you'll see a selection of online courses for you to choose from we give you courses on just general plc programming where we use the omron plc to show you plc programming standards which is universal to all PLC's and then we have plc specific courses such as the allen bradley courses siemens courses etc okay allowing you to gain further your learning and further your skill set as I mentioned don't just restrict yourself to one make sure you safeguard your future by learning as much as you can now I hope you've enjoyed this video guys I've been Chris I look forward to seeing you again next time enjoy your week see you later
Info
Channel: Scantime Automation & Training
Views: 5,704
Rating: undefined out of 5
Keywords: scantime, omron, plc, programming, cxprogrammer, siemens, allen bradley, mitsubishi, tia, step7, automation
Id: d1YcTtYcF3M
Channel Id: undefined
Length: 23min 49sec (1429 seconds)
Published: Fri Jul 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.