Chapter 8. Configuring the Logic System

Table of Contents

8.1. Defining Logic Functions
AND Logic
OR Logic
Interlock Logic Bus
8.2. Level Detection
8.3. Logic Delay
8.4. Scripts – Controlling Special Functions with Scripts
Examples for Scripts
8.5. GPOs - General Purpose Outputs

Here you can configure the logic functions of the RM4200D. To do that, open the branch Logic System in the project tree; there you find further sub branches for configuration. The separate parts are described in this chapter. Please find additional explanations of the functions in the volume System Reference of this manual.

In this chapter (and in the Toolbox4software) the following terms are used, some of them have the same meaning:

You find all Logic Sources of the RM4200D in the Logic Sources Window. If you define new logic functions, these are also displayed in this window, below the node Logic Functions. You can use these functions in the same way as you do with the ones preset by the system.

To open the Logic Sources Window use the command Logic Sources from the View menu or press the key F5.

You can use all logic functions from the Logic Sources Window as input values for the functions described in this section.

Figure 66: Logic Sources Window.

The following table provides an overview of the different function groups of Logic Sources and their sub entries. You also find detailed descriptions under the functions controlling the different logic sources.

Name of the Function GroupEntriesDescription
None 
  • Logic 0 or inactive.

OFF 
  • Active, if the associated channel is OFF. You can use it to signal the state “Ready” for this channel.

  • It is only shown if you opened the Logic Sources Window from the dialog Fader Channels and if a defined channel is selected there.

Global Resource<Name of he Global Resource>.<Name of the subscriber>
  • Any Global Resource can be used as logic source, if at least one subscriber is defined for it.

RM420-0xx #<ID1…ID12>KEY <1..n> <keylabel>
  • Each key of the Control Modules available in the Config can be used as Logic Source; mostly, the keys are used with the function User Defined.

  • Each configured Control Module appears as separate node with type name and Module ID.

Clean Feed 
  • Logic sources that become active when activating the Clean Feed by pressing a key. The Clean Feeds are configured under Audio System/Fader Channels. (see Fader Channels – Configuring Signal Sources for Faders)

  • Each configured Clean Feed hat has the following entries with indication of the input name of the Fader Channel:

CF Prep. <inputname>
  • Preparation Mode (pre talk) activated in this Fader Channel and fader closed.

CF Talk <inputname>
  • Talk key function activated in this Fader Channel.

CF Off Air <inputname>
  • Off Air key function activated in this Fader Channel.

CF Output Select <inputname>
  • Output Select key function activated in this fader. (Alternative signal instead of Clean Feed.)

GPIGPI <slot>.<plug.>01 <label>
Logic FunctionsLF <name>
  • Active when logic function named <name> is active.

  • Each configured logic function has its own entry.

Global LogicGL1…200 <name>
  • Active when the corresponding Global Logic is active.

  • Each Global Logic with a name differing from the preset has an entry. (see also Global Logics )

System Functions 
  • Diverse single functions.

PFL On
  • Active when at least one PFL key is pressed.

  • Application e.g. for switching/fading in PFLs in loudspeakers or headphones using Output Functions.

...System FunctionsPulse 1
  • Pulse generator, fast, approx. 450ms.

  • Pulse/Pause relation approx. 1:1.

  • Only available as Logic Source for logic functions.

  • Application e.g. for flashing functions.

Pulse 2
  • Pulse generator, medium, approx. 900ms.

  • Pulse/Pause relation approx. 1:1.

  • Only available as Logic Source for logic functions.

  • Application e.g. for flashing functions.

Pulse 3
  • Pulse generator, slow, approx. 2s.

  • Pulse/Pause relation approx. 1:1.

  • Only available as logic source for logic functions.

  • Application e.g. for flashing functions.

Off Air
  • Active when at least one Off Air key is pressed.

  • Application e.g. for starting the Off Air Recordings using a GPO.

Voice
  • Active if at least one fader of the Fader Channel is open for which the option Voice is configured.

  • Application e.g. for voice indication in the RDS data stream using a GPO.

