Пример #1
0
def error_list():
    """ Get the number of errors for each input and output module. """
    return MasterCommandSpec("el", [Field.padding(13)], [
        Field("errors", ErrorListFieldType()),
        Field.crc(),
        Field.lit("\r\n")
    ])
Пример #2
0
def output_list():
    """ The message sent by the master whenever the outputs change. """
    return MasterCommandSpec("OL",
                             [],
                             [Field("outputs", OutputFieldType()), Field.lit("\r\n")])