Simatic S7 UDT

harshmakar

Member
Join Date
Jun 2014
Location
pune
Posts
4
Hii,
myself Harsh, new with Simatic S7,
Please ignore if I am wrong but need help on UDT.
I have 75 digital Alarms,
Rung Logic is exactly same for all,
I am using 1 IP to produce alarm,
1 common IP for reset and Acknowledgement,

Please suggest me how to make a FB for Alarm or No. Of alarms using UDT and In and Out parameters.

Please refer attachment.

IMG_20180413_104506.jpg
 
Why a UDT? Wouldn't an array of Bool be much easier to work with, particularly if you need to count alarms?
Thank u , I appreciate your quick response,
UDT & FB useful as I am using same logic repeat for 75 no of times,
And frankly speaking, I am new in S7, so don't know about array,
 
The UDT can have an array in it or you can have an array of UDTs. Which is probably closer to what you want.

You could have one FB that only deals with 8 or 10 alarms at a time.

Inside of the FB, you'd have a FOR Loop that would run through the inputs and process with what was inside the array.

Have a read through arrays first... I think your problem is how you can avoid replicating logic for all 75 alarms.
 
The UDT can have an array in it or you can have an array of UDTs. Which is probably closer to what you want.

You could have one FB that only deals with 8 or 10 alarms at a time.

Inside of the FB, you'd have a FOR Loop that would run through the inputs and process with what was inside the array.

Have a read through arrays first... I think your problem is how you can avoid replicating logic for all 75 alarms.
Yes what you understand is correct, I will read about array and will try to solve the same, can you plz mail me the detail procedure or sample , [email protected], thanx once again for your valuable response on time
 

Similar Topics

Hii, Myself Harsh, I am new to S7, I have 75 digital Alarms, Logic for set/reset of Ala
Replies
2
Views
1,050
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
45
Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
160
Hi, I received this SIMATIC S7-300 training kit for maintenance. When I power it up, the PLC doesn't go to RUN mode and the STOP mode led is...
Replies
7
Views
294
I'm trying to build my Classic Step 7 programming skills this weekend. I get stuck on little things that are not covered in YouTube tutorials. I'm...
Replies
7
Views
306
Back
Top Bottom