Quantcast
Channel: GE Intelligent Platforms e-Forum
Viewing all 2516 articles
Browse latest View live

How do I replicate PreviousValue("Tag","time") function in VB6

$
0
0
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,

windows server 2008 and cimplicity 8.2

$
0
0
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

PA 5.0 Event Manager Reloading Every 6 Hours

$
0
0
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.

Problem Firmware upgrade mode on IC693CPU374

$
0
0
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.

Error in IGS Server 7.58 while running

$
0
0
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?

Plant Apps Dynamo In iFix

$
0
0
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.

(Worm)?inProficyClientInstaller950

$
0
0
SonicWall-Dell (McAfee) reports detecting suspicious#polycrypt.13 (Worm) in latest ProficyClientInstaller950.exe download & is blocked-quarentined?

Please advise ASAP.

Error: to create project RSLogix 5000 V19 in Proficy Change Management

$
0
0
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:

Plant Apps Dynamo in iFix

$
0
0
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.

Webspace Login Issue

$
0
0
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?

Cimplicity 8.2 simple task

$
0
0
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

Rich Textbox loses focus

$
0
0
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

Clock Adjustment Monitor

$
0
0
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...

Resize pop-up picture on open

$
0
0
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.

Acknowledging alarms using Scadas pair with security enabled

$
0
0
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

c block

$
0
0
Is there any example of C Block created for GE 90-30 ?

Generate Report

$
0
0
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.

Can not write values using MBE driver

$
0
0
Hello,

I'm using MBE driver to communicate with WinTech Modsim32 (instead of real controller).
I need to read and write some digital and analog registers, but I have problems sending values. I read them normally - when I change some value in Modsim I can see the change in IFix database.

I've made everything like it is explained in MBE Driver manual (http://support.ge-ip.com/support/res...MBE_Driver.pdf, page 18 - feature Block Writes);
For a better explanation:
1. new project in PowerTool has been created,
2. "TestDevice" has been created (advanced option "Mask Register Writes" unchecked) - PrtSc 1
3. "TestDataBlock" has been created with only one Unsigned Integer on address 400100 (advanced option "Enabled Block Writes") - PrtSc 2
4. "TEST_SEND_AR" analog register tag has been created with address "TestDevice:400100" in iFix Database Manager (PrtSc 3). Advanced option "Enable Output" checked (PrtSc 4).
5. "TEST_SEND_DR" digital register tag has been created with address "!Send:TestDataBlock" in iFix Database Manager (PrtSc 5).

I'm changing AR value in database (in the same time I set DR value to "1" and back to "0") but no value change can be seen in Modsim. Obviously values are not sent.

If anybody knows where is the problem I would be really grateful.

http://imageshack.us/photo/my-images...cesetting.jpg/
http://imageshack.us/photo/my-images...blocksett.jpg/
http://imageshack.us/photo/my-images...gistertag.jpg/
http://imageshack.us/photo/my-images...gistertag.jpg/
http://imageshack.us/photo/my-images...egisterta.jpg/

Thank you.

Search and Replace Utility

$
0
0
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)

Configuring IC200EBI001 module

$
0
0
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.
Viewing all 2516 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>