7/9/2010 6:21 AM | |
Posts: 3 Rating:
|
No, not using Modbus. Simply using a SEND_PTP via an RS232 module. The packet structure I need to send will look like this (each < > represents one byte of data): <preamble><Data byte 1><Data byte 2>..........<Data byte 11><CRC16 code><CRC16 code> I have the structure working except for the 2 CRC bytes at the end. Project attached. If I were to use Modbus, can I customise the structure to the length I need (12 bytes of data followed by two bytes of CRC). I have looked at the example projects posted here for Modbus RTU but I am struggling with how the data packet is put together and how the message length works. Using the S7-1200 to send to a terminal program shows that each message consists of 5 bytes and appears to be sent 3 times for every send request. Any message length above 7 stops transmission. I am obviously missing something fundamental about modbus. AttachmentRS232 100705-2.zip (239 Downloads) |
Follow us on