Expand description
The types subcommand: a TypeScript module typing the tags of a running server (GET /tags), as a typed tag
tree (tagTree<PLC1Tags>) or the 0.2 union of tag names.
Functionsยง
- fetch_
tags - GET
<url>/tags[?plc=NAME]with a Bearer token; the whole body (plc, version, tags, types, rules, groups, decorators, udt, tag_settings).http://only; a non-200 status is an error with the status line and body. - names_
module - The 0.2
--format namesmodule:export type TagName = "..." | ...;.plcsare as passed on the command line (one body each); names are qualified asPLC/tagwhen there is more than one. - tag_
names - Readable names: each tag, but for an AOI its readable members (Inst.Member) instead of the instance.
- tree_
module - The generated module: UDT interfaces, a tags interface and a tagTree const per PLC;
qualifiedpasses each PLC name to its tagTree (several PLCs).