# Node-red-plc-next-connector : no access to the variables

**URL:** <https://discourse.nodered.org/t/node-red-plc-next-connector-no-access-to-the-variables/83126>\
**Category:** Industrial\
**Created:** [23 November 2023 10:40 UTC](https://discourse.nodered.org/t/node-red-plc-next-connector-no-access-to-the-variables/83126 "2023-11-23T10:40:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [23 November 2023 10:40 UTC](https://discourse.nodered.org/t/node-red-plc-next-connector-no-access-to-the-variables/83126/1 "2023-11-23T10:40:28Z")

</div>

Hello  
I use NodeRed 3.0.2 on a device from PhoenixContact (based of Debian) AXC F 2152.  
I use the node-red-plc-next-connector which permits to access to the variables of this device.  
The node Read Variables presents the list of the variables accessible in the device : OK  
But the values of these variables are not visible.  
The node even doesn't return any msg, even if it tells that the device is 'Connected'.

I just get an error:

TypeError: Cannot read properties of null (reading 'publish')

Here is the content of the node:

```auto
[
    {
        "id": "bfa20fb3e06bd40e",
        "type": "plc-read-variables",
        "z": "96606ba47e578760",
        "plc_connector": "b17d34f713647319",
        "variables": "Arp.Plc.Eclr/ESM_DATA.ESM_INFOS[1].TICK_COUNT,Arp.Plc.Eclr/MainInstance.currentTimeRTC,Arp.Plc.Eclr/MainInstance.currentIEC61850TimeStamp,Arp.Plc.Eclr/MainInstance.varIEC61850_TimeQuality,Arp.Plc.Eclr/MainInstance.firstCycle,Arp.Plc.Eclr/MainInstance.counter,Arp.Plc.Eclr/MainInstance.toStack",
        "searchbar": "",
        "x": 330,
        "y": 340,
        "wires": [
            [
                "8d06ae24ef3c7440"
            ]
        ]
    },
    {
        "id": "b17d34f713647319",
        "type": "plc-connector",
        "host": "192.168.100.125",
        "station_name": "PLCnext",
        "session_timeout": "5000",
        "api_version": "v1.4",
        "auth_required": "true"
    }
]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 January 2024 10:40 UTC](https://discourse.nodered.org/t/node-red-plc-next-connector-no-access-to-the-variables/83126/2 "2024-01-22T10:40:43Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
