Required to write a formula for a command

Forum Home Forums Understanding the Software Using Formulas Required to write a formula for a command

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #17459
    modivir
    Participant

    Hi,

    I used input/output channel type but it only send COMMAND 1. its not working like toggle.
    https://ibb.co/xKkg20np send command

    • This reply was modified 2 weeks, 4 days ago by Mikhail.
    #17470
    Mikhail
    Moderator

    Hi,
    A toggle also has to be bound to an input channel to be able to choose command values between 0 or 1.

    #17472
    modivir
    Participant

    Hi,

    I used Val() in the input channel, but the toggle always sends 1.<img https://ibb.co/39b7hN4W
    https://ibb.co/DfDjWbnN

    • This reply was modified 2 weeks, 3 days ago by Mikhail.
    #17473
    manjey73
    Participant

    In the output formula, something like

    Val() > 0 ? 0: 1

    #17474
    modivir
    Participant

    hi,

    I use Val() > 0 ? 0: 1 in output formula and Val() in input formula. still problem is not solve.

    #17476
    manjey73
    Participant

    Then you need a little more configuration data.
    including screenshots and which schema editor do you use?

    #17477
    Mikhail
    Moderator

    Hi,
    Toggle component does not require any input formula of the channel.
    If a channel is bound to the device, the output formula also not required.

    #17482
    Mikhail
    Moderator

    What is the channel type?
    Does the channel tied to a physical device?

    #17492
    modivir
    Participant

    HI,

    I used scheme classic.
    I USED MODBUS SLAVE SOFTWARE FOR MODBUS COMMUNICATION. IT’S NOT TIED WITH PHYSICAL DEVICE. i shared screenshot of configuration. please check and let me know if any mistake is there. i used 206 channel (coil 1 ).

    thanks in advance.
    https://ibb.co/8DyCQwMt
    https://ibb.co/B031Vh5
    https://ibb.co/Ng5LsdHP
    https://ibb.co/gbRDwkGS

    • This reply was modified 2 weeks, 1 day ago by Mikhail.
    #17497
    Mikhail
    Moderator

    Hi,
    1. In the channel properties, clear the formulas.
    2. In the Modbus template, remove nodes under the Commands node. Add a group of elements which is enough for reading and writing.

    #17502
    modivir
    Participant

    Hi,

    Thanks for support. Problem is solved after below changes.

    1) Calculated Output
    2) input formula -Val(206)
    3) Output Formula – SetVal(206,Val(206) > 0 ? 0 : 1)

    #17504
    Mikhail
    Moderator

    Hi,
    Thank you for the update.

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.