Forum Replies Created
-
AuthorPosts
-
mariodavidParticipantmariodavidParticipant
I found this in the library OpcComRcw. How do I implement this in the KpOpclogic?
mariodavidParticipantHi, I am using mpi/usb protocol to connect to plc s7-300. I have not found another server that is compatible with mpi / usb. There is SIMATIC NET but is paid.
mariodavidParticipanthttp://www.diit.unict.it/users/scava/dispense/II_270/OPCDACOMOverview.pdf
said that IOPCSyncIO is required in Data Access Server 1,2 and 3.
mariodavidParticipant“In the source code I just use daServer.Write(new Opc.Da.ItemValue[] { itemVal }); and the library made by OPC Foundation choose lo-level method WriteVQT”.
the library made by OPC Foundation are not free but, Is there another method using the same library?
I am sure that I can write with this method: IOPCSyncIO::Write
mariodavidParticipantOPC_E_NOTSUPPORTED 0xC0040406 If a client attempts to write any value, quality,
timestamp combination and the server does not
support the requested combination (which could
be a single quantity such as just timestamp), then
the server will not perform any write and will
return this error code.I found it here: https://digitalsupport.ge.com/servlet/fileField?id=0BE1A000000TPEf
the opc libraries are paid,
Is there any other way to use other libraries to use another method?mariodavidParticipantHi, I replaced the new file with the previous one in the folder SCADA/ScadaComm/KP.
opc analyzer:
OPC Analyzer Trace – Application Version 1.2.1012
saved on mar 23. oct 12:43:06 201812:42:40.810 – IOPCItemIO::WriteVQT ————————————————————-
General:
HRESULT: 0x00000001 S_FALSEIn Parameters:
pszItemIDs:
[0] = PLC1.Generic.ACTIVAR_VALVULA_T1
dwCount: 1
pItemVQT:
Item 0:
vDataValue = VT_BOOL -1
bQualitySpecified = TRUE
wQuality = 0x00c0 OPC_QUALITY_GOOD
bTimeStampSpecified = FALSE
ftTimeStamp = 1601-01-01T00:00:00.000Out Parameters:
ppErrors:
[000] 0xc0040406 OPC_E_NOTSUPPORTEDmariodavidParticipantmariodavidParticipantHi.
please let me know, I really need to write that tags.
mariodavidParticipantHello.
I try with 2.XX and and the same thing happens. Marc:
“Hello Mario,
I have been able to install rapid scada and am currently testing this on our system. I am having some trouble issuing a write – how are you doing that exactly on your end?
The reason I do not think this is an issue with the IBH server is that it actually responds with a “success” so I would expect that the write has been processed correctly – this is something I would like to see here on my end.
Kind Regards,
Marc”
Is it possible to write with IOPCSyncIO::Write?
mariodavidParticipantHi. The developer does not answer yet. I have been searching and some servers are not compatible with writeVQT method. https://advosol.com/manuals/opcdanet/topic177.html
Is there the possibility of writing with another method?
mariodavidParticipantWill there be any difference if I use the 5.5.3 version? I am using 5.5.2 rapid scada version.
mariodavidParticipantdeveloper wrote: Hello Mario,
“The issue here is that the WriteVQT is writing a value of -1 (high) and a quality of Bad. Where the Quick Client write is only writing a -1 (high). Your other client needs to not write the quality bad if you want the quality to remain good and the write succeed.
Why is the rapid scada writing a bad quality? OPC Specs declare that the value is undefined if OPC quality is bad, so the server is not processing the write.
Thanks,
Marc”mariodavidParticipantdeveloper wrote: Hello Mario,
“The issue here is that the WriteVQT is writing a value of -1 (high) and a quality of Bad. Where the Quick Client write is only writing a -1 (high). Your other client needs to not write the quality bad if you want the quality to remain good and the write succeed.
Why is the rapid scada writing a bad quality? OPC Specs declare that the value is undefined if OPC quality is bad, so the server is not processing the write.
Thanks,
Marc”mariodavidParticipantI use opc analyzer with quick ckient and rapid scada. this is the log.
first, quick client:
“OPC Analyzer Trace – Application Version 1.2.1012
saved on mar 9. oct 12:09:15 201812:08:35.437 – IOPCSyncIO::Write —————————————————————-
General:
GroupName: PLC1.Generic
GroupServerHandle: 0x5721688
HRESULT: 0x00000000 S_OKIn Parameters:
pItemValues:
[000] VT_BOOL -1
dwCount: 1
phServer:
[000] 0x06895348Out Parameters:
ppErrors:
[000] 0x00000000 S_OK12:08:35.967 – IOPCDataCallback::OnDataChange —————————————————
General:
HRESULT: 0x00000000 S_OK
GroupName: GRP06897320
numCallbacks: 10
minTime: 54.974 ms
averageTime: 134.769 ms
GroupServerHandle: 0x302398
maxTime: 508.228 ms
CallTime: 101.790 msIn Parameters:
hrMasterquality: 0x00000000 S_OK
pvValues:
[000] VT_BOOL -1
[001] VT_BOOL -1
[002] VT_BOOL -1
dwCount: 3
hrMastererror: 0x00000000 S_OK
pftTimeStamps:
[000] 2018-10-09T16:08:35.608
[001] 2018-10-09T16:08:35.718
[002] 2018-10-09T16:08:35.718
dwTransid: 0
phClientItems:
[000] 0x00000008 [001] 0x0000000b [002] 0x00000013
hGroup: 0x0
pwQualities:
[000] 0x00c0 OPC_QUALITY_GOOD
::::
[002] 0x00c0 OPC_QUALITY_GOOD
pErrors:
[000] 0x00000000 S_OK
::::
[002] 0x00000000 S_OK12:08:36.014 – IOPCDataCallback::OnDataChange —————————————————
General:
HRESULT: 0x00000000 S_OK
GroupName: PLC1.Generic
numCallbacks: 11
minTime: 0.139 ms
averageTime: 0.429 ms
GroupServerHandle: 0x5721688
maxTime: 2.238 ms
CallTime: 0.192 msIn Parameters:
hrMasterquality: 0x00000000 S_OK
pvValues:
[000] VT_BOOL -1
[001] VT_BOOL -1
[002] VT_BOOL -1
dwCount: 3
hrMastererror: 0x00000000 S_OK
pftTimeStamps:
[000] 2018-10-09T16:08:35.718
[001] 2018-10-09T16:08:35.608
[002] 2018-10-09T16:08:35.718
dwTransid: 0
phClientItems:
[000] 0x003d4608 [001] 0x003d42f8 [002] 0x003d4138
hGroup: 0x3e2fe8
pwQualities:
[000] 0x00c0 OPC_QUALITY_GOOD
::::
[002] 0x00c0 OPC_QUALITY_GOOD
pErrors:
[000] 0x00000000 S_OK
::::
[002] 0x00000000 S_OK12:08:39.009 – IOPCDataCallback::OnDataChange —————————————————
General:
HRESULT: 0x00000000 S_OK
GroupName: GRP06897320
numCallbacks: 11
minTime: 54.974 ms
averageTime: 132.910 ms
GroupServerHandle: 0x302398
maxTime: 508.228 ms
CallTime: 114.316 msIn Parameters:
hrMasterquality: 0x00000000 S_OK
pvValues:
[000] VT_BOOL -1
[001] VT_BOOL 0
dwCount: 2
hrMastererror: 0x00000000 S_OK
pftTimeStamps:
[000] 2018-10-09T16:08:38.588
[001] 2018-10-09T16:08:38.588
dwTransid: 0
phClientItems:
[000] 0x00000004 [001] 0x00000008
hGroup: 0x0
pwQualities:
[000] 0x00c0 OPC_QUALITY_GOOD
[001] 0x00c0 OPC_QUALITY_GOOD
pErrors:
[000] 0x00000000 S_OK
[001] 0x00000000 S_OK12:08:39.040 – IOPCDataCallback::OnDataChange —————————————————
General:
HRESULT: 0x00000000 S_OK
GroupName: PLC1.Generic
numCallbacks: 12
minTime: 0.139 ms
averageTime: 0.407 ms
GroupServerHandle: 0x5721688
maxTime: 2.238 ms
CallTime: 0.159 msIn Parameters:
hrMasterquality: 0x00000000 S_OK
pvValues:
[000] VT_BOOL -1
[001] VT_BOOL 0
dwCount: 2
hrMastererror: 0x00000000 S_OK
pftTimeStamps:
[000] 2018-10-09T16:08:38.588
[001] 2018-10-09T16:08:38.588
dwTransid: 0
phClientItems:
[000] 0x003d44b8 [001] 0x003d42f8
hGroup: 0x3e2fe8
pwQualities:
[000] 0x00c0 OPC_QUALITY_GOOD
[001] 0x00c0 OPC_QUALITY_GOOD
pErrors:
[000] 0x00000000 S_OK
[001] 0x00000000 S_OK”rapid scada:
“OPC Analyzer Trace – Application Version 1.2.1012
saved on mar 9. oct 12:11:09 201812:10:15.964 – IOPCItemIO::WriteVQT ————————————————————-
General:
HRESULT: 0x00000000 S_OKIn Parameters:
pszItemIDs:
[0] = PLC1.Generic.bandera_ESB
dwCount: 1
pItemVQT:
Item 0:
vDataValue = VT_BOOL -1
bQualitySpecified = FALSE
wQuality = 0x0000 OPC_QUALITY_BAD
bTimeStampSpecified = FALSE
ftTimeStamp = 1601-01-01T00:00:00.000Out Parameters:
ppErrors:
[000] 0x00000000 S_OK” -
AuthorPosts