Modicon Unity Pro S

Brian C

Member
Join Date
Jun 2011
Location
Vancouver
Posts
12
I am new to Unity Pro S, I would like to get some help for assigning 5m to the preset delay time parameter in the TON (timer on) FBI (function block instance). Format is t#5m for 5 minutes, however if I get the 5 min input from the HMI, how can I assign the 5m to a variable EDT (elementary data type) and feed to the function block. I would like to keep it simple, possible for assigning INT data type or I have to use the TIME data type? Say I assign it to the a variable called "ON_DELAY_TIME", how can I feed to the t#5m? So frustrated!

Regards.

 
there is a integer to time fbd that you can use to feed into in preset leg of the timer. If the operator only has minute options it is straight forward. but if he can select seconds and minutes some other tricks have to be used. Let me know
 
t# is actually represented in milliseconds as a DINT
so if your hmi writes to say %MW100 a value of 5000 (as a dint) and you assign a variable in unity as a TIME and located it at %MW100 then that variable will have a time of 5 seconds in it
 
Thanks guys, it works. What I did is get 5 min from HMI as INT. Then use INT_TO_DINT and multiple 60000 to convert it to milliseconds. Finally use DINT_TO_TIME and the TON takes it. Appreciate for your help guys.
 

Similar Topics

HELLO MY FRİENDS ı have problem. ı tought you can solved thıs problem for me. First of all When I checked all the cable connections of the...
Replies
0
Views
400
Hello all, My company have sourced a Modicon M340 PLC with a Magelis (XPT GTO4310) HMI. The intention here is to use this setup in order to...
Replies
6
Views
3,690
Greetings, I'm using Unity Pro v8 (131118) with Modicon M340. I cut my teeth on PLCs with Modicon back in the early 90s but this is my first...
Replies
2
Views
2,649
I was wondering if anyone knows if I can use the Unity Pro software to download an backup the logic from an older Modicon Micro CPU612?
Replies
1
Views
1,631
Hi I have a modicon 984 and HAD a pc issue with the dev PC that had the Proworx 32 software and programming on it. The hard drive took a dive and...
Replies
5
Views
5,706
Back
Top Bottom