PLC4X Browser
The PLC4X Browser is an interactive terminal application for talking to PLCs without writing any code.
You connect to a device, browse the tags it exposes and then read, write or subscribe to them.
It is written in Go and lives in the plc4x-extras repository.
Building and running
cd plc4go
go run ./tools/plc4xbrowser --demo
Or build a standalone binary:
go build -o plc4xbrowser ./tools/plc4xbrowser
The browser does not require cgo.
With --demo it starts against simulated devices, so it can be tried out without any hardware.
Without the switch it talks to real devices.
Commands
Inside the application, help lists the available commands:
| Command | Purpose |
|---|---|
|
Register a driver and its transports |
|
Find devices on the network |
|
Open a connection |
|
Close a connection |
|
Open the request composer |
|
One-shot single-tag read |
|
One-shot single-tag write |
|
List the tags a connection exposes |
|
Subscribe to a single tag |
|
Control logging |
|
Housekeeping |
Every driver shipped by plc4go can be registered.
The protocol code used by register and discover is the same code the connection string uses, for example s7,
modbus-tcp, ads, bacnet-ip, knxnet-ip, opcua or umas.
Since a serial connection string has no host, a serial port is named in the path instead:
modbus-rtu:///dev/ttyUSB0 firmata:///dev/ttyACM0