PTSCONTACT
PTSCONTACT is a rising-edge transition contact used in Ladder logic.
Ladder Representation
Block Structure
| Variable Type | Name | Data Type | Description |
|---|---|---|---|
| VAR_INPUT | I1 | BOOL | Block control input. |
| VAR | PTSCONTACT_INST_0 | PTSCONTACT | Block structure access instance. |
Operation
When variable I1 transitions from FALSE to TRUE (rising edge or positive transition edge), B receives the value of A for one scan cycle. At all other moments, B receives FALSE.
Series And Parallel Associations
Pay attention to series and parallel contact associations. See the Contact Logic section for more information.
Logic Diagram

Execution Flowchart

Examples
- Ladder Example
- Structured Text Example
In this example, digital output DO1 is reset when the SHIFT key is pressed and a positive pulse is detected at digital input DI2.
The following Structured Text code applies the same logic shown in the Ladder example.
Structured Text
VAR
PTSCONTACT_INST_0 : FB_PTSCONTACT;
END_VAR
PTSCONTACT_INST_0(EN:=KEY_SHIFT, BIT:=DI2);
DO1 := FB_RESETCOIL(EN:=PTSCONTACT_INST_0.Q);