1 minute read

Reset Program (RESETPRG)

The RDFLAG Command (Operation Code 06)

This operation code has been preceded by RD_FLAGA(operation code 29).

The RDFLAG serial command can be used to read the state of the controller status flags, device status flags, inputs, outputs, timers, user flags, global S/W PLS, global H/W PLS, and local H/W PLS flags.

Packet sent to the ESC:

[Header][Flag Type][Flag Number][Checksum]

Flag Type: A 2-byte value indicating the Flag Type to be set.

Flag Number: A 2-byte value indicating the logical Flag Number to be set.

The Packet Body Length is 4 bytes.

Packet returned by the ESC:

[Header][Flag State][Checksum]

Flag State: A 2-byte value indicating the state of the Flag Number read. If the flag is SET/ON, Flag State will be 1. If the flag is CLEAR/OFF, Flag State will be 0.

The Packet Body Length is 2 bytes.

This article is from: