# Wago cc100 modbus problem

**URL:** <https://www.wago.community/t/wago-cc100-modbus-problem/618>\
**Category:** Node-RED\
**Tags:** docker, linux, cc100\
**Created:** [September 28, 2023, 3:33pm UTC](https://www.wago.community/t/wago-cc100-modbus-problem/618 "2023-09-28T15:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ygdrasil](https://avatars.discourse-cdn.com/v4/letter/y/d78d45/32.png) [@ygdrasil](https://www.wago.community/u/ygdrasil)\
**Post date:** [September 28, 2023, 3:33pm UTC](https://www.wago.community/t/wago-cc100-modbus-problem/618/1 "2023-09-28T15:33:07Z")

</div>

Hello.

I have problem with modbus serial port on wago cc 100. I follow all steps in wago guide  
for rs485 on cc100.

My setup:  
Wago cc 100 firmware: 03.09.07(21) (latest)  
Nodered 3.0.1 docker image.  
Modbus version 5.23.1.  
Modbus device: IMI TA160 modbus valve actuator.

Guide i followed:

> [@Using RS485 port on CC100 with NodeRED](https://www.wago.community/t/using-rs485-port-on-cc100-with-nodered/202):
>
> Steps to use the serial port on the CC100 with NodeRED in Docker. Disable the PLC Runtime The serial port on the CC100 is called /dev/ttySTM1 and has the correct permissions by default. [image] Install Node-RED and attach the serial port in privileged mode. docker run -d --name wago-node-red -d --privileged=true --user=root --network=host --device=/dev/ttySTM1:/dev/ttySTM1:rw -v node\_red\_user\_data:/data nodered/node-red Open NodeRED GUI in browser at port 1880 https://:…

Here is **error message** i get from node-red console when doing a modbus read request:

**./entrypoint.sh: line 14: 6 Segmentation fault /usr/local/bin/node $NODEOPTIONS node\_modules/node-red/red.js --userDir /data $FLOWS**

Im trying to read off register 0. Which should return me a value of 0. I have also tried to write to said register, but node-red still crash. I have also tried other registers to no avail.

I have to delete node-red-contrib-modbus to restart the flow.

There is 2 guides on how to use modbus rtu with nodered and wago cc100.  
So far i followed this: [Using RS485 port on CC100 with NodeRED](https://www.wago.community/t/using-rs485-port-on-cc100-with-nodered/202)

But maybe this guide is right one?

> **[GitHub - WAGO/cc100-serial-communication: This repository shows how the...](https://github.com/WAGO/cc100-serial-communication)**
>
> This repository shows how the serial interface of the CC100 can be integrated into a Docker container (Node-RED) - GitHub - WAGO/cc100-serial-communication: This repository shows how the serial int...

---

<div class="post-metadata">

**Author:** ![ygdrasil](https://avatars.discourse-cdn.com/v4/letter/y/d78d45/32.png) [@ygdrasil](https://www.wago.community/u/ygdrasil)\
**Post date:** [September 29, 2023, 10:12pm UTC](https://www.wago.community/t/wago-cc100-modbus-problem/618/2 "2023-09-29T22:12:05Z")

</div>

Works now. What i did was using this docker command :

```auto
docker run -d \
--name node-red \
--restart always \
--privileged=true \
--user=root \
-p 1880:1880 \
-v node_red_user_data:/data \
-v /dev/ttySTM1:/dev/serial \
wagoautomation/node-red-cc100:1.0.0

```
