??? 11/18/09 19:41 Read: times |
#170943 - PLC using 89S52 |
Hi, I want to build a PLC using an 89S92. I want to write PLC programs in Ladder diagrams so I tought of creating a program using C#, which would allow me build my ladder programm and send the ladder program to the micro via RS 232. Then I thought of creating a program in C for the 89S52 so that the C# will assign a number of bits (lets say 8 bits) and when these bit as received by the micro, the C programm will interpret those 8 bits as for exmple:
10011011 - the first bit means that P0.0 will be used as input - the second bit means that P0.1 will not the used as input - the third bit means that P0.2 will not the used as input - the fouth bit means that P0.4 will be used as input - the fifth bit means the P0.0 and P0.4 will be added together so to form and OR Gate logic - the fifth bit means that the product of the inputs will be shown on P1.1 I'm not sure if this is the correct way for starting a project like this one but I'm really having trouble in designing a program that will let me draw ladder diagrams and make the micro understand them. I would really appreciate some help :) |
Topic | Author | Date |
PLC using 89S52 | 01/01/70 00:00 | |
BEWARE industrial PLC can take an awful lot of abuse | 01/01/70 00:00 | |
reply | 01/01/70 00:00 | |
do you not know what a PLC is | 01/01/70 00:00 | |
Why not byte-coded? | 01/01/70 00:00 | |
Reply | 01/01/70 00:00 | |
think it through | 01/01/70 00:00 | |
Reply | 01/01/70 00:00 | |
C# programming | 01/01/70 00:00 | |
RE: I'm not sure if this is the correct way for starting... | 01/01/70 00:00 | |
I tried to build one... | 01/01/70 00:00 | |
Reply![]() | 01/01/70 00:00 |