Latch

Top  Previous  Next

CIRCON~1_img259

Implements a Set-Reset (SR) latch.

 

Inputs



 

 

Slots

Type

Default

Description

 

Set

Digital

Null

When the EdgeTrigger property is set to True, a False‑to‑True transition will cause the Output to latch to True (the Reset input must be either Null or False for the Set transition to take effect). When the EdgeTrigger property is set to False, the latch works according to the table shown below for EdgeTrigger.

 

Reset

Digital

Null

When the EdgeTrigger property is set to True, a False‑to‑True transition will cause the Output to latch to False (the Set input must be False for the Reset to take effect). When the EdgeTrigger property is set to False, the latch works according to the table shown below for EdgeTrigger.

 

Outputs


 

Slots

Type

Description

 

Output

Digital

The latch output.

 

Properties

 

Slots

Description

 

Persistent

Determines if the latched value is persisted across program restarts and power-cycles

 

DefaultValue

 

 

 

Determines the initial value of the block on program start, or on initial load of the program.  If the block is not persistent, the output will be set to the DefaultValue on the restart of the program (including controller restarts and power-cycles).   If the block is persistent, the DefaultValue will only be used on the initial download and start of the program, and will not be used on subsequent restarts.

 

EdgeTrigger

When set to True, the latch operates as an SR latch. When set to False, the latch operates according to the following table:

Set

Reset

Output

0

0

No change

1

0

1

0

1

0

1

1

0