Jump to content

Recommended Posts

Posted

I am using a unitronics SM35-J-R20 and I need to connect to a Zebra GK420d printer.  I can't seem to get my code to work and I'd love to send you a copy of my code but I don't see a place to upload pictures from my computer. Thanks for your help. 

Marcus Turpin 

  • MVP 2023
Posted

Simply drag your pic into the area you want it to show in your text.  I always do a few spaces either side of the final "drop" location, so that you can adjust things easily if needed. 

If you just want to attach it, drag it into the lower attach area only.

cheers, Aus

Posted

This is my code so far, most of which was written with the help of Unitronics examples. I believe the P.TCP/IP Config block is changing my TCP_UDP Socket Parameters upon downloading my program to the PLC.

Fibrouscounter2.1.png

Fibrouscounter2.2.png

Fibrouscounter2.3.png

Fibrouscounter2.4.png

Fibrouscounter2.5.png

Fibrouscounter2.6.png

  • MVP 2023
Posted

You cannot have initialization and configuration function blocks directly attached to the left ladder rail (your ladder rung 2). Do NOT do that. Use SB 2 to activate those.

Also in ladder rung 3, you are resetting MB 10 when you should be resetting MB 9 (and MB 9 in rung 2 should be a Set coil, not a direct coil).

  • 2 weeks later...
  • MVP 2023
Posted

@Julian Farnandez - 

This thread was started with a the question of communicating with a Zebra thermal printer - if you're not familiar with it then Google it up.  It's a much simpler printer to talk to than your Epson, which is more of a home printer.

On 12/20/2019 at 5:58 AM, Julian Farnandez said:

But I can't understand what is the system of programming printer.

Many printers can be utilized using the PCL 5 language but it really isn't the purpose of this from to educate people from the ground up on how printer drivers work.  Unitronics doesn't sell printers.

If you do some digging on your own and have a question of how to generate specific commands to send to a printer from a Unitronics PLC, then we can be more helpful.

Joe T.

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.