KAMAMT Posted May 11, 2017 Report Share Posted May 11, 2017 Hi everyone, I'm having issues communicating with a balance over RS232 on a Samba 3.5. I can send commands with no issues from the plc to the balance but cannot seem to receive messages. I believe it's in the way I have the formatting set up in the scan protocol. I was hoping someone could lead me in the correct direction. From the manufacturer, the message I should be receiving from the balance is in the form of: S_S_##########_gCrLf where _ is a space, # is a number, Cr is a carriage return, Lf is a line feed. I used a terminal program and verified that it will return a message like this just without the Cr and Lf displayed. All I want to pull out of this message is the 10 # values. If the balance does not use all 10 values, it will use a leading space. It is also possible to have a negative sign leading the number. Some examples of what I could receive are: S_S_ _ _ _ _ _11111_g or S_S_ _ _ _ _ -11111_g . It's also possible I can receive S_D_ instead of S_S_ but I think I can handle this through a second scan? I attached a picture of how I have the scan block set up currently. I've been trying little modifications for over a day now so any help would be great. Thanks! Quote Link to comment Share on other sites More sharing options...
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.