Skip to main content

Module rules

Module rules 

Source
Expand description

Tag settings: decorators attached by UDT member or tag path, then the match-pattern rules and poll groups.

Structs§

Group
A poll rate and the name it is shown under: a poll group, a decorator, or "tag".
Resolver
Effective settings of tag paths in one PLC, from the decorators, its [udt] and [tags] entries, its rules and groups, and the controller’s types (the /tags tags and types; UDT entries need them).
Rules
The resolvers of every PLC in a Config, memoized; set_types clears the memo.

Functions§

canonical
[02] and [ 2] address element 2 in ciplink and the mock, so settings must see [2].
glob_match
Case-insensitive; * any run of characters (. and [] included), ? one, the rest literal.
normalize
Canonical indexes, lowercase.
patterns
The match of a rule or group table as a list.
split_bit
X.<n> as (X, n): Logix member names never start with a digit.
truthy
Python truthiness of a setting.

Type Aliases§

Settings
Settings of a tag path: writable, min, max, units, description, deadband, always, bits, together, rate_ms (with group, the name that set it).