Copyright: Created with EasyHelp (Tel: 0973 209667)


Ordinal/Switch Cascader - RG354491

Description

This block is intended to be used with the Fan In Switch blocks, the Select & Disconnect block, or the Fan Out Switch blocks to provide a multi-way switch with up to 100 inputs or outputs.  This is accomplished by cascading up to ten slave switches through a master switch - the Switch Cascade block accepts an aggregate select Input and provides the appropriate select ordinals to each component switch.

The block has a single ordinal Input which may range from 1 to 100 (inputs greater than 100 or less than 1 are clamped).

There is a single #LJParameters#Master output (M) which is used to control the master switch and ten Slave Outputs (S1 through S10) which is used to control the slave switches.  All of the outputs range from 1 to 10.

Examples:  (i) an Input of 1 will generate an output of 1 at the S1 output followed by an output of 1 at the M output.  (ii) an Input of 35 will generate an output of 5 at the S4 output followed by an output of 4 at the M output.  (iii) an Input of 100 will generate an output of 10 at the S10 output followed by an output of 10 at the M output.

This function block generates Outputs only when its Input receives a message.

Parameters

Input	Input.  Expects an ordinal (1 to 100).

Get Input	Returns the current input:  1 to 100.


Description

This block is intended to be used with the Fan In Switch blocks, the Select & Disconnect block, or the Fan Out Switch blocks to provide a multi-way switch with up to 100 inputs or outputs.  This is accomplished by cascading up to ten slave switches through a master switch - the Switch Cascade block accepts an aggregate select Input and provides the appropriate select ordinals to each component switch.

The block has a single ordinal Input which may range from 1 to 100 (inputs greater than 100 or less than 1 are clamped).

There is a single #LJParameters#Master output (M) which is used to control the master switch and ten Slave Outputs (S1 through S10) which is used to control the slave switches.  All of the outputs range from 1 to 10.

Examples:  (i) an Input of 1 will generate an output of 1 at the S1 output followed by an output of 1 at the M output.  (ii) an Input of 35 will generate an output of 5 at the S4 output followed by an output of 4 at the M output.  (iii) an Input of 100 will generate an output of 10 at the S10 output followed by an output of 10 at the M output.

This function block generates Outputs only when its Input receives a message.


Parameters

Input	Input.  Expects an ordinal (1 to 100).

Get Input	Returns the current input:  1 to 100.