mathiask88 / node-snap7 Goto Github PK
View Code? Open in Web Editor NEWnode.js wrapper for snap7
License: MIT License
node.js wrapper for snap7
License: MIT License
Hello i read bit like this, bud i can't change it and write back.
i got 100.1
100.2
they are false i need change it to true and write it back.
s7client.MBRead(100, 1, function(err, buffer) {
if(err) return console.log(' >> MBRead failed. Code #' + err + ' - ' + s7client.ErrorText(err));
var bit=(buffer[0] & 0x01)!=0;
console.log(bit); // say's false.
});
Some one please help me to write function that will change bit and write it back
Hi,
I'm running the latest version of node-snap7 and having trouble with S7Client.Connected()
method which returns true
in a case when the client was connected to PLC and network broke in the meanwhile (eg. turn off WIFI).
Hello,
I currently using this project for a web-application I am developing. The last 3 days I was wondering why I could not read from DB till I realized I should try the synchronized way. The Blocking way of this method works just fine 👍 but the non-blocking one.... not so much
Might it be a possibility that the async functionality is not yet implemented?
Could someone please make a docker image for node-snap7 .
Hello i have data type string[6] (offset 2 to 10) i want to get value of it in node-snap7 but i noob and can't get it can you please help me.
Any reason why a PLC wouldn't respond when its requested to readDB? In particular its the 315/7? I've checked connection resource etc and can't see anything obvious it just seems to never respond after a read attempt, The issue is obviously with the PLCs but I'm kinda lost in terms of where to look!
Hey,
how can i write DB 206, 22.2 to true and false?
I'm having issues correctly understanding how wordLength parameter should behave in WriteArea / ReadArea. Not sure if this is actual issue with the library or just my misunderstanding (most likely).
Writing DB300.DBW42 (Word) with WriteArea:
this.plc.WriteArea(this.plc.S7AreaDB, 300, 42, 2, this.plc.S7WLWord, wbuf, function ...)
Log output from snap7 dev server:
2016-01-25 14:25:37 [127.0.0.1] Write request, Area : DB300, Start : 42, Size : 4 --> OK
Writing DB300.DBDW42 (DoubleWord) with WriteArea:
this.plc.WriteArea(this.plc.S7AreaDB, 300, 42, 2, this.plc.S7WLDWord, wbuf, function ...)
Log output from snap7 dev server:
2016-01-25 14:25:52 [127.0.0.1] Write request, Area : DB300, Start : 42, Size : 16 --> OK
With wordLength S7WLWord I would expect the client to write 2 bytes. However it does write 4 bytes, of which 2 bytes comes correctly from my wbuf (write buffer) and last 2 bytes are something random.
For example the "Size: 16" does not make sense to me, its not number of bits or bytes to write and not even hex or dec value of the constant S7Client.S7WLDWord
These parameters give me the result I'm expecting:
this.plc.WriteArea(this.plc.S7AreaDB, 300, 42, 2, 2, wbuf, function ...)
2016-01-25 14:25:37 [127.0.0.1] Write request, Area : DB300, Start : 42, Size : 2 --> OK
So far I have been avoiding this for Word and DoubleWord datatypes by setting my wordLength equal to byte count and it does write the correct amount without any problems. However I would like to understand what is wrong with S7WLWord not being 2 bytes but instead 4 and use the library constants correctly.
Hi there,
Thank you for your great package ...
We can get dbblocksize with 'GetAgBlockInfo' method and 'MC7Size' field.
We need to read Merker data from PLC and plan to use MBRead method.
But we don't want read single address and we want full block.
So we need MerkerBlock size.
Is there a method or property for this requirement.
Thank you.
Hello,
I have another issue on Mac OS. When running this code
var snap7 = require('node-snap7');
s7client = global.s7client = new snap7.S7Client();
s7client.SetConnectionParams("192.168.1.30", 01 << 8, 02 << 8);
s7client.Connect(function(err) {
if(err) {
return console.log(' >> Connection failed. Code #' + err + ' - ' + s7client.ErrorText(err));
} else {
s7client.ReadArea(s7client.S7AreaPA, 1, 0, 8*8, 1, function(err, dataAreaPA) {
if (err)
console.log(' >> Read failed. Code#' + err + ' - ' + s7client.ErrorText(err));
});
}
});
I get this error:
$ node app.js
>> Read failed. Code#10485760 - CPU : Invalid Transport size
This issue was not present when using the branch lsibilla/node-snap7.
Hi,
we use node-snap7 in a project and in our Travis-CI tests on MacOS the node process crashed immediately when starting with:
Assertion failed: (object->InternalFieldCount() > 0), function Wrap, file ../node_modules/nan/nan_object_wrap.h, line 55.
https://travis-ci.org/ioBroker/ioBroker.s7/jobs/326705863#L456
I tried also "build from source", same happens there.
Any idea what causes this?
Hi,
upon installing [email protected] via npm i on Darwin 18.6.0 I receive following error:
../src/node_snap7_client.cpp:710:53: error: too few arguments to function call, single argument 'context' was not specified
Nan::NewInstance(constructorHandle->GetFunction()).ToLocalChecked());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/marcowarm/.node-gyp/12.5.0/include/node/v8.h:5948:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^
/Users/marcowarm/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
2 errors generated.
make: *** [Release/obj.target/node_snap7/src/node_snap7_client.o] Error 1
Hi, i was trying to create an simple electron application based on node-snap7 pakage, it works fine under Linux but when i create application for Windows it do not run (when i exclude strings with declaration of variables required for node-snap7 it works on windows too ), can you help to solve this please?
Is there a way to keep listening to Siemens PLC and trigger an event when data is received?
What I want is, instead of running a ReadArea function every 100ms, I want to keep listening to Siemens PLC and wait for data that he send.
version of node 0.9.9
http://prntscr.com/b1z2te - printscreen of error
please tell me what i`m doing wrong ? :)
First, thanks very much for that great library, i just did a few tests but already very excited to get
a node-communication to a siemens s7 working.
I want to use DBGet() function but get a TypeError: Wrong arguments when i call it:
var res = s7client.DBGet(100);
same when I use it with a callback function.
I tried to use this function to get the DB size on a Siemens s7-300, using the callback it doesn't enter into it at all. Without the callback it just returns "false" with no errors.
getSize.txt
I'm getting the following build error when installing node-snap7. Im operating on Centos 6 and trying to install as non-root user. Running on node 0.12.7, also tried with 0.10.40. Installing as root works. Is there any way to avoid installing this package as root?
node-gyp rebuild
Traceback (most recent call last):
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in
sys.exit(gyp.script_main())
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 533, in script_main
return main(sys.argv[1:])
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 526, in main
return gyp_main(args)
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 502, in gyp_main
params, options.check, options.circular_check)
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 129, in Load
params['parallel'], params['root_targets'])
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2736, in Load
variables, includes, depth, check, True)
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 386, in LoadTargetBuildFile
includes, True, check)
File "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 238, in LoadOneBuildFile
None)
File "binding.gyp", line 1
{
^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error:gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 2.6.32-504.30.3.el6.x86_64
gyp ERR! command "node" "/home/sysuser/.nvm/versions/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/my-project/node_modules/node-snap7
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Linux 2.6.32-504.30.3.el6.x86_64
npm ERR! argv "/home/sysuser/.nvm/versions/node/v0.12.7/bin/node" "/home/sysuser/.nvm/versions/node/v0.12.7/bin/npm" "install" "node-snap7"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-snap7 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-snap7
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /data/my-project/npm-debug.log
Hello,
Are there plans to bump new version of node-snap7 including new server functionality and release it to npm repository? I would like to refer to specific package version in npm instead of github master ;)
Being able to use snap7 server from Node.js is great, no need to manage server binaries separately and easier to automate testing / setup dev environment. Gj!
Hi guys, I'm breaking my neck over this problem.
I have a struct at DB number 2 at start number 80.
The struct contains 8 booleans. I can read them easily and convert them to an array, but how can I write and update only one of them?
For example if I want to write 80.7 (the 8th item of the struct) I want to start at 80.7 but ofcourse that's not supported:
s7client.WriteArea(s7client.S7AreaDB, 2, 80.7, 1, s7client.S7WLBit, new Buffer([0x01]), function (err) { if (err) return console.log(' >> WriteArea failed. Code #' + err + ' - ' + s7client.ErrorText(err)); });
I searched in some old issues and other languages but didn't find the solution I was looking for.
Can anyon help me out with this one?
can somebody share a working readmultivars ?
this one is not working:
var snap7 = require('node-snap7');
let res = this.client.ReadMultiVars([{"Area": snap7.S7AreaDB, "WordLen": snap7.S7WLByte,"DBNumber": 14, "Start": 46, "Amount": 1}]);
Hello,
Thank you very much for the nice lib.
This is future request, but when writing tests for app using node-snap7 it will be extremely helpful to be able to mock S7 Server.
Do you support reading and writing of DB blocks for s7-1200?Test finds read and write DB block failed
#36700160 - CLI : function refused by CPU (Unknown error)
Hi
If i try SNAP7 on LTS node 6.10.2
I have err. message Module version mismatch. Expected 47, got 48.
Can you fix it ?
THX
I am using PROFIBUS DP with CP 5711.
How can we communicate and get data?
Current build errors:
../src/node_snap7_client.cpp: In static member function ‘static void node_snap7::S7Client::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/node_snap7_client.cpp:697:43: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
Nan::Set(target, name, tpl->GetFunction());
^
../src/node_snap7_client.cpp:697:43: note: candidate is:
In file included from /home/travis/.node-gyp/12.1.0/include/node/node.h:63:0,
from ../src/node_snap7_client.h:10,
from ../src/node_snap7_client.cpp:6:
/home/travis/.node-gyp/12.1.0/include/node/v8.h:5947:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^
/home/travis/.node-gyp/12.1.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
../src/node_snap7_client.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE node_snap7::S7Client::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node_snap7_client.cpp:710:53: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
Nan::NewInstance(constructorHandle->GetFunction()).ToLocalChecked());
^
../src/node_snap7_client.cpp:710:53: note: candidate is:
In file included from /home/travis/.node-gyp/12.1.0/include/node/node.h:63:0,
from ../src/node_snap7_client.h:10,
from ../src/node_snap7_client.cpp:6:
/home/travis/.node-gyp/12.1.0/include/node/v8.h:5947:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^
/home/travis/.node-gyp/12.1.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
make: *** [Release/obj.target/node_snap7/src/node_snap7_client.o] Error 1
see :
https://github.com/nodejs/node/issues/21481
as @mattolson mentioned
-- any native addons that are loaded in both the parent and worker thread (i.e. loaded more than once in the same process) need to be context aware.
My PLC is a ET200S (IM151-8F PN/DP) CPU.
I can successfully connect to the PLC, however when I perform ListBlocksOfType on DB
type, I get an array of values:
result: [9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
The total count of the array is exactly how many DB I have, and 1st number 9
is also correct, but why all subsequent number are all 0's?
Just a simple code to demonstrate:
client.ListBlocksOfType(0x41, (error, result) => {
if (error) {
console.log(`error: ${error}`);
} else {
console.log(`result: ${result}`);
}
});
the function S7Client.ReadMultiVars(multiVars, [callback])
doesn't seem to trigger the callback.
The method itself seems to be working fine in a blocking manner (without the callback). But when I specify the callback it simply never triggers.
Here a example of the issue:
var items = [{
Area: 132, WordLen: 4, DBNumber: 2, Start: 24, Amount: 1
}, {
Area: 132, WordLen: 6, DBNumber: 2, Start: 46, Amount: 1
}];
s7client.ReadMultiVars(items, function (err, res) {
console.log('callback triggered');
if (err) {
log.error(err);
} else {
log.info(res);
processSessionReadItems(res);
}
});
Am I simply doing something wrong or isn't it implemented yet? The documentation about this function isn't documented either, so my excuses if it isn't ready yet.
Hi guys,
I have a simple piece of code which works on Windows but not on MacOS.
s7client.ConnectTo(uri, 0, 0, function (err) {
if (err) {
let errorText = s7client.ErrorText(err)
console.error(`Connection failed! ${errorText}`);
socket.emit("info", `Connection failed! ${errorText}`);
} else {
console.info("Connection established!");
setupPLCRead(s7client);
}
});
When there is an error, i.e. "TCP connection failed" it returns immediately on Windows and logs the 'connection failed'.
On mac it takes more than 30 seconds to return the error callback. I've tested this when being in the wrong network and trying to connect. Then, when I switch to the right network, it immediately logs the 'Connection established'.
This behaviour only occurs on MacOS. Does anyone know how I can fix this problem?
I've already tried setting all s7client Timeout params to 2000 like this:
s7client.SetParam(s7client.SendTimeout, 2000);
thanks in advance!
Unfortunately, I have no experience with the Siemens PLC. How can I query the address DB501, D20 or DB501,X.24.0 with this program.
And can I give a listener to an address.
Best Regards,
stony
How use server function in docker. It run ok in docker but can't be connected.
s7server.StartTo('127.0.0.1');
docker run -p 102:102
not work
I tried to install with nmp install node-snap7 and get following errors. Whats wrong?
Python 2.7 and VisualStudio Express 2010 C++ are installed.
[email protected] install C:\Documents and Settings\Administrator\node_modules\node-snap7
node-gyp rebuild
C:\Documents and Settings\Administrator\node_modules\node-snap7>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
snap_msgsock.cpp
snap_sysutils.cpp
snap_tcpsrvr.cpp
snap_threads.cpp
s7_client.cpp
s7_isotcp.cpp
s7_partner.cpp
s7_peer.cpp
s7_server.cpp
s7_text.cpp
s7_micro_client.cpp
snap7_libmain.cpp
win_delay_load_hook.c
snap7.vcxproj -> C:\Documents and Settings\Administrator\node_modules\node-snap7\build\Release\\snap7.lib
node_snap7.cpp
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(336): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(469): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(469): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C2236: unexpected 'class' 'v8::WeakCallbackType'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C3381: 'v8::WeakCallbackType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(580): error C2061: syntax error : identifier 'WeakCallbackType' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(646) : see reference to class template instantiation 'v8::PersistentBase<T>' being compiled
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(641): error C2253: 'PersistentBase<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(848): error C2253: 'Global<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(851) : see reference to class template instantiation 'v8::Global<T>' being compiled
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(856): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(856): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(919): error C2989: 'v8::HandleScope' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(319) : see declaration of 'v8::HandleScope'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(953): error C2989: 'v8::EscapableHandleScope' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(135) : see declaration of 'v8::EscapableHandleScope'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(983): error C2989: 'v8::Data' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(74) : see declaration of 'v8::Data'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1117): error C2989: 'v8::Script' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(96) : see declaration of 'v8::Script'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1556): error C2989: 'v8::StackTrace' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(101) : see declaration of 'v8::StackTrace'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1619): error C2989: 'v8::StackFrame' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(100) : see declaration of 'v8::StackFrame'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2028): error C2989: 'v8::Value' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(108) : see declaration of 'v8::Value'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2034): error C2989: 'v8::Primitive' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(93) : see declaration of 'v8::Primitive'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2049): error C2989: 'v8::Boolean' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(70) : see declaration of 'v8::Boolean'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2069): error C2989: 'v8::Name' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(86) : see declaration of 'v8::Name'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C2236: unexpected 'class' 'v8::NewStringType'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C3381: 'v8::NewStringType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2436): error C2989: 'v8::String' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(102) : see declaration of 'v8::String'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2474): error C2989: 'v8::Symbol' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(104) : see declaration of 'v8::Symbol'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2488): error C2989: 'v8::Number' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(87) : see declaration of 'v8::Number'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2503): error C2989: 'v8::Integer' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(82) : see declaration of 'v8::Integer'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2517): error C2989: 'v8::Int32' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(81) : see declaration of 'v8::Int32'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2531): error C2989: 'v8::Uint32' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(106) : see declaration of 'v8::Uint32'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2939): error C2989: 'v8::Object' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(89) : see declaration of 'v8::Object'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2968): error C2989: 'v8::Array' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(69) : see declaration of 'v8::Array'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3180): error C2504: 'v8::Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3187): error C2061: syntax error : identifier 'FunctionCallback' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3189): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3189): error C2143: syntax error : missing ')' before ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2061: syntax error : identifier 'FunctionCallback' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2143: syntax error : missing ')' before ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3204): error C2059: syntax error : 'return' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3204): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3209): error C2146: syntax error : missing ';' before identifier 'Call' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3215): error C2270: 'GetName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3223): error C2270: 'GetInferredName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3229): error C2270: 'GetDisplayName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3235): error C2270: 'GetScriptLineNumber' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3240): error C2270: 'GetScriptColumnNumber' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3245): error C2270: 'IsBuiltin' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3250): error C2270: 'ScriptId' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3256): error C2270: 'GetBoundFunction' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3258): error C2270: 'GetScriptOrigin' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3262): error C2059: syntax error : 'private' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3263): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3272): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3274): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3282): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3293): error C2061: syntax error : identifier 'Local' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3297): error C2061: syntax error : identifier 'Local' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3301): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3305): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3316): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3317): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3321): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3321): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3322): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3326): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3326): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3327): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3335): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3339): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2236: unexpected 'class' 'ArrayBufferCreationMode'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C3381: 'ArrayBufferCreationMode' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2143: syntax error : missing ';' before '}' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3356): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3373): error C2628: 'ArrayBuffer::Allocator' followed by 'void' is illegal (did you forget a ';'?) [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C3861: 'data_': identifier not found [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2461: 'Contents' : constructor syntax missing formal parameters [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2059: syntax error : 'constant' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2143: syntax error : missing ';' before '{' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3401): error C2059: syntax error : 'return' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3401): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): error C2146: syntax error : missing ';' before identifier 'ByteLength' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): error C2270: 'ByteLength' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): fatal error C1003: error count exceeds 100; stopping compilation [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
node_snap7_client.cpp
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(336): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(469): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(469): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C2236: unexpected 'class' 'v8::WeakCallbackType'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(472): error C3381: 'v8::WeakCallbackType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(580): error C2061: syntax error : identifier 'WeakCallbackType' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(646) : see reference to class template instantiation 'v8::PersistentBase<T>' being compiled
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(641): error C2253: 'PersistentBase<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(848): error C2253: 'Global<T>' : pure specifier or abstract override specifier only allowed on virtual function [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(851) : see reference to class template instantiation 'v8::Global<T>' being compiled
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(856): error C2988: unrecognizable template declaration/definition [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(856): error C2059: syntax error : 'using' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(919): error C2989: 'v8::HandleScope' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(319) : see declaration of 'v8::HandleScope'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(953): error C2989: 'v8::EscapableHandleScope' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(135) : see declaration of 'v8::EscapableHandleScope'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(983): error C2989: 'v8::Data' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(74) : see declaration of 'v8::Data'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1117): error C2989: 'v8::Script' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(96) : see declaration of 'v8::Script'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1556): error C2989: 'v8::StackTrace' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(101) : see declaration of 'v8::StackTrace'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(1619): error C2989: 'v8::StackFrame' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(100) : see declaration of 'v8::StackFrame'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2028): error C2989: 'v8::Value' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(108) : see declaration of 'v8::Value'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2034): error C2989: 'v8::Primitive' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(93) : see declaration of 'v8::Primitive'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2049): error C2989: 'v8::Boolean' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(70) : see declaration of 'v8::Boolean'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2069): error C2989: 'v8::Name' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(86) : see declaration of 'v8::Name'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C3306: 'v8::<unnamed-tag>': unnamed class template is not allowed [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C2236: unexpected 'class' 'v8::NewStringType'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2072): error C3381: 'v8::NewStringType' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2436): error C2989: 'v8::String' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(102) : see declaration of 'v8::String'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2474): error C2989: 'v8::Symbol' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(104) : see declaration of 'v8::Symbol'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2488): error C2989: 'v8::Number' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(87) : see declaration of 'v8::Number'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2503): error C2989: 'v8::Integer' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(82) : see declaration of 'v8::Integer'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2517): error C2989: 'v8::Int32' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(81) : see declaration of 'v8::Int32'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2531): error C2989: 'v8::Uint32' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(106) : see declaration of 'v8::Uint32'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2939): error C2989: 'v8::Object' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(89) : see declaration of 'v8::Object'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(2968): error C2989: 'v8::Array' : class template has already been declared as a non-class template [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(69) : see declaration of 'v8::Array'
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3180): error C2504: 'v8::Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3187): error C2061: syntax error : identifier 'FunctionCallback' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3189): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3189): error C2143: syntax error : missing ')' before ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2061: syntax error : identifier 'FunctionCallback' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3193): error C2143: syntax error : missing ')' before ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3204): error C2059: syntax error : 'return' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3204): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3209): error C2146: syntax error : missing ';' before identifier 'Call' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3215): error C2270: 'GetName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3223): error C2270: 'GetInferredName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3229): error C2270: 'GetDisplayName' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3235): error C2270: 'GetScriptLineNumber' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3240): error C2270: 'GetScriptColumnNumber' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3245): error C2270: 'IsBuiltin' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3250): error C2270: 'ScriptId' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3256): error C2270: 'GetBoundFunction' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3258): error C2270: 'GetScriptOrigin' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3262): error C2059: syntax error : 'private' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3263): error C2059: syntax error : ')' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3272): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3274): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3280): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3282): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3287): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3293): error C2061: syntax error : identifier 'Local' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3295): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3297): error C2061: syntax error : identifier 'Local' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3299): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3301): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3305): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3315): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3316): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3317): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3320): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3321): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3321): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3322): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3325): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3326): error C2143: syntax error : missing ';' before '<' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3326): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3327): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3335): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3339): error C2061: syntax error : identifier 'Value' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2332: 'enum' : missing tag name [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2236: unexpected 'class' 'ArrayBufferCreationMode'. Did you forget a ';'? [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C3381: 'ArrayBufferCreationMode' : assembly access specifiers are only available in code compiled with a /clr option [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C2143: syntax error : missing ';' before '}' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3356): error C2504: 'Object' : base class undefined [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3373): error C2628: 'ArrayBuffer::Allocator' followed by 'void' is illegal (did you forget a ';'?) [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C3861: 'data_': identifier not found [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2461: 'Contents' : constructor syntax missing formal parameters [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2059: syntax error : 'constant' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2143: syntax error : missing ';' before '{' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3399): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3401): error C2059: syntax error : 'return' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3401): error C2238: unexpected token(s) preceding ';' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): error C2146: syntax error : missing ';' before identifier 'ByteLength' [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): error C2270: 'ByteLength' : modifiers not allowed on nonmember functions [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
c:\documents and settings\administrator\.node-gyp\5.4.1\include\node\v8.h(3402): fatal error C1003: error count exceeds 100; stopping compilation [C:\Documents and Settings\Administrator\node_modules\node-snap7\build\node_snap7.vcxproj]
Hallo
ist es möglich irgendwo ein win32 build zu downloaden ?
Ich habe nur Win64 und probleme eine 32bit Version selber zu bauen.
Können nicht die Test builds downloadbar gemacht werden?
Installing with NPM onto an RPI running node 12 continually fails. I have verified if I pull the repo and install local then it installs correctly.
Patch is almost done.
In the documentation of the server is described:
S7Server.LastError()
Returns the last job result.
Trying to call var err = S7Server.LastError()
raises the error:
TypeError: S7Server.LastError is not a function
Just to inform you that after upgrading to npm 0.3.0 my working application was exiting with error when calling S7Client.ErrorText(err) function.
Then i upgraded to npm 0.3.1 and now it's returning correctly the error string.
...
By the way, thank you Mathias for your work, i am using node-snap7 in production together with electronjs + reactjs.
Tested succesfully node-snap7 with simatic S7-300, S7-1500 and also VIPA CPU.
Thanks for this great wrapper. I use the client to read periodically DBs of PLCs in a loop. Unfortunately, I always have a memory issue after a random time (Ubuntu 16.04 platform, Node.JS v8.9.0), like :
May it be a bug ? Or bad design of my app ?
Here an example of one of this trace :
*** Error in `node': free(): invalid pointer: 0x0000000002e938a0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fb649f587e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fb649f6137a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fb649f6553c]
/path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node(_ZN10node_snap78IOWorker16HandleOKCallbackEv+0x398)[0x7fb645a8b508] /path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node(_ZN3Nan11AsyncWorker12WorkCompleteEv+0x83)[0x7fb645a8f8f3]
/path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node(_ZN3Nan20AsyncExecuteCompleteEP9uv_work_s+0x15)[0x7fb645a8f7a5]
node[0x14549d5]
node[0x1456a8b]
node[0x14685e8]
node(uv_run+0x156)[0x1457416]
node(_ZN4node5StartEP9uv_loopsiPKPKciS5+0xc75)[0x122a035]
node(_ZN4node5StartEiPPc+0x163)[0x1222c93]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fb649f01830]
node[0x8ae4c1]
======= Memory map: ========
00400000-01fa2000 r-xp 00000000 08:01 402502 /home/me/.nvm/versions/node/v8.9.0/bin/node
021a2000-021bd000 rw-p 01ba2000 08:01 402502 /home/me/.nvm/versions/node/v8.9.0/bin/node
021bd000-021d4000 rw-p 00000000 00:00 0 02c72000-034a4000 rw-p 00000000 00:00 0 [heap]
[...]
7fb645a62000-7fb645ac0000 r-xp 00000000 08:01 1072693 /path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node
7fb645ac0000-7fb645cbf000 ---p 0005e000 08:01 1072693 /path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node
7fb645cbf000-7fb645cc1000 r--p 0005d000 08:01 1072693 /path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node
7fb645cc1000-7fb645cc7000 rw-p 0005f000 08:01 1072693 /path/to/my/app/node_modules/node-snap7/build/Release/node_snap7.node
7fb645cc7000-7fb645cd2000 r-xp 00000000 08:01 786995 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fb645cd2000-7fb645ed1000 ---p 0000b000 08:01 786995 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fb645ed1000-7fb645ed2000 r--p 0000a000 08:01 786995 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fb645ed2000-7fb645ed3000 rw-p 0000b000 08:01 786995 /lib/x86_64-linux-gnu/libnss_files-2.23.so
[...]
7fb649ee1000-7fb64a0a1000 r-xp 00000000 08:01 786931 /lib/x86_64-linux-gnu/libc-2.23.so
7fb64a0a1000-7fb64a2a1000 ---p 001c0000 08:01 786931 /lib/x86_64-linux-gnu/libc-2.23.so
7fb64a2a1000-7fb64a2a5000 r--p 001c0000 08:01 786931 /lib/x86_64-linux-gnu/libc-2.23.so
7fb64a2a5000-7fb64a2a7000 rw-p 001c4000 08:01 786931 /lib/x86_64-linux-gnu/libc-2.23.so
7fb64a2a7000-7fb64a2ab000 rw-p 00000000 00:00 0
7fb64a2ab000-7fb64a2c3000 r-xp 00000000 08:01 787018 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb64a2c3000-7fb64a4c2000 ---p 00018000 08:01 787018 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb64a4c2000-7fb64a4c3000 r--p 00017000 08:01 787018 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb64a4c3000-7fb64a4c4000 rw-p 00018000 08:01 787018 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb64a4c4000-7fb64a4c8000 rw-p 00000000 00:00 0
7fb64a4c8000-7fb64a4de000 r-xp 00000000 08:01 786957 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb64a4de000-7fb64a6dd000 ---p 00016000 08:01 786957 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb64a6dd000-7fb64a6de000 rw-p 00015000 08:01 786957 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb64a6de000-7fb64a7e6000 r-xp 00000000 08:01 786972 /lib/x86_64-linux-gnu/libm-2.23.so
7fb64a7e6000-7fb64a9e5000 ---p 00108000 08:01 786972 /lib/x86_64-linux-gnu/libm-2.23.so
7fb64a9e5000-7fb64a9e6000 r--p 00107000 08:01 786972 /lib/x86_64-linux-gnu/libm-2.23.so
7fb64a9e6000-7fb64a9e7000 rw-p 00108000 08:01 786972 /lib/x86_64-linux-gnu/libm-2.23.so
7fb64a9e7000-7fb64ab59000 r-xp 00000000 08:01 921735 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb64ab59000-7fb64ad59000 ---p 00172000 08:01 921735 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb64ad59000-7fb64ad63000 r--p 00172000 08:01 921735 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb64ad63000-7fb64ad65000 rw-p 0017c000 08:01 921735 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb64ad65000-7fb64ad69000 rw-p 00000000 00:00 0
7fb64ad69000-7fb64ad70000 r-xp 00000000 08:01 787024 /lib/x86_64-linux-gnu/librt-2.23.so
7fb64ad70000-7fb64af6f000 ---p 00007000 08:01 787024 /lib/x86_64-linux-gnu/librt-2.23.so
7fb64af6f000-7fb64af70000 r--p 00006000 08:01 787024 /lib/x86_64-linux-gnu/librt-2.23.so
7fb64af70000-7fb64af71000 rw-p 00007000 08:01 787024 /lib/x86_64-linux-gnu/librt-2.23.so
7fb64af71000-7fb64af74000 r-xp 00000000 08:01 786945 /lib/x86_64-linux-gnu/libdl-2.23.so
7fb64af74000-7fb64b173000 ---p 00003000 08:01 786945 /lib/x86_64-linux-gnu/libdl-2.23.so
7fb64b173000-7fb64b174000 r--p 00002000 08:01 786945 /lib/x86_64-linux-gnu/libdl-2.23.so
7fb64b174000-7fb64b175000 rw-p 00003000 08:01 786945 /lib/x86_64-linux-gnu/libdl-2.23.so
7fb64b175000-7fb64b19b000 r-xp 00000000 08:01 786907 /lib/x86_64-linux-gnu/ld-2.23.so
7fb64b39a000-7fb64b39b000 r--p 00025000 08:01 786907 /lib/x86_64-linux-gnu/ld-2.23.so
7fb64b39b000-7fb64b39c000 rw-p 00026000 08:01 786907 /lib/x86_64-linux-gnu/ld-2.23.so
7fb64b39c000-7fb64b39d000 rw-p 00000000 00:00 0
7ffd437d6000-7ffd437f7000 rw-p 00000000 00:00 0 [stack]
7ffd437fb000-7ffd437fd000 r--p 00000000 00:00 0 [vvar]
7ffd437fd000-7ffd437ff000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
see https://travis-ci.org/ioBroker/ioBroker.s7/jobs/401666320#L604
In file included from ../src/node_snap7.cpp:7:0:
../src/node_snap7_server.h:76:3: error: ‘AsyncResource’ in namespace ‘Nan’ does not name a type
Nan::AsyncResource async_resource;
^
Hello,
I'm having problems writing and reading multiple bits with one call of "ReadArea".
s7client.ReadArea(s7client.S7AreaDB, 1, 0, 2, s7client.S7WLBit, function(err,res){
if(err)
return console.log(' >> DBRead failed. Code #' + err + ' - ' + s7client.ErrorText(err));
console.log(" >> DBRead succesful",res)
});
I get the error ">> DBRead failed. Code #10485760 - CPU : Invalid Transport size".
Tested with a CPU S7-314C-2 PN/DP and a CPU S7-1511-1 PN.
I get the same error trying to write multiple bits using WriteArea.
Everything goes fine if I read(write) those bits one by one with multiple calls of "ReadArea"("WriteArea").
I have no problems reading and writing multiple bytes or words.
What could be the cause of that error?
Using this node app : https://www.dropbox.com/s/9a7benbp2x0nws5/node-snap7-test.zip?dl=0
Launch the command "npm install && node app.js" will lead to this output :
$ npm install
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
\
> [email protected] install /Users/lsibilla/Dropbox (Personnelle)/Ménage/Domotique/node-snap7-test/node_modules/node-snap7
> node-gyp rebuild
CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_msgsock.o
In file included from ../deps/snap7/src/sys/snap_msgsock.cpp:27:
../deps/snap7/src/sys/snap_msgsock.h:210:22: warning: private field 'RawPinger'
is not used [-Wunused-private-field]
PRawSocketPinger RawPinger;
^
../deps/snap7/src/sys/snap_msgsock.h:211:10: warning: private field 'RawAvail'
is not used [-Wunused-private-field]
bool RawAvail;
^
2 warnings generated.
CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_sysutils.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_tcpsrvr.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_threads.o
In file included from ../deps/snap7/src/sys/snap_threads.cpp:27:
In file included from ../deps/snap7/src/sys/snap_threads.h:41:
../deps/snap7/src/sys/unix_threads.h:184:10: warning: private field
'FCreateSuspended' is not used [-Wunused-private-field]
bool FCreateSuspended;
^
1 warning generated.
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_client.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_isotcp.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_partner.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_peer.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_server.o
../deps/snap7/src/core/s7_server.cpp:345:6: warning: variable 'DBNum' is used
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (ReqItemPar->Area==S7AreaDB)
^~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/snap7/src/core/s7_server.cpp:350:30: note: uninitialized use occurs here
P=GetArea(ReqItemPar->Area, DBNum);
^~~~~
../deps/snap7/src/core/s7_server.cpp:345:2: note: remove the 'if' if its
condition is always true
if (ReqItemPar->Area==S7AreaDB)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/snap7/src/core/s7_server.cpp:328:12: note: initialize the variable
'DBNum' to silence this warning
word DBNum;
^
= 0
../deps/snap7/src/core/s7_server.cpp:578:6: warning: variable 'DBNum' is used
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (ReqItemPar->Area==S7AreaDB)
^~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/snap7/src/core/s7_server.cpp:583:30: note: uninitialized use occurs here
P=GetArea(ReqItemPar->Area, DBNum);
^~~~~
../deps/snap7/src/core/s7_server.cpp:578:2: note: remove the 'if' if its
condition is always true
if (ReqItemPar->Area==S7AreaDB)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/snap7/src/core/s7_server.cpp:564:15: note: initialize the variable
'DBNum' to silence this warning
word DBNum;
^
= 0
In file included from ../deps/snap7/src/core/s7_server.cpp:26:
../deps/snap7/src/core/s7_server.h:122:15: warning: private field 'Buffer' is
not used [-Wunused-private-field]
TS7Buffer Buffer;
^
3 warnings generated.
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_text.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_micro_client.o
CXX(target) Release/obj.target/snap7/deps/snap7/src/lib/snap7_libmain.o
LIBTOOL-STATIC Release/snap7.a
CXX(target) Release/obj.target/node_snap7/src/node_snap7.o
CXX(target) Release/obj.target/node_snap7/src/node_snap7_client.o
cat pac CXX(target) Release/obj.target/node_snap7/src/snap7.o
ka SOLINK_MODULE(target) Release/node_snap7.node
SOLINK_MODULE(target) Release/node_snap7.node: Finished
[email protected] node_modules/node-snap7
├── [email protected]
└── [email protected]
$ node app.js
Abort trap: 6
Hello,
I'm beginner in Javascript. I found library Node-snap7 to connect to PLC Siemens S7 and I want to use it in my simple programm in Javascript. I made instalation throught
npm install node-snap7 with this result :
C:\Users\rnaus\node_modules\node-snap7>if not defined npm_config_node_gyp (node
"C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mod
ules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
snap_msgsock.cpp
snap_sysutils.cpp
snap_tcpsrvr.cpp
snap_threads.cpp
..\deps\snap7\src\sys\snap_msgsock.cpp(109): warning C4996: 'inet_addr': Use in
et_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to di
sable deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\sna
p7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1850) :
see declaration of 'inet_addr'
..\deps\snap7\src\sys\snap_msgsock.cpp(125): warning C4996: 'inet_ntoa': Use in
et_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to di
sable deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\sna
p7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1868) :
see declaration of 'inet_ntoa'
..\deps\snap7\src\sys\snap_msgsock.cpp(786): warning C4996: 'inet_addr': Use in
et_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to di
sable deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\sna
p7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1850) :
see declaration of 'inet_addr'
..\deps\snap7\src\sys\snap_msgsock.cpp(852): warning C4996: 'inet_addr': Use in
et_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to di
sable deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\sna
p7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1850) :
see declaration of 'inet_addr'
s7_client.cpp
s7_isotcp.cpp
s7_partner.cpp
s7_peer.cpp
..\deps\snap7\src\core\s7_partner.cpp(118): warning C4996: 'inet_ntoa': Use ine
t_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to dis
able deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\snap
7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1868) :
see declaration of 'inet_ntoa'
..\deps\snap7\src\core\s7_partner.cpp(445): warning C4996: 'inet_addr': Use ine
t_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to dis
able deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\snap
7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1850) :
see declaration of 'inet_addr'
..\deps\snap7\src\core\s7_partner.cpp(446): warning C4996: 'inet_addr': Use ine
t_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to dis
able deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\snap
7.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1850) :
see declaration of 'inet_addr'
s7_server.cpp
s7_text.cpp
s7_micro_client.cpp
snap7_libmain.cpp
..\deps\snap7\src\core\s7_text.cpp(94): warning C4996: 'inet_ntoa': Use inet_nt
op() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable
deprecated API warnings [C:\Users\rnaus\node_modules\node-snap7\build\snap7.vc
xproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(1868) :
see declaration of 'inet_ntoa'
snap7.vcxproj -> C:\Users\rnaus\node_modules\node-snap7\build\Release\\snap7.
lib
node_snap7.cpp
node_snap7_client.cpp
snap7.cpp
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc (..\src\node_snap7_client.cpp) [C:\Users\rnaus\node_modules\node-
snap7\build\node_snap7.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc (..\src\node_snap7.cpp) [C:\Users\rnaus\node_modules\node-snap7\b
uild\node_snap7.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc (..\src\snap7.cpp) [C:\Users\rnaus\node_modules\node-snap7\build\
node_snap7.vcxproj]
Creating library C:\Users\rnaus\node_modules\node-snap7\build\Release\node
_snap7.lib and object C:\Users\rnaus\node_modules\node-snap7\build\Release\no
de_snap7.exp
Generating code
Finished generating code
node_snap7.vcxproj -> C:\Users\rnaus\node_modules\node-snap7\build\Release\\n
ode_snap7.node
[email protected] node_modules\node-snap7
├── [email protected]
└── [email protected]
I'm not sure that installation is correct.
I tried to use example (I made file.js and I tried Open)
// JavaScript Document
var snap7 = require('node-snap7');
var s7client = new snap7.S7Client();
s7client.ConnectTo('192.168.1.12', 0, 1, function(err) {
if(err)
return console.log(' >> Connection failed. Code #' + err + ' - ' + s7client.ErrorText(err));
// Read the first byte from PLC process outputs...
s7client.ABRead(0, 1, function(err, res) {
if(err)
return console.log(' >> ABRead failed. Code #' + err + ' - ' + s7client.ErrorText(err));
// ... and write it to stdout
console.log(res)
});
});
but in line var snap7 = require ('node-snap7');.....
I have error message Microsoft JScript runtime error code 800A138F, object expected.
Can you help me ?
Radek
#36700160 - CLI : function refused by CPU (Unknown error)
Hi,
with can access a single bit in WinCC.
Can i do this with your lib too?
Thanks!
I am using following code to write to DB1 a byte
var snap7 = require('node-snap7');
var s7client = new snap7.S7Client();
s7client.WriteArea(0x84, 1, 2, 1, 0x02, 10);
s7client.ConnectTo('192.168.1.123', 0, 1);
s7client.WriteArea(0x84, 1, 2, 1, 0x02, 10);
Connection can be established successfully but the following error is thrown
s7client.WriteArea(0x84, 1, 2, 1, 0x02, 10);
^
TypeError: Wrong arguments
at TypeError (native)
at /var/www/zcr-www/spsconnect.js:18:13
(I already substituted s7client.S7AreaDB for debugging purpose)
am I just using it wrong, or is there a bug in the module?
Thanks!
Hi,
is it also possible to communicate with Tia Portal 1500?
regards
Celevra
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.