Siemens S7-1200 timer conversion from Time to s5time

The difference between a time and a S5 time is the 2 first bits.

A time is always in MS. A S5 time uses the first 2 bits to differentiate between 10MS (00) /100MS (01) /1S (10) /10S (11).

So if you want to convert from time to S5time, and have 1S resolution. Just divide your time by 1000 and then add W#16#2000 to it.


If you want more information on the time formats, search the siemens help files. (F1)
 
I don't think the 1200 supports S5 time. Even in the 300, it is mostly there for legacy support only.

What are you trying to do?
 
Hi

I new to PLC programming, scaling analog input potentiometer (0-10V) to Set a Timer pot between 7 -14 minutes , so first i programmed is s7-300 and Simulated it worked fine, method i did in s7-300 Analog input scale (min 7 -max 14) , mul real x 60000 to dint, dint to time, time to s5time but i can't do the same process in S7-1200

Thanks in advance
Ragu
 
Hi

I new to PLC programming, scaling analog input potentiometer (0-10V) to Set a Timer pot between 7 -14 minutes , so first i programmed is s7-300 and Simulated it worked fine, method i did in s7-300 Analog input scale (min 7 -max 14) , mul real x 60000 to dint, dint to time, time to s5time but i can't do the same process in S7-1200

Thanks in advance
Ragu

In the 1200, there are only IEC style timer blocks, which just take TIME directly. There is no S5 time input.
 
Thanks MK42. what about scaling 4-20mA in S7-1200

this is the method i have followed is it Right ??

1) NORM_X ( int to Real)
(Min -0,in - Analog input value,Max- 27648)

2)Scale_X ( real to Dint (dint to round off the Real value))

(min -7,in - real, max -14 )


Thanks in Advance
Ragu
 

Similar Topics

Hello everyone, I am newer on Siemens PLC 1200. From HMI, I set timer value and place in MW20(120) like 120 second How to input MW20 to timer PV...
Replies
17
Views
3,578
Hello All! I am currently working on a project and I have hit a snag. I am programming an s7-1200 and trying to use the TON timer to run a...
Replies
6
Views
4,492
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
255
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
130
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
179
Back
Top Bottom