Hi,
I am trying to connect a L24ER Compactlogix PLC to a GK420d Zebra printer. All my manual reading and forum searches has lead me to believe that I can use TCP socket connections to send ASCII ZPL code to print labels from the PLC to the printer over Ethernet.
Using the Rockwell Knowledgebase article QA16120 leaves me stuck when I try to use the OpenConnection MSG command.
I get a General Error 16#00ff with Extended Error Code 16#0000_0046
There are three reasons for the is error
1) Connect Service message:
Server IP exists, but port does not
Server IP and port exists, but it does not accept connection on this port
Service timeout value in UDT set to 0 or very low value
2) Read/Write Service message: Read and write executed at the same time
3) Firewall
Based on my code I don't believe it is reason #2 or #3.
I think that I am missing something simple to setup the printer to receive this connection. But I set the printer IP address (and can ping it) and default port number is 9100.
Has anyone else got the OpenConnection MSG to work successfully to print to a Zebra printer?
I am trying to connect a L24ER Compactlogix PLC to a GK420d Zebra printer. All my manual reading and forum searches has lead me to believe that I can use TCP socket connections to send ASCII ZPL code to print labels from the PLC to the printer over Ethernet.
Using the Rockwell Knowledgebase article QA16120 leaves me stuck when I try to use the OpenConnection MSG command.
I get a General Error 16#00ff with Extended Error Code 16#0000_0046
There are three reasons for the is error
1) Connect Service message:
Server IP exists, but port does not
Server IP and port exists, but it does not accept connection on this port
Service timeout value in UDT set to 0 or very low value
2) Read/Write Service message: Read and write executed at the same time
3) Firewall
Based on my code I don't believe it is reason #2 or #3.
I think that I am missing something simple to setup the printer to receive this connection. But I set the printer IP address (and can ping it) and default port number is 9100.
Has anyone else got the OpenConnection MSG to work successfully to print to a Zebra printer?