Access a function block parameter from SCADA?

TheWaterboy

Lifetime Supporting Member + Moderator
Join Date
May 2006
Location
-27.9679796,153.419016
Posts
1,937
Compactlogix PLC

I have a totalizator function block that totals flow. There are unusual circumstances where we pause flow momentarily and the logic causes the total top switch to the last total.

To make it more difficult to reach the totalizer is program scoped not controller scoped.

Is there a way to edit the "OldTotal" from HMI? The tag would be controller.program.functionblock.OldTotal. But when I tried to address it I was not able to reach it.

If I can't edit it, (its grey in the dialog box) there is no point so thats the important question.
 
Hello,

For PeakHMI to access program variables the format is:

programName:functionBlockName.whatever.

The : is the important part.
 
Cant write to the tag OldTotal, Appperantly since it is an Output.
I can write to the current total and toggle that into place, but I may have to do this while the totalizer is in used and total is incrementing so that option is out.
Anyone know if this is even possible?
 
Got it figured... I can access and write to .OldTotal and any other parameter as long as the function block is globally scoped. Program scoped function blocks can't be reached even though Kepware will allow the address.

At least thats what I found so far.
 

Similar Topics

Hi All, I'm trying to write (STL) a function(blok) in S7 I just want to in-output a "byte" and use it in my function as "byte.bit" format. I...
Replies
14
Views
3,603
Hi Siemens guys! I am experiencing SF fault on our S7-300 (6ES7 315-2AH14-0AB0) CPU from time to time. I've checked the diagnostic buffer and...
Replies
13
Views
213
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
104
I have to provide remote access and control to a touch screen. I was thinking about using Weintek and the Weincloud. Does anyone know if this is...
Replies
11
Views
630
Greetings, I am working on a project and I would like to scale %AI to -10.0 to 10.0 VDC. The module Input data is stored as a 16 bit Integer and...
Replies
4
Views
83
Back
Top Bottom