SWICNV_B: Switch converter to Boolean

SWICNV_B (FC438) is used to connect standardized manual switches.

Functionality

The block converts a binary or multistate input signal of a manual switch to two binary outputs.

Function table

Inputs

Outputs

In

(Multistate)

EnSwi

(Boolean)

ValSwi

(Boolean)

1 (Auto)

0 (No)

0 (Off)

2 (Off)

1 (Yes)

0 (Off)

3 (On)

1 (Yes)

1 (On)

Inputs

Pin

E

Description

In

pa

Input.

Outputs

Pin

E

Description

EnSwi

a

Switch enable.

ValSwi

a

Switch value.

Input values

Pin

Description

Data type

Default value

E.g. Engineering unit or Text group

Min.

Max.

In

Input.

Multistate

1 (Auto)

Auto, Off, On

1 (Auto)

3 (On)

Output values

Pin

Description

Data type

Default value

E.g. Engineering unit or Text group

Min.

Max.

EnSwi

Switch enable.

Boolean

0 (No)

No, Yes

 

 

ValSwi

Switch value.

Boolean

0 (Off)

Off, On

 

 

Engineering

If Input = 1 then ;--Auto

Value :=1; Enable :=False

else

Value := BOOLEAN (Input –1); Enable :=True

end if

Important

The text group of input [In] at [SWICNV_B] is characterized by the sequence Auto/Off/On. If the input is user-defined, Auto must first be displayed.

Process response

Standard (see General rules and information).

Troubleshooting

Standard (see General rules and information).