February 15, 2013, 7:44 am
Hello,
I would like to be able to program a custom function in Visual Basic 6 that immitates the GE VB Scrpit function of Previous Value
PreviousValue("Tag","time")
Here's what I have done but it doesn t seem to work correctly as the function returns 0 values at random calls
Public Function HistorianGetPreviousTagValue(ihServer As iHistorian_SDK.Server, _
strHistorianTag As String, _
datStartTimeStamp As Date, _
datEndTimeStamp As Date, _
dblTimeMultiplier As Double) As Double
' Function that returns the Previous VALUE for the parsed time and tag
Dim iDataRecordset As iHistorian_SDK.DataRecordset
Dim iDataValue As iHistorian_SDK.DataValue
Dim i As Integer
On Error GoTo Err_HistorianGetPreviousTagValue
Set iDataRecordset = ihServer.Data.NewRecordset
'Building the query
With iDataRecordset
.Criteria.StartTime = datStartTimeStamp
.Criteria.EndTime = datEndTimeStamp
.Criteria.Tagmask = strHistorianTag
.Criteria.SamplingMode = Lab
.Criteria.Direction = Forward
'minutes
'dblTimeMultiplier = 15 minutes
.Criteria.SamplingInterval = dblTimeMultiplier * 60000 'returns the conversion to minutes from ms
.Fields.AllFields
End With ' With iDataRecordset
'Did we find something
If iDataRecordset.Item(1).Count > 0 Then
Set iDataValue = iDataRecordset.Item(1).Item(1)
'Checking if the TAG is in Good quality before making an average
If iDataValue.DataQuality = Good Then
HistorianGetPreviousTagValue = FormatNumber(iDataValue.Value, 4)
End If
Else ' we didn't find any data within the seektime for the average calculation
Utils_WriteLogFile ("Error - HistorianGetPreviousTagValue - Tag " & strHistorianTag & _
" not found for: " & datStartTimeStamp & " to " & datEndTimeStamp)
End If ' If iDataRecordset.Item(1).Count > 0 Then
'Clean Up
Set iDataRecordset = Nothing
Set iDataValue = Nothing
Exit Function
Err_HistorianGetPreviousTagValue:
Utils_WriteLogFile ("ERROR - HistorianGetPreviousTagValue - " & Err.Number & " : " & Err.Description)
HistorianGetPreviousTagValue = 0
'Clean Up
Set iDataRecordset = Nothing
Set iDataValue = Nothing
End Function 'Public Function HistorianGetPreviousTagValue
-----------------------
Thanks a lot,
↧
February 15, 2013, 12:30 pm
I created a project with cimplicity 8.2 sim 6 working well with windows 7 64 bit os
but I had a problem with windows server 2008 sp1
my problem is screen shaking when we open :( like old tv fail to catch the streaming video
↧
↧
February 15, 2013, 1:03 pm
I believe we have our configuration setup not to reload but it continues to reload anyways.
Assuming the reloads are dictated by the following two parameters, I am not sure what else to do.
In 'Site Parameters' under the 'Services' section:
'Perform automatic service reloads' = False
'Reload Interval (Minutes) = 360
I believe the 360 is what is driving our reloads since they are basically occurring every 6 hours. Realistically, it's a few minutes more than 6 hours exactly but really close.
I would have expected the other parameter 'Perform automatic service reloads' set to false would prevent this but I am obviously mistaken.
I would prefer to only reload services when I manually need to for exceptional circumstances and not have this as part of my daily operation.
Any help/advice is greatly appreciated.
↧
February 15, 2013, 1:45 pm
Hello!
I was wondering if anyone of you have a problems with the CPU units marked IC693CPU374-GP (produced in 2006 or 2007), in last year I replaced 5 pieces of them at all appears the same problem. CPU goes into firmware upgrade mode all three lights are blinking but after dowloading firmware the CPU is working again one day or one month, but problem occurs again.
↧
February 17, 2013, 6:39 am
Hi all,
In the status window, the IGS server is giving the following error while running
" MOD BYTE Command failed for the address "MK4DD.Device.L39VD1_ALM.Write". Write buffer bounds"
There are many errors like this with different variables as well.
Any guidance regarding this?
↧
↧
February 18, 2013, 6:45 am
Hi,
Just want to know, Whether iFix 5.1 come with Plant Apps dynamos similar to iFix 5.5? Rightnow I dont have ver 5.1 available with me.
Please let me know if anyone have idea
Thanks in Advance,
Piyush S.
↧
February 18, 2013, 7:46 am
SonicWall-Dell (McAfee) reports detecting suspicious#polycrypt.13 (Worm) in latest ProficyClientInstaller950.exe download & is blocked-quarentined?
Please advise ASAP.
↧
February 18, 2013, 1:37 pm
Attempt to create a project RSLogix 5000 v19 from PCM Thick Client and from different locations but showed the error "The system was unable to export your project files. A problem was Encountered while launching the project. The project may be already open, read-only, or unsupported. ":mad:
It could create the project from the PCM Thin Client but when given the option to open it show the error "Encountered an Open operation errors (# 807-Launch of RSLogix application failed) :mad:
↧
February 18, 2013, 10:03 pm
Hi,
Just want to know, Whether iFix 5.1 come with Plant Apps dynamos similar to iFix 5.5? Rightnow I dont have ver 5.1 available with me.
Please let me know if anyone have idea
Thanks in Advance,
Piyush S.
↧
↧
February 19, 2013, 9:34 am
We have iFix 5.5 with latest SIMs installed as a redundant pair on Windows Server 2008 R2 64-bit. We have Webspace on another 2008 R2 64-bit server.
Until recently our client has been using an administrator to get past the first web client logon and then using the actual user for the 2nd log on.
They now want each user to use their own log on details for both log ons but they are not able to log on. They get the following error when attepting the first log on...
"The nodename you are attempting to use is also configured as a remote node name. Please change the node name.
If you do not have privileges to modify the nodename contact your iFIX Administrator."
There is obviously no issue with the node name as it works fine if an administrator logs on.
Can anybody tell me exactly what rights users need in the Windows Domain to be allowed run a web client?
↧
February 19, 2013, 10:51 am
Hi all,
I want to do very simple task if anyone of you can please guide or help.
I am monitoring a boolean signal value in a numeric indicator or a text box.
Its value is changing from 1 to 0 or from 0 to 1 at different time intervals.
Now i want to write some VB script or do some other thing to capture the date,month,year and time(resolution upto seconds) when that boolean signal changes the value from 0 to 1 and to display it. After capturing the time stamp of that Rising edge instant, i also have to display the timer value on the Cimplicity screen until the boolean value changes from 1 to 0 again.
I want to repeat this process again and again. How to do it?
Any help will be greatly appreciated.
Thanks and Regards,
mhs100
↧
February 19, 2013, 2:54 pm
Hi all,
Running Cimplicity 6.1/SP6 and using an Activex object for data entry. The Rich Textbox Control 6.0 is used for data entry. The .ocx file has been registered for each computer.
My users are complaining that the textbox is losing focus (I-beam caret disappears) and data entry is not possible. I noticed that the focus is lost only when any other Rich Textbox on the same screen sees a "mousemove" or hover. Typically, the user will click on the textbox, start typing and then occasionally the mouse will be moved accidentally and ends up hovering over another textbox. At that point the focus is lost, preventing data entry. The focus isn't stolen by the other textbox but is lost in never never land. Why would hovering over another Rich Textbox cause lost focus on the textbox that was originally clicked for data entry? Appreciate any feedback.
Regards,
Axle
↧
February 19, 2013, 7:47 pm
Hi,
Im using Cimplicity HMI version 8.10.
My system show clock adjustment at status log as below:
================================================== =======
MAC_PTDP ptmdp_process_timer COR_EM_ERR 0 0 System clock adjustment of 64 seconds detected.
MAC_DL ClockAdjustmentMonitor COR_DBDL_ERR 196 0 System clock adjustment of 64 seconds detected.
MAC_PTDL ClockAdjustmentMonitor COR_DBDL_ERR 196 0 System clock adjustment of 64 seconds detected.
================================================== =======
The clock adjustment shown very frequent in my system(every 2-3 hour) & the computer time will be changed as well. This also cause my computer time become much more faster compare to other system device.
Anyone know why this log shown & how to disable it??
I check the parameter before & the value can be set is 1 to 3600.
Thanks you very much...
↧
↧
February 20, 2013, 4:16 am
I have a number of pop-up pictures that are not full screen.
They are sized so that there are no scroll bars when they open.
But if I copy the picture to another PC, suddenly the same picture has scroll bars - and need to be resized manually to get rid og theese scroll bars.
To avoid this manual resizing on all PCs I want to soze the picture correcly through VBA. How is that done?
Setting the ViewportHeight and ViewportWidth seems not to be the solution as they may not work if the original picture size is smaller - and they may also affect how the fonts are displayed.
↧
February 20, 2013, 5:36 am
Hi,
I have an old system having a Scada pair and some clients using
iFix (not Windows) security enbaled. It has working fine for long time.
Recently I noticed that: if I have no users logged on an SCADA, or a user logged
that doesn´t have rigths to acknowledge an alarm, or access the alarm area,
and this alarm was acknowledged in other node by a user with appropriate rights, the alarm isn't acknowledged in that SCADA.
I do not know if I didn't notice any detail, but I was not expecting this behavior. If this is the normal behavior of iFix, I'll have to write some code to work around this behavior.
Anyone else ever notice something?
thank you
↧
February 20, 2013, 10:41 am
Is there any example of C Block created for GE 90-30 ?
↧
February 21, 2013, 4:13 am
Hi,
I need to create a button that generates a report (pdf, jpg or csv...) with print-screens of XY plots and some data that I will pass to it.
Can someone help me to make that?
Thanks a lot.
Raul.
↧
↧
February 21, 2013, 7:48 am
↧
February 21, 2013, 10:42 am
Hello All,
I've to search for each VME_RD_WORD instruction and replace it with BUS_RD_WORD instruction, do someone know about any scripting technique or utility which would find and replace. (Application is converted to Rx7i from 90-70)
↧
February 21, 2013, 11:47 am
I understand that the old Remote I/O Manager software previously used for configuring this module (i.e. setting IP address, Modbus/TCP mode, etc) will not run under Win7. Is this true?
If so, what software is used for configuring this module using a laptop running Win7?
Hardware configuration is anothe issue. Proficy Machine Edition V7 does not seem to have this NICU under Hardware Configuration, just a generic I/O module. Is this what you use?
Thanks.
↧