Programming Question - PLC data Types, Function blocks

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
 

Similar Topics

I'm doing a student project and using the free click programming software but I do not physically have a plc. I'm trying to use the math function...
4
Replies
949
Views
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...
4
Replies
1,447
Views
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...
4
Replies
2,963
Views
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...
20
Replies
6,617
Views
Hello, We are a mechanical engineering senior deign team from the University of Houston building an automated beer brewing system known as HERMS...
12
Replies
6,235
Views
Top