PROTOCOLSPECIFICATION设备对接协议doc 62页.docx
《PROTOCOLSPECIFICATION设备对接协议doc 62页.docx》由会员分享,可在线阅读,更多相关《PROTOCOLSPECIFICATION设备对接协议doc 62页.docx(54页珍藏版)》请在冰豆网上搜索。
PROTOCOLSPECIFICATION设备对接协议doc62页
HUSKYMACHINEOPERATIONS
HUSKYHOSTINTERFACEPROTOCOLSPECIFICATION
ThismanualdescribestheinterfacebetweenaHuskyInjectionMoldingMachinewiththeHuskyHostInterfaceoptionandtheHostsystem.Anoverviewofthesystemandadetailedcommandsetaregiven.ThismanualisissuedbytheSystemsSoftwareGroup.
SPECIFICATIONSUBJECTTOCHANGE
HuskyInjectionMoldingSystemsLtd.
MachineOperations
560QueenStreetSouth
Bolton,Ontario,CanadaL7E5S5
REVISIONRECORD
Revision
Date
Comments
1.00
19941212
InitialRelease.
1.01
1995411
Addedtextdatavariablesupport,reformatted.
1.02
1995515
CleanedupperMD,SPCIIandTandemupdates.
1.03
1995728
RestoredreferencetoRFC1179forprinting.
2.00
1998417
UpdatedforG-Line,addedEventFunction,updatedvariablelist,muchcleanup.
2.01
19991012
AddedStatusFunction.
2.02
19991108
Changereferencesto“Alarm”to“CycleInterruption”
Contents
1.Introduction
ThisdocumentdescribesthefunctionsandinterfaceoftheHuskyHostInterfaceoption.ThisproductisdesignedtoconnectaHuskyMoldingMachinetoahostcomputer,enablingauser-suppliedhostsystemtoobtainprocessvariabledataandmachineevents,receivemachinecycleinterruptions,andSPCinformation(ifequipped),sendandreceivesetupfiles,querymachinestatus,andcommunicatewithshopflooroperatorsviaadedicatedHostTerminalscreenontheHuskyOperatorInterface.
Note:
TheHuskyHostInterfaceoptiononlysuppliesthesoftwareandhardwareimplementingtheprotocolontheHuskyMoldingMachine.Thehostsystemmustbesuppliedbythecustomerandisnotprovidedwiththisoption.
Thedocumentbeginswithanoverviewofatypicalsystem.Thisisfollowedbyadescriptionofuserfunctions,includinghowtheuserviewsthesystem,andthenbyatechnicaldescriptionoftheinterface.Thisinterfaceisdividedintothreelogicalsections,whereeachsectionprovidesadistinctfunction.Themessagesdescribedineachofthesesectionsflowthroughseparatevirtualcommunicationsportsofthenetworkinterface.
2.SystemOverview
ThedatacommunicationsmessagesbetweenthehostsystemandtheHuskyOperatorInterface(OI)aresentviaanEthernetconnectionusingTCP/IPsocketstreams.(seeFigure1).
Processdata,events,cycleinterruptions,SPCinformation,machineset-upinformation,machinestatus,andterminalcommandsaretransmittedbetweenthehostandthemoldingmachines.ThehostcommunicationsoptionalsoaddsremoteprintingcapabilitiestotheHuskyOI,allowingamachineoperatortouseaprintersupportedbytheprinthost.
ThehostsystemandtheprinthostshownbelowinFigure1aredepictedasseparatenodesonthenetwork,buttheymaybeconfiguredonasinglenode.TheinterfaceallowsanyhostsystemtocommunicatewithanynumberofHuskymachinesandanyOItousetheprintingfacilitiesprovidedbyanyprinthost.
Figure1-SystemOverview
3.Functions
3.1HostDisplayInterface
TheHostsystemcontrolswhatappearsontheallocatedareaoftheOIscreenandmenulabels.TheoperatorexitstheHostTerminalscreenbypressingoneofthededicatedscreenkeysfromthelowerrowofthe“ScreenSelectionKeypad”.
Thedisplaysupportstextandgraphics,withtextpresentedoncharactercellboundaries.Thereare25linesofcharactercellsby78columns,borderedbyathinoutline.Eachcellis8pixelswideand16pixelshigh.Thetotalgraphicsareais425pixelshighand636pixelswide.Eachofthetenmenulabelsonthescreenaremadeoftwolinesofeightcharacterseach.
Thedisplaycanbeeithercolourormonochrome.Commandsareprovidedtoallowthehostsystemtosetthecolourscheme.
TheHuskyOItransmitsallkey-strokestothehostwiththeexpectionofthebottomrowofscreenselectionkeys,andtheprintscreenkey.
Figure2-OIScreenAreaforHostTerminal
3.2SendingMachineSet-upstoHost
Machineset-upscontainasetofoperatingparametersforaspecificjoborproduct.Set-upfunctionsrequiretheHusky“operator”securitylevel.
WhenconfiguredwiththeHuskyHostInterfaceoption,Huskyset-upnumberoneisreserved.Whentheoperatorsavestoset-upnumberone,itistransmittedtothehostsystem.
Set-upsbeingsenttothehostsystemareidentifiedby:
∙Dateandtime(19characters,“YYYY-MM-DDHH:
MM:
SS”)
∙Moldnumber(8characters)
∙Machinetype(9characters)
∙Machineserialnumber(6characters)
∙Resintypeandname(16characters).
Thehostmustonlysaveset-upsonitsdiskifthewholedatafileisreceivedcorrectly.Theset-upwillnotappearinset-upnumberoneuntilthehosthasreceivedtheentiredatafilewithnoerrors.Ifanerroroccurswhensendingamachineset-up,theHuskyOIdisplaysanerrormessageonthewarninglineandpromptstheoperatorforaresponsebeforecontinuing.
Ifthehostinterfaceisdown,theoperatorcannotsavetoset-upnumberone.Theset-upwillhavetobesavedtoanotherset-upnumberandtransferredtoset-upnumberonewhentheinterfacehasbeenre-established.
3.3ReceivingMachineSet-upsfromHost
WhenconfiguredwiththeHuskyHostInterfaceoption,theHuskymachinecanalsoreceivemachineset-upsintoset-upnumberonefromthehostsystem.
Whenthehostsystemtransfersaset-uptothemachine,itisstoredintheset-upnumberoneslot.Loadingthenewset-upnumberoneintotheHuskymachineisunderthecontroloftheoperator.Theoperatorloadsthisnewmachineset-upwhenready.
IfthemachineserialnumbersaredifferentwhentheHuskymachineisreceivinganewset-up,theOIpromptstheoperatoronthewarninglinebeforethenewset-upisaccepted.Typically,onlyset-upsfromsimilarmachinesareaccepted.
Set-upsareidentifiedontheHuskymachineby:
∙Dateandtime(19characters,“YYYY-MM-DDHH:
MM:
SS”)
∙Moldnumber(8characters)
∙Machinetype(9characters)
∙Machineserialnumber(6characters)
∙Resintypeandname(16characters).
Forsecurityandsafetyreasons,set-upsmustnotbemodifiedinanywaybythehostsystem.ChecksinternaltotheHuskysystemwillpreventtheuseofalteredset-ups.Theoperatorinterfacedisplaysamessageonthewarninglinewhenitisreceivinganewset-up.
TheHuskymachineonlysavesset-upsinitsmemoryifthewholedatafilehasbeenreceivedcorrectlyandtheinternalcheckscompletesuccessfully.Ifanerroroccurswhenreceivingamachineset-up,theHuskyOIdisplaysanerrormessageonthewarninglineandpromptstheoperatorforaresponsebeforethemachinecontinues.
3.4ReadProcessData
Attheendofeverycycle,theHuskymachinewilltransmitprocessdatacollectedduringthelastcycletothehostsystem.(seeAppendixA).
3.5Events
TheOperatorInterfacewilltransmittotheHostComputeralleventsnormallystoredintheEventLogincluding:
∙Cyc.Int.-CycleInterruptionactiveandinactive.
∙Alarm-MachineAlarmsactiveandinactive.
∙Setpoint-Changestosetpoints,options,selections,etc.
∙Machine-Changesinmachinestate(Idle/Manual,AutoCycling,etc.)
∙OIStart-StartupoftheOperatorInterface.
∙PLCLink-PLCcommunicationsstatus.
∙PLC2Link-SecondPLCcommunicationsstatus.
∙CLCLink-CLCRobotControllercommunicationsstatus.
∙Bnchmark-CycleTimeBreakdownBenchmarkcaptured.
∙Setup-MoldSetupsaveandrecall.
∙Heats-BrokenThermocoupleorControllerfaults.
∙SPC-IndividualSPCvariablealarms.
∙Log-EventandDatalogcreationortransfer.
∙Access-OperatorAccessLogin/Logout.
∙Reason-SetpointChangeReasons.
∙Inv.Alrm-UnconfiguredAlarms.
Someoftheseeventsonlyapplytomachineswhichincludecertainoptions(SPC,Reasons,Access)oraredependantuponthevintageorconfigurationofthemachine(PLC2Link,CLCLink,Heats).OldermachinesnotequippedwiththeTroubleshootingpackagewillgenerateonlyOIStartevents(andSPCandLogeventsifequipped).Specialsoftwareorfutureenhancementsmayadd,change,oreliminateeventtypes.
Eventsmessageswillonlybesenttothehostastheyoccur,andwillnotbebufferediftheconnectiontothehostislost.Theeventtextwillbesentinallsupportedlanguages.
3.6CycleInterruptions
TheHuskymachinetransmitscycleinterruptions,astheyoccur,tothehost(seeAppendixB).Thehostcanalsorequestthelastcycleinterruptionconditionatanytime.TheHuskymachinewillsendthecycleinterruptiontexttothehostinallsupportedlanguages.
3.7SPC
IftheHuskySPCoptionisinstalled,theHuskymachinewilltransmitSPCinformationtothehostwhenachangeinanyoftheparametersisdetected.Thehostcanalsorequestthisinformationatanytime.
3.8MachineStatus
“QueryMachineStatus”willreturnanASCIIstringindicatingthestatusofthemachine.
3.9RemotePrinting
WhentheoperatorpressesthePrint-screenkey,thecurrentdisplayimageistransmittedtothespecifiedprintqueue.ThisrequirestheHuskyprint-screenoption.
Toenableremoteprintingonthehostprinter,itmustbeselectedviatheOIprintsettingsscreen.Forremoteprintingtoworkasdesired,theprinthostmustbeconnectedtoaprintersupportedbyHuskyprintingfunctions.
4.TechnicalImplementation
4.1CommunicationsInterface
ThissectiondefinestheHuskyHostInterface.Thisinterfaceiscomprisedofthreelinks:
Type1-Machinefunctions(HuskytoHost)
Type2-Displayinterface(HuskytoHost)
Type3-Remoteprinting(HuskytoPrintHost).
EachlinkusesaseparateTCP/IPsocketconnection.Atstart-upthehostsystemcallstheHuskymachine.
IfthelinkbetweentheHuskymachineandthehostsystemfailsordisconnects,thehostsystemmustre-establishtheconnection.Whenthehostlinkisdown,awarningisdis