alagbawale Posted August 1, 2018 Report Posted August 1, 2018 please, how can i write an Analog program for a temperature transmitter design to shut a device once it attain 85 degree celcius.
MVP 2023 Flex727 Posted August 1, 2018 MVP 2023 Report Posted August 1, 2018 What type of temperature transmitter and what PLC / I-O module? If it's a thermocouple, then you'll get a reading that is in degrees to the tenth of a degree and it's a simple matter to do a compare (>=850). If it's a 4-20mA analog input, then you'll need to do a linearization using the specs of the temperature transmitter before doing the compare.
alagbawale Posted August 1, 2018 Author Report Posted August 1, 2018 Thanks for the response, am using a RTD type and the plc am using is V200-18-E1B. will this also go in with a pressure transmitter and for the output, will i set a coil or just pick ML as the output? is this correct? Analog.vlp
MVP 2023 Flex727 Posted August 1, 2018 MVP 2023 Report Posted August 1, 2018 This won't work. The V200-18-E1B analog input is 10-bit. Your linearization assumes 14-bit and there is a typo in the X2 value. X1 should be 204, X2 should be 1023 (this is the 4-20mA 10-bit range). Y1 should be the reading on your transmitter at 4mA output and Y2 should be the transmitter reading at 20mA. You are also using an ML for the output from the linearization block. There is no reason for that. The max value will be your max temperature reading (perhaps times 10) and you won't overflow an MI with that. First of all, you need to configure your hardware for the PLC and I/O module(s). When you do that you will assign an MI to the analog input. Assuming your transmitter range is 0 to 100 C, then your ladder should look like this: This will turn on the heater when the temperature is less than 80.0 C. And one more thing, there is no reason to have your compare block in the same ladder rung as the linearization block. Break those up into two rungs like this:
alagbawale Posted August 7, 2018 Author Report Posted August 7, 2018 Thanks so much, it helps me go a long way. But another issue is the Alarm section, if i want to add a program that will trigger alarm at 50 degree, please how will i go about that?
alagbawale Posted August 7, 2018 Author Report Posted August 7, 2018 Kindly help check if it is correct in respect to the alarm also. Regards Safety progs.vlp
MVP 2023 Flex727 Posted August 7, 2018 MVP 2023 Report Posted August 7, 2018 Items of note: - There are no subroutine calls. - You are still unnecessarily combining too much logic into a single ladder rung. - Your alarm comparisons should be "</=" or ">/=" instead of just "=", and perhaps should be latched. - You have multiple instances of comparison blocks with no coil following, so they do nothing. 1
alagbawale Posted August 7, 2018 Author Report Posted August 7, 2018 Thanks, for the subroutine, I worked on it but yet to get the function I get that now, each logic for each rung. For the alarm, I will latch the output. For the comparison, I want to use the output of the 3 sensor to open or close a valve and that was why I did it that way but the fact that it is wrong, kindly advice how to go about it. Also, for the subroutine, is it that each detector will be design In a subroutine or what ? Please if you have any written program that you know I can learn from, kindly help attach to aid my learning. Regards
MVP 2023 Flex727 Posted August 7, 2018 MVP 2023 Report Posted August 7, 2018 57 minutes ago, alagbawale said: Please if you have any written program that you know I can learn from, kindly help attach to aid my learning. There are lots of examples that came with your VisiLogic installation. Take a look at them at Help/Examples...
alagbawale Posted August 15, 2018 Author Report Posted August 15, 2018 Please help cross check this program. thanks Safety progs.vlp
MVP 2023 Flex727 Posted August 15, 2018 MVP 2023 Report Posted August 15, 2018 I'd like to help, but I don't know what you mean by "cross check". The program has too many problems to discuss coherently in this forum. Do you have a specific question?
MVP 2023 Joe Tauser Posted August 17, 2018 MVP 2023 Report Posted August 17, 2018 It's not the purpose of the forum to teach people basic PLC programming. We're here to help people who have an understanding of PLCs to use Unitronics products. If you look through the examples and are still struggling, I would strongly recommend an online class to walk you through how ladder logic works. Something like this- https://www.udemy.com/plc-programming-from-scratch/ I'm sorry to be so gruff, but looking through your code and hardware configuration tells me you're trying to do a rather large system and don't know where to start. Joe T.
alagbawale Posted August 17, 2018 Author Report Posted August 17, 2018 Thanks Joe T you are very right, I have the idea but I don't know where and how to start and I go through the examples on the software but not getting the starting point. Please what can be done to this to help my zeal and level?
C_R_PLC Posted August 17, 2018 Report Posted August 17, 2018 10 hours ago, alagbawale said: Thanks Joe T you are very right, I have the idea but I don't know where and how to start and I go through the examples on the software but not getting the starting point. Please what can be done to this to help my zeal and level? So I can only say from my personal experience but I found that going on YouTube and basically watching a ton of videos helped me the most. I started with the bare basics on relays and worked my way from there. My first bunch of videos were from here... https://www.youtube.com/user/plcprofessor/videos His earliest videos go very much into detail on the basics of relays and then goes up to programming in RSLogix500, which is obviously not Visilogic but the ideas carry over pretty well. You'll want to start with his Basics01-14 series, and then watch his PLC Lecture series from 01-12. Also take lots of notes because he moves at a pretty rapid pace and you'll definitely want to be looking back every now and then. After that you should probably head to the Visilogic YouTube page to get the specifics on how everything you just learned applies to Visilogic, namely their playlist on Visilogic Logic and Application. Found here... https://www.youtube.com/user/UnitronicsWebinars/playlists There are playlists for other more specific things that will definitely help you so I would say go to those for more specific questions. Your biggest tool past the basics however is the help/examples page in your actual Visilogic program, that will go very into detail about how things work and has answers for pretty much any question you can think of that isn't hardware based as long as you take the time to learn it. Past that it's just a ton of trial and error, and learning from every mistake you make. It helps a lot if you have a goal you're trying to accomplish which it sounds like you do but this step of the process took me a few months of like 6-8 hours a day of studying, so be prepared to put some work in. It may not take that long for a sloppy, bare-minimum type approach but I would say that should not be your goal. Hope this helps, -Chris
alagbawale Posted September 5, 2018 Author Report Posted September 5, 2018 can i run or test my program online without the plc device?
Kikis Posted September 5, 2018 Report Posted September 5, 2018 5 hours ago, alagbawale said: can i run or test my program online without the plc device? No, there is no offline simulator in Visilogic software. In order to run your program, you need to be connected to a PLC.
alagbawale Posted September 7, 2018 Author Report Posted September 7, 2018 please can i design a scada system on my HMI V1020? if yes please i will like to have a sample if anyone has. thanks
MVP 2023 Joe Tauser Posted September 9, 2018 MVP 2023 Report Posted September 9, 2018 How did we go from analog input programming to asking for a sample SCADA system? @alagbawale- this is how we make our living - programming this sort of thing. I was under the impression you were open to trying to learn programming on Unitronics. A SCADA system is quite a high level project. We do not give away samples. Joe T.
alagbawale Posted September 13, 2018 Author Report Posted September 13, 2018 HI all, Am so grateful for the support from you all. Thanks Please i will like someone to help review this program if its good and can function but if any observation seen or noted for correction, kindly let known. Regards Safety progs.vlp
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now