Parametric subflow

Hi all.
I'm new to NodeRED.

There is a way to define parameters for a subflow?

I'working with modbus server to simulate a machine.

I need to change a bit value in a word.
This is the path for emergency.
image

Emergency is bit 0 of word at address 8000.

I need to add Emergency2 which is placed on bit 1 of word at address 8000
image

So i'd like to implement a subflow with one input pin and 2 property: address and bit_pos

This the properties of subflow ChangeBit.

The property address should placed in address property of "Modbus Getter" and "Modbus Write"
The property bit should be used in change_bit function.

How can I refer to address subflow property inside a block of the subflow?

Sorry for my english.

Best regards
Mauro

You can do this with "environment" variables in the subflow settings. Open the subflow and click on "Edit properties" to define the required/optional variables:

And then in the Editor panel for an instance of the subflow, you can set the values for that instance: