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 Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted October 15, 2017 MVP 2023 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. 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?? 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now