Use function node with node-red-contrib-cip-ethernet-ip

Hello, trying to use node-red-contrib-cip-ethernet-ip. I want to read many variables from an Allen Bradley PLC but with different read-rate, so I wouldn't like to configure the tags and read-rate in the 'eth-ip' node. In a function node, I would like to organize and collect the data I need to read at the same rate in a JSON object and then send the information in msg.payload to the 'eth-ip in' node.
For example something like this:

[
{
"id": "783a46ef7d028eb9",
"type": "eth-ip in",
"z": "8513256d035c03e6",
"endpoint": "ec1df2b0f4c16087",
"mode": "all",
"variable": "SmartClosure.PowerOnTime",
"program": "",
"name": "PowerOnTime",
"x": 430,
"y": 360,
"wires": [
[
"4c3421993adc2cf2"
]
]
},
{
"id": "ec1df2b0f4c16087",
"type": "eth-ip endpoint",
"address": "172.30.48.97",
"slot": "0",
"cycletime": "5000",
"name": "PLC",
"vartable": {
"": {
"SmartClosure.PowerOnTime": {
"type": "DINT"
},
"SmartClosure.RunningTime": {
"type": "DINT"
}
}
}
}
]

Is there any way to do it? Is there another package to use?
Thank you.