Step7 UDT as in/out parameter to a FC

mattiaslindh

Member
Join Date
Dec 2006
Location
Hässleholm
Posts
4
Hello.
I have searched the forum and did not find the answer for this:

I am using a S7315-2DP plc.
I have made one prgram that uses udt's as in/ouput variables in A FC block. So,I have defined one UDT called device. Then i have built up on FC block to handle one device. This block (FC) block takes one instance of UDT Device as IN/OUT parameter.
I have then a DB with all my devices and calls the FC for all devices in that DB.

My question is: Is this approatch more cycle time consuming than using FB blocks.... What i HAVE seen in my testing is that ist eating a lot of the Scan time.. what do you think?
 
Yes, that approach will have a big effect on the scan time. Use an FB instead, and access the udt by manipulating AR2 (assign the udt as a STAT variable).
 

Similar Topics

Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
128
Hopefully someone can validate my thoughts on the following: I'm looking at a proposed program design for a line which will be with us early next...
Replies
13
Views
7,062
Hi All, Can anyone help with my problem and you save my day .. I´ve made a FB which I am to use as a multi instance. I want to pass data...
Replies
8
Views
10,594
I have some data in a FB. Said data is visible in the FB's DB. I would like to have this data in a UDT and then move it to another location...
Replies
13
Views
9,964
What are UDTs and What is their significance in step7????? Thanx in advance for any help....
Replies
2
Views
2,884
Back
Top Bottom