Navigation:  Equipments (Devices) > SCA06 > Ladder > Coil >

TOGGLECOIL

Previous pageReturn to chapter overviewNext page

Logical block used for output variables alternance.

 

Ladder Representation

 

TOGGLECOIL_block

 

Block Structure

 

Variable Type

Name

Data Type

Description

VAR_OUTPUT

O1

BOOL

Block log output

VAR

TOGGLECOIL_INST_0

TOGGLECOIL

Instance of access to block structure

 

Operation

 

When identifying a transition from FALSE to TRUE (leading edge) on A, the block reverses the status of O1.

 

Diagram

 

TOGGLECOIL_diagram

 

Block Flowchart

 

TOGGLECOIL_flowchart

 

Example in Ladder

 

TOGGLECOIL_example

 

The above example inverts the state of the digital output DO6 to each disabling the internal buzzer.

 

Example in ST

 

 The example below displays the instructions for applying the example above in the ST language.

 

 

VAR

   NTSCONTACT_INST_0 : FB_NTSCONTACT;

   TOGGLECOIL_INST_0 : FB_TOGGLECOIL;

END_VAR

 

NTSCONTACT_INST_0(EN:=TRUE, BIT:=BUZZER_ACTIVE);

TOGGLECOIL_INST_0(EN:=NTSCONTACT_INST_0.Q, BIT=>DO6);