I think you have to link the actual i/o to the word output, not sure how to dobit in cokpit. But that should fix the problem
In twincat 2 (which is also codesys2 based) you have to declare global variable like iTestvariable AT %I* : INT; as input and iTestVariable AT %Q* : INT; as output, and then make the link in system manager to the actual output or input. And in the simulator mode the io doesn't change it has to be in run mode.
Just noticed that e-****pit is codesys 3 based, then you have to make the link under the tab IO->devices->select the corresponding output/input and right-click the value and select the changelink(that how it goes twincat 3)
In twincat 2 (which is also codesys2 based) you have to declare global variable like iTestvariable AT %I* : INT; as input and iTestVariable AT %Q* : INT; as output, and then make the link in system manager to the actual output or input. And in the simulator mode the io doesn't change it has to be in run mode.
Just noticed that e-****pit is codesys 3 based, then you have to make the link under the tab IO->devices->select the corresponding output/input and right-click the value and select the changelink(that how it goes twincat 3)
Last edited: