2/20/2023 7:18 AM | |
Joined: 7/13/2020 Last visit: 11/28/2024 Posts: 16 Rating: (2) |
Hi, I'm having a few issues with the RS485 CB1241 Module, I need to communicate to some scales via simple ASCii protocol using the PtP function blocks. I have an array of chars which I send via the send_ptp function block, but on the receiving end ( current USB - RS485 adapter and my PC ) I get random data almost as if it was the wrong encoding or something. I have tried both ptp librarys ( SEND_PTP and Send_P2P ) with the same results. I have tried using the port configuration function blocks and without. I have tried different RS485 to USB adapters with the same results. I have read through the S7-1200 Manual and it says you can use the CB1241 and RS485 with the ptp I have just noticed on the data sheet it mentions ( — ASCII Yes; Available as library function ) where do I find this library function? I have searched all through the siemens website. I have attached some pic of my program sections and data being sent along with the received data. Note: If I send ascii data to the PLC from the PC, the received data is all random and weird also I will head back to site tomorrow and have another crack at it, hopefully someone can shed some light before I head back there. Thanks! AttachmentCB1241 Issues.zip (667 Downloads) |
Follow us on