Block: ManualSwitch



PIC




Inports


In1

Input #1



In2

Input #2






Outports


Out






Mask Parameters


Toggle

Toggle




Description:

Toggling between inputs by double-clicking on block.

Doubleclicking of the ManualSwitch block changes the routing of the input signals and doesn’t open the Function Block Parameters dialog. So if changing the implementation is required, one has to open the dialog via Mask Parameters command of the context menu.

Developer note: To get the double-click feature the callback function of OpenFnc in Block Properties is manually altered to

if get_param(gcb,Toggle) == 0 
   set_param(gcb,Toggle, 1); 
else 
   set_param(gcb,Toggle, 0); 
end 
setBlockData(gcs, gcb); 
initSFunction(gcb);

Implementations:
Bool Boolean Implementation
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: Bool


Boolean Implementation



Inports Data Type


In1

bool



In2

bool






Outports Data Type


Out

bool




Implementation: FiP8


8 Bit Fixed Point Implementation



Inports Data Type


In1

int8



In2

int8






Outports Data Type


Out

int8




Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


In1

int16



In2

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


In1

int32



In2

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


In1

float32



In2

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


In1

float64



In2

float64






Outports Data Type


Out

float64