




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 . . . . 59/64 . . HUSKY MACHINE OPERATIONSHUSKY HOST INTERFACE PROTOCOL SPECIFICATIONThis 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
2、 issued by the Systems Software Group.SPECIFICATION SUBJECT TO CHANGEHusky Injection Molding Systems Ltd.Machine Operations560 Queen Street SouthBolton, Ontario, CanadaL7E 5S5REVISION RECORDRevisionDateComments1.001994 12 12Initial Release.1.011995 4 11Added text data variable support, reformatted.1
3、.021995 5 15Cleaned up per MD, SPC II and Tandem updates.1.031995 7 28Restored reference to RFC 1179 for printing.2.001998 4 17Updated for G-Line, added Event Function, updated variable list, much cleanup.2.011999 10 12Added Status Function.2.021999 11 08Change references to “Alarm” to “Cycle Interr
4、uption”Contents TOC o t Appendix1,1 1.Introduction PAGEREF _Toc464360923 h 12.System Overview PAGEREF _Toc464360924 h 23.Functions PAGEREF _Toc464360925 h 33.1Host Display Interface PAGEREF _Toc464360926 h 33.2Sending Machine Set-ups to Host PAGEREF _Toc464360927 h 33.3Receiving Machine Set-ups from
5、 Host PAGEREF _Toc464360928 h 43.4Read Process Data PAGEREF _Toc464360929 h 53.5Events PAGEREF _Toc464360930 h 53.6Cycle Interruptions PAGEREF _Toc464360931 h 53.7SPC PAGEREF _Toc464360932 h 63.8Machine Status PAGEREF _Toc464360933 h 63.9Remote Printing PAGEREF _Toc464360934 h 64.Technical Implement
6、ation PAGEREF _Toc464360935 h 74.1Communications Interface PAGEREF _Toc464360936 h 74.2Application Interface PAGEREF _Toc464360937 h 84.2.1Type 1 - Machine Functions PAGEREF _Toc464360938 h Initialize the connection PAGEREF _Toc464360939 h Start of job PAGEREF _Toc464360940 h 124.2.
7、1.3Languages PAGEREF _Toc464360941 h List process variable PAGEREF _Toc464360942 h Reading process variables PAGEREF _Toc464360943 h End of cycle PAGEREF _Toc464360944 h Events PAGEREF _Toc464360945 h Cycle Interruptions PAGEREF _Toc464360946 h S
8、PC parameters PAGEREF _Toc464360947 h 0Machine Status PAGEREF _Toc464360948 h 1Up-load a machine set-up PAGEREF _Toc464360949 h 2Error PAGEREF _Toc464360950 h 294.2.2Type 2 - Display Interface PAGEREF _Toc464360951 h 30Initialize the connection PAGEREF _Toc464360952
9、 h 3Start or refresh the display PAGEREF _Toc464360953 h 3Stop the display PAGEREF _Toc464360954 h 3Key-stroke message PAGEREF _Toc464360955 h 3Screen display command PAGEREF _Toc464360956 h 3Menu key command PAGEREF _Toc464360957 h 3Errors PAGEREF _To
10、c464360958 h 374.2.3Type 3 - Remote Printing PAGEREF _Toc464360959 h 37Appendix A - Process Variables PAGEREF _Toc464360960 h 38Appendix B - Cycle Interruptions PAGEREF _Toc464360961 h 39Appendix C - Key-Strokes PAGEREF _Toc464360962 h 39Appendix D - Display Commands PAGEREF _Toc464360963 h 39Append
11、ix E - Event Text Formats PAGEREF _Toc464360964 h 39IntroductionThis document describes the functions and interface of the Husky Host Interface option. This product is designed to connect a Husky Molding Machine to a host computer, enabling a user-supplied host system to obtain process variable data
12、 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 operators via a dedicated Host Terminal screen on the Husky Operator Interface.Note: The Husky Host Interface option only s
13、upplies 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 document begins with an overview of a typical system. This is followed by a description of user functions, including how
14、 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 function. The messages described in each of these sections flow through separate virtual communications ports of the network
15、 interface.System OverviewThe data communications messages 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 st
16、atus, and terminal commands are transmitted between the 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 Fig
17、ure 1 are depicted as separate nodes on the network, but 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 OverviewFunctionsHost Display
18、 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 Selection Keypad”. The display supports text and graphics, with text pres
19、ented 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. Each of the ten menu labels on the screen are made of two lines of eight
20、 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 screen selection keys, and the print screen key.Figure 2 - OI Screen Are
21、a for Host TerminalSending Machine Set-ups to HostMachine set-ups contain a set of operating parameters 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 oper
22、ator saves to set-up number one, it is transmitted to the host system.Set-ups being sent to the host system 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 character
23、s).The host must only save set-ups on its disk if the whole data file is received correctly. The 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 th
24、e warning line and prompts the operator for a response before continuing.If the host interface is 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.Receiving M
25、achine Set-ups from HostWhen configured with the Husky Host Interface option, the Husky machine 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 numb
26、er one into the Husky machine is under the control of the operator. The operator loads this 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. T
27、ypically, only set-ups from similar machines are accepted.Set-ups are identified on the Husky 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).For security and s
28、afety 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 only saves set-ups in its memory i
29、f 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 continues.Read Process DataAt the
30、 end of every cycle, the Husky machine will transmit process data collected during the last cycle to the host system. (see Appendix A).EventsThe Operator Interface will transmit to the Host Computer all events normally stored in the Event Log including:Cyc.Int. - Cycle Interruption active and inacti
31、ve.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 status.PLC2Link - Second PLC communications status.CL
32、C 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 log creation or transfer.Access - Operator Access Login
33、/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 (PLC2Link, CLC Link, Heats). Older machines not equipped with the
34、 Troubleshooting package will generate only OI Start events (and SPC and Log events if equipped). Special software or future 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 l
35、ost. The event text will be sent in all supported languages.Cycle InterruptionsThe Husky machine transmits cycle interruptions, 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
36、 text to the host in all supported languages.SPCIf the Husky SPC option is installed, the Husky machine will transmit 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.Machine Status“Query Machine Status” will retur
37、n an ASCII string indicating the status of the machine.Remote PrintingWhen the operator presses the Print-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
38、via the OI print settings screen. For remote printing to work as desired, the print host must be connected to a printer supported by Husky printing functions.Technical ImplementationCommunications InterfaceThis section defines the Husky Host Interface. This interface is comprised of three links:Type
39、 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 host system fails or di
40、sconnects, 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 within 15 seconds of sen
41、ding 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 will supply its serial numb
42、er 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 order byte and progressing t
43、o 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 OINetwork ID of the print hostThe supervisor sets these parameters on the “Host Link Configuration” screen.Preliminary investigations show t
44、he 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 machine and the host during a
45、 one second interval. (The load is unlikely to be this high, even with a short machine cycle time).One 300 KByte print screen operation is taking place 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
46、be limited more by the Husky and host processors and interface cards than by the communications channel. Additionally, other physical factors would cause the network to be segmented into smaller networks long before the maximum is reached.Application InterfaceThe following describes the application
47、messages and corresponding parameters used to communicate between the host system and the Husky molding machine.Type 1 - Machine FunctionsType 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
48、 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 si
49、ze (shown below as ), followed by a two byte command word. The message size includes all elements within the message. Many, but not all, machine function commands have responses. Commands have the most significant bit of the command word set to zero. Responses have the most significant bit of the co
50、mmand word set to one (0 x8000).A list of type 1 messages specifying the request and the initiating machine is given below:MessageInitiated by:Initialize the connection/Verify connectionHusky OIStart of jobHostLanguagesHostList process variable namesHostRead process variablesHostEnd of cycleHusky OI
51、EventsHusky OICycle InterruptionHusky OICycle Interruption QueryHostSPC parametersHusky OISPC parameters queryHostMachine Status QueryHostUp-load RequestHostBegin set-up up-loadHusky OIUp-load set-up dataHusky OIEnd set-up up-loadHusky OIBegin set-up down-loadHostDown-load set-up dataHostEnd set-up
52、down-loadHostError conditionHusky OI or HostSample data exchangeThe following is an example of a typical type 1 message exchange.FunctionHusky OIHostInitialize ConnectionINITresponse, result=0English, French, German English response, result=0response, result=0DOWN-LOAD response-result=0DOWN-LOAD res
53、ponse-result=0DOWN-LOAD response-result=0END DOWN-LOADresponseBEGIN DOWN-LOADDOWN-LOAD DATA block 0DOWN-LOAD DATA block 1DOWN-LOAD DATA block 2SPC Parameter ChangeSPC PARAMETERSMachine makes partsEND OF CYCLE SPC Parameter QuerySPC PARAMETERS Cycle InterruptionCYCLE INTERRUPTIONMachine makes partsEN
54、D OF CYCLEMachine makes partsEND OF CYCLEEventEVENTSave set-upUp-load not grantedBEGIN UP-LOADUP-LOAD DATAblock 0UP-LOAD DATAblock 1UP-LOAD DATAblock 2END UP-LOADBEGIN UP-LOAD responseresult=0UP-LOAD response, result=0UP-LOAD response, result=0UP-LOAD response, result=0INITERROR, invalid message siz
55、eINITINIT response, result=0Initialize the connectionAt start-up, after the connection is established, the Husky machine sends the “init” request message to the host.This must be the first message sent after establishing the connection. It is used to verify that the connection exists between the cor
56、rect host, Husky machine pair.The “init” message is also used to verify that the Husky machine-host connection is still up. Every 30 seconds the Husky machine sends the “init” request message to check the status of the link.2 byte integer0 x102 byte integer6 byte ASCIIThe “init” response message fro
57、m the host is:2 byte integer0 x80102 byte integer2 byte integer4 byte time format6 byte ASCIIThe field contains the serial number for the Husky machine. It is left justified and padded on the right with spaces. If the field received does not match the Husky machine serial number the host expects, th
58、e host should respond with a failed result (see field below) and tear down the connection. The serial number loaded into the host system is returned in the response message from the host.The field contains a response code to the request. If the serial number in the message matches the serial number
59、defined in the host system, the will be zero. Otherwise, the “init” request has failed and the field will be non-zero. The field contains the current time in the host. The value is four bytes long and represents the number of seconds elapsed since 00:00:00 Greenwich mean time (GMT), January 1, 1970.
60、Start of jobThe “start” request message is sent from the host to the Husky machine to signal the start of a new job. The Husky OI will clear set-up number one and all of its production counters.2 byte integer0 x032 byte integer1 byte integerThe “start” response message from the Husky machine is:2 by
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 默契中考语文作文
- 物流搬运设备选型指南考核试卷
- 描写北京初二上册语文作文
- 健身器材制造业资本运作与投融资策略考核试卷
- 残疾人权益倡导与法律援助考核试卷
- 空气流量测量考核试卷
- 柑橘种植园农业产业链优化策略考核试卷
- 玻璃保温容器行业人才培养与选拔考核试卷
- 倾听高三语文作文
- 滚动轴承市场与发展趋势考核试卷
- 数字经济学-教学案例及答案 唐要家
- 【S镇35kV变电站一次系统设计(论文)14000字】
- V带传动设计说明书
- 酒店投标书范本
- 与农户的收购协议书范本
- GB/T 30819-2024机器人用谐波齿轮减速器
- 中国特种兵课件
- 梁板结构:双向板
- 吊篮高处作业安全交底
- 彩票物流配送服务投标方案(技术方案)
- DB3301-T 65.28-2024 反恐怖防范系统管理规范 第28部分:硬质隔离设施
评论
0/150
提交评论