PGM1
  • Active if at least one fader of a Fader Channel has PGM1 Logic configured, is open and switched on to the Program Bus 1.

  • Application e.g. for starting a recording using a GPO.

Solo
  • Active if at least one Solo key is pressed.

  • Application e.g. for switching/fading in of the solo bus in loudspeakers or headphones using Output Functions.

Timer Running
  • Active if at least one fader of a Fader Channel is open for which Timer Reset is configured.

  • Application e.g. for controlling external timers using a GPO.

Timer Reset
  • Pulses if at least one fader of a Fader Channel is open for the Timer Reset is configured.

  • Application e.g. for controlling external timers using GPO.

Slot 10,20,30 MADI 1,2 Error
  • Error signal for each configured MADI-Port.

  • Active if no or no valid MADI signal is put on.

Logic DelayLD <name>
  • Active after the end of the preset delay.

  • Each configured Logic Delay has an entry. (see also Logic Delay )

Level DetectLV <name>
  • Active when the level exceeds the preset threshold.

  • Each configured Level Detect has an entry. (see also Level Detection)

Correlation DetectLC <Name>
  • Active, when signal exceeds the set correlation degree (-1 to +1).

  • Each defined Correlation Detect has an entry. You configure the detectors in the dialog Logic System/Level Detection. (see also Level Detection)

Fader Start FaderFS Fader 1…n
  • Active, when the “physical” fader with number 1…n is both open and on.

  • Exception: If the option On Start is active for the currently assigned Fader Channel, you can trigger the fader start with the On/Off key in the fader strip only. (see also Faderstart)

  • Each configured fader 1…n has an entry (four per Fader Module), no matter which channel is currently assigned to it.

Faderstart ChannelFS <FaderChanName>
  • Active when the fader of the Fader Channel <FaderChanName> is open and on.

  • Exception: If the option On Start is active for the currently assigned Fader Channel, you can trigger the fader start with the On/Off key in the fader strip only. (see also Faderstart)

  • Each configured Fader Channel has an entry.

PFL FaderPFL Fader 1…n
  • Active if PFL of the “physical” fader with number 1…n is active.

  • Each configured fader 1…n has an entry (four per Fader Module), no matter which channel is currently assigned to it.

PFL ChannelPFL <FaderChanName>
  • Active if PFL of the Fader Channel <FaderChanNamel> is active.

  • Each configured Fader Channel has an entry.

Fader Function FaderFF Fader 1…n
  • Active if the key function Fader Function of “physical” fader with number 1…n is active. (see also Fader Fu...)

  • Each configured fader 1…n has an entry (four per Fader Module), no matter which channel is currently assigned to it.

Fader Function ChannelFF <FaderChanName>
  • Active if the key function Fader Function of the Fader Channel <FaderChanName> is active. (see also Fader Fu...)

  • Each configured Fader Channel has an entry.

[Note]Note

The state of the Fader Function is kept “in the background”, even if the Fader Channel is not switched on to the fader strip any more!

Fader Function 2 ChannelFF2 <FaderChanName>
  • Active if the key function Fader Function 2 of the Fader Channel <FaderChanName> is active. (see also Fader Fu...)

  • Each configured Fader Channel has an entry.

[Note]Note

The state of the Fader Function 2 is kept “in the background”, even if the Fader Channel is not switched on to the fader strip any more!

Rotary SelectRS <SourceListName> Text
  • Active if the corresponding source is selected using one of the Rotary Monitor Selectors 1...10.

  • 1 to max. 150 of these logic functions can be used depending on how the signal lists are configured.

    Application mostly for special talkback functions.

[Note]Note

You should assign a signal list for these functions only to one Rotary Monitor Selector at a time, since otherwise the last selection controls the logic function which may cause irritations for the users.

Defining Logic Functions

With RM4200D, you can create up to 150 different logic functions that can use up to 20 Logic Sources. For each logic function, you can link the Logic Sources either by OR or AND. The list of logic functions illustrates the way each function is linked. If the symbol “&” is displayed in the column Conc., the function is AND linked. If the symbol is missing, the function is OR linked. To create more complex Boolean functions, you can use already defined logic functions again as Logic Sources for further logic functions.

