1、V2.00 - November 8, 1999HUSKY MACHINE OPERATIONSThis manual describes the interface between a Husky Injection Molding Machine with the Husky Host Interface option and the Host system. An overview of the system and a detailed command set are given. This manual is issued by the Systems Software Group.
2、SPECIFICATION SUBJECT TO CHANGEHusky Injection Molding Systems Ltd.Machine Operations560 Queen Street SouthBolton, Ontario, Canada L7E 5S5HUSKY HOST INTERFACE PROTOCOL SPECIFICATIONHusky Machine OperationsHusky Host Interface Protocol SpecificationPage ii SPECIFICATION SUBJECT TO CHANGENovember 8, 1
3、999REVISION RECORDRevision Date Comments1.00 1994 12 12 Initial Release.1.01 1995 4 11 Added text data variable support, reformatted.1.02 1995 5 15 Cleaned up per MD, SPC II and Tandem updates.1.03 1995 7 28 Restored reference to RFC 1179 for printing.2.00 1998 4 17 Updated for G-Line, added Event F
4、unction, updated variable list, much cleanup.2.01 1999 10 12 Added Status Function.2.02 1999 11 08 Change references to “Alarm” to “Cycle Interruption”Husky Machine OperationsHusky Host Interface Protocol SpecificationSPECIFICATION SUBJECT TO CHANGE Page iiiNovember 8, 1999Contents1. INTRODUCTION 12
5、. SYSTEM OVERVIEW 23. FUNCTIONS 33.1 Host Display Interface 33.2 Sending Machine Set-ups to Host 33.3 Receiving Machine Set-ups from Host 43.4 Read Process Data 53.5 Events 53.6 Cycle Interruptions 53.7 SPC 63.8 Machine Status 63.9 Remote Printing 64. TECHNICAL IMPLEMENTATION 74.1 Communications Int
6、erface 74.2 Application Interface 84.2.1 Type 1 - Machine Functions 84.2.1.1 Initialize the connection 114.2.1.2 Start of job 124.2.1.3 Languages 134.2.1.4 List process variable 154.2.1.5 Reading process variables 174.2.1.6 End of cycle 184.2.1.7 Events 194.2.1.8 Cycle Interruptions 204.2.1.9 SPC pa
7、rameters 224.2.1.10 Machine Status 244.2.1.11 Up-load a machine set-up 254.2.1.12 Error 294.2.2 Type 2 - Display Interface 304.2.2.1 Initialize the connection 314.2.2.2 Start or refresh the display 324.2.2.3 Stop the display 334.2.2.4 Key-stroke message 344.2.2.5 Screen display command 354.2.2.6 Men
8、u key command 364.2.2.7 Errors 374.2.3 Type 3 - Remote Printing 37APPENDIX A - PROCESS VARIABLES 38APPENDIX B - CYCLE INTERRUPTIONS 39APPENDIX C - KEY-STROKES 39APPENDIX D - DISPLAY COMMANDS 39APPENDIX E - EVENT TEXT FORMATS 39Husky Machine OperationsHusky Host Interface Protocol SpecificationPage i
9、v SPECIFICATION SUBJECT TO CHANGENovember 8, 1999Husky Machine OperationsHusky Host Interface Protocol SpecificationSPECIFICATION SUBJECT TO CHANGE Page 1November 8, 19991. IntroductionThis document describes the functions and interface of the Husky Host Interface option. This product is designed to
10、 connect a Husky Molding Machine to a host computer, enabling a user-supplied host system to obtain process variable data and machine events, receive machine cycle interruptions, and SPC information (if equipped), send and receive setup files, query machine status, and communicate with shop floor op
11、erators via a dedicated Host Terminal screen on the Husky Operator Interface.Note: The Husky Host Interface option only supplies the software and hardware implementing the protocol on the Husky Molding Machine. The host system must be supplied by the customer and is not provided with this option.The
12、 document begins with an overview of a typical system. This is followed by a description of user functions, including how the user views the system, and then by a technical description of the interface. This interface is divided into three logical sections, where each section provides a distinct fun
13、ction. The messages described in each of these sections flow through separate virtual communications ports of the network interface.Husky Machine OperationsHusky Host Interface Protocol SpecificationPage 2 SPECIFICATION SUBJECT TO CHANGENovember 8, 19992. System OverviewThe data communications messa
14、ges between the host system and the Husky Operator Interface (OI) are sent via an Ethernet connection using TCP/IP socket streams. (see Figure 1). Process data, events, cycle interruptions, SPC information, machine set-up information, machine status, and terminal commands are transmitted between the
15、 host and the molding machines. The host communications option also adds remote printing capabilities to the Husky OI, allowing a machine operator to use a printer supported by the print host.The host system and the print host shown below in Figure 1 are depicted as separate nodes on the network, bu
16、t they may be configured on a single node. The interface allows any host system to communicate with any number of Husky machines and any OI to use the printing facilities provided by any print host.Figure 1 - System OverviewHusky Machine OperationsHusky Host Interface Protocol SpecificationSPECIFICA
17、TION SUBJECT TO CHANGE Page 3November 8, 19993. Functions3.1 Host Display InterfaceThe Host system controls what appears on the allocated area of the OI screen and menu labels. The operator exits the Host Terminal screen by pressing one of the dedicated screen keys from the lower row of the “Screen
18、Selection Keypad”. The display supports text and graphics, with text presented on character cell boundaries. There are 25 lines of character cells by 78 columns, bordered by a thin outline. Each cell is 8 pixels wide and 16 pixels high. The total graphics area is 425 pixels high and 636 pixels wide.
19、 Each of the ten menu labels on the screen are made of two lines of eight characters each.The display can be either colour or monochrome. Commands are provided to allow the host system to set the colour scheme.The Husky OI transmits all key-strokes to the host with the expection of the bottom row of
20、 screen selection keys, and the print screen key.Figure 2 - OI Screen Area for Host Terminal3.2 Sending Machine Set-ups to HostHusky Machine OperationsHusky Host Interface Protocol SpecificationPage 4 SPECIFICATION SUBJECT TO CHANGENovember 8, 1999Machine set-ups contain a set of operating parameter
21、s for a specific job or product. Set-up functions require the Husky “operator” security level.When configured with the Husky Host Interface option, Husky set-up number one is reserved. When the operator saves to set-up number one, it is transmitted to the host system.Set-ups being sent to the host s
22、ystem are identified by: Date and time (19 characters, “YYYY-MM-DD HH:MM:SS”) Mold number (8 characters) Machine type (9 characters) Machine serial number (6 characters) Resin type and name (16 characters).The host must only save set-ups on its disk if the whole data file is received correctly. The
23、set-up will not appear in set-up number one until the host has received the entire data file with no errors. If an error occurs when sending a machine set-up, the Husky OI displays an error message on the warning line and prompts the operator for a response before continuing.If the host interface is
24、 down, the operator cannot save to set-up number one. The set-up will have to be saved to another set-up number and transferred to set-up number one when the interface has been re-established.3.3 Receiving Machine Set-ups from Host When configured with the Husky Host Interface option, the Husky mach
25、ine can also receive machine set-ups into set-up number one from the host system.When the host system transfers a set-up to the machine, it is stored in the set-up number one slot. Loading the new set-up number one into the Husky machine is under the control of the operator. The operator loads this
26、new machine set-up when ready.If the machine serial numbers are different when the Husky machine is receiving a new set-up, the OI prompts the operator on the warning line before the new set-up is accepted. Typically, only set-ups from similar machines are accepted.Set-ups are identified on the Husk
27、y machine by: Date and time (19 characters, “YYYY-MM-DD HH:MM:SS”) Mold number (8 characters) Machine type (9 characters) Machine serial number (6 characters) Resin type and name (16 characters).Husky Machine OperationsHusky Host Interface Protocol SpecificationSPECIFICATION SUBJECT TO CHANGE Page 5
28、November 8, 1999For security and safety reasons, set-ups must not be modified in any way by the host system. Checks internal to the Husky system will prevent the use of altered set-ups. The operator interface displays a message on the warning line when it is receiving a new set-up.The Husky machine
29、only saves set-ups in its memory if the whole data file has been received correctly and the internal checks complete successfully. If an error occurs when receiving a machine set-up, the Husky OI displays an error message on the warning line and prompts the operator for a response before the machine
30、 continues.3.4 Read Process DataAt the end of every cycle, the Husky machine will transmit process data collected during the last cycle to the host system. (see Appendix A).3.5 EventsThe Operator Interface will transmit to the Host Computer all events normally stored in the Event Log including: Cyc.
31、Int. - Cycle Interruption active and inactive. Alarm - Machine Alarms active and inactive. Setpoint - Changes to setpoints, options, selections, etc. Machine - Changes in machine state (Idle/Manual, Auto Cycling, etc.) OI Start - Startup of the Operator Interface. PLC Link - PLC communications statu
32、s. PLC2Link - Second PLC communications status. CLC Link - CLC Robot Controller communications status. Bnchmark - Cycle Time Breakdown Benchmark captured. Setup - Mold Setup save and recall. Heats - Broken Thermocouple or Controller faults. SPC - Individual SPC variable alarms. Log - Event and Data
33、log creation or transfer. Access - Operator Access Login/Logout. Reason - Setpoint Change Reasons. Inv.Alrm - Unconfigured Alarms.Some of these events only apply to machines which include certain options (SPC, Reasons, Access) or are dependant upon the vintage or configuration of the machine (PLC2Li
34、nk, CLC Link, Heats). Older machines not equipped with the Troubleshooting Husky Machine OperationsHusky Host Interface Protocol SpecificationPage 6 SPECIFICATION SUBJECT TO CHANGENovember 8, 1999package will generate only OI Start events (and SPC and Log events if equipped). Special software or fut
35、ure enhancements may add, change, or eliminate event types.Events messages will only be sent to the host as they occur, and will not be buffered if the connection to the host is lost. The event text will be sent in all supported languages.3.6 Cycle InterruptionsThe Husky machine transmits cycle inte
36、rruptions, as they occur, to the host (see Appendix B). The host can also request the last cycle interruption condition at any time. The Husky machine will send the cycle interruption text to the host in all supported languages.3.7 SPCIf the Husky SPC option is installed, the Husky machine will tran
37、smit SPC information to the host when a change in any of the parameters is detected. The host can also request this information at any time.3.8 Machine Status“Query Machine Status” will return an ASCII string indicating the status of the machine.3.9 Remote Printing When the operator presses the Prin
38、t-screen key, the current display image is transmitted to the specified print queue. This requires the Husky print-screen option.To enable remote printing on the host printer, it must be selected via the OI print settings screen. For remote printing to work as desired, the print host must be connect
39、ed to a printer supported by Husky printing functions.Husky Machine OperationsHusky Host Interface Protocol SpecificationSPECIFICATION SUBJECT TO CHANGE Page 7November 8, 19994. Technical Implementation4.1 Communications InterfaceThis section defines the Husky Host Interface. This interface is compr
40、ised of three links:Type 1 - Machine functions (Husky to Host)Type 2 - Display interface (Husky to Host)Type 3 - Remote printing (Husky to Print Host).Each link uses a separate TCP/IP socket connection. At start-up the host system calls the Husky machine.If the link between the Husky machine and the
41、 host system fails or disconnects, the host system must re-establish the connection. When the host link is down, a warning is displayed on the alarm page.Every 30 seconds the Husky machine will send a message to the host to verify that the connection is still up.If there is no response to a request
42、within 15 seconds of sending the request, the sender will assume that the connection is down. The sender will also assume that the connection is down if any communication error is detected. Re-establishment will proceed as described above.At start-up of type 1 and type 2 links, the Husky machine wil
43、l supply its serial number as a security function to verify the connection is being made with the proper host.To reduce the number of open streams on the host, type 3 links connect when printing is requested and disconnect when done.Values larger than one byte will be sent starting with the low orde
44、r byte and progressing to the highest order byte. There will be word swapping.The Husky machine requires the following network parameters to configure the link: Network ID of the Husky OI Network ID of the print hostThe supervisor sets these parameters on the “Host Link Configuration” screen.Prelimi
45、nary investigations show the Ethernet channel can support in the order of 50 machines. This is based on the following: Derating the 10 Mbps Ethernet down to 4 Mbps actual data transferred. (Studies have shown Ethernet to degrade after a total load of 5 Mbps). 4 KBytes transferred between the Husky m
46、achine and the host during a one second interval. (The load is unlikely to be this high, even with a short machine cycle time).Husky Machine OperationsHusky Host Interface Protocol SpecificationPage 8 SPECIFICATION SUBJECT TO CHANGENovember 8, 1999 One 300 KByte print screen operation is taking plac
47、e during the above one second interval. One 10 KByte set-up is being transferred during the above one second interval.In practice the performance will be limited more by the Husky and host processors and interface cards than by the communications channel. Additionally, other physical factors would c
48、ause the network to be segmented into smaller networks long before the maximum is reached.4.2 Application InterfaceThe following describes the application messages and corresponding parameters used to communicate between the host system and the Husky molding machine.4.2.1 Type 1 - Machine FunctionsT
49、ype 1 messages provide the host system with access to variables and alarms on the Husky machine. Type 1 messages are also used to send machine set-up information between the host and the Husky machine.Communication for type 1 messages is via TCP sockets. At start-up time, the host system establishes a connection to port number 5118 decimal on the Husky machine. This connection is used to exchange type 1 messages.All messages begin with a two byte message size (shown below as ), followed by a two byte command word. The message size includes all elements within th