3electrons
Level-1
- Beiträge
- 2
- Reaktionspunkte
- 0
-> Hier kostenlos registrieren
Hi everybody
Sorry to post it in english but I don't know german. I was using google translator to read threads visit this forum.
I found few people here has compiled libnodave on 64bit linux so I have done it the same way.
I have following problem.
Writing single byte into plc results in error: "desired address is beyond limit for this PLC" - error number 5
area = 132
DB = 99
start = 0
len = 1
*buffer = 0x01 0x00
res = daveWriteBytes(m_dc, area, DB, start, len, buffer);
res = 5
Does any of you encounter that problem? Or I have to figure it out on my own. At the same time reading works perfectly. There is no such problem on windows and linux in 32bit mode.
My environment:
libnodave 0.8.4.5
g++ (Gentoo 4.3.4 p1.1, pie-10.1.5) 4.3.4
Architecture : Intel Core 2
binutils - 2.18-r3
PLC: VIPA CPU315SB
Comunnication is realised via ethernet cable.
Makefile:
CFLAGS = -m64 -Wall -Winline -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
CTFLAGS = -m64 -Wall -Winline -fPID -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
CPPFLAGS = -m64 -Wall -Winline -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
I was trying to debug libnodave ... but I have not much time to understand its internal architecture. I will be also glad for any hints how to fix the bug on my own.
BTW. To the author of libnodave .... good work very usefull library
Sorry to post it in english but I don't know german. I was using google translator to read threads visit this forum.
I found few people here has compiled libnodave on 64bit linux so I have done it the same way.
I have following problem.
Writing single byte into plc results in error: "desired address is beyond limit for this PLC" - error number 5
area = 132
DB = 99
start = 0
len = 1
*buffer = 0x01 0x00
res = daveWriteBytes(m_dc, area, DB, start, len, buffer);
res = 5
Does any of you encounter that problem? Or I have to figure it out on my own. At the same time reading works perfectly. There is no such problem on windows and linux in 32bit mode.
My environment:
libnodave 0.8.4.5
g++ (Gentoo 4.3.4 p1.1, pie-10.1.5) 4.3.4
Architecture : Intel Core 2
binutils - 2.18-r3
PLC: VIPA CPU315SB
Comunnication is realised via ethernet cable.
Makefile:
CFLAGS = -m64 -Wall -Winline -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
CTFLAGS = -m64 -Wall -Winline -fPID -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
CPPFLAGS = -m64 -Wall -Winline -DLINUX -DDAVE_LITTLE_ENDIAN -fPIC
I was trying to debug libnodave ... but I have not much time to understand its internal architecture. I will be also glad for any hints how to fix the bug on my own.
BTW. To the author of libnodave .... good work very usefull library