9/4/2018 11:42 AM | |
Joined: 9/16/2014 Last visit: 2/13/2025 Posts: 12 Rating:
|
Hi, I need to comunicate a PLC CPU 1512SP F-1 PN with a machine with hexadecimal numbers-bytes by RS232 (not ASCII char, but hexadecimal numbers; althoughit obviously it is possible to convert those into chars). In the PLC I added a CM PtP communication module. To test this, first I am trying to comunicate the PLC with my PC.In the PC I use a soft called ScriptCommunicator (I can use hyperterminal but I don`t know how I can send hexadecimal numbers, only chars). The characteristics of RS232 are (the same of the machine): - NO parity bits - 8 data biyts - 1 stop bit - NO flow control - Speed: 115200 bits/s I programm a array of bytes to send data, and another for receive data. When I send data from PC to PLC I have no problem, and the PLC receive all data without problem. The problem is when I send data from PLC to PC. The PC get the 4 or 5 bytes correctly, but not for the next. From that byte, the PC received strange bytes; For each send data normally the PC receive the same bytes but not always. What could be happening ? AttachmentRS232.zip (166 Downloads) |
9/4/2018 1:49 PM | |
Joined: 12/13/2011 Last visit: 10/1/2024 Posts: 146 Rating:
|
Hello when parameterizing once the speed leaves it at 8/1/N/9600, on both sides |
Follow us on