Previous in Forum: Chlorine Sensors   Next in Forum: Triac Question
Close
Close
Close
8 comments
Rate Comments: Nested
Associate

Join Date: Sep 2007
Location: Ohio - 40 miles due West of Pgh International.
Posts: 48
Good Answers: 2

Array Electronics SR PLCs

03/23/2009 1:53 PM

Has anyone out there been able to communicate via C++ to an Array Electronics SR type PLC? I would like to use one for controlling switching for some automated test equipment running on a PC in the Windows environment.

Thanks,

Sparkman

__________________
The wickedness of a people is great indeed, when noted sinners are men renowned among them.
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Power-User

Join Date: Jul 2008
Location: United States of America
Posts: 429
Good Answers: 3
#1

Re: Array Electronics SR PLCs

03/27/2009 1:00 AM

I have not done this before though I have current active interest in the area mostly for control of Pollution Control Chemical Processes. So I did some digging up on the topic; and the only way I could see the architecture for starters is to associate the C++ functions within the PLC structured text logic or vice versa.

I then searched for an interface but did not find any. However I notice that the PLC codes could also be written in Assembly Language, .as , so I am thinking that since C++ also allows embedded as-codes, perhaps the best approach for implementing the architecture would be through as-codes using the gnu-compiler for compatibility.

I suggest this approach as it removes the need to buy special interfaces. In fact I believe that a whole interface could be written this way.

I hope that this helps

__________________
EditorGBAnalysts - Give a boy fish and he will eat may be for a day, but teach him how to fish and he will eat everyday.
Register to Reply
Associate

Join Date: Sep 2007
Location: Ohio - 40 miles due West of Pgh International.
Posts: 48
Good Answers: 2
#2

Re: Array Electronics SR PLCs

03/27/2009 7:24 AM

I am coding using Borland C++ Builder and I have been able to see the token that the PLC sends out. However, I have not been able to ascertain the proper sequence or structure needed to actually control the thing. The PLC uses RS-485 for a communication line and that is pretty straight-forward. I just can't seem to get the command sequence to read or write the output states.

Thanks for the tip!

__________________
The wickedness of a people is great indeed, when noted sinners are men renowned among them.
Register to Reply
Power-User

Join Date: Jul 2008
Location: United States of America
Posts: 429
Good Answers: 3
#3
In reply to #2

Re: Array Electronics SR PLCs

03/27/2009 8:30 AM

RS-485, would not serial communication, would it? I am familiar with Boland C++ Compiler as I taught programming with it some years back.

__________________
EditorGBAnalysts - Give a boy fish and he will eat may be for a day, but teach him how to fish and he will eat everyday.
Register to Reply
Associate

Join Date: Sep 2007
Location: Ohio - 40 miles due West of Pgh International.
Posts: 48
Good Answers: 2
#4

Re: Array Electronics SR PLCs

03/27/2009 8:58 AM

It is achieved using the serial port, just a bit different protocol.

__________________
The wickedness of a people is great indeed, when noted sinners are men renowned among them.
Register to Reply
Power-User

Join Date: Jul 2008
Location: United States of America
Posts: 429
Good Answers: 3
#5
In reply to #4

Re: Array Electronics SR PLCs

03/27/2009 9:06 AM

Alright so you are not using the Serial Comm Protocol then? I should look into it and communicate further with you through email. Meanwhile Good luck

__________________
EditorGBAnalysts - Give a boy fish and he will eat may be for a day, but teach him how to fish and he will eat everyday.
Register to Reply
Associate

Join Date: Sep 2007
Location: Ohio - 40 miles due West of Pgh International.
Posts: 48
Good Answers: 2
#6

Re: Array Electronics SR PLCs

03/27/2009 9:12 AM

I am using the APRO series of components. Communicating isn't the problem. The problem is getting the correct command format to interogate or command the PLC.

__________________
The wickedness of a people is great indeed, when noted sinners are men renowned among them.
Register to Reply
Power-User

Join Date: Jul 2008
Location: United States of America
Posts: 429
Good Answers: 3
#7
In reply to #6

Re: Array Electronics SR PLCs

03/27/2009 11:29 AM

Thank you for the additional details.

I have now downloaded the SourceForge Open Source ASPRO components and the related docs. I should get back to you over the next several days after I have digested the contents of the docs.

Again, meanwhile Good luck.

__________________
EditorGBAnalysts - Give a boy fish and he will eat may be for a day, but teach him how to fish and he will eat everyday.
Register to Reply
Power-User

Join Date: Jul 2008
Location: United States of America
Posts: 429
Good Answers: 3
#8

Re: Array Electronics SR PLCs

03/29/2009 10:55 AM

I am sending you the feedback. Good luck

__________________
EditorGBAnalysts - Give a boy fish and he will eat may be for a day, but teach him how to fish and he will eat everyday.
Register to Reply
Register to Reply 8 comments

Previous in Forum: Chlorine Sensors   Next in Forum: Triac Question
You might be interested in: Medical Electronics Connectors

Advertisement