Programming Question - PLC data Types, Function blocks

furryorange

Member
Join Date
Oct 2019
Location
UK
Posts
3
I have a function block (FB1) which uses internal tags and has made a data block (DB1).

I have a created a PLC data type with around 15 tags and I have added this into another Data block (DB2).

I want to be able to link my tags from my created PLC data type in (DB2) to my function block (FB1)

can someone help

thanks
 
Is this in TIA or Classic?

You just need to create an input field of that data type.

Subtle difference in how to pass the data into the FB between TIA and classic, either symbolic or direct address
 
I have a function block (FB1) which uses internal tags and has made a data block (DB1).

I have a created a PLC data type with around 15 tags and I have added this into another Data block (DB2).

I want to be able to link my tags from my created PLC data type in (DB2) to my function block (FB1)

can someone help

thanks

You can use FB inside a Function- drag and drop the FB inside a FC see pictureS of my project very similar

call FC in OB it will automatically call the FB because it is inside it
DB1 is for the FB to use you can leave it untouched
https://imgur.com/gallery/BI3Y3Jo
 
Last edited:

Similar Topics

Hello. Was just curious, if it is possible to load an image from an SD card on to a Compactlogix PLC that came straight out of the box brand new...
Replies
4
Views
545
How do you code it to when you push a button attached to X001, it turns on Y001. Then, the next time you push the button attached to X001 it...
Replies
4
Views
1,611
Hi, I have a question about plc programming as a second job and whether anyone currently does this. I work full time for a company (not plc...
Replies
20
Views
4,681
Hello, We are a mechanical engineering senior deign team from the University of Houston building an automated beer brewing system known as HERMS...
Replies
12
Views
4,617
All, I was wondering. How do you add a number to another number(say level input) only once, to keep it constant. Example: You have Num1, which...
Replies
11
Views
2,602
Back
Top Bottom