![]() |
|
#1
|
|||
|
|||
Making communication tableI am trying to make some sort of communication between two home made PLC's "micro controllers". Since my communication protocol will send the bits first and only then the registers I need two tables one for bits and the other for registers. In my code there is a single structure called TNNvvar. This structure can access to other structures like inputs, outputs, pid ... See example below:
CPP / C++ / C Code:
Each of this "sub" structures has registers and bits as show in the example for digital inputs: CPP / C++ / C Code:
My idea of communication table for bits is : CPP / C++ / C Code:
My idea of communication table for registers is : CPP / C++ / C Code:
The function for data transfer has a prototype like this: CPP / C++ / C Code:
My problem is that I don't know how to make the pointer for data transferring, and if my idea of communication tables is the correct one. Can somebody help me with this. Best regards, BoSCHoW. Last edited by admin : 20-Feb-2008 at 16:27.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2D arrays:dynamic allocation and freeing | bravetanveer | C Programming Language | 48 | 27-Nov-2007 15:55 |
| Verify if a specific data exists in a table | Richardknox | MySQL / PHP Forum | 3 | 01-Jun-2007 11:16 |
| Transfer longblob from one table to another table | Richardknox | MySQL / PHP Forum | 6 | 13-Dec-2006 04:26 |
| Cannot create a table in DB | WaltP | MySQL / PHP Forum | 3 | 26-Apr-2006 16:09 |
| [Tutorial] MySQL Basics | nniehoff | MySQL / PHP Forum | 15 | 23-Mar-2003 19:42 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The