Figure 67: Logic Functions, configuration dialog.

Flip-Flop-like functions can be set up using Interlock Logic Buses. This is a special function that allows all logic functions on the same Interlock Logic Bus to deactivate each other as soon as one of the logic functions becomes active. This way, you can e.g. create alternating key set functions, of which only one logic function is active at the same time. Many other applications are possible. You can use up to 100 different Interlock Logic Buses. If a logic function uses an Interlock Logic Bus, its number is displayed in the list of Logic functions in the IL Bus column. (see also Interlock Logic Bus)

The logic functions are processed every 20 ms in the Communication&Logic Controller RM420-850 and supplied via CAN bus to all other controllers. The order of the processing corresponds to the order in the list (top to bottom) in which the logic functions are contained in the configuration dialog. (see figure 67: Logic Functions, configuration dialog.)

To insert a new logic function into the list Logic Functions, use the button Add. To delete an entry from the list, select it and click on the button Remove. You can choose both functions from the contextual menu inside the list.

After marking the desired function in the list Logic Functions, you can configure it in the right pane of the dialog under Edit Logic Function. The following list describes a configuration example for a new logic function:

  1. First enter a descriptive name for the function in the field Label; this may be up to 10 characters long. Please consider that for a maximum of 150 logic functions per Device, this name is important for the clarity of your configuration! The name is displayed in the Logic Sources Window after the short name “LF”.

  2. Now click on the button Add Source, to open or activate the Logic Sources Window. Select the desired Logic Source.

  3. Before assigning the selected Logic Source, first decide how it shall influence the logic function. This feature is displayed in the logic function as icon for each Logic Source. You can define the following features:

    ON
    • Logic Source works directly.

    OFF
    • Logic Source is inverted.

    Pulse on activate
    • Rising edge activates the function.

      [Note]Note

      Use only in connection with Interlock Logic Bus!

    • Example: Key is pressed.

    Pulse on deactivate
    • Falling edge activates the function.

      [Note]Note

      Use only in connection with Interlock Logic Bus

    • Example: Key is released.

    [Important]Important

    The options Pulse on activate and Pulse on deactivate may only be used in logic functions with activated Interlock Logic Bus!

  4. Now assign the desired Logic Source. Either use the button Add Source or double click the desired source. Alternatively, you can also move a Logic Source into the list using Drag&Drop. If a Logic Source is already marked in the list, it is overwritten. The same happens if you move a Logic Source into an already existing row of the list.

  5. Choose whether the logic functions are to be linked AND or OR and whether they are to be interconnected with an Interlock Logic Bus. (Find more details on that in the following sections.)

AND Logic

For the AND logic, all Logic Sources must be true for the logic function to be true as well. AND linked logic functions are marked with a “&” in the Conc. column (Concatenation).

In the following example, the Logic Source System Functions/Solo is linked to the Logic Source System Functions/Pulse1 using an AND logic. You can put the created logic function SOLOBLINK on the LED of a User Defined key of the control. This starts flashing when at least one Solo key is pressed in any Fader Module.

Figure 68: Logic function, example for AND logic.

You can use the logic source System Functions/Solo to switch loudspeakers between the monitor bus and the solo bus using an Output Function. The flashing key indicates that the loudspeaker is not switched on to the monitor bus.

OR Logic

For the OR logic, at least one Logic Source must be true in order for the logic function to be true.

In the following example, the Logic Sources Fader Start/Mic1...4 are linked with each other by OR.

Figure 69: Logic function, example for OR logic.

To activate a logic function it is sufficient to open the fader of at least one of the microphone channels. This might be a solution to e.g. switch on the red light over a GPO.

Interlock Logic Bus

This function is used to interlink several alternating logic functions. All logic functions influencing each others must be switched on to the same Interlock Logic Bus.

