CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Home PLC using PIC microcontroller

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
RITESH



Joined: 08 Sep 2012
Posts: 4

View user's profile Send private message

Home PLC using PIC microcontroller
PostPosted: Tue Jun 18, 2013 2:03 am     Reply with quote

Hi,

I need guidance for programming pic uC as PLC for communicating with SCADA, in touch for visualization of little discrete process on screen.
I have read about modbus, but need help for writing code.

thanks
temtronic



Joined: 01 Jul 2010
Posts: 9165
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Jun 18, 2013 5:19 pm     Reply with quote

Well that's a wide open question !!
Programming a PIC as a PLC is easy ONCE you've defined all the parameters.
number of inputs?
type of inputs?
number of outputs?
type of outputs?
logic required?
timers?
conditionals?
and that's only the begining...
Once built a 'PLC' using a 12F683 to control a stairwell lighting system(3 inputs, 1 output)..so really you need to tell us more.


SCADA(Supervisory Control And Data Acquistion) is a fancy name that is everything to everybody but means nothing without the details.

Not all 'PLC's use MODBUS, it's just one companies idea of a 'programming system'.
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Wed Jun 19, 2013 1:10 pm     Reply with quote

i would think that by using the term PLC he is referring to a very robust and protected industrial type of device...as opposed to a simple logic controller board or bread board experiment...

so, you need to define how will you protect your supply, your inputs, your outputs, and WHAT are your outputs/inputs...as in: optocoupled digital inputs, analog inputs? dry contacts? coils?
_________________
CCS PCM 5.078 & CCS PCH 5.093
RITESH



Joined: 08 Sep 2012
Posts: 4

View user's profile Send private message

PostPosted: Wed Jun 19, 2013 10:03 pm     Reply with quote

Hi,

I am using Wonder ware in touch SCADA.
I need to start home made PLC just from,
few inputs and outputs no analog & timer just for now, digital output connected to in touch ascii .
Quote:

so, you need to define how will you protect your supply, your inputs, your outputs, and WHAT are your outputs/inputs...as in: optocoupled digital inputs, analog inputs? dry contacts? coils?


I just want to start after then i will add more feature in it.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Jun 20, 2013 12:17 am     Reply with quote

The CCS C modbus example (ex_modbus_slave.c) can be a starting point for the communication part.
RITESH



Joined: 08 Sep 2012
Posts: 4

View user's profile Send private message

PostPosted: Thu Jun 20, 2013 12:25 am     Reply with quote

Where to find it?
Sergeant82d



Joined: 01 Nov 2009
Posts: 55
Location: Central Oklahoma

View user's profile Send private message

PostPosted: Mon Jul 01, 2013 5:35 am     Reply with quote

Umm... In the "examples" folder would be a great place to start looking...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group