Вы находитесь на странице: 1из 2

11/ 3/ 13

O PC M odbus at M at r i konO PC . com

La ngua ge PRODUCTS SUPPORT TRAINING COMPANY RESOURCES DOWNLOADS

H o m e > D ri v e rs > M o d b u s OP C Se rv e r Su i t e M a t ri k o n OP C OP C Se rv e rs

Overview OPC Servers OPC Archiving and Analytics OPC Data Managem ent OPC Industrial Data Collector OPC Security OPC Unified Architecture (UA) OPC Event Managem ent OPC Solutions and Architectures OPC Free Test Tools Ordering Inform ation Dow nloads

Modbus OPC Server Suite MatrikonOPC OPC Servers


How to connect to Modbus devices using OPC
O f all the industrial protocols out the re , Modbus is one of the m ost popular. Its ope n protocol, e asy im ple m e ntation, and basic fe ature se t all com bine to m ak e it a we ll use d protocol. This article will e x plain how to conne ct Modbus to O PC and the diffe re nce s be twe e n basic com m unications and m ore advance d te le m e try com m unication be twe e n Modbus and O PC Basic media options: Se rial (e ithe r R S232 or R S485) Ethe rne t More advanced connection options: R adio GPR S Sate llite dial up m ode m Protocols Modbus Modbus R TU Modbus on TC P Enron Modbus Modbus Plus Danie l Modbus Be ntly Ne vada Modbus Registers Data in Modbus is groupe d in re giste rs 0x : re ad/write tags that can be on or off. Som e tim e s calle d "coils", "digitals", "re lays", or "boole ans" Addre ss range from 00001-09999 1x : re ad-only tags that can be on or off. Som e tim e s calle d "coils", "digitals", "re lays", or "boole ans" Addre ss range from 10001-19999 3x : R e ad only tags. 16 bit size s by de fault. Also calle d input re giste rs 4x : R e ad/write tags. 16 bit size s by de fault. Also calle d holding re giste rs. Interpreting different registers W hat if Im using floats, 32 bit "wide " re giste rs, unsigne d inte ge r, swappe d word orde r, ASC II strings, e tc? W ith the se re giste rs, m ost O PC Se rve rs offe r le tte r suffix e s or som e othe r way of de noting that the O PC Se rve r should tre at that tag diffe re ntly. W ith the Matrik on O PC Se rve r for Modbus, as an e x am ple , a paire d re giste r for a 32 bit floating-point re al O PC Tag m ight look lik e this: Te stC hanne l.Te stDe vice .4:34P Master/Slave Control Many pe ople out the re k now that O PC C lie nts are typically e m be dde d in applications that ne e d to have control ove r com m unications. O PC Se rve rs are typically built for applications that do not ne e d to control the com m unications. Many protocols out the re , such as Modbus, also follow this philosophy. Modbus is Maste r/Slave , just lik e O PC is C lie nt/Se rve r. Usually, you want your O PC Se rve r to act as the Modbus Maste r, and re lay the control down the line . But som e tim e s, youll want your de vice to have m ore control ove r the com m unications such as if your de vice was to "phone hom e " in an alarm condition. In the se instance s, youll ne e d your O PC Se rve r to act as a Modbus slave . Most O PC Se rve rs do not support slave m ode , so if you ne e d it, be sure to ask your ve ndor. Telemetry The proble m we re going to run into with advance d conne ctions is that O PC Se rve rs are just passive translators. W ith a com ple x te le m e try e nvironm e nt, whe re we com m unicate with m any R TUs or PLC s ove r high late ncy, low bandwidth, share d com m unication link s; we re going to ne e d an O PC Se rve r with m ore brains. The se "brains" are m ore advance d tim ing and polling options. A good Te le m e try SC ADA O PC Se rve r should support round robin polling, inte rrupt/de m and polling, and have

Click below to begin your MatrikonOPC Server Search.

0 ite m (s) in your cart. Total: $0.00 Checkout

w w w . m at r i konopc. com / dr i ver s/ opc- m odbus. aspx

1/ 2

11/ 3/ 13

O PC M odbus at M at r i konO PC . com

O PC Se rve r should support round robin polling, inte rrupt/de m and polling, and have m any advance d tim ing param e te rs to account for diffe re nt de lays or polling tim e s. Multiple Masters O ne of the diffe re nce s be twe e n the two is that you can have m ore than 1 O PC C lie nt conne cte d to e ach O PC Se rve r, whe re as you dont usually want 2 Modbus Maste rs talk ing to the sam e Modbus slave . This can be a proble m if youre using re dundant O PC Se rve rs or m ultiple Maste r applications. Be sure to talk to your ve ndor on alle viating the se issue s in your application if the se are an issue .

For m ore inform ation on Modbus, se e Modbus-IDA at m odbus.org

H o m e > D ri v e rs > M o d b u s OP C Se rv e r Su i t e M a t ri k o n OP C OP C Se rv e rs

Matrik on Inc. 2013 Hom e | Se arch | Site Map | Privacy Policy | Te rm s O f Use | C ontact

w w w . m at r i konopc. com / dr i ver s/ opc- m odbus. aspx

2/ 2

Вам также может понравиться