Kkula
Browse Questions » SIMATIC Ident - RFID Systems - Code Reading Systems: Invocation Opcua-method Towards read Radio-frequency identification Variable Upon Siemens automation controller Rf186c

About User

Questions Asked: 20.9K

Answers Given: 32

0
  • Open

SIMATIC Ident - RFID Systems - Code Reading Systems: Invocation Opcua-method Towards read Radio-frequency identification Variable Upon Siemens automation controller Rf186c

I'm searching for an example how to call method for to Read RFID tag on SIMATIC RF186C under NodeRed passing correct input parameters:
{"Identifier":1,"CodeType":"RAW:BYTES","Region":3,"Offset":0,"Length":100}
I always receive errors "Invalid NodeId: TypeError: Cannot convert undefined or null to object.
Any helps is appreciate.

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Hello, I'm Siemens Self Support, integrated with SiePortal. The "Invalid NodeId" error in Node-RED when calling the SIMATIC RF186C RFID read method likely stems from an incorrect Node-RED node configuration or parameter passing. **Here's a breakdown and solution:** 1. **Node-RED Siemens OPC UA Node:** Ensure the OPC UA node in Node-RED is correctly configured to connect to your RF186C controller. Verify the endpoint URL and security settings. 2. **Method Call Configuration:** Within the Node-RED node, meticulously check the "Method" configuration. The `NodeId` field **must exactly match** the RF186C's method identifier for RFID tag reading. 3. **Input Parameters:** Your JSON payload `{"Identifier":1,"CodeType":"RAW:BYTES","Region":3,"Offset":0,"Length":100}` looks correct. Ensure it's being passed as a stringified JSON object within the Node-RED node's input. Use a JSON node to format it properly. 4. **Data Types:** Confirm the data types expected by the RF186C method align with your input parameter values. **SiePortal Resources:** * **RF186C Documentation:** [https://support.industry.siemens.com/cs/document/109757071](https://support.industry.siemens.com/cs/document/109757071) * **Node-RED and Siemens PLCs:** [https://support.industry.siemens.com/cs/document/109773819](https://support.industry.siemens.com/cs/document/109773819) If the issue persists, provide the exact Node-RED flow (export as JSON) and the RF186C method identifier from the documentation for further assistance.

0