DaveE Posted October 12, 2017 Report Share Posted October 12, 2017 Good Morning I have a program, in which I need to receive using RS232 from 2 different units (One is a hand held scanner, and one is an Inkjet printer) I have configured both protocols correctly and I see in info mode that the PLC is receiving them, but the strings they are receiving are not being sent to the correct place (I don’t see where they go) In the main program I set this My thought was that when I set MB0 the plc would get the code from the barcode scanner and when I set MB121 the “from printer” code would be received As you can see that when I get the correct result I would then go to the assembly code scan I also set the Barcode scanner protocol and reset the printer protocol However when I run the program, it doesn’t “see the scans”, however when I am in info mode I see them Thoughts please, what am I doing wrong Link to vlp program Thanks In advance Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted October 15, 2017 MVP 2022 Report Share Posted October 15, 2017 Your Protocol Config in the posted program (thanks for posting, BTW) grabs COM2 in three separate places. I have never tried this, but I don't have a good feeling about it. It probably hogs the port for scan blocks associated with the same name. Since Protocol Config Send to printer is last, that's probably the only scan block that works. There's no rule that you can't call a Protocol Config multiple times from ladder logic on an as needed basis. I would start troubleshooting this by creating a program with only one Protocol Config at a time and seeing if the associated Scan block behaves. Joe T. Quote Link to comment Share on other sites More sharing options...
DaveE Posted November 3, 2017 Author Report Share Posted November 3, 2017 Sorry for the delay You are correct Joe, its not a good idea because it didnt work I had to set one on power up and then unset that and reset the one I wanted at the correct time! Makes sense now I think about it, but who thinks?? Quote Link to comment Share on other sites More sharing options...
james_deep Posted June 12, 2018 Report Share Posted June 12, 2018 I have never tried this, but I don't think that it will happen. you cannot call a Protocol config multiple times. visit https://printerchatsupport.co.uk/epson-printer-support/ for more help on this. 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.