I was wondering if you could help me with the serial communication between C++ program and micrologix 1500 plc.
I have set the baud 19200, 1 stop bit, no parity, 8 byte size. The port opens perfectly.
I do not know wat sort of input does the plc accept? i tried to send an acsii string but the plc would not respond to it.
All i really need is to know what sort of output should i send from my C program as a string that the micrologix 1500 will accept and then respond to. Also the C+ is a very fast pace language, where as the plc is slower..do i need any special timers or anything?
Your help will be much appreciated.
Please see attached file for the C code..
I have set the baud 19200, 1 stop bit, no parity, 8 byte size. The port opens perfectly.
I do not know wat sort of input does the plc accept? i tried to send an acsii string but the plc would not respond to it.
All i really need is to know what sort of output should i send from my C program as a string that the micrologix 1500 will accept and then respond to. Also the C+ is a very fast pace language, where as the plc is slower..do i need any special timers or anything?
Your help will be much appreciated.
Please see attached file for the C code..