All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Programmer's Corner

Notices

Programmer's Corner Discussion forum for all aspects of programming and software engineering. Any software programming language welcome: C, C++, C#, Fortran, Java, Matlab, etc.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-02-2012, 12:17 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Question PLC Ladder logic Analog programming for Analog Input

Dear All

I am facing difficulty in programming the PLC for analog input. I have analog input that varies from 0~5volt. I want to develop ladder logic so that for 2.5 volt at input output should activate alarm and at 5volt input another alarm at out put should be activated. I am using ABB PM571 PLC. Can anybody guide me how I develop the ladder logic for above stated requirement.

I shall be thankfull to you.

Kind Regards

Muhammad Irfan
Student
Reply With Quote
  #2  
Old 07-02-2012, 01:00 AM
strantor's Avatar
strantor strantor is offline
Senior Member
 
Join Date: Oct 2010
Location: Houston tx
Posts: 3,581
Default

I'm not familiar with ABB software, but look in your instruction set and find a comparator function.
Reply With Quote
  #3  
Old 07-02-2012, 01:51 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Default

Can you send me any example. How I read analog input?
Reply With Quote
  #4  
Old 07-03-2012, 02:18 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Default

Dear Sir

Can you send me example code.
Reply With Quote
  #5  
Old 07-03-2012, 03:29 AM
strantor's Avatar
strantor strantor is offline
Senior Member
 
Join Date: Oct 2010
Location: Houston tx
Posts: 3,581
Default

No, I do not have ABB software. Sorry.
Reply With Quote
  #6  
Old 07-03-2012, 05:42 AM
panic mode's Avatar
panic mode panic mode is offline
Senior Member
 
Join Date: Oct 2011
Location: Mississauga, Ontario
Posts: 1,095
Default

i never used ABB controller but the idea is the same:
- get software and manuals
- get part number of the analog input card and it's manual
- configure/map I/Os
- write program to read I/Os (may require enabling it, setting network etc depending on type of used I/O)
- use compare instructions to set bit when value is in certain range
- download program to controller and monitor...

quick check with google suggests that software can be CoDeSyS (you can get it for free) but this would require target files for ABB plc (not free). all manuals are on abb website. good luck...
Reply With Quote
  #7  
Old 07-03-2012, 09:39 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Default

Dear Sir

I have alraedy install ABB software codesys and configure the inputs and outputs. But I am not familiar that how i develop code to read analog input? I just need guideline that what function or block I should use to read the status of analog input.
Reply With Quote
  #8  
Old 07-03-2012, 09:45 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Default

Quote:
Originally Posted by strantor View Post
No, I do not have ABB software. Sorry.
If you have example code for PLC of any brand (i.e Siemens,Mitsubishi,Omron etc) Please send it as I need just idea that how to read analog input status.
Reply With Quote
  #9  
Old 07-03-2012, 09:46 AM
irfan16 irfan16 is offline
Junior Member
 
Join Date: Dec 2011
Location: Malaysia
Posts: 12
Send a message via Skype™ to irfan16
Default

Quote:
Originally Posted by panic mode View Post
i never used ABB controller but the idea is the same:
- get software and manuals
- get part number of the analog input card and it's manual
- configure/map I/Os
- write program to read I/Os (may require enabling it, setting network etc depending on type of used I/O)
- use compare instructions to set bit when value is in certain range
- download program to controller and monitor...

quick check with google suggests that software can be CoDeSyS (you can get it for free) but this would require target files for ABB plc (not free). all manuals are on abb website. good luck...
Dear Sir

I have alraedy install ABB software codesys and configure the inputs and outputs. But I am not familiar that how i develop code to read analog input? I just need guideline that what function or block I should use to read the status of analog input.
Reply With Quote
  #10  
Old 07-08-2012, 01:43 PM
GetDeviceInfo's Avatar
GetDeviceInfo GetDeviceInfo is offline
Senior Member
 
Join Date: Jun 2009
Location: Canada
Posts: 1,501
Default

I'm not familiar with the system your working with, but I'd think that the converted input/output would resolve to a word or double word with simple address or tag, no different than any other I/O.

Quote:
I just need guideline that what function or block I should use to read the status of analog input.
Take care with your wording. 'Status' has special meaning in this field.
__________________
I get all the news I need on the weather report
Reply With Quote
Reply   Post New Thread

Tags
, , , , , ,


Related Site Pages
Section Title
Worksheet Performance-based assessments for digital circuit competencies
Worksheet Electromechanical relay logic
Textbook Programmable logic controllers : Ladder Logic


Similar Threads
Thread Thread Starter Forum Replies Last Post
Analog differential input - how to make it measure 0V when floating esm. The Projects Forum 2 02-25-2012 01:05 PM
Analog DC input buffers steinar96 General Electronics Chat 4 02-05-2012 05:56 PM
PNP sensor PLC input to NPN PLC input derekpaul General Electronics Chat 4 01-01-2011 03:24 PM
pic16f877a display 7 segments with input from rs232 summeranson Programmer's Corner 0 03-31-2009 04:11 PM
Some minor mistakes in your 'Digital logic functions: LADDER LOGIC jsz Feedback and Suggestions 1 04-21-2008 08:43 AM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:11 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.