perry p Posted June 30, 2014 Report Share Posted June 30, 2014 I have a vision 1040 and I have 2 ricelake scale indicators. I want to use both serial ports and serial stream the values into the 1040. I can successfully get com 2 to scale in but not scale 1. I'm sure it is my logic. Could someone give me a recommendation of what I could do different? I have attached a copy of my program. Thanks Perry printer2.vlp Quote Link to comment Share on other sites More sharing options...
Eyal Koren Posted July 1, 2014 Report Share Posted July 1, 2014 Hello Perry, Your application has two issues: 1. the PROTOCOL Config FB's should be placed in the Main routine, and not in a subroutine. 2. The PROTOCOL Config FB in subroutine "Stream In 1" (placed in the beginning of the subroutine) is set to COM2 instead COM1. These should solve your issues. Please let me know if they didn't. 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.