Rotate images when receive a pulse PLC

Hi my friends, I need to rotate a gear when a signal of PLC come.

Welcome.

Can you provide more information, we have nothing to go on with this.
Example flow, code etc. Make sure to use the correct code formatting when posting.

Hi @jelor1985,
Here`s a flow that has a switch that controls the spinning of the image of a gear (from font-awesome). Hope that works for you!

[
    {
        "id": "36b3321b.76331e",
        "type": "ui_template",
        "z": "119b139b.df98ac",
        "group": "a9b59c6a.acaa5",
        "name": "Gear logo",
        "order": 3,
        "width": 0,
        "height": 0,
        "format": "<div ng-bind-html=\"msg.payload\"></div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "templateScope": "local",
        "x": 840,
        "y": 320,
        "wires": [
            []
        ]
    },
    {
        "id": "4de4744e.fee76c",
        "type": "change",
        "z": "119b139b.df98ac",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "<i class=\"fa fa-cog fa-spin fa-3x fa-fw\"></i>",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 640,
        "y": 300,
        "wires": [
            [
                "36b3321b.76331e"
            ]
        ]
    },
    {
        "id": "a68f42b7.dd77",
        "type": "ui_switch",
        "z": "119b139b.df98ac",
        "name": "",
        "label": "switch",
        "tooltip": "",
        "group": "a9b59c6a.acaa5",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "decouple": "false",
        "topic": "",
        "style": "",
        "onvalue": "true",
        "onvalueType": "bool",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "bool",
        "officon": "",
        "offcolor": "",
        "x": 320,
        "y": 320,
        "wires": [
            [
                "cc12b07e.1ca1"
            ]
        ]
    },
    {
        "id": "cc12b07e.1ca1",
        "type": "switch",
        "z": "119b139b.df98ac",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 470,
        "y": 320,
        "wires": [
            [
                "4de4744e.fee76c"
            ],
            [
                "95bf89e7.747fa8"
            ]
        ]
    },
    {
        "id": "95bf89e7.747fa8",
        "type": "change",
        "z": "119b139b.df98ac",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "<i class=\"fa fa-cog fa-3x fa-fw\"></i>",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 640,
        "y": 340,
        "wires": [
            [
                "36b3321b.76331e"
            ]
        ]
    },
    {
        "id": "d46ba4c4.151668",
        "type": "inject",
        "z": "119b139b.df98ac",
        "name": "Init",
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "x": 190,
        "y": 320,
        "wires": [
            [
                "a68f42b7.dd77"
            ]
        ]
    },
    {
        "id": "a9b59c6a.acaa5",
        "type": "ui_group",
        "z": "",
        "name": "TEMP",
        "tab": "cc16d42c.cb9c08",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "cc16d42c.cb9c08",
        "type": "ui_tab",
        "z": "",
        "name": "Tab",
        "icon": "wifi",
        "order": 1
    }
]