node-opcda
node-opcda copied to clipboard
Node.js package to access OPC Da 2.0 for reading and writing. Welcome your PLC JavaScript overlords. Better yet, program them!
Description
Node.js package to access OPC Da 2.0 for reading and writing,Both X86/X64 supported, implementing the OPC DA specification version 2.05A. Welcome your PLC JavaScript overlords. Better yet, program them!
Known Issues
- the x64 version has some address corruption problem when you are using VS2012 or later, you can open "Project Property -> Linker -> CommandLine", then add
/HIGHENTROPYVA:NO
to avoid this issue, See Issue#1 for more detail
Usage
-
git clone http://github.com/lizhengzhou/node-opcda.git
-
cd node-opcda
-
node index.js
- Kepware.KEPServerEX.V6
Detail & ChangeLog
- Date:2017-01-16
- Modified from X64 Version OPC-Client-X64 by edimetia3d
- Date:2016-12-13
- Thanks for Tom Loya's contribution, now the project can work in a multi-threaded environment. You should call
COPCClient::init()
andCOPCClient::stop()
in every thread.
- Thanks for Tom Loya's contribution, now the project can work in a multi-threaded environment. You should call
- Date:2016-07-01
- this std branch tries to move every ATL to STL.
- the static .lib now works for MFC too.
- Date:2016-05-31
- Modified from X86 Version OPC Client 0.4a by beharrell
- Add some Hint info
- X64 Version uses includes files form
OPC Core Component 3.0.106
.- Install
OPC Core Component
is NECESSARY, I bundled the3.0.105.1
version (seems more popular).
- Install
- Tested with MatrikonOPC Simulation Server
- You can get it free at offical site after reg.
- Start OPC Simulation Server, then build project. Run the demo, input
hostname
, then inputserver ID
, it should work.
- I advice you to use
hostname
instead ofIP address
for reasons below.- If you want to access OPC by IP, you have to enable RemoteRegistry service in
services.msc
- Also , for UAC problem after Vista, your program must run as admin to avoid some issue.
- If you want to access OPC by IP, you have to enable RemoteRegistry service in