[{"data":1,"prerenderedAt":528},["ShallowReactive",2],{"docs-navigation":3,"docs-\u002Fdocs\u002Fcamera\u002Fconnections\u002Fmodbus-tcp":174,"docs-\u002Fdocs\u002Fcamera\u002Fconnections\u002Fmodbus-tcp-surround":523},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,12,114,144],{"title":10,"path":6,"stem":11},"Overview","docs\u002Findex",{"title":13,"path":14,"stem":15,"children":16},"Camera app","\u002Fdocs\u002Fcamera","docs\u002F1.camera\u002Findex",[17,18,22,26,60,82,86,90,94,98,102,106,110],{"title":10,"path":14,"stem":15},{"title":19,"path":20,"stem":21},"Requirements","\u002Fdocs\u002Fcamera\u002Frequirements","docs\u002F1.camera\u002F01.requirements",{"title":23,"path":24,"stem":25},"Install","\u002Fdocs\u002Fcamera\u002Finstall","docs\u002F1.camera\u002F02.install",{"title":27,"path":28,"stem":29,"children":30},"Connections","\u002Fdocs\u002Fcamera\u002Fconnections","docs\u002F1.camera\u002F03.connections\u002Findex",[31,32,36,40,44,48,52,56],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"Allen-Bradley","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fallen-bradley","docs\u002F1.camera\u002F03.connections\u002F1.allen-bradley",{"title":37,"path":38,"stem":39},"ABB Robot Web Services","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fabb-rws","docs\u002F1.camera\u002F03.connections\u002F2.abb-rws",{"title":41,"path":42,"stem":43},"Mazak MTConnect","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fmtconnect","docs\u002F1.camera\u002F03.connections\u002F3.mtconnect",{"title":45,"path":46,"stem":47},"SNMP","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fsnmp","docs\u002F1.camera\u002F03.connections\u002F4.snmp",{"title":49,"path":50,"stem":51},"Modbus TCP","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fmodbus-tcp","docs\u002F1.camera\u002F03.connections\u002F5.modbus-tcp",{"title":53,"path":54,"stem":55},"Camera events","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fcamera-events","docs\u002F1.camera\u002F03.connections\u002F6.camera-events",{"title":57,"path":58,"stem":59},"Demo and diagnostics","\u002Fdocs\u002Fcamera\u002Fconnections\u002Fdemo-and-diagnostics","docs\u002F1.camera\u002F03.connections\u002F7.demo-and-diagnostics",{"title":61,"path":62,"stem":63,"children":64},"Devices","\u002Fdocs\u002Fcamera\u002Fdevices","docs\u002F1.camera\u002F04.devices\u002Findex",[65,66,70,74,78],{"title":61,"path":62,"stem":63},{"title":67,"path":68,"stem":69},"Robots","\u002Fdocs\u002Fcamera\u002Fdevices\u002Frobots","docs\u002F1.camera\u002F04.devices\u002F1.robots",{"title":71,"path":72,"stem":73},"CNC machines","\u002Fdocs\u002Fcamera\u002Fdevices\u002Fcnc","docs\u002F1.camera\u002F04.devices\u002F2.cnc",{"title":75,"path":76,"stem":77},"UPS","\u002Fdocs\u002Fcamera\u002Fdevices\u002Fups","docs\u002F1.camera\u002F04.devices\u002F3.ups",{"title":79,"path":80,"stem":81},"ATS \u002F PDU","\u002Fdocs\u002Fcamera\u002Fdevices\u002Fats-pdu","docs\u002F1.camera\u002F04.devices\u002F4.ats-pdu",{"title":83,"path":84,"stem":85},"Tags","\u002Fdocs\u002Fcamera\u002Ftags","docs\u002F1.camera\u002F05.tags",{"title":87,"path":88,"stem":89},"Overlay","\u002Fdocs\u002Fcamera\u002Foverlay","docs\u002F1.camera\u002F06.overlay",{"title":91,"path":92,"stem":93},"History and charts","\u002Fdocs\u002Fcamera\u002Fhistory-and-charts","docs\u002F1.camera\u002F07.history-and-charts",{"title":95,"path":96,"stem":97},"DataBorder","\u002Fdocs\u002Fcamera\u002Fdataborder","docs\u002F1.camera\u002F08.databorder",{"title":99,"path":100,"stem":101},"Recording","\u002Fdocs\u002Fcamera\u002Frecording","docs\u002F1.camera\u002F09.recording",{"title":103,"path":104,"stem":105},"Performance","\u002Fdocs\u002Fcamera\u002Fperformance","docs\u002F1.camera\u002F10.performance",{"title":107,"path":108,"stem":109},"Status and troubleshooting","\u002Fdocs\u002Fcamera\u002Fstatus-and-troubleshooting","docs\u002F1.camera\u002F11.status-and-troubleshooting",{"title":111,"path":112,"stem":113},"Export and import","\u002Fdocs\u002Fcamera\u002Fexport-import","docs\u002F1.camera\u002F12.export-import",{"title":115,"path":116,"stem":117,"children":118},"Decoder","\u002Fdocs\u002Fdecoder","docs\u002F2.decoder\u002Findex",[119,120,124,128,132,136,140],{"title":10,"path":116,"stem":117},{"title":121,"path":122,"stem":123},"Clips","\u002Fdocs\u002Fdecoder\u002Fopen-clips","docs\u002F2.decoder\u002F01.open-clips",{"title":125,"path":126,"stem":127},"Timeline","\u002Fdocs\u002Fdecoder\u002Ftimeline","docs\u002F2.decoder\u002F02.timeline",{"title":129,"path":130,"stem":131},"Decoded data","\u002Fdocs\u002Fdecoder\u002Fdecoded-data","docs\u002F2.decoder\u002F03.decoded-data",{"title":133,"path":134,"stem":135},"Signal view","\u002Fdocs\u002Fdecoder\u002Fsignal-view","docs\u002F2.decoder\u002F04.signal-view",{"title":137,"path":138,"stem":139},"Verification","\u002Fdocs\u002Fdecoder\u002Fverify","docs\u002F2.decoder\u002F05.verify",{"title":141,"path":142,"stem":143},"Troubleshooting","\u002Fdocs\u002Fdecoder\u002Ftroubleshooting","docs\u002F2.decoder\u002F06.troubleshooting",{"title":145,"path":146,"stem":147,"children":148,"page":173},"Reference","\u002Fdocs\u002Freference","docs\u002F3.reference",[149,153,157,161,165,169],{"title":150,"path":151,"stem":152},"Configuration settings","\u002Fdocs\u002Freference\u002Fconfiguration","docs\u002F3.reference\u002F1.configuration",{"title":154,"path":155,"stem":156},"Device profiles","\u002Fdocs\u002Freference\u002Fprofiles","docs\u002F3.reference\u002F2.profiles",{"title":158,"path":159,"stem":160},"Compatibility","\u002Fdocs\u002Freference\u002Fcompatibility","docs\u002F3.reference\u002F3.compatibility",{"title":162,"path":163,"stem":164},"Release notes","\u002Fdocs\u002Freference\u002Frelease-notes","docs\u002F3.reference\u002F4.release-notes",{"title":166,"path":167,"stem":168},"Glossary","\u002Fdocs\u002Freference\u002Fglossary","docs\u002F3.reference\u002F5.glossary",{"title":170,"path":171,"stem":172},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F3.reference\u002F6.api",false,{"id":175,"title":49,"body":176,"description":516,"extension":517,"meta":518,"navigation":519,"path":50,"seo":520,"source":521,"stem":51,"__hash__":522},"docs\u002Fdocs\u002F1.camera\u002F03.connections\u002F5.modbus-tcp.md",{"type":177,"value":178,"toc":505},"minimark",[179,196,201,224,230,286,293,297,310,314,323,403,421,425,428,432,442,445,448],[180,181,182,183,186,187,190,191,195],"p",{},"The ",[184,185,49],"strong",{}," source reads holding registers from a device over TCP, with function code 03 only. With a profile, the connection is a UPS device. Its panel, roll-up, alarm conditions and managed tags are on the ",[188,189,75],"a",{"href":76}," page. Without a profile, the connection reads ",[192,193,194],"code",{},"hr:"," registers you enter by hand, and has no panel and no managed tags. The camera never writes to the device.",[197,198,200],"h2",{"id":199},"connection","Connection",[180,202,203,204,207,208,211,212,214,215,211,217,220,221,223],{},"Choose ",[184,205,206],{},"Add connection"," and pick ",[184,209,210],{},"APC UPS · Modbus"," under ",[184,213,75],{},", or ",[184,216,49],{},[184,218,219],{},"Generic",". The fields that every source shares are on the ",[188,222,27],{"href":28}," page.",[225,226],"shot",{"alt":227,"caption":228,"name":229},"The connection form for a Modbus TCP device: device host, port, unit id, the alarm conditions and the shared fields.","A Modbus TCP connection.","camera-modbus-connection",[231,232,233,246],"table",{},[234,235,236],"thead",{},[237,238,239,243],"tr",{},[240,241,242],"th",{},"Field",[240,244,245],{},"Description",[247,248,249,258,266,274],"tbody",{},[237,250,251,255],{},[252,253,254],"td",{},"Device host \u002F IP",[252,256,257],{},"The address of the network card or device.",[237,259,260,263],{},[252,261,262],{},"Port (blank = 502)",[252,264,265],{},"Leave it blank for 502.",[237,267,268,271],{},[252,269,270],{},"Unit id (blank = 1)",[252,272,273],{},"The Modbus unit id. Leave it blank for 1.",[237,275,276,279],{},[252,277,278],{},"Alarms",[252,280,281,282,285],{},"For a device, one checkbox per profile condition. See ",[188,283,61],{"href":284},"\u002Fdocs\u002Fcamera\u002Fdevices#alarm-conditions",".",[180,287,288,289,292],{},"The source needs no credentials. On an APC network management card, turn Modbus TCP on in the card's settings first. ",[184,290,291],{},"Test connection"," connects once with the settings in the form and reports the result before you save.",[197,294,296],{"id":295},"catalog","Catalog",[180,298,299,300,303,304,306,307,223],{},"Open ",[184,301,302],{},"Tag library"," and choose ",[184,305,296],{}," next to the connection. The list shows the profile's registers by section: the status word, the battery, the input, the output and the system data. Every address, its register and its state codes are on the ",[188,308,309],{"href":155},"profiles",[197,311,313],{"id":312},"addresses-by-hand","Addresses by hand",[180,315,203,316,319,320,322],{},[184,317,318],{},"Add tag"," to read a register that is not in the catalog. Enter ",[192,321,194],{}," followed by the register address and, after a second colon, the format.",[231,324,325,335],{},[234,326,327],{},[237,328,329,332],{},[240,330,331],{},"Format",[240,333,334],{},"Reads",[247,336,337,347,357,367,377,390],{},[237,338,339,344],{},[252,340,341],{},[192,342,343],{},"u16",[252,345,346],{},"One register as an unsigned integer. This is the default.",[237,348,349,354],{},[252,350,351],{},[192,352,353],{},"i16",[252,355,356],{},"One register as a signed integer.",[237,358,359,364],{},[252,360,361],{},[192,362,363],{},"u32",[252,365,366],{},"Two registers as an unsigned integer.",[237,368,369,374],{},[252,370,371],{},[192,372,373],{},"i32",[252,375,376],{},"Two registers as a signed integer.",[237,378,379,384],{},[252,380,381],{},[192,382,383],{},"str\u003CN>",[252,385,386,387,285],{},"N registers as ASCII text, for example ",[192,388,389],{},"str16",[237,391,392,397],{},[252,393,394],{},[192,395,396],{},"bit\u003CB>",[252,398,399,400,285],{},"Bit B of the register as 0 or 1, for example ",[192,401,402],{},"bit1",[180,404,405,406,409,410,409,413,416,417,420],{},"Examples are ",[192,407,408],{},"hr:130:u16",", ",[192,411,412],{},"hr:128:u32",[192,414,415],{},"hr:532:str16"," and ",[192,418,419],{},"hr:1:bit1",". The tag's scale applies to the value.",[197,422,424],{"id":423},"polling","Polling",[180,426,427],{},"One poll reads the used registers in a few block requests. Five seconds is the profile's default poll interval. After the device restarts, the connection reconnects and continues.",[197,429,431],{"id":430},"limitations","Limitations",[433,434,435,439],"ul",{},[436,437,438],"li",{},"The connection reads holding registers only. It does not read coils, discrete inputs or input registers.",[436,440,441],{},"The connection reads one unit id. A gateway that serves several units needs one connection per unit.",[197,443,141],{"id":444},"troubleshooting",[180,446,447],{},"The Connections row shows the reason for the last failure.",[231,449,450,460],{},[234,451,452],{},[237,453,454,457],{},[240,455,456],{},"Reason",[240,458,459],{},"Check",[247,461,462,472,482,492],{},[237,463,464,469],{},[252,465,466],{},[184,467,468],{},"no host configured",[252,470,471],{},"The host field.",[237,473,474,479],{},[252,475,476],{},[184,477,478],{},"host:port: …",[252,480,481],{},"The host and port, and that Modbus TCP is on at the card. The message names the socket error.",[237,483,484,489],{},[252,485,486],{},[184,487,488],{},"register …: exception …",[252,490,491],{},"The unit id, or a register the device does not implement. The message names the Modbus exception.",[237,493,494,499],{},[252,495,496],{},[184,497,498],{},"device stopped answering (… polls)",[252,500,501,502,285],{},"The device went offline while connected. The roll-up reads OFFLINE, the panel shows NO LINK, and values keep their last reading with a ",[192,503,504],{},"!",{"title":506,"searchDepth":507,"depth":507,"links":508},"",3,[509,511,512,513,514,515],{"id":199,"depth":510,"text":200},2,{"id":295,"depth":510,"text":296},{"id":312,"depth":510,"text":313},{"id":423,"depth":510,"text":424},{"id":430,"depth":510,"text":431},{"id":444,"depth":510,"text":141},"Connecting to a UPS network card or any Modbus TCP device.","md",{},true,{"title":49,"description":516},null,"14uqF4MCJju7TCQwRZJ_qKV2b22zZmPBx7huWiVW3yM",[524,526],{"title":45,"path":46,"stem":47,"description":525,"children":-1},"Connecting to a UPS, an ATS, a PDU or any SNMP agent.",{"title":53,"path":54,"stem":55,"description":527,"children":-1},"Person and motion detection from within the camera.",1790610123104]