mikespeck

MrPLC Member
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mikespeck

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. 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
  2. That's It!!!! Exactly what I was looking for. This will be easy to manipulate and adjust to my needs. Thanks again.
  3. I'm using Hyperterminal to program the basic module. With the following basic program . . . 10 REM 15 REM 20 MODE (PRT2,9600,N,8,1,N,R) 30 Push 4 40 Push 1 50 Push 0 60 Push 0 70 Push 1 80 Call 23 90 Pop S 100 If S=0 Then P."Call 23 setup successful" 110 If S=1 Then P."Call 23 Disabled" 120 If S=2 Then P."Call 23 Bad Input Parameter" 130 If S=3 Then p."Call 23 Prt2 is chosen but enabled for DF1 Protocol" 140 If S=4 Then P."Call 23 String is to small" 150 If S=5 Then P."Call 23 string is not dimensioned" 160 Push 10 170 Call 56 180 Pop s 190 If S=0 Then P. "Call 56 Logic Processor in Run mode" 200 If S=1 Then P. "Successful Transfer, Logic Processor in Program mode" 220 If S=10 Then P." Illegal length specified" 230 If S=11 Then P." Logic Processor does not support this capability" 240 REM*********************************** 250 Goto 240 260 End Now what I want to do is send a string saying lets say todays date to the basic card where the basic will transfer todays date to a printer that will print the string, just not sure how to do this. Even if my basic program is correct.
  4. I'm generating a string within my ladder logic that I would like to send to a printer to be printed via a 1746-bas card. Could anyone support me on how this can be accomplished. A simple PLC .rss program and a Basic program for the module would be nice to review so I can see and watch what is happening in the logic. Then I could familiarize myself and hopefully understand the concept a whole lot better.