Hi,
Query -
1. A module block is bounded to some physical module
2. We want to access name of this module bounded to DEV1 in logic.
Explored:- 1. Looked for a parameter in DEV1 for this purpose, but didn't found any.
2. Looked for FMT, it used MODULE_BLOCK_BINDING.MNAME. Tried using this field in ACT block but parse errors.
Is there anyway to do this ??
Thankyou
In reply to gamella:
In reply to Devpriy sahu:
Ya agreed, generic name are really confusing....btw thanks for your replies
In reply to Matt Stoner:
I share exact logic and then we will discuss on it :- 1. We need to take a material into an vessel from one of the 16 possible source tanks. 2. An EM is developed (With 16 module blocks for 16 tank discharge valves). It will receive source tank name from Phase and based on which it will and store tag name of selected valve into an parameter (This is what i want...To store this tag name...at present we need to do configuration in 2 steps...bind all 16 valve manually to valve module block and other 16 string parameters to store valve tags......if say DEV1 is selected then a code will move that tag from string parameter corresponding to DEV1 to selected valve tag parameter) 3. Once Valve name is stored, phase will map path to SP PV MODE of that particular valve using dynamic referencing and operate valve as per requirement. I under stand this could be done through Alias also but then also you need to bind Alias with selected valve tag. To read selected valve tag we require to read binding module name of module block And this is the issue.....!! How to do it without having a extra configuration step of putting string parameter ... how can we directly move binding name of a module block to some parameter.
And to your points -
--- Batch Unit and then the logic within this item could use the Aliases of the Batch Unit it was under.
Item is already inside a unit module, i can make an alias but suppose if DEV1 module block got selected then how will i move tag name bounded to DEV1 into alia
--- Another option not given is you could add String parameters for the associated Module Blocks that you configure the associated Tags for that device and this could be used by the logic locally instead of having to read the parameter(s) from a control module that might even be in another controller (Examples being DEV1_TAG or BTM_VLV_TAG parameter and have FV24101 configured at the instance _BT_IN_M1_A_TK1).
Doing same at present but it consume a extra configuration step and a bit of extra code to be developed
--- I don't understand what you are trying to do for item #3. You are selecting equipment in this configuration (how is the selection made?) but then allowing other logic to write to it? Seems you either should have the selection and control be done in this configured item or do the selection where ever the control is being done from. I would think that would be hard to troubleshoot if I'm understanding what you are wanting to do.
I explained about exact application
Thanks :-)
Andre Dicaire
In reply to Andre Dicaire: