I am able to read the vale from via modbus from my PLC in a debug node but I am trying to figure out how to update a call service node with this value. I am getting the Call service error and I am not sure what I should be putting in the data field for the call service node?
[{"id":"60cce770e7fc7035","type":"inject","z":"91cfb05c729d8220","name":"","props":[{"p":"topic","v":"","vt":"date"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":190,"y":2340,"wires":[["494db88edae7cd17"]]},{"id":"494db88edae7cd17","type":"function","z":"91cfb05c729d8220","name":"Display Gate Operational State","func":"msg.payload = { \n value: msg.payload, \n 'fc': 3,\n 'unitid': 1,\n 'address': 49152,\n 'quantity':1,\n } \n return msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":2340,"wires":[["b9619e76bf35c64f"]]},{"id":"43797ef24240043b","type":"api-call-service","z":"91cfb05c729d8220","name":"","server":"788afdb8.f1c034","version":5,"debugenabled":false,"domain":"input_number","service":"set_value","areaId":[],"deviceId":[],"entityId":["input_number.gate_status"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1090,"y":2400,"wires":[[]]},{"id":"7a9c4a1615ad580e","type":"debug","z":"91cfb05c729d8220","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1050,"y":2320,"wires":[]},{"id":"b9619e76bf35c64f","type":"modbus-flex-getter","z":"91cfb05c729d8220","name":"","showStatusActivities":false,"showErrors":false,"logIOActivities":false,"server":"6acb19b43669ef88","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":750,"y":2340,"wires":[["7a9c4a1615ad580e"],["43797ef24240043b"]]},{"id":"bec896dd87d68917","type":"comment","z":"91cfb05c729d8220","name":"Read Gate PLC Counter Value","info":"","x":630,"y":2280,"wires":[]},{"id":"788afdb8.f1c034","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"},{"id":"6acb19b43669ef88","type":"modbus-client","name":"Click PLC","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.1.25","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true}]