Forum Home › Forums › Understanding the Software › Using Formulas › Required to write a formula for a command
Tagged: formula, Interlocks
- This topic has 26 replies, 6 voices, and was last updated 1 week, 6 days ago by
Mikhail.
-
AuthorPosts
-
December 23, 2025 at 12:52 pm #17459
modivirParticipantHi,
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.
December 24, 2025 at 11:09 am #17470
MikhailModeratorHi,
A toggle also has to be bound to an input channel to be able to choose command values between 0 or 1.December 24, 2025 at 11:52 am #17472
modivirParticipantHi,
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.
December 24, 2025 at 12:15 pm #17473
manjey73ParticipantIn the output formula, something like
Val() > 0 ? 0: 1
December 24, 2025 at 12:58 pm #17474
modivirParticipanthi,
I use Val() > 0 ? 0: 1 in output formula and Val() in input formula. still problem is not solve.
December 24, 2025 at 2:00 pm #17476
manjey73ParticipantThen you need a little more configuration data.
including screenshots and which schema editor do you use?December 25, 2025 at 12:23 pm #17477
MikhailModeratorHi,
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.December 25, 2025 at 12:34 pm #17482
MikhailModeratorWhat is the channel type?
Does the channel tied to a physical device?December 26, 2025 at 7:00 am #17492
modivirParticipantHI,
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.
December 26, 2025 at 3:30 pm #17497
MikhailModeratorHi,
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.December 27, 2025 at 6:14 am #17502
modivirParticipantHi,
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)December 29, 2025 at 10:45 am #17504
MikhailModeratorHi,
Thank you for the update. -
This reply was modified 2 weeks, 4 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.