Twincat dynamic time setting.

Horstoid

Member
Join Date
Jun 2012
Location
Finland
Posts
1
Hi,
What is the best way to set dynamically time for TON timer ? Time should be in ms.

Example:
timer1: TON;
calculatedTime : UINT;

calculatedTime := x/y;

want to set that calulatedTime someway to PT:=calculatedTime ??
timer1(IN:=TRUE , PT:=t#xxxms , Q=> , ET=> );
 

Similar Topics

Hello guys I have an object actually FB. Inside my FB i got matrix which size I want to be declared once you create instance of my object in Main...
Replies
4
Views
2,062
I am using twincat 3 to send some strings over TCP/IP. Where the server is a sensor and my PLC is the client. I noticed that the sensor didnt...
Replies
2
Views
80
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
222
Hi! I am trying to run the 'SimpleSample' (https://infosys.beckhoff.com/content/1033/TF5100_TC3_NC_I/Resources/3438746891/.zip ) to understand the...
Replies
2
Views
106
I am developing a library in twincat and one of the function uses IID_ITcVnAccess_TcVnPoint2_DINT and the definition of this type is defined in...
Replies
0
Views
72
Back
Top Bottom