gherman Posted October 28, 2015 Report Share Posted October 28, 2015 Hello, I am new to Unitronics and have just bought a SAMBA unit (SM43-J-R20) with the optional serial port (V100-17-RS4X) and I need some help with getting started. I need to read a load cell via RS232 from the optional port, but am having issues doing so. I've watched some webinars about MODBUS, but am not sure if this is what I need and if it is, what parameters I need to enter. I am using a Cooper Instruments load cell with a digital display. I found the following information in a PDF for the load cell: The output string is in the following format: <STX> <SIGN> <WEIGHT(7)> <STATUS> <ETX> Where STX: Start of transmission character (ASCII 02). ETX: End of transmission character (ASCII 03). SIGN: The sign of the weight reading (space for positive, dash (-) for negative). WEIGHT(7): A seven character string containing the current weight including the decimal point. If there is no decimal point, then the first character is a space. Leading zero blanking applies. STATUS: Provides information on the weight reading. The characters G/N/U/O/M/E represent Gross / Net / Underload / Overload / Motion / Error, respectively. On the PLC Info screen, I have the following information for COM 2: Protocol: MODBUS RS Type: RS232 Params: 9600 ,8,n,1 Silence: 3650us the Rx value is constantly incrementing, but under the Monitor screen, there is no value. Any help would be greatly appreciated as I am new to Unitronics and don't know where to begin. Thank you for your time. Quote Link to comment Share on other sites More sharing options...
Alexander Posted October 29, 2015 Report Share Posted October 29, 2015 Modbus is a defined protocol that does not use a changing message format. It sounds as if the loadcell you are connecting with uses a custom protocol as you defined. This can absolutely be read into our controller using the Message Composer features within UniLogic. If you are unfamiliar with this feature or custom protocols we have a helpful webinar that should help explain how to set it up within our software. This will allow the application to both accept ASCII code and send replies if necessary. Using the link below or navigating to our YouTube channel there is a tutorial regarding the Message Composer. Message Composer Tutorial: https://www.youtube.com/watch?v=G8bWtpYDt7E Quote Link to comment Share on other sites More sharing options...
gherman Posted October 29, 2015 Author Report Share Posted October 29, 2015 Thank you for your reply. I'll look into the Message Composer features and tutorials and post how I make out. I appreciate your help. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 29, 2015 MVP 2022 Report Share Posted October 29, 2015 Alexander, he needs a VisiLogic solution, not UniLogic. Quote Link to comment Share on other sites More sharing options...
gherman Posted October 29, 2015 Author Report Share Posted October 29, 2015 Sorry, I just noticed I should have posted this in the Visilogic forum. Quote Link to comment Share on other sites More sharing options...
Alexander Posted October 29, 2015 Report Share Posted October 29, 2015 Flex, you are correct that was my mistake. Although I had read it was the Samba, my mind went to UniLogic since we were in this subforum. Gherman, it would be a similar process to accept and send ASCII strings with the Samba over RS232. Please find the correct tutorial for the FB protocol blocks which will be used for the Samba and our ViisLogic software. http://www.unitronics.com/support/webinars/fb-protocol 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.