sent and receive data from plc compactlogix

vanbang1707

Member
Join Date
Sep 2013
Location
viet nam
Posts
18
hello everyone !
I am new to this forum and I am not very good at PLC's.however,i want to use C# read data from PLC compactlogix. i don't know how start. someone can help me. i use ethernet in connect. thanks:book:
 
If you need to use C#, AdvancedHMI is still an option, but requires a few more steps to use all of the features. For a simple read, try this:

1) Open AdvancedHMI in Visual Studio Express for Desktop 2012 or 2013
2) Right click Solution 'AdvancedHMIv35' in Solution Explorer
3) Add New Project
4) Under the Visual C# group, select Windows Forms Application
5) Build the project
6) From the Toolbox, add an ethernetIPforCLXCom driver to the form
7) Add a button and double click the button
8) Add this line of code :
Code:
[SIZE=2][FONT=Consolas][SIZE=2][FONT=Consolas]button1.Text=ethernetIPforCLXCom1.Read([/FONT][/SIZE][/FONT][/SIZE][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]"myTag"[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]);[/SIZE][/FONT][/SIZE][/FONT]
 

Similar Topics

hello everyone, can someone tell me why this program is not sending or receiving serial data? This program reads temperature value (first two...
Replies
5
Views
2,720
Searching edit zones within all routines and other criteria still says no results found, yet I still have the "edits present" indicator at the...
Replies
6
Views
253
Hi everyone, I can ping our Micrologix 1400 but the problem is I can't see it on RSLinx, I already set the RSLinx to detect the PLC IP address...
Replies
6
Views
2,533
Does anyone know how to inhibit the 232 module from sending data during PLC power-up? To send data during normal operation, the Transmit Record...
Replies
3
Views
1,903
Good Morning everyone, on board our ship We have a acs800 drive a AC motor. In the display of SUPPLY SECTION of acs800 appear alarm 4280 (the fan...
Replies
1
Views
2,270
Back
Top Bottom