Hmm, so it means with out having two racks, and two PSU's i will not be able to test this. Anyway in your example, u only give me read example, what about the Write one? how would it work? i have a huge amount of data addresses which are R/W both?
mellis said:PLCNovel,
See if this meets your needs.
You have a PLC in the field (call it PLC B) with some data scattered around in various data files that another PLC (call it PLC A) needs to access. PLC A is the one that will be doing the reading and writing. PLC B just has to provide the data to PLC A and accept some data from PLC A. I think that is what you have described so far. The question is, what do you have to do in PLC B?
First make two lists. One of all the data addresses that you have to provide (read from PLC A) and one of all the data that PLC A is providing (write from PLC A). It would be a good idea to let us see that list. For the sake of simplicity, I will assume that none of the data is floating point (file type F). So all the data you need to deal with is of type B or N.
Pick an unused integer file (type N), say file N10. It would be nice if you can use the same file in both PLCs. Allocate a chunk of file N10 for data from PLC A and another chunk for data to PLC A. I generally allocate at least 10 words each way as a minimum. In reality you can allocate up to 100 words in each direction and the message performance is essentially the same.
Arrange all the data in a nice neat package in this file. Use Excel to layout where each bit and word of your data gets assigned in file N10. Once you have it all laid out, you can add a group of rungs to move the data into and out of file N10. For words of data, you use a MOV instruction. For bits of data, you use an XIC and OTE instruction for each bit (contact and coil). It's a bit tedious, but if you want to move scattered data in a single message, that's what it takes.
Give the person responsible for programming PLC A a copy of your Excel sheet and he will have all the info he needs to decode the N10 file on his end.
There is one thing you mentioned in your first message that causes me a little concern. You said some of the data is R/W. You can do this, but it will take extra logic in PLC A. Basically, each individual point can do one or the other at any given time, but it needs to decide which it is doing at the moment. That might be the responsibility of the person programming PLC A. For you it may be as simple as R/W data just goes in both chunks of data, but you should find out.
Show us the list of data, I'm sure there will be more suggestions once we see what you are actually dealing with.
Good luck,
plcnovel said:Hmm, so it means with out having two racks, and two PSU's i will not be able to test this. Anyway in your example, u only give me read example, what about the Write one? how would it work? i have a huge amount of data addresses which are R/W both?
plcnovel said:Hi Dave the reason for transferring the data in the slave processor is due to the above quote. Even if you take a look at my excel sheet, the integer addresses come from various integers files and also if you read mellis idea quoted above, you might be able to guide me what i need to do in order to manage the msg data traffic in my project. Also the client wants from me a integer file or files to work with...
plcnovel said:I am working in the industry and just got a new job, thats why i am not that experienced.
plcnovel said:I know i am asking too much but i am stuck right now as the deadline is coming tomorrow
plcnovel said:Hi Geniusintraining
Well there is no code to be written as for as my understanding is concerned. I have attached a list of data addresses that needs to be read and r/w from a remote plc over dh+. the way i am doing this is as follows:
Since i have pretty consolidated data, so i maded two data files one for Bits and one of Integers. The integer file will contain all the read and read/write addresses of the attached file and same with the bit file. Now the problem is how can i map the values to his new datafiles. Lets say i have created N30 file for integers, total elements of 250. I would like to assign first 90 elements to the read only addresses in the excell sheet attached and the remaining to R/W addresses in the excel sheet. One problem is how would i do that? The second problem is once i did this, lets say from a remote plc, a read call comes thatwants to read a value associated to N7:0 data address, which is mapped to N30:0, how would i do manage it? and lets say for write example a write call comes from a remote plc say writes to N7:79 address which is mapped to lets say N30:100, how would i take that new value of N30:100 and writes to the field devices in the program. I hope that clears a lot of understanding problme that have been created by me due to lack of experience. Thanks