DanielH
02/25/2025, 9:08 AMJanik
02/25/2025, 10:59 AMDanielH
02/25/2025, 11:09 AMyaml
s7comm:
tcpDevice: '192.168.26.100' # IP address of the Siemens S7 PLC
rack: 0 # Rack number of the PLC. Defaults to 0
slot: 2 # Slot number of the PLC. Defaults to 1
batchMaxSize: 480 # Maximum number of addresses per batch request. Defaults to 480
timeout: 10 # Timeout in seconds for connections and requests. Default to 10
disableCPUInfo: true # Set to true to not fetch CPU information from the PLC
addresses:
- "DB8.I94"DanielH
02/25/2025, 11:10 AMyaml
# these variables are autogenerated from your instance location
let enterprise = "Autoform"
let site = "Malung"
let area = "none"
let line = "none"
let workcell = "138"
let schema = "_local"
let value = content().string() # Change this to content().number() if you want to parse the value as number
let tagname = match meta("s7_address") {
"DB8.I94" => "actCycleTime"
_ => meta("s7_address")
}
# the rest from here here on will be autogenerated, see also documentationDanielH
02/25/2025, 12:11 PMJanik
02/25/2025, 12:51 PMDanielH
02/25/2025, 12:59 PMDanielH
02/25/2025, 1:10 PMJanik
02/25/2025, 1:12 PMDanielH
02/25/2025, 1:33 PMJanik
02/25/2025, 1:46 PMDanielH
02/25/2025, 1:53 PMDanielH
02/25/2025, 1:54 PMDanielH
02/25/2025, 1:54 PMDanielH
02/25/2025, 2:43 PMJanik
02/25/2025, 2:57 PMDanielH
02/25/2025, 2:59 PMJanik
02/25/2025, 3:01 PMDanielH
02/25/2025, 3:11 PMDanielH
02/26/2025, 6:58 AMbash
2025-02-25T14:16:23.379591964Z level=info msg="Launching a Benthos instance, use CTRL+C to close" @service=benthos
2025-02-25T14:16:23.397449483Z level=info msg="Successfully connected to S7 PLC at 192.168.26.100" @service=benthos label="" path=root.input
2025-02-25T14:16:23.397465483Z level=info msg="Input type s7comm is now active" @service=benthos label="" path=root.input
2025-02-25T22:30:17.508706440Z 2025/02/25 22:30:17 *net.OpError read tcp 10.42.0.40:54084->192.168.26.100:102: i/o timeout
2025-02-25T22:30:17.508789925Z level=error msg="Failed to read message: Failed to read batch 1: read tcp 10.42.0.40:54084->192.168.26.100:102: i/o timeout. Reconnecting..." @service=benthos label="" path=root.input
2025-02-25T22:30:17.599371068Z level=error msg="Failed to read message: Failed to read batch 1: Connection to address 192.168.26.100:102 is null. Reconnecting..." @service=benthos label="" path=root.input
2025-02-25T22:30:17.737457350Z level=error msg="Failed to read message: Failed to read batch 1: Connection to address 192.168.26.100:102 is null. Reconnecting..." @service=benthos label="" path=root.input
2025-02-25T22:30:18.032238120Z level=error msg="Failed to read message: Failed to read batch 1: Connection to address 192.168.26.100:102 is null. Reconnecting..." @service=benthos label="" path=root.input
`DanielH
02/26/2025, 7:01 AMJanik
02/27/2025, 9:09 AMlatest. That should solve the issueDanielH
02/27/2025, 9:19 AMJanik
02/27/2025, 10:21 AMDanielH
02/27/2025, 10:35 AMJanik
02/27/2025, 10:47 AMDanielH
02/27/2025, 11:02 AMDanielH
02/28/2025, 5:23 AMJanik
02/28/2025, 9:00 AMDanielH
02/28/2025, 9:05 AM