I am trying to change the preset of a timer on delay through an HMI. I am doing everthing in simulation mode. I can get to the part where i click on the preset time to change it, and a num pad will appear. The problem is the preset time wont change when i hit ok on the numpad window.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
to change a value from type TIME you must use the keypad because you must type in the IEC format like T#5s500ms. If you want to change a time value by using the visualization i suggest
use a INT variable
use in your Visualization this Variable
multiply the INT by 1000 (if you want to have seconds as unit)
use Typecast INT_TO_TIME
connect the result to the PT input of the timer
regards
Ralph
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm new to Codesys and working on my first codesys PLC. I have a TP Timer and I want to be able to change and set the setpoint from my HMI. How do I go about using a INT variable and everything else you have on the list
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to change the preset of a timer on delay through an HMI. I am doing everthing in simulation mode. I can get to the part where i click on the preset time to change it, and a num pad will appear. The problem is the preset time wont change when i hit ok on the numpad window.
Hi logix,
to change a value from type TIME you must use the keypad because you must type in the IEC format like T#5s500ms. If you want to change a time value by using the visualization i suggest
use a INT variable
use in your Visualization this Variable
multiply the INT by 1000 (if you want to have seconds as unit)
use Typecast INT_TO_TIME
connect the result to the PT input of the timer
regards
Ralph
Hello Ralph Holz,
I'm new to Codesys and working on my first codesys PLC. I have a TP Timer and I want to be able to change and set the setpoint from my HMI. How do I go about using a INT variable and everything else you have on the list