Sign in to follow this  
Followers 0
mikespeck

1746-BAS Clear PRT1 Buffer

1 post in this topic

Good afternoon, Attached is a copy of my Basic Program. I'm looking to clear PRT1 buffers once I send the string from my PLC, but only when an input is on on the PLC. (Confusing) Okay, I'm sending a string file to the Basic Module to PRT1. My printer that PRT1 is attached to will print that string. After the print I want to be able to clear the buffer so the next time the printer prints it does not contain the string that printed last time. (Hopefully that makes a little better sense) Can anyone help. 10 push 2 : Rem send data to PRT 1 20 Push 1 : Rem Get data from M0 File 30 Push 0 : Rem Word offset into M0 File 40 Push 0 : Rem string number 50 Push 1 : Rem Enable byte swap 60 Call 23 70 Pop s : rem Status of call setup 80 If (S<>0) Then Print "Unsuccessful Call 23 Setup) 90 goto 80 100 end

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0