Using RS232 Module (Order # 1181787) with an AXC-f-3152 and the ComSerial_12 Library

Hello my end goal is to read in data from a scale head using RS232 to have accurate weight readings. I’m using a AXC-F3152 PLC with a RS232 Module (#1181787) and the ComSerial_12 library. I’m having trouble configuring the function block “AXL_RSUNI_PD_5” to read any data in that I’m sending out from my PuTTY terminal to test communications. I’m also unable to create or map a variable to the fist two octet strings (D1160 and DO160) for my RS232 cards process data. so I’m not sure if this is why I’m unable to see any received data or if I’m missing something else. I’ve also seen mentions of a “example machine” function block in the forums and in the manual but I don’t see it in in the ComSerial_12 library. does anyone have examples of a working project using the rs232 card? would someone point me towards the “example machine” project mentioned in ComSerial_12 manual? or any general help to get my project working would be appreciated. Thanks :slight_smile:

Figured id give an update. the port mapping is where I was struggling. might want to make the instructions more clear for the ComSerial Fb

Hi nyxdabirb,

The ComSerial library comes with UDTs that need to be used to create variables mapped to the serial IO card and connected to the function block. The example programs that come in the zip folder with the library contain the example machine function block your referencing. It also provides an example of connecting variables to IO data via GDS ports and using the data with the function block.

You can send your feedback and any questions you might have about the library to the developer using the Contact Developer button on the library’s webpage.

Thanks!

thanks for the extra info I was unaware of what all was in the projects zip folder as I just nabbed it right off the store in PLC next. I had afew questions on the FB so ill be sure to send the dev a message using the button u mention. thanks again :3