You can use up to 100 different Interlock Logic Buses at the same time, although in this case a logic function can be linked to only one Interlock Logic Bus. But it is possible to use several of these logic functions as inputs for further logic functions again that themselves use other Interlock Logic Buses.

The function of an Interlock Logic Bus can be described as follows:

  1. If a logic function is linked to an Interlock Logic Bus, at first it reacts normally. It becomes active if its logical conditions become true.

  2. If a logic function using an Interlock Logic Bus becomes true, all other logic functions linked to the same Interlock Logic Bus No. become inactive. Thus, activating one logic function on the same Interlock Logic Bus causes the deactivation of all other logic functions.

Since the logic functions in the RM4200D are processed successively, a state change of a logic function with activated Interlock Logic Bus can only be triggered reasonably by a rising or falling edge of the triggering Logic Source to be controlled. If you use an already defined logic function as Logic Source, you can also output this result as edge. To achieve that, select the function in the Logic Sources Window and then click on the option Pulse on activate or Pulse on Deactivate. (see also Example 4 - Changing state with two keys)

[Note]Note

The display of the Interlock Logic Bus No. under Edit Logic Function does not matter when the checkbox Interlock Logic Bus is not activated.

Examples of use

The following examples illustrate the use of Interlock Logic Bus to solve real practical problems.

Example 1: Flip Flop Functions

A logic function is set by the rising edge of a GPI, reset by the next rising edge, etc.

Figure 70: Interlock Example 1: Flip Flop.
Example 2: Key set, can be switched off

An alternating key set with several keys is created by defining a logic function for each key. All these functions are interconnected with the same Interlock Logic Bus. Each of the logic functions has only the corresponding own key as Logic Source (with the feature “Pulse on activate”).

Figure 71: Interlock example 2: Key set can be switched off.

When you press a key, its logic function becomes active, the previously active key becomes inactive. When pressing the active key again, it is switched off.

The logic functions control the LEDs of the corresponding keys with the function User Defined.

Example 3:Key set can not be switched off

This example is similar to the key set from example 2, with one difference: When pressing the currently active key, it is not switched off. Only after resetting the system, all logic functions are inactive.

Figure 72: Interlock Example 3: Key set can not be switched off.

Each logic function has an own key as Logic Source (Pulse on activate) AND additionally, the own inverted logic function. This way, the function can only be activated when it is inactive.

The logic functions control the LEDs of the corresponding keys with the function User Defined.

Example 4 - Changing state with two keys

The following complex example consists of four logic functions. It demonstrates how you can program a key set consisting of two alternating keys. The keys act as follows:

  • There are only the two states “Key 1 pressed (state A)” and “Key 2 pressed (state B)”; there is no state in which both A and B are inactive.

  • If an active key is pressed again, the state does not change.

The logic function Aaktiv is put on the LED of the User Defined key A and the logic function Baktiv on the LED of the User Defined Key B . These two logic functions can e.g. switch audio signals using Output Functions.

This arrangement needs an Interlock Logic Bus in one logic functions, e.g. the bus No. 2 in the logic function Baktiv. The three other logic functions do not use an Interlock Logic Bus.

Figure 73: Interlock Example 4: Change of state with two keys, Logic Function 1.

The logic function Aaktivier becomes active if condition B is active and key A is pressed.

Figure 74: Interlock Example 4: Change of state with two keys, Logic Function 2.

Baktivier becomes active when condition B is inactive (A is active) and the key B is pressed.

Figure 75: Interlock Example 4: Change of state with two keys, Logic Function 3.

Baktiv is assigned to Interlock Logic Bus 2 and can change its state triggered by Aaktivier or Baktivier. Which of the two OR linked Logic Sources sets or resets the function, is determined by the logic functions Aaktivier or Baktivier. In turn, their output is determined by the conditions B and A (= inverted condition B) linked by AND.

Baktiv furthermore controls the LED source of key B and the corresponding function to be executed respectively.

Figure 76: Interlock Example 4: Change of state with two keys, Logic Function 4.

Aaktiv is the inversion of the condition Baktiv.

Aaktiv furthermore controls the LED source of key A or the corresponding function to be executed respectively.