Help : PC monitoring (reading/writing) DL205 via ECOM

marc.turcotte

Member
Join Date
May 2009
Location
Quebec
Posts
3
Hi,

I am studying in mechanical engineering and i would like to do the following....

I have couple of PLCs (DL205) with ECOM 10BASE-T boards on the network. Here is the summary of what i want the Java program to be able to do...

1- PC writes (sets) Cxxxx to 1 every loop on every online PLC.
2- PC reads every PLC value Cyyyy (which is the same value for every PLC).
3-a) if PC reads Cyyyy = 0 , PC does nothing
3-b) if PC reads Cyyyy = 1 , PC reads Vzzzzzz.

At that point , Vzzz will be a recipe name, example : Broadway .

The PC now has to look in a certain folder for a txt file called Broadway. In that txt file, there will be a list of "C" and "V" addresses with values to upload to the PLC memory. The PC will have to write all theses values to the PLC memory. Once again, all via ECOM.

I am not asking for anyone to do everything and sent it to me, i also doubt anyone would... but i want to learn how to do this. I am relatively good with PLC programming and scripts, but i have no clue regarding Java.

Thanks for your time and i would really appreciate any of your help!:geek:
 
Last edited:
To help get the boat underway so to speak...

You are going to need a communications driver. Either OPC or using the HOST Engineering SDK. OPC Servers cost money, the SDK is free, but will take more of a time commitment on your part to understand it.

Either should take care of the really tough part, talking to the PLC. The rest is going to be data handling and it will be dependant on the method you choose to talk to the PLC.
 
Thanks for the reply,

I've played with the utilities they both offer, thanks for your links, but since i'll have to build my own utility, i would really like to have an hint on how to start writing the java code using OPC or SDK libraries to make my own app. Both allow me to write and read values from the PLC, but i want all that to be automated...

Maybe i am wrong and there is something i'm missing here.. Further help is very welcome!

Thanks
 
Anyone??

Here is an informal summary of the program i am building... If you guys could only explain what is the way to read / write data to the PLC i'd be all set!

Code:
Do Until running = 0
    For i=1 to plc_qty Step 1
                If ReadPlcCoilValue_C1000_plc_ip(i) = 1                 
                    plc_ip_status(i) = 1
                    WritePLCCoilValue_C1003_plc_ip(i) -> 1
                    plc_ip_recipe(i) = ReadPLCRegisterValue_V2100_plc_ip(i)    
                    plc_ip_request_recipe(i) = ReadPLCCoilValue_C1002_plc_ip(i)
                Else
                End
    Next
Loop

Thanks
 

Similar Topics

Hi everyone, I am an electrical engineering intern who recently received a project that is definitely a bit over my head, and I could use some...
Replies
15
Views
5,039
I've had some issues with a vacuum pump tripping but I believe we have resolved them... in dealing with it I found that all the other motors in...
Replies
10
Views
2,936
I need to watch a prox sw that will read the cogs on a gear. When that pulse stops I know when the movement has completed. The pulse may stop on a...
Replies
6
Views
1,751
Hi, I´m doing my first application in Citect. This application is a simple digital inputs (almost 70 tags) monitoring application and writing this...
Replies
1
Views
4,070
Hi I just recently joined a company that uses AB SLC500 1747-L40B plcs. I have noticed that all the plcs have an AB Isloated Link coupler 1747-AIC...
Replies
0
Views
1,686
Back
Top Bottom