IntegerPassThrough

model IntegerPassThrough "Pass a Integer signal through without modification"
    extends Modelica.Blocks.Icons.IntegerBlock;

    Modelica.Blocks.Interfaces.IntegerInput u "Input signal"
        annotation (Placement(transformation(extent = {
            {-140, -20}, 
            {-100, 20}})));
    Modelica.Blocks.Interfaces.IntegerOutput y "Output signal"
        annotation (Placement(transformation(extent = {
            {100, -10}, 
            {120, 10}})));
equation
    y = u;

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(
                    points = {
                        {-100, 0}, 
                        {100, 0}},
                    color = {255, 128, 0})}),
        Documentation(info = "<html>\n<p>Passes a Integer signal through without modification.  Enables signals to be read out of one bus, have their name changed and be sent back to a bus.</p>\n</html>"));
end IntegerPassThrough;