interfaces |
list the Ethernet interfaces |
discover, devices |
DCP Identify: every device, or those matching --station, --alias, --ip, --vendor/--device; duplicate station names are flagged; --wait (2s) and --response-delay (×10 ms, default 10); above 4096 answers it lists those of the first 4096, marked truncated (exit code 7) |
identify |
the full DCP identity of one device |
name get, name set NAME, name set --clear |
read or assign the station name (temporary, or --permanent) |
ip get, ip set ADDR/PREFIX [--gateway GW], ip set --clear |
read or assign the IP suite |
signal |
flash the device's LED |
reset --mode MODE --confirm TARGET |
DCP ResetToFactory (communication, application, engineering, all-data, device, factory) |
record read --index I [--slot --subslot --api] [--max-length N] |
ReadImplicit of any record, as hex, with the block types it holds (--max-length: largest record accepted, default 4096) |
record write --index I --data HEX | --data-file FILE |
write a record in a device access AR, or with --gsdml/--model (and --dap) in an IOCAR, for devices without device access |
im read [--record 0,1,...] [--api --slot --subslot] |
I&M0, and the I&M1–4 it lists as supported, of the DAP or of the submodule at (API, slot, subslot) |
im write --function --location --date --descriptor --signature |
write I&M1–4 of the DAP (in an IOCAR with --gsdml/--model, as record write); when a record fails after others were written, the result names both (exit code 7) |
diagnostics [--api --slot --subslot] |
the diagnosis of the device (every API, with the API of an entry of an API other than 0) or of one submodule, decoded |
device info |
identity, I&M0 and the real configuration (modules and submodules of every API the device lists in APIData, RealIdentificationData) |
status |
reachability (DCP, RPC), diagnosis by severity, link and neighbor of each port |
lldp neighbors [--wait D] |
the LLDP neighbors of the host's interface (listens 6 s) |
topology [--wait D] [--lldp-wait D] [--read-any-address] |
every device's port neighbors (PDRealData) and the links between them; it reads the devices in a subnet of the interface (with --read-any-address all), 8 at a time, for at most 2 × --timeout; above 4096 answers to its Identify it maps the first 4096, marked truncated (exit code 7) |
topology check --link A/PORT=B/PORT ... | --expect FILE |
verify the cabling against the expected links: each link ok, missing, wrong peer, unknown port or unverified (exit code 7 when it differs) |
mrp status [--ports N] |
a device's media redundancy: role, domain, ring state (manager), ring ports (reads N port submodules, default 4) |
hello listen [--duration D] |
stream the DCP Hello frames devices send at start and on link up |
gsdml inspect FILE |
identity, schema version, device access points, modules (of the first 64 device access points) |
gsdml validate FILE [--against schema|catalog] |
validation against the GSDML schema of the file's version, 1.0 to 2.46, each issue with its line, and the IO data length (exit code 7 when it finds errors); --against catalog (and a file naming no version with a schema) uses go-profinet's version-independent catalog |
gsdml gsdx FILE [--extract PART [-O FILE]] |
inspect a GSDX container: parts, relationships, signature metadata (not verified), each GSDML part checked (exit code 7 on issues) |
gsdml check FILE [--strict] [--against schema|catalog] |
the full check: the schema of the file's version as validate, errors, warnings and unvalidated content, each with its rule, and whether each device access point converts to a model as --gsdml needs (exit code 7 on errors, with --strict on any issue) |
gsdml schema versions |
the GSDML schema versions go-profinet has (1.0 to 2.46) |
gsdml schema validate FILE [--version V] |
validation against the schema of the file's version (or V) only: structure, simple types and facets, identity constraints, each issue with its line (exit code 7 when it is not valid) |
gsdml schema dump FILE [--version V] [--no-validate] |
the typed model of the file as JSON, with the schema's names and JSON numbers and booleans for numeric and boolean types |
gsdml modules FILE, gsdml submodules FILE |
the module and submodule types, with IO lengths, records and (submodules) the API of a submodule of an API other than 0; modules lists the modules with configurable submodules too, with their number and the IO lengths of their defaults, and apart, with why, those go-profinet cannot place |
gsdml config FILE [--dap ID] [--plug SLOT=IDENT]... [--plug-submodule SLOT:SUBSLOT=SUBMODULE]... |
the configuration of a device access point, resolved with go-profinet's gsdml.Configuration: each slot (0 is the DAP) with its module and submodules, a configurable submodule marked with its SubmoduleItem ID, and the configurable submodules the DAP and each plugged module can put in their subslots (allowed, fixed and used subslots); --plug and --plug-submodule change it as for an AR; sends nothing |
gsdml plan FILE [--dap ID] [--plug SLOT=IDENT]... [--plug-submodule SLOT:SUBSLOT=SUBMODULE]... [--slot N]... [--param-value SLOT:SUBSLOT:INDEX:FIELD=VALUE]... [--param-defaults] |
the parameter records an AR with the same flags writes before PrmEnd, in write order (with the API of a submodule of an API other than 0), built from the file's fields with go-profinet's PlanParameters, with the issues of the records and their severity (with --format table on stderr); sends nothing (exit code 7 when go-profinet refuses the plan for errors of the records). An AR's --param records are not part of the plan |
gsdml generate --model MODEL.json [--output-file FILE|DIR] [--pnio-version V] [--device-access=false] |
the GSDML file of a go-profinet device model (--output-file/-O: a file, or a directory for the conventional name; --pnio-version: declared PNIO_Version, default V2.35; --device-access: declare DeviceAccessSupported, default true) |
connect |
establish an AR as IO-Controller and run it: states and alarms are streamed, then a summary; --slot N expects only some modules (shared device: another controller owns the rest), --peer-check PORT=STATION/PORT has the device watch a port's neighbor, --mrp-role client|manager|off gives a multiport device its MRP role, --reparam SLOT:SUBSLOT:INDEX:HEX re-parameterizes the running AR (PrmBegin … PrmEnd) |
ar |
establish an AR and show what Connect negotiated (AR, IOCRs, ModuleDiff) |
iocr |
the layout of the IOCRs: data objects, IOPS and IOCS at their offsets |
io status [--settle D], io monitor [--interval D] [--changes], io statistics [--duration D] |
a snapshot of the inputs and output statuses; the inputs at an interval (only changes with --changes); the cyclic counters over 5 s |
alarms |
establish an AR and stream the device's alarms |
disconnect --ar UUID --session-key N |
release an AR another controller left behind |