In the CODESYS Ladder Logic editor, there's a really practical feature available while logged in (online) to the PLC: for an existing function block (e.g. TON or MC_MoveAbsolute), double-clicking on an unconnected input pin directly opens a value entry window right in the editor β with no need to assign any variable β and you can type a value directly.
Likewise, if the input pin is of an ENUM or STRUCT type, it lets you pick a value of that type straight from a dropdown list. It also doesn't require assigning a variable or adding it to a watch list, etc.
Unfortunately, in the CFC editor you can't write values directly to those unconnected input pins the way you can in Ladder β CFC only supports monitoring/display there.
I wish this existing Ladder editor feature were also available in CFC β it would make the CFC editor far more usable.
I think this would be a relatively small addition to the CFC editor, but it would make a real difference in daily commissioning and debugging work. It would be great to hear the development team's thoughts on whether this could be considered for a future release.
I ran into the same thing while testing a function block in CFC, so I get why you'd want this in the editor. In LD that little inline entry is really handy when you just want to poke one input and see what the block does, and in CFC I keep missing it too.
Until it is there, the workaround I use is to hang a small test variable off the pin instead of leaving it unconnected, something I declare just for that test, and then write to it from the watch list once I am online. It is a bit more clicking around than in LD, especially when the pin is an ENUM, because then I have to make the test variable the same type first, but it does let me step through the values one at a time. For a quick check I usually try it in simulation first, then download and test again on the real hardware with the outputs in a safe state, and I would not use a forced test value anywhere near safety logic.
I think your suggestion makes sense as a small quality-of-life change, and it would make testing in CFC feel a lot closer to LD. Thanks for raising it with the screenshot, that makes the difference pretty clear.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the CODESYS Ladder Logic editor, there's a really practical feature available while logged in (online) to the PLC: for an existing function block (e.g. TON or MC_MoveAbsolute), double-clicking on an unconnected input pin directly opens a value entry window right in the editor β with no need to assign any variable β and you can type a value directly.
Likewise, if the input pin is of an ENUM or STRUCT type, it lets you pick a value of that type straight from a dropdown list. It also doesn't require assigning a variable or adding it to a watch list, etc.
Unfortunately, in the CFC editor you can't write values directly to those unconnected input pins the way you can in Ladder β CFC only supports monitoring/display there.
I wish this existing Ladder editor feature were also available in CFC β it would make the CFC editor far more usable.
I think this would be a relatively small addition to the CFC editor, but it would make a real difference in daily commissioning and debugging work. It would be great to hear the development team's thoughts on whether this could be considered for a future release.
Thanks in advance for reading!
Last edit: imdatatas 2026-09-10
I ran into the same thing while testing a function block in CFC, so I get why you'd want this in the editor. In LD that little inline entry is really handy when you just want to poke one input and see what the block does, and in CFC I keep missing it too.
Until it is there, the workaround I use is to hang a small test variable off the pin instead of leaving it unconnected, something I declare just for that test, and then write to it from the watch list once I am online. It is a bit more clicking around than in LD, especially when the pin is an ENUM, because then I have to make the test variable the same type first, but it does let me step through the values one at a time. For a quick check I usually try it in simulation first, then download and test again on the real hardware with the outputs in a safe state, and I would not use a forced test value anywhere near safety logic.
I think your suggestion makes sense as a small quality-of-life change, and it would make testing in CFC feel a lot closer to LD. Thanks for raising it with the screenshot, that makes the difference pretty clear.