Beruflich Dokumente
Kultur Dokumente
TECHNICAL SERVICE SUPPORT BULLETIN
CONTENTS
1. 2. 2.1. 2.2. 2.3. 2.4. 3. 3.1. 3.2. 3.3. Overview.........................................................................................................................................................................3 AllenBradleyCompactLogix/ControlLogixPLCs............................................................................................................. 3 PLCladderlogiconrestartopensallconnectionsatonceinsteadofsequentially...................................................3 ABCompactLogix/ControllogixseriesPLCsEtherNet/IPconnectiontimeout...........................................................4 ABCompactLogix/ControllogixseriesPLCssendstomanyCIPForwardOpenandCIPForwardClose..............6 ABCompactLogix/ControlLogixseriesPLCssendsmanyTCP/IPkeepalivemessages...............................................9 Viper.............................................................................................................................................................................10 SetupViperinroutermode(insteadofBridgemode)............................................................................................. 10 FilteringTCPkeepalivewithViperTCPproxymode................................................................................................ 10 ReplacingorresettingaViperusingproxymodewithoutrestartingpolling ...........................................................10
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page2of10
1. OVERVIEW
AguidetoassistwithAllenBradleyCompactLogix/ControlLogixcommunicationsetupbetweenmasterPLCandremotePLC usingABEtherNet/IPTCPprotocolbetweenPLCs. PLCcommunicationviaseriallinesorserialterminalserverisnotcoveredhere,neverthelesssomeoftheinformation couldapply. NOTE:PleaseconsulttheCalAmpsViperGeneralPLCsetupsupportbulletinforimportantinformationonsettingup systemswithPLCs.
2.1.
PLC LADDER LOGIC ON RESTART OPENS ALL CONNECTIONS AT ONCE INSTEAD OF SEQUENTIALLY
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page3of10
2.2.
AB COMPACTLOGIX/CONTROLLOGIX SERIES PLCS ETHERNET/IP CONNECTION TIMEOUT (SETTING TIMEOUT TO SHORT CAN CAUSE PROBLEMS!)
WhenusingtheEthernet/IPwithAllenBradleyCompactLogix/ControlLogix(Logixseries),theTCPConnectiontimeoutisset onapermessageinstructionbasisusingMessageConfigurationratherthanChannelconfigurationChannel1ofthe MicroLogixseries. WhenmessagesaredefinedusingMessageConfigurationandusingpathex:LocalENB,2,192.168.1.9:1,0. Briefdescription: TCPconnectionisopenedwhenthefirstmessageissent. TheTCPconnectiontimeoutissetbydefaultto120secsincetheinactivitydefaultsettingis120sec. WhileconnectionisestablishedwithsameremoteIPandsameport,ex:192.168.1.9,othermessageswilluse thesameTCPconnection,andthereforeresettingthetimeoutcountforeachmessagesent. Whenallmessagesareusingthesamedefaultinactivitytime(120sec)theTCPconnectionsstaysopenaslong thenextmessageissentwithintheinactivitytimeoutperiod. TheTCPconnectionisclosedafterthelastmessageplustheinactivityperiod(default120sec). TheTCPconnectioncanalsobeterminatedbasedonnetworkconnectionproblems.
Exampleusingdefaultinactivitytimeout(120sec).
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page4of10
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page5of10
2.3.
AB COMPACTLOGIX/CONTROLLOGIX SERIES PLCS SENDS TO MANY CIP FORWARD OPEN AND CIP FORWARD CLOSE
WhenusingtheEtherNet/IPwithCIPcommunicationprotocolwithAllenBradleyCompactLogix/ControlLogixPLCs(and withotherLogixseriesPLCs),theoptiontouseConnectedorUnconnectedisavailableintheMessageConfiguration. BydefaulttheConnectedcheckboxisselectedandthereforeitwilladdadditionalmessages(CIPforwardopenandCIP forwardclosemessages)foreachread/writeoperationwhennextmessageissentoutsidethemessagetimeoutperiod (default=30sec). Tolowertheonairtrafficthe"Connected"checkboxshouldbeunchecked(Unconnected). ConnectedorUnconnectedoperationdescriptionforCIP: Whenthe"Connected"checkboxischecked(Connected),ifthere'snotaCIPconnectionalreadyestablished,then thecontrollersendsanopenforwardCIPconnectioncommandandwaitsforthegoodresponsepriorto transmittingthereadorwritecommand.TheCIPconnectionremainsopenaslongasthereisactivitypriortothe timeout(default=30sec).AnymessageinstructionsendingcommandstothesamedevicecanusethesameCIP andTCPconnection.Ifthistimeoutisreached,acloseCIPconnectioncommandissent. Whenthe"Connected"checkboxisunchecked(Unconnected),thecontrollerusestheUnconnectedCIPserviceto transmitthereadorwritecommand,sothereislessoverhead. TheConnectiontimeoutisonapermessageinstructionbasisasshownbelowthisiswithregardstotheCIP ConnectiononlynottheTCPconnection,whichisonlycontrolledbytheInactivityTimeout:
For the Logix controllers, the UnconnectedTimeout has to be individually adjusted in each message instruction tag. The default is 30,000,000 microseconds (30 seconds):
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page6of10
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page7of10
SummaryofConnectedorUnconnectedoperation WithConnectedoptionselectedandpollingintervalbetweenMessagesforthesameremoteCIPconnectionislonger thantheUnconnectedTimeout(default30seconds),CIPForwardOpenandCIPForwardClosemessagesadd4extra onairmessages(includesmsgreply)foreachunitpolled.Ifeachpollis2messages(msgandreply)the4extramessages increasethemessageload(onair)by200%. Therefore"Connected"checkboxshouldbeunchecked(Unconnected)toavoidsending)CIPForwardOpenandCIP ForwardClosemessages.IfConnectedisrequiredthenincreasetheUnconnectedTimeoutandConnectionRate timeouttoavaluegreaterthanthepollingintervalperremote(useprecautionwiththis). TimeoutsusedformessageresponsesoverEtherNet/IPConnectedorUnconnectedshouldnotbetooshort,therefore shouldnotbesetlowerthan15sec(normally)intheeventitisrequiredbeinglowerthan30secforapplicationlevel retransmission.TheTCP/IPcommunicationdriverdoesitsownretransmissionsandwillnotrequireapplication retransmissionsofmessagessinceaTCPconnectionwillnotlooseamessageunlesstheconnectionterminatesnormallyor duetoaproblem.ThereforewithTCPlongertimeoutswithinreasonareok.Longertimeouts(ex30sec)areoksincethey
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page8of10
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page9of10
3.2.
3.3.
CalAmpWirelessNetworksTechnicalSupport|Tel507.833.8819|Emailwngsupport@calamp.com
Page